{"_id":"5af9c7980cd1eb0003c8325d","project":"55faeacad0e22017005b8265","version":{"_id":"55faeacad0e22017005b8268","project":"55faeacad0e22017005b8265","__v":37,"createdAt":"2015-09-17T16:31:06.800Z","releaseDate":"2015-09-17T16:31:06.800Z","categories":["55faeacbd0e22017005b8269","55faf550764f50210095078e","55faf5b5626c341700fd9e96","55faf8a7825d5f19001fa386","560052f91503430d007cc88f","560054f73aa0520d00da0b1a","56005aaf6932a00d00ba7c62","56005c273aa0520d00da0b3f","5601ae7681a9670d006d164d","5601ae926811d00d00ceb487","5601aeb064866b1900f4768d","5601aee850ee460d0002224c","5601afa02499c119000faf19","5601afd381a9670d006d1652","561d4c78281aec0d00eb27b6","561d588d8ca8b90d00210219","563a5f934cc3621900ac278c","5665c5763889610d0008a29e","566710a36819320d000c2e93","56ddf6df8a5ae10e008e3926","56e1c96b2506700e00de6e83","56e1ccc4e416450e00b9e48c","56e1ccdfe63f910e00e59870","56e1cd10bc46be0e002af26a","56e1cd21e416450e00b9e48e","56e3139a51857d0e008e77be","573b4f62ef164e2900a2b881","57c9d1335fd8ca0e006308ed","57e2bd9d1e7b7220000d7fa5","57f2b992ac30911900c7c2b6","58adb5c275df0f1b001ed59b","58c81b5c6dc7140f003c3c46","595412446ed4d9001b3e7b37","59e76ce41938310028037295","5a009de510890d001c2aabfe","5a96f89c89442e002041144b","5b3f9b7267cbc90003d283a5"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"v1","version_clean":"1.0.0","version":"1"},"category":{"_id":"573b4f62ef164e2900a2b881","__v":0,"project":"55faeacad0e22017005b8265","version":"55faeacad0e22017005b8268","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-05-17T17:05:38.443Z","from_sync":false,"order":9,"slug":"algorithm-guide","title":"Algorithms"},"user":"5a904b636bddb90012a75607","__v":0,"parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2018-05-14T17:30:00.693Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":157,"body":"### Imagery Examples\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/3368c81-ENVI_ACE_Before_web.jpg\",\n        \"ENVI_ACE_Before_web.jpg\",\n        566,\n        400,\n        \"#342f2a\"\n      ],\n      \"caption\": \"Before: WorldView 3 image before Advanced Image Preprocessing (AOP) correction\"\n    }\n  ]\n}\n[/block]\n\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/d48e40a-ENVI_ACE_After_web.jpg\",\n        \"ENVI_ACE_After_web.jpg\",\n        566,\n        400,\n        \"#2d1037\"\n      ],\n      \"caption\": \"After: WorldView 3 image after running Spectral Adaptive Coherence Estimator. Lighter areas signify a closer match to the reference spectrum.\"\n    }\n  ]\n}\n[/block]\n### Quickstart\nThis is a workflow example for basic processing.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"# Initialize the environment.\\nfrom gbdxtools import Interface\\ngbdx=Interface()\\n\\ntasks = []\\ncat_id = '104001002D1B2100'\\naop_output_location = 'ENVI/ACE/aop/'\\ntask_output_location = 'ENVI/ACE/task/'\\n\\n# Auto ordering task parameters\\norder = gbdx.Task(\\\"Auto_Ordering\\\")\\norder.inputs.cat_id = cat_id\\norder.impersonation_allowed = True\\norder.persist = True\\norder.timeout = 36000\\norder_data_loc = order.outputs.s3_location.value\\ntasks.append(order)\\n\\n# AOP task parameters\\naop_task = gbdx.Task(\\\"AOP_Strip_Processor\\\")\\naop_task.inputs.data = order_data_loc\\naop_task.inputs.enable_acomp = True\\naop_task.inputs.enable_dra = False\\naop_task.inputs.enable_pansharpen = False\\naop_task.inputs.bands = 'MS'\\naop_task_output = aop_task.outputs.data.value\\ntasks.append(aop_task)\\n\\n# Read to input raster metadata\\nenvi_metadata_wavelength = gbdx.Task(\\\"ENVI_RasterMetadataItem\\\")\\nenvi_metadata_wavelength.inputs.input_raster = aop_task_output\\nenvi_metadata_wavelength.inputs.input_raster_band_grouping = 'multispectral'\\nenvi_metadata_wavelength.inputs.key = \\\"wavelength\\\"\\ntasks.append(envi_metadata_wavelength)\\n\\nenvi_metadata_wavelength_units = gbdx.Task(\\\"ENVI_RasterMetadataItem\\\")\\nenvi_metadata_wavelength_units.inputs.input_raster = aop_task_output\\nenvi_metadata_wavelength_units.inputs.input_raster_band_grouping = 'multispectral'\\nenvi_metadata_wavelength_units.inputs.key = \\\"wavelength units\\\"\\ntasks.append(envi_metadata_wavelength_units)\\n\\n# Get a spectrum from a library\\nenvi_speclib = gbdx.Task(\\\"ENVI_GetSpectrumFromLibrary\\\")\\nenvi_speclib.inputs.input_spectral_library_filename = 'manmade_jhu_becknic_561.sli'\\nenvi_speclib.inputs.spectrum_name = 'Construction Concrete [concrete-construction-solid-0598uuu]'\\ntasks.append(envi_speclib)\\n\\n# Resample spectral library specturm to input raster spectrum\\nenvi_resample = gbdx.Task(\\\"ENVI_ResampleSpectrum\\\")\\nenvi_resample.inputs.input_spectrum = envi_speclib.outputs.spectrum.value\\nenvi_resample.inputs.input_wavelengths = envi_speclib.outputs.wavelengths.value\\nenvi_resample.inputs.input_wavelength_units = envi_speclib.outputs.wavelength_units.value\\nenvi_resample.inputs.resample_wavelengths = envi_metadata_wavelength.outputs.value.value\\nenvi_resample.inputs.resample_wavelength_units = envi_metadata_wavelength_units.outputs.value.value\\ntasks.append(envi_resample)\\n\\n# ACE Target Detection\\nenvi_ACE = gbdx.Task(\\\"ENVI_SpectralAdaptiveCoherenceEstimator\\\")\\nenvi_ACE.inputs.input_raster = aop_task_output\\nenvi_ACE.inputs.input_raster_band_grouping = 'multispectral'\\nenvi_ACE.inputs.spectra = envi_resample.outputs.output_spectrum\\ntasks.append(envi_ACE)\\n\\n# Setup workflow to save data\\nworkflow = gbdx.Workflow(tasks)\\nworkflow.savedata(aop_task.outputs.data, location=aop_output_location)\\nworkflow.savedata(envi_ACE.outputs.output_raster_uri, location=task_output_location)\\n\\n# Execute Workflow\\nworkflow.execute()\",\n      \"language\": \"python\"\n    }\n  ]\n}\n[/block]\n\n### Inputs\n\nThe following table lists all ENVI_SpectralAdaptiveCoherenceEstimator inputs.\nMandatory (optional) settings are listed as Required = True (Required = False).\n\n  Name  |  Required  |  Default  |  Valid Values  |  Description  \n--------|:----------:|-----------|----------------|---------------\nfile_types|False|N/A|string|GBDX Option. Comma seperated list of permitted file type extensions. Use this to filter input files -- Value Type: STRING[*]\ninput_raster|True|N/A|directory|Specify a raster on which to perform the Adaptive Coherence Estimator. -- Value Type: ENVIRASTER\ninput_raster_format|False|N/A|string|Provide the format of the image, for example: landsat-8. -- Value Type: STRING\ninput_raster_band_grouping|False|N/A|string|Provide the name of the band grouping to be used in the task, ie - panchromatic. -- Value Type: STRING\ninput_raster_filename|False|N/A|string|Provide the explicit relative raster filename that ENVI will open. This overrides any file lookup in the task runner. -- Value Type: STRING\nspectra|True|N/A|string|Specify the target spectra. It is a floating-point array. The array size is [number of bands,number of target spectra]. -- Value Type: DOUBLEARRAY\ncovariance|False|N/A|string|Specify an array that is the covariance matrix of the input bands. The array size must be [number of bands,number of bands] -- Value Type: DOUBLEARRAY\nmean|False|N/A|string|Specify an array that is the mean of the input bands. The number of elements in the array must match the number of bands. -- Value Type: DOUBLEARRAY\noutput_raster_uri_filename|False|N/A|string|Specify a string with the fully-qualified path and filename for OUTPUT_RASTER. -- Value Type: STRING\n\n\n### Outputs\n\nThe following table lists all ENVI_SpectralAdaptiveCoherenceEstimator outputs.\nMandatory (optional) settings are listed as Required = True (Required = False).\n\n  Name  |  Required  |  Default  |  Valid Values  |  Description\n--------|:----------:|-----------|----------------|---------------\ntask_meta_data|False|N/A|directory|GBDX Option. Output location for task meta data such as execution log and output JSON\noutput_raster_uri|True|N/A|directory|Output for OUTPUT_RASTER. -- Value Type: ENVIURI\n\n\n**Output structure**\n\nThe output_raster image file will be written to the specified S3 Customer Account Location in GeoTiff (*.tif) format, with an ENVI header file (*.hdr)  \n\n\n### Background\nFor additional background information on this task please refer to the [Harris Geospatial ENVI documentation](http://www.harrisgeospatial.com/docs/home.html) and \n[ENVI® Spectral Adaptive Coherence Estimator](http://www.harrisgeospatial.com/docs/envispectraladaptivecoherenceestimatortask.html).\n\n### Contact\nIf you have any questions or issues with this task, please contact [gbdx-support:::at:::digitalglobe.com](mailto:gbdx-support@digitalglobe.com).","excerpt":"This task performs the Adaptive Coherence Estimator (ACE) spectral analysis.\n    \n**GBDX Registered Name:** ENVI_SpectralAdaptiveCoherenceEstimator\n\n**Provider:** Harris Geospatial Solutions","slug":"envi-spectral-adaptive-coherence-estimator","type":"basic","title":"ENVI® Spectral Adaptive Coherence Estimator"}

ENVI® Spectral Adaptive Coherence Estimator

This task performs the Adaptive Coherence Estimator (ACE) spectral analysis. **GBDX Registered Name:** ENVI_SpectralAdaptiveCoherenceEstimator **Provider:** Harris Geospatial Solutions

### Imagery Examples [block:image] { "images": [ { "image": [ "https://files.readme.io/3368c81-ENVI_ACE_Before_web.jpg", "ENVI_ACE_Before_web.jpg", 566, 400, "#342f2a" ], "caption": "Before: WorldView 3 image before Advanced Image Preprocessing (AOP) correction" } ] } [/block] [block:image] { "images": [ { "image": [ "https://files.readme.io/d48e40a-ENVI_ACE_After_web.jpg", "ENVI_ACE_After_web.jpg", 566, 400, "#2d1037" ], "caption": "After: WorldView 3 image after running Spectral Adaptive Coherence Estimator. Lighter areas signify a closer match to the reference spectrum." } ] } [/block] ### Quickstart This is a workflow example for basic processing. [block:code] { "codes": [ { "code": "# Initialize the environment.\nfrom gbdxtools import Interface\ngbdx=Interface()\n\ntasks = []\ncat_id = '104001002D1B2100'\naop_output_location = 'ENVI/ACE/aop/'\ntask_output_location = 'ENVI/ACE/task/'\n\n# Auto ordering task parameters\norder = gbdx.Task(\"Auto_Ordering\")\norder.inputs.cat_id = cat_id\norder.impersonation_allowed = True\norder.persist = True\norder.timeout = 36000\norder_data_loc = order.outputs.s3_location.value\ntasks.append(order)\n\n# AOP task parameters\naop_task = gbdx.Task(\"AOP_Strip_Processor\")\naop_task.inputs.data = order_data_loc\naop_task.inputs.enable_acomp = True\naop_task.inputs.enable_dra = False\naop_task.inputs.enable_pansharpen = False\naop_task.inputs.bands = 'MS'\naop_task_output = aop_task.outputs.data.value\ntasks.append(aop_task)\n\n# Read to input raster metadata\nenvi_metadata_wavelength = gbdx.Task(\"ENVI_RasterMetadataItem\")\nenvi_metadata_wavelength.inputs.input_raster = aop_task_output\nenvi_metadata_wavelength.inputs.input_raster_band_grouping = 'multispectral'\nenvi_metadata_wavelength.inputs.key = \"wavelength\"\ntasks.append(envi_metadata_wavelength)\n\nenvi_metadata_wavelength_units = gbdx.Task(\"ENVI_RasterMetadataItem\")\nenvi_metadata_wavelength_units.inputs.input_raster = aop_task_output\nenvi_metadata_wavelength_units.inputs.input_raster_band_grouping = 'multispectral'\nenvi_metadata_wavelength_units.inputs.key = \"wavelength units\"\ntasks.append(envi_metadata_wavelength_units)\n\n# Get a spectrum from a library\nenvi_speclib = gbdx.Task(\"ENVI_GetSpectrumFromLibrary\")\nenvi_speclib.inputs.input_spectral_library_filename = 'manmade_jhu_becknic_561.sli'\nenvi_speclib.inputs.spectrum_name = 'Construction Concrete [concrete-construction-solid-0598uuu]'\ntasks.append(envi_speclib)\n\n# Resample spectral library specturm to input raster spectrum\nenvi_resample = gbdx.Task(\"ENVI_ResampleSpectrum\")\nenvi_resample.inputs.input_spectrum = envi_speclib.outputs.spectrum.value\nenvi_resample.inputs.input_wavelengths = envi_speclib.outputs.wavelengths.value\nenvi_resample.inputs.input_wavelength_units = envi_speclib.outputs.wavelength_units.value\nenvi_resample.inputs.resample_wavelengths = envi_metadata_wavelength.outputs.value.value\nenvi_resample.inputs.resample_wavelength_units = envi_metadata_wavelength_units.outputs.value.value\ntasks.append(envi_resample)\n\n# ACE Target Detection\nenvi_ACE = gbdx.Task(\"ENVI_SpectralAdaptiveCoherenceEstimator\")\nenvi_ACE.inputs.input_raster = aop_task_output\nenvi_ACE.inputs.input_raster_band_grouping = 'multispectral'\nenvi_ACE.inputs.spectra = envi_resample.outputs.output_spectrum\ntasks.append(envi_ACE)\n\n# Setup workflow to save data\nworkflow = gbdx.Workflow(tasks)\nworkflow.savedata(aop_task.outputs.data, location=aop_output_location)\nworkflow.savedata(envi_ACE.outputs.output_raster_uri, location=task_output_location)\n\n# Execute Workflow\nworkflow.execute()", "language": "python" } ] } [/block] ### Inputs The following table lists all ENVI_SpectralAdaptiveCoherenceEstimator inputs. Mandatory (optional) settings are listed as Required = True (Required = False). Name | Required | Default | Valid Values | Description --------|:----------:|-----------|----------------|--------------- file_types|False|N/A|string|GBDX Option. Comma seperated list of permitted file type extensions. Use this to filter input files -- Value Type: STRING[*] input_raster|True|N/A|directory|Specify a raster on which to perform the Adaptive Coherence Estimator. -- Value Type: ENVIRASTER input_raster_format|False|N/A|string|Provide the format of the image, for example: landsat-8. -- Value Type: STRING input_raster_band_grouping|False|N/A|string|Provide the name of the band grouping to be used in the task, ie - panchromatic. -- Value Type: STRING input_raster_filename|False|N/A|string|Provide the explicit relative raster filename that ENVI will open. This overrides any file lookup in the task runner. -- Value Type: STRING spectra|True|N/A|string|Specify the target spectra. It is a floating-point array. The array size is [number of bands,number of target spectra]. -- Value Type: DOUBLEARRAY covariance|False|N/A|string|Specify an array that is the covariance matrix of the input bands. The array size must be [number of bands,number of bands] -- Value Type: DOUBLEARRAY mean|False|N/A|string|Specify an array that is the mean of the input bands. The number of elements in the array must match the number of bands. -- Value Type: DOUBLEARRAY output_raster_uri_filename|False|N/A|string|Specify a string with the fully-qualified path and filename for OUTPUT_RASTER. -- Value Type: STRING ### Outputs The following table lists all ENVI_SpectralAdaptiveCoherenceEstimator outputs. Mandatory (optional) settings are listed as Required = True (Required = False). Name | Required | Default | Valid Values | Description --------|:----------:|-----------|----------------|--------------- task_meta_data|False|N/A|directory|GBDX Option. Output location for task meta data such as execution log and output JSON output_raster_uri|True|N/A|directory|Output for OUTPUT_RASTER. -- Value Type: ENVIURI **Output structure** The output_raster image file will be written to the specified S3 Customer Account Location in GeoTiff (*.tif) format, with an ENVI header file (*.hdr) ### Background For additional background information on this task please refer to the [Harris Geospatial ENVI documentation](http://www.harrisgeospatial.com/docs/home.html) and [ENVI® Spectral Adaptive Coherence Estimator](http://www.harrisgeospatial.com/docs/envispectraladaptivecoherenceestimatortask.html). ### Contact If you have any questions or issues with this task, please contact [gbdx-support@digitalglobe.com](mailto:gbdx-support@digitalglobe.com).