Subject: Marine Geospatial Ecology Tools (MGET) help
Text archives
- From: "(pg) Joanna L Harris" <>
- To: "" <>
- Subject: [mget-help] Error while trying to use Interpolate No Data Cells in MGET
- Date: Sun, 24 Feb 2019 18:47:24 +0000
- Accept-language: en-US
- Authentication-results: mail-gw.oit.duke.edu; spf=pass ; dmarc=pass header.from=postgrad.plymouth.ac.uk
Hi,
Firstly, MGET is amazing. I am engaged in a research project modelling habitat use by manta rays in a very remote location and this toolbox has greatly reduced the data collection and processing time. Thank you!
I do have a small issue with 'Interpolate No Data Cells'. I am trying to fill in missing Chl-a data from 8-day 4km MODIS composites but I have run into an error (see below) when trying to execute. I am not experienced with Python, so I am having trouble overcoming the problem. I found some correspondence available online (e.g. https://lists.nicholas.duke.edu/sympa/arc/mget-help/2015-12/msg00002.html), and I have tried the fix suggested, but it does not seem to work. I would be very grateful if you could give me some advice.
Best wishes,
Joanna Harris
Executing: InterpolatorInpaintArcGISRaster extractcla "C:\Users\Joanna Harris\Desktop\Chagos Map\Chagos Tags\Processing data\MLR\chl8intra" Del2a # false # #
Start Time: Sun Feb 24 10:34:52 2019
Running script InterpolatorInpaintArcGISRaster...
RuntimeError: Unexpected error thrown
python.exe: RuntimeError: Unexpected error thrown
RuntimeError: python.exe returned exit code 1, indicating failure.
The following consequences resulted from the original error:
Execution of C:\Python27\ArcGIS10.6\python.exe failed.
Failed script InterpolatorInpaintArcGISRaster...
Traceback (most recent call last):
File "C:\Program Files\GeoEco\ArcGISToolbox\Scripts\InterpolatorInpaintArcGISRaster.py", line 5, in <module>
ExecuteMethodFromCommandLineAsArcGISTool('GeoEco.SpatialAnalysis.Interpolation', 'Interpolator', 'InpaintArcGISRaster')
File "C:\Python27\ArcGIS10.6\lib\site-packages\GeoEco\ArcGISScripts.py", line 210, in ExecuteMethodFromCommandLineAsArcGISTool
exec sourceCode in globals(), locals()
File "<string>", line 1, in <module>
File "C:\Python27\ArcGIS10.6\lib\site-packages\GeoEco\SpatialAnalysis\Interpolation.py", line 726, in InpaintArcGISRaster
ArcGISWorkspace(os.path.dirname(outputRaster), ArcGISRaster, pathCreationExpressions=[os.path.basename(outputRaster)]).ImportDatasets([InpaintedGrid(ArcGISRasterBand.ConstructFromArcGISPath(inputRaster), method, maxHoleSize, xEdgesWrap, minValue, maxValue)], {False: u'Add', True: u'Replace'}[overwriteExisting], reportProgress=False)
File "C:\Python27\ArcGIS10.6\lib\site-packages\GeoEco\Datasets\__init__.py", line 820, in ImportDatasets
self._ImportDatasets(datasets, mode.lower(), reportProgress, options)
File "C:\Python27\ArcGIS10.6\lib\site-packages\GeoEco\Datasets\Collections.py", line 695, in _ImportDatasets
self._ImportDatasetsToPath(pathComponentsForPath[path], datasetsForPath[path], mode, progressReporter, options)
File "C:\Python27\ArcGIS10.6\lib\site-packages\GeoEco\Datasets\ArcGIS.py", line 609, in _ImportDatasetsToPath
self.DatasetType._ImportDatasetsToPath(os.path.join(self.Path, *pathComponents), sourceDatasets, mode, progressReporter, options)
File "C:\Python27\ArcGIS10.6\lib\site-packages\GeoEco\Datasets\ArcGIS.py", line 1148, in _ImportDatasetsToPath
GDALDataset._ImportDatasetsToPath(tempRaster, sourceDatasets, mode, None, {'useArcGISSpatialReference': True, 'useUnscaledData': useUnscaledData, 'calculateStatistics': False, 'blockSize': blockSize})
File "C:\Python27\ArcGIS10.6\lib\site-packages\GeoEco\Datasets\GDAL.py", line 1073, in _ImportDatasetsToPath
data = "sourceDatasets[i].Data[rowsCopied:rowsCopied+rowsToCopy," :]
File "C:\Python27\ArcGIS10.6\lib\site-packages\GeoEco\Datasets\__init__.py", line 3671, in __getitem__
return getattr(self._Grid(), self._GetMethod)(key)
File "C:\Python27\ArcGIS10.6\lib\site-packages\GeoEco\Datasets\__init__.py", line 3311, in _GetUnscaledDataAsArray
data, actualNoDataValue = self._ReadNumpyArray(reorderedSliceList)
File "C:\Python27\ArcGIS10.6\lib\site-packages\GeoEco\Datasets\Virtual.py", line 3614, in _ReadNumpyArray
maxRunTime=None)
File "C:\Python27\ArcGIS10.6\lib\site-packages\GeoEco\DataManagement\Processes.py", line 575, in ExecuteProgram
process.Execute()
File "C:\Python27\ArcGIS10.6\lib\site-packages\GeoEco\DataManagement\Processes.py", line 498, in Execute
Logger.RaiseException(RuntimeError(_(u'%(name)s returned exit code %(code)i, indicating failure.') % {u'name' : programName, u'code' : self.ExitCode}))
File "C:\Python27\ArcGIS10.6\lib\site-packages\GeoEco\Logging.py", line 104, in RaiseException
raise exception
RuntimeError: python.exe returned exit code 1, indicating failure.
Failed to execute (InterpolatorInpaintArcGISRaster).
Failed at Sun Feb 24 10:35:03 2019 (Elapsed Time: 10.39 seconds)
This email and any files with it are confidential and intended solely for the use of the recipient to whom it is addressed. If you are not the intended recipient then copying, distribution or other use of the information contained is strictly prohibited and you should not rely on it. If you have received this email in error please let the sender know immediately and delete it from your system(s). Internet emails are not necessarily secure. While we take every care, University of Plymouth accepts no responsibility for viruses and it is your responsibility to scan emails and their attachments. University of Plymouth does not accept responsibility for any changes made after it was sent. Nothing in this email or its attachments constitutes an order for goods or services unless accompanied by an official order form.
- [mget-help] Error while trying to use Interpolate No Data Cells in MGET, (pg) Joanna L Harris, 02/24/2019
- RE: [mget-help] Error while trying to use Interpolate No Data Cells in MGET, Jason Roberts, 02/26/2019
Archive powered by MHonArc 2.6.19.