Subject: Marine Geospatial Ecology Tools (MGET) help
Text archives
From: | Jason Roberts <> |
---|---|
To: | "Patrick, Samantha" <> |
Cc: | "''" <> |
Subject: | [mget-help] RE: Problems with MODIS SST/Front analysis |
Date: | Mon, 20 Apr 2015 13:27:53 +0000 |
Accept-language: | en-US |
Authentication-results: | liverpool.ac.uk; dkim=none (message not signed) header.d=none; |
Hi Sam, Thanks for your interest in MGET. The short answer here is that, most of the time, this problem indicates an installation problem with Python. The long explanation is that the Canny fronts tool is implemented in MATLAB, but MATLAB and ArcGIS are incompatible in a certain way, due to how the developers
of those programs wrote them. To run the Canny tool, MGET has to create a child process to run the MATLAB code, rather than trying to load MATLAB code into the ArcGIS process (ArcMap or ArcCatalog). Your messages indicate MGET successfully created the child
process and started the Python script that invokes MATLAB. But the Python script failed to load one of the very first MGET modules. This should be impossible: for MGET to arrive at this point in its workflow, that module definitely exists and is loadable.
So how can it happen? Usually it means that the version of Python that was used to execute the child process is different than the one that was used to run the original tool from the parent process. So, usually, there are two versions of Python on the machine,
and MGET is installed to one of them but not the other. This can happen if you manually install Python yourself rather than relying than the Python that ArcGIS installs, or during certain circumstances when upgrading ArcGIS from one version to another (although
I think they have cleaned all of that up). Anyway, to get to the bottom of this, could you please: 1.
Save the attached file to your desktop. 2.
Double-click it. A black window will come up for a little while then go away. 3.
The script will create a text file called GetMoreInformation.txt on your desktop. Send that to me. The file is filled with information about how your computer is configured. I can usually figure this problem from that information. All the best, Jason From: Patrick, Samantha [mailto:]
Hi I am trying to use MGET to estimate front position. I am using Data Products/NASA JPL PO.DAAC/MODIS Global Level 3 Mapped SST/Find Canny fronts (also tried Cayula Cornillon fronts).
I get the error below and I can not find any solutions online. It appears to be a Python linked error. Does anyone know the cause of this? Many Thanks Sam Executing: MODISL3SSTTimeSeriesCannyEdgesAsArcGISRasters Terra Monthly 9km SST E:\Liverpool\Analysis\Arc\2010
Add %(Satellite)s;%(Wavelength)s_Canny_fronts;%(SpatialResolution)s;%(TemporalResolution)s;%%Y;%(Satellite)s_%(TemporalResolution)s_%%Y%%j_%(GeophysicalParameter)s_Canny_fronts.img # # 1.4 4 1 # # 01/01/2010 31/01/2010 600 # # false false false Start Time: Mon Apr 20 12:20:36 2015 Running script MODISL3SSTTimeSeriesCannyEdgesAsArcGISRasters... Querying time slices of Canny edges (high threshold=None, low threshold=None, sigma=1.4, min size=4) in MODIS
Terra L3 mapped monthly 9km thermal IR SST from NASA PO.DAAC, masked where quality level > 1, clipped to indices tMin = 119, tMax = 119. Query complete: 0:00:00 elapsed, 1 datasets found, 0:00:00.002000 per dataset. Importing 1 datasets into ArcGIS Folder E:\Liverpool\Analysis\Arc\2010 with mode "add". Checking for existing destination datasets. Finished checking: 0:00:00 elapsed, 1 datasets checked, 0:00:00 per dataset. 0 destination datasets already exist. Importing 1 datasets. python.exe: Traceback (most recent call last): python.exe: File "C:\Python27\lib\site-packages\GeoEco\Datasets\CannyEdgesInGrid.py", line 170, in <module> python.exe: main() python.exe: File "C:\Python27\lib\site-packages\GeoEco\Datasets\CannyEdgesInGrid.py", line 25, in main python.exe: from GeoEco.Internationalization import _ python.exe: ImportError: No module named GeoEco.Internationalization RuntimeError: python.exe returned exit code 1, indicating failure. The following consequences resulted from the original error: Execution of C:\Program Files (x86)\Python27\python.exe failed. Import stopped before all datasets were imported: 0:00:35 elapsed, 0 datasets imported, 0:00:00 per dataset,
1 datasets not imported. Failed script MODISL3SSTTimeSeriesCannyEdgesAsArcGISRasters... Traceback (most recent call last): File "C:\Program Files\GeoEco\ArcGISToolbox\Scripts\MODISL3SSTTimeSeriesCannyEdgesAsArcGISRasters.py", line
5, in <module> ExecuteMethodFromCommandLineAsArcGISTool('GeoEco.DataProducts.NASA.PODAAC', 'MODISL3SSTTimeSeries', 'CannyEdgesAsArcGISRasters') File "C:\Python27\lib\site-packages\GeoEco\ArcGISScripts.py", line 210, in ExecuteMethodFromCommandLineAsArcGISTool exec sourceCode in globals(), locals() File "<string>", line 1, in <module> File "C:\Python27\lib\site-packages\GeoEco\DataProducts\NASA\PODAAC.py", line 419, in CannyEdgesAsArcGISRasters workspace.ImportDatasets(GridSliceCollection(grid).QueryDatasets(), mode, calculateStatistics=calculateStatistics,
buildRAT=buildRAT, buildPyramids=buildPyramids) File "C:\Python27\lib\site-packages\GeoEco\Datasets\__init__.py", line 820, in ImportDatasets self._ImportDatasets(datasets, mode.lower(), reportProgress, options) File "C:\Python27\lib\site-packages\GeoEco\Datasets\Collections.py", line 694, in _ImportDatasets self._ImportDatasetsToPath(pathComponentsForPath[path], datasetsForPath[path], mode, progressReporter,
options) File "C:\Python27\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\lib\site-packages\GeoEco\Datasets\ArcGIS.py", line 1121, in _ImportDatasetsToPath GDALDataset._ImportDatasetsToPath(path, sourceDatasets, mode, None, {'useArcGISSpatialReference': True,
'useUnscaledData': useUnscaledData, 'calculateStatistics': False, 'blockSize': blockSize}) File "C:\Python27\lib\site-packages\GeoEco\Datasets\GDAL.py", line 1073, in _ImportDatasetsToPath data = "sourceDatasets[i].Data[rowsCopied:rowsCopied+rowsToCopy," :] File "C:\Python27\lib\site-packages\GeoEco\Datasets\__init__.py", line 3670, in __getitem__ return getattr(self._Grid(), self._GetMethod)(key) File "C:\Python27\lib\site-packages\GeoEco\Datasets\Virtual.py", line 562, in _GetUnscaledDataAsArray return self._Grid._GetUnscaledDataAsArray(self._AddSlicedDimsToKey(key)) File "C:\Python27\lib\site-packages\GeoEco\Datasets\__init__.py", line 3310, in _GetUnscaledDataAsArray data, actualNoDataValue = self._ReadNumpyArray(reorderedSliceList) File "C:\Python27\lib\site-packages\GeoEco\Datasets\Virtual.py", line 3594, in _ReadNumpyArray maxRunTime=None) File "C:\Python27\lib\site-packages\GeoEco\DataManagement\Processes.py", line 575, in ExecuteProgram process.Execute() File "C:\Python27\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\lib\site-packages\GeoEco\Logging.py", line 104, in RaiseException raise exception RuntimeError: python.exe returned exit code 1, indicating failure. Failed to execute (MODISL3SSTTimeSeriesCannyEdgesAsArcGISRasters). Failed at Mon Apr 20 12:21:15 2015 (Elapsed Time: 38.64 seconds) Samantha Patrick Lecturer in Marine Biology School of Environmental Sciences University of Liverpool Nicholson Building Brownlow Street Liverpool L69 3GP UK Tel: 0151 7954390 Skype: sammy_patrick Website:
http://samanthacpatrick.wix.com/home Twitter: SamCPatrick |
Attachment:
GetMoreInformation.py
Description: GetMoreInformation.py