Subject: Marine Geospatial Ecology Tools (MGET) help
Text archives
From: | "Jason Roberts" <> |
---|---|
To: | "'Angela Strecker'" <> |
Cc: | <> |
Subject: | RE: [mget-help] problems with HDF script |
Date: | Thu, 30 Apr 2009 11:35:20 -0400 |
Hi Angela,
This is something that should be obvious but it is not: ArcGIS rasters, when
stored in "ArcInfo Binary Grid" format (the default), have some limitations
on how they may be named, including:
1. They must begin with a letter
2. They must be no longer than 13 characters
3. They can only include letters, numbers, and the underscore
Try changing the output raster name to begin with a letter and see if it
works.
The MGET tool is relying on ArcGIS to generate a sensible error message when
you try an invalid name. Unfortunately ArcGIS just says "RUntimeError: Error
in executing function". We have a work item open for MGET to check these
rules and report a sensible error message. I will see if we can raise the
priority of that, as you are the third person to hit this problem in the
last six months.
Please let me know if this does or does not help.
Best regards,
Jason
-----Original Message-----
From: Angela Strecker
[mailto:]
Sent: Thursday, April 30, 2009 11:17 AM
To:
Subject: [mget-help] problems with HDF script
Hi there,
I'm looking for help with the script that converts an HDF SDS to ArcGIS
raster. I have followed along with the wiki help, as I am working with
both the Pathfinder and Modis satellite data, so I think that I have the
inputs correct. I read through the installation guide for the GeoEco
Python program, installed the proper version of pywin32, and have tried
running the script with both Python 2.4.1 and 2.4.4. I have also tried
it with ArcGIS 9.2 and 9.3. The same error message comes up every time
(below is an example from the NOAA Pathfinder satellite). Admittedly,
my knowledge of ArcGIS is fairly basic and my knowledge of Python is
non-existent, so I might be missing something fairly obvious. Any help
with this would be greatly appreciated.
Thanks,
Angela
Executing (HDFSDSToArcGISRaster_1): HDFSDSToArcGISRaster
C:\Angela\Post_doc\temp_ice_data\NOAA_SST\200434.s04w2pfv50-sst.hdf
C:\Angela\Post_doc\temp_ice_data\NOAA_SST\200434 sst -180 -90
0.0439453125 0 false false false false # # # # # # # # false
Start Time: Wed Apr 29 17:07:42 2009
Running script HDFSDSToArcGISRaster...
Converting SDS "sst" in HDF file
C:\Angela\Post_doc\temp_ice_data\NOAA_SST\200434.s04w2pfv50-sst.hdf to
ArcGIS raster C:\Angela\Post_doc\temp_ice_data\NOAA_SST\200434...
Error in executing function
Failed to execute (CopyRaster).
ArcGISError: An ArcGIS geoprocessing function failed. This usually
results from a problem with your inputs. Please check them and try
again. Also review any preceding error messages and the detailed error
information that appears at the end of this message. If you suspect the
failure is due to a programming mistake in this tool or ArcGIS, please
contact the author of this tool for assistance. Detailed error
information: ArcGIS Geoprocessor object 0x00A4E1B0: Invocation of
CopyRaster_Management(*args=('C:\\Temp\\GeoEcoTemp_Angela
Strecker\\tmppwayvx\\output',
'C:\\Angela\\Post_doc\\temp_ice_data\\NOAA_SST\\200434')) raised
RuntimeError:
Error in executing function
Failed to execute (CopyRaster).
The following consequences resulted from the original error:
Could not copy ArcGIS raster C:\Temp\GeoEcoTemp_Angela
Strecker\tmppwayvx\output to
C:\Angela\Post_doc\temp_ice_data\NOAA_SST\200434
Could not convert SDS "sst" in HDF file
C:\Angela\Post_doc\temp_ice_data\NOAA_SST\200434.s04w2pfv50-sst.hdf to
ArcGIS raster C:\Angela\Post_doc\temp_ice_data\NOAA_SST\200434
Error in script HDFSDSToArcGISRaster.
Error in executing: cmd.exe /C
C:\PROGRA~1\GeoEco\ARCGIS~1\Scripts\HDFSDS~1.PY
"C:\Angela\Post_doc\temp_ice_data\NOAA_SST\200434.s04w2pfv50-sst.hdf"
"C:\Angela\Post_doc\temp_ice_data\NOAA_SST\200434" "sst" "-180" "-90"
"0.0439453125" "0" "false" "false" "false" "false" "#" "#" "#" "#" "#"
"#" "#" "#" "false"
Failed to execute (HDFSDSToArcGISRaster_1).
This is something that should be obvious but it is not: ArcGIS rasters, when
stored in "ArcInfo Binary Grid" format (the default), have some limitations
on how they may be named, including:
1. They must begin with a letter
2. They must be no longer than 13 characters
3. They can only include letters, numbers, and the underscore
Try changing the output raster name to begin with a letter and see if it
works.
The MGET tool is relying on ArcGIS to generate a sensible error message when
you try an invalid name. Unfortunately ArcGIS just says "RUntimeError: Error
in executing function". We have a work item open for MGET to check these
rules and report a sensible error message. I will see if we can raise the
priority of that, as you are the third person to hit this problem in the
last six months.
Please let me know if this does or does not help.
Best regards,
Jason
-----Original Message-----
From: Angela Strecker
[mailto:]
Sent: Thursday, April 30, 2009 11:17 AM
To:
Subject: [mget-help] problems with HDF script
Hi there,
I'm looking for help with the script that converts an HDF SDS to ArcGIS
raster. I have followed along with the wiki help, as I am working with
both the Pathfinder and Modis satellite data, so I think that I have the
inputs correct. I read through the installation guide for the GeoEco
Python program, installed the proper version of pywin32, and have tried
running the script with both Python 2.4.1 and 2.4.4. I have also tried
it with ArcGIS 9.2 and 9.3. The same error message comes up every time
(below is an example from the NOAA Pathfinder satellite). Admittedly,
my knowledge of ArcGIS is fairly basic and my knowledge of Python is
non-existent, so I might be missing something fairly obvious. Any help
with this would be greatly appreciated.
Thanks,
Angela
Executing (HDFSDSToArcGISRaster_1): HDFSDSToArcGISRaster
C:\Angela\Post_doc\temp_ice_data\NOAA_SST\200434.s04w2pfv50-sst.hdf
C:\Angela\Post_doc\temp_ice_data\NOAA_SST\200434 sst -180 -90
0.0439453125 0 false false false false # # # # # # # # false
Start Time: Wed Apr 29 17:07:42 2009
Running script HDFSDSToArcGISRaster...
Converting SDS "sst" in HDF file
C:\Angela\Post_doc\temp_ice_data\NOAA_SST\200434.s04w2pfv50-sst.hdf to
ArcGIS raster C:\Angela\Post_doc\temp_ice_data\NOAA_SST\200434...
Error in executing function
Failed to execute (CopyRaster).
ArcGISError: An ArcGIS geoprocessing function failed. This usually
results from a problem with your inputs. Please check them and try
again. Also review any preceding error messages and the detailed error
information that appears at the end of this message. If you suspect the
failure is due to a programming mistake in this tool or ArcGIS, please
contact the author of this tool for assistance. Detailed error
information: ArcGIS Geoprocessor object 0x00A4E1B0: Invocation of
CopyRaster_Management(*args=('C:\\Temp\\GeoEcoTemp_Angela
Strecker\\tmppwayvx\\output',
'C:\\Angela\\Post_doc\\temp_ice_data\\NOAA_SST\\200434')) raised
RuntimeError:
Error in executing function
Failed to execute (CopyRaster).
The following consequences resulted from the original error:
Could not copy ArcGIS raster C:\Temp\GeoEcoTemp_Angela
Strecker\tmppwayvx\output to
C:\Angela\Post_doc\temp_ice_data\NOAA_SST\200434
Could not convert SDS "sst" in HDF file
C:\Angela\Post_doc\temp_ice_data\NOAA_SST\200434.s04w2pfv50-sst.hdf to
ArcGIS raster C:\Angela\Post_doc\temp_ice_data\NOAA_SST\200434
Error in script HDFSDSToArcGISRaster.
Error in executing: cmd.exe /C
C:\PROGRA~1\GeoEco\ARCGIS~1\Scripts\HDFSDS~1.PY
"C:\Angela\Post_doc\temp_ice_data\NOAA_SST\200434.s04w2pfv50-sst.hdf"
"C:\Angela\Post_doc\temp_ice_data\NOAA_SST\200434" "sst" "-180" "-90"
"0.0439453125" "0" "false" "false" "false" "false" "#" "#" "#" "#" "#"
"#" "#" "#" "false"
Failed to execute (HDFSDSToArcGISRaster_1).
Archives powered by MHonArc.