xdfopen

Don Hooper hoop at COLORADO.EDU
Mon Jan 17 21:39:52 EST 2005


Steve Ghan,

It's not clear to me why you got the error.  It means that the data
variable didn't have that among the names of the dimensions it uses.
The HDF-style ncdump output indicates otherwise, of course.  Ordinarily,
I'd suggest version 1.9's "dtype hdf" interface, but your data variable is of
type "byte".  I know that doesn't work for sdfopen/xdfopen.  I don't know if
it works in 1.9's "dtype hdf" interface, and it's very problematic in real
NetCDF.  I doubt it's more stable in HDF-SDS, but what do I know....  I went
over the byte type problem in a recent post, so I won't bore others with it
again.

I'm sorry I'm not more helpful with this one.

-Hoop
> From owner-gradsusr at LIST.CINECA.IT  Mon Jan 17 17:46:20 2005
> From: "Ghan, Steven J" <Steve.Ghan at PNL.GOV>
>
> I'm trying to open an hdf file using xdfopen.
> I'm following the instructions, but I'm getting the following result:
>
> gradshdf
> Grid Analysis and Display System (GrADS) Version 1.8SL11
> Copyright (c) 1988-2001 by Brian Doty
> Center for Ocean-Land-Atmosphere Studies
> Institute for Global Environment and Society
> All Rights Reserved
> Config: v1.8SL11 32-bit little-endian readline sdf/xdf hdf-sds lats
> printim
> Issue 'q config' command for more information.
> Landscape mode? (no for portrait):
> GX Package Initialization: Size = 11 8.5
> ga-> xdfopen A2002185.ddf
> Scanning Descriptor File:  A2002185.ddf
> SDF file has no discernable time coordinate.
> Alleged lon dimension (from YDEF) is not an SDF dimension.  Cannot
> continue.
> Lon dimension name is:
> YDim_MOD_CMG_Snow_5km
> Alleged lat dimension (from XDEF) is not an SDF dimension.  Cannot
> continue.
> Lat dimension name is:
> XDim_MOD_CMG_Snow_5km
> Data file MYD10C2.A2002185.004.2004026093314.hdf was not successfully
> opened & parsed.
>
> My ddf file has the following:
>
> DSET MYD10C2.A2002185.004.2004026093314.hdf
> TITLE July 3 2002
> options yrev
> UNDEF -2
> YDEF YDim_MOD_CMG_Snow_5km 3600 LINEAR -89.975 0.05
> XDEF XDim_MOD_CMG_Snow_5km 7200 LINEAR -179.975 0.05
> VARS 1
> Eight_Day_CMG_Snow_Cover=>snowcover 1 99 snow cover percent
> ENDVARS
>
> The result of hdf ncdump applied to the hdf file is
>
> netcdf MYD10C2.A2002185.004.2004026093314 {
> dimensions:
>         YDim_MOD_CMG_Snow_5km = 3600 ;
>         XDim_MOD_CMG_Snow_5km = 7200 ;
>
> variables:
>         byte Eight_Day_CMG_Snow_Cover(YDim_MOD_CMG_Snow_5km,
> XDim_MOD_CMG_Snow_5km) ;
>
> I am running linux redhat 7.3
>
> Any ideas what the problem might be, or what to try next?
>
> -Steve Ghan



More information about the gradsusr mailing list