Skip to Content.

mget-help - RE: [mget-help] Error in script HDFFindAndConvertToArcGISRasters to convert Path Finder SST quality flag

Please Wait...

Subject: Marine Geospatial Ecology Tools (MGET) help

Text archives


From: "Jason Roberts" <>
To: "'Rittick Borah'" <>
Cc: <>
Subject: RE: [mget-help] Error in script HDFFindAndConvertToArcGISRasters to convert Path Finder SST quality flag
Date: Mon, 17 Aug 2009 10:26:11 -0400

Hi Rittick,

 

Good to know you having some success. Fortunately this problem is an easy one to solve.

 

It looks like you have a non-HDF file in the Z:\adam\qual directory, called index(1).html. Perhaps when you were downloading data you saved this file in there. The tool is reporting that this file is not an HDF, so it cannot be converted.

 

To avoid this problem, you can either delete this file or configure the Wildcard _expression_ parameter of the tool to ignore it. To configure that parameter, open the tool, then open Search Options, then set Wildcard _expression_ to this:

 

*.hdf

 

This will limit the tool to processing files that end with the .hdf extension. (We wanted to set the parameter to that as the default, but unfortunately there are many data providers that provide HDF files without a .hdf extension. Thus, the default is the tool tries to process all of the files in the directory.)

 

Best regards,

 

Jason

 

From: Rittick Borah [mailto:]
Sent: Sunday, August 16, 2009 11:41 PM
To:
Subject: [mget-help] Error in script HDFFindAndConvertToArcGISRasters to convert Path Finder SST quality flag

 

Hi  Mget team ,

 

Thank you for developing a fantastic tool like Mget which is making life quite easier for batch processing.I am trying to use MGET for batch conversion of Path finder SST data to ARCGIS raster format. I have suucessfully done the SST data in batch mode.However, I am getting error to  convert the quality flag to arcgis raster format  .

 

 

Executing (HDFFindAndConvertToArcGISRasters_16): HDFFindAndConvertToArcGISRasters Z:\adam\qual Z:\adam\output qual -180 -90 0.0439453125 0 * false # # # # # # false false false false # # # # # # # # false os.path.join(outputWorkspace, os.path.dirname(inputFile[len(directoryToSearch)+1:]), os.path.basename(inputFile).split(u'.')[0][:13]) os.path false Z:\adam\output

Start Time: Mon Aug 17 13:36:43 2009

Running script HDFFindAndConvertToArcGISRasters...

Finding files and inserting rows into table "work": directory="Z:\adam\qual", wildcard="*", searchTree=False, minSize=None, maxSize=None, minDateCreated=None, maxDateCreated=None, minDateModified=None, maxDateModified=None

Finished inserting rows: 0:00:00 elapsed, 359 rows inserted, 0:00:00.000217 per row.

Updating field "outputRaster" in table "work"...

Update complete: 0:00:00 elapsed, 359 rows updated, 0 deleted, 0 unchanged, 0:00:00.000434 per row.

Querying the table "work" to build lists of inputs and outputs...

Query complete: 0:00:00 elapsed, 359 rows retrieved, 0:00:00.000261 per row.

Processing 359 inputs...

Converting SDS "qual" in HDF file Z:\adam\qual\index(1).html to ArcGIS raster Z:\adam\output\index(1)...

hdp.exe:

hdp.exe: HDP ERROR>>> in dsd: Z:\adam\qual\index(1).html is not an HDF file.

hdp.exe:

hdp.exe: HDP ERROR>>> in do_dumpsds: dsd failed.

RuntimeError: hdp.exe returned exit code 1, indicating failure.

The following consequences resulted from the original error:

Execution of C:\Python24\lib\site-packages\GeoEco\Bin\win32\hdp.exe failed.

Could not look up the data type of SDS "qual" in HDF file Z:\adam\qual\index(1).html

Could not convert SDS "qual" in HDF file Z:\adam\qual\index(1).html to ArcGIS raster Z:\adam\output\index(1)

Error in script HDFFindAndConvertToArcGISRasters.

Error in executing: cmd.exe /C C:\Python24\lib\SITE-P~1\GeoEco\ARCGIS~1\Scripts\HDFFIN~1.PY  "Z:\adam\qual" "Z:\adam\output" "qual" "-180" "-90" "0.0439453125" "0" "*" "false" "#" "#" "" "" "" "" "false" "false" "false" "false" "#" "#" "#" "#" "#" "#" "#" "#" "false" "os.path.join(outputWorkspace, os.path.dirname(inputFile[len(directoryToSearch)+1:]), os.path.basename(inputFile).split(u'.')[0][:13])" "os.path" "false" "Z:\adam\output"

 

Failed to execute (HDFFindAndConvertToArcGISRasters_16).

End Time: Mon Aug 17 13:37:18 2009 (Elapsed Time: 35.00 seconds)

 

 

Any help to solve the problem is highly appreciated.

 

Many thanks.

 

Rittick

 

 

Rittick Borah

*******************

Spatial Analyst

School of Earth & Environmental Sciences, Faculty of Science, University of Wollongong, Wollongong, NSW 2522 Australia

Ph: 02 42214265

Email:

 

 

 

Archives powered by MHonArc.
Top of Page