Need a ctl for HDF data file?

K. Boddu kb348 at CAM.AC.UK
Tue Aug 22 07:11:39 EDT 2006


A simlar problem I faced when I worked with NetCDF files, and I solved this
problem by setting a grid using CDO.

cdo setgrid,(a grid defination file ) ifile ofile

the grads will be able open the ofile once its grid defination is set.

regards,
Kishor

On Aug 22 2006, M.Mahakur wrote:

>GrADS Users:
>
> I am sending the request again which I had posted yesterday as I did not
> get any response.
>
>
>I tried to open the HDF data file using 'sdfopen', but it gives the error:
>
>Scanning self-describing file:  NPP_VGT1_19980401.HDF
>SDF file has no discernable X coordinate.
>
>I tried with xdfopen also. But failed!
>
>How should I open this file? Should I have create a ctl? I have never
>worked with HDF using GrADS!! I am attaching the 'metadata' as well as
>'xml' files.  If required, I can send all the file (it is 7.7 MB single
>zip file, but HDF is 22 MB ) privately by e-mail. I have to work with
>around two hundreds of such files.
>
>Thanking you.
>
>With Regards,
>
>M. Mahakur
>
>-----------------------------------------
>ga-> q config
>Config: v1.9b4 32-bit little-endian readline sdf/xdf hdf-sds netcdf lats
>athena printim
>
>Grid Analysis and Display System (GrADS) Version 1.9b4
>Copyright (c) 1988-2005 by Brian Doty and IGES
>Center for Ocean-Land-Atmosphere Studies (COLA)
>Institute for Global Environment and Society (IGES)
>This program is distributed WITHOUT ANY WARRANTY
>See file COPYRIGHT for more information.
>
>Built Mon May 23 13:31:07 EDT 2005 for i686-pc-linux-gnu
>
>This version of GrADS has been configured with the following options:
>
>     o This is a 32-bit LITTLE ENDIAN machine version.
>     o Command line editing (readline) ENABLED.
>     o CIRES/CDC (http://www.cdc.noaa.gov) SDF/XDF interface ENABLED.
>       Use sdfopen or xdfopen to read both NetCDF and HDF-SDS files.
>     o DTYPE netcdf and DTYPE hdfsds are ENABLED.
>     o OPeNDAP (a.k.a. DODS) gridded data interface DISABLED.
>     o OPeNDAP (a.k.a. DODS) station data interface DISABLED.
>     o PCMDI (http://www-pcmdi.llnl.gov) LATS interface ENABLED.
>       This version is configured to write GRIB and HDF-SDS files.
>     o DAO (http://dao.gsfc.nasa.gov) Athena Widget GUI ENABLED.
>     o NRL/DAO/PCMDI XA or ImageMagick Image Output DISABLED.
>     o printim command for direct png/gif output ENABLED.
>       (via the GD Library -- http://www.boutell.com/gd)
>
>For additional information please consult http://grads.iges.org/grads/
>------- End of Forwarded Message -------
>
>
>
>



More information about the gradsusr mailing list