[gradsusr] Need help interpreting an error message from H5Select_hyperslab

James E. Johnson James.Johnson at nasa.gov
Fri Sep 20 13:56:20 EDT 2013


On Friday 20 September 2013 11:53:23 am you wrote:
> I have a GrADS user (cc'd on this email) who is running into a problem that
>  I cannot reproduce. The user is able to display one variable in the file
>  without any issues, but subsequent displays of other variables in the file
>  result in an error. I am able to display all the variables in the file on
>  my local unix box. The error message from the library is coming after
>  GrADS calls H5Select_hyperslab:
> 
> HDF5-DIAG: Error detected in HDF5 (1.8.7) thread 0:
>  #000: H5Shyper.c line 6593 in H5Sselect_hyperslab(): not a data space
>    major: Invalid arguments to routine
>    minor: Inappropriate type

My environment, and GrADS commands

$ uname -a
Linux gs6102dsclx56.gsfc.nasa.gov 2.6.32-358.11.1.el6.x86_64 #1 SMP Wed Jun 12 
03:34:52 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
$ grads

Grid Analysis and Display System (GrADS) Version 2.0.2
Copyright (c) 1988-2011 by Brian Doty and the
Institute for Global Environment and Society (IGES)
GrADS comes with ABSOLUTELY NO WARRANTY
See file COPYRIGHT for more information

Config: v2.0.2 little-endian readline printim grib2 netcdf hdf4-sds hdf5 
opendap-grids,stn geotiff shapefile
Issue 'q config' command for more detailed configuration information
Landscape mode? ('n' for portrait):
GX Package Initialization: Size = 11 8.5
ga-> open omaeroe-he5
Scanning description file:  omaeroe-he5
Data file OMI-Aura_L3-OMAEROe_%y4m%m2%d2_v003.he5 is open as file 1
LON set to 0 360
LAT set to -90 89.75
LEV set to 342.5 342.5
Time values set: 2004:10:1:0 2004:10:1:0
E set to 1 1
ga-> set time 1jun2013
Time values set: 2013:6:1:0 2013:6:1:0
ga-> d aaod
Contouring: 0 to 2.2 interval 0.2
ga-> d uvai
HDF5-DIAG: Error detected in HDF5 (1.8.7) thread 0:
  #000: H5Shyper.c line 6593 in H5Sselect_hyperslab(): not a data space
    major: Invalid arguments to routine
    minor: Inappropriate type
HDF5 Error: unable to select dataspace hyperslab
Data Request Error:  Error for variable 'uvai'
  Error ocurred at column 1
DISPLAY error:  Invalid expression
  Expression = uvai
ga->

Sorry, it appears in a Control File where I've used templating, and set the 
time to pick up the file for 1jun2013. Then it complains. If I don't use the 
templating, as in the previous Control File where the file name is fixed, it 
actually does work for multiple variable display/reads. Here is the control 
file with templating (you'll have to rename the .he5 file however): 
$ ln -s OMI-Aura_L3-OMAEROe_2013m0601_v003-2013m0603t015851.he5 OMI-Aura_L3-
OMAEROe_2013m0601_v003.he5

Control File with templating
DSET OMI-Aura_L3-OMAEROe_%y4m%m2%d2_v003.he5           
DTYPE hdf5_grid                                        
TITLE OMI/Aura Multi-wavelength Aerosol Optical Depth and Single Scattering 
Albedo Daily L3 Global 0.25x0.25 deg Lat/Lon Grid                                   
UNDEF -32767 _FillValue
UNPACK ScaleFactor Offset
OPTIONS template
XDEF 1440 linear -180 0.25
YDEF 720 linear -90 0.25
ZDEF 5 levels 342.5 388.0 442.0 463.0 483.5
TDEF 5000 linear 1oct2004 1dy
VARS 15
/HDFEOS/GRIDS/ColumnAmountAerosol/Data~Fields/AbsorbingAerosolOpticalThicknessMW=>aaod  
5  z,y,x  Absorbing Aerosol Optical Thickness
/HDFEOS/GRIDS/ColumnAmountAerosol/Data~Fields/AerosolModelMW=>amod 0 y,x  
Aerosol Model
/HDFEOS/GRIDS/ColumnAmountAerosol/Data~Fields/AerosolOpticalThicknessMW=>aod  
5  z,y,x  Aerosol Optical Thickness
/HDFEOS/GRIDS/ColumnAmountAerosol/Data~Fields/AerosolOpticalThicknessPassedThresholdMean=>aodptm  
0  y,x  Aerosol Optical Thickness Passed Threshold Mean
/HDFEOS/GRIDS/ColumnAmountAerosol/Data~Fields/AerosolOpticalThicknessPassedThresholdStd=>aodpts  
0  y,x  Aerosol Optical Thickness Passed Threshold Standard Deviation
/HDFEOS/GRIDS/ColumnAmountAerosol/Data~Fields/Latitude=>lat  0  y,x  Latitude
/HDFEOS/GRIDS/ColumnAmountAerosol/Data~Fields/Longitude=>lon  0  y,x  
Longitude
/HDFEOS/GRIDS/ColumnAmountAerosol/Data~Fields/SingleScatteringAlbedoMW=>ssa  5  
z,y,x  Single Scattering Albedo
/HDFEOS/GRIDS/ColumnAmountAerosol/Data~Fields/SingleScatteringAlbedoPassedThresholdMean=>ssaptm  
0  y,x  Single Scattering Albedo Passed Threshold Mean
/HDFEOS/GRIDS/ColumnAmountAerosol/Data~Fields/SingleScatteringAlbedoPassedThresholdStd=>ssapts  
0  y,x  Single Scattering Albedo Passed Threshold Standard Deviation
/HDFEOS/GRIDS/ColumnAmountAerosol/Data~Fields/SolarZenithAngle=>sza  0  y,x  
Solar Zenith Angle
/HDFEOS/GRIDS/ColumnAmountAerosol/Data~Fields/TerrainReflectivity=>tref  0  
y,x  Terrain Reflectivity
/HDFEOS/GRIDS/ColumnAmountAerosol/Data~Fields/UVAerosolIndex=>uvai  0  y,x  UV 
Aerosol Index
/HDFEOS/GRIDS/ColumnAmountAerosol/Data~Fields/VISAerosolIndex=>visai  0  y,x  
VIS Aerosol Index
/HDFEOS/GRIDS/ColumnAmountAerosol/Data~Fields/ViewingZenithAngle=>vza  0  y,x 
Viewing Zenith Angle
ENDVARS

------------------------------------------------------------------------------
| James E. Johnson                   | address:                              |
| ADNET Systems, Inc.                |  NASA Goddard Space Flight Center     |
| e-mail: james.johnson at nasa.gov     |  Data and Information Services Center |
| phone:  301-614-5121               |  Code 610.2, Bldg 32, Room S130G      |
| fax:    301-614-5268               |  Greenbelt, MD  20771                 |
------------------------------------------------------------------------------


More information about the gradsusr mailing list