Limitation of variable name length in NetCDF file
Mai Nguyen
Chi.Nguyen at SCI.MONASH.EDU.AU
Fri Apr 2 00:06:27 EDT 2010
Hi Shailendra,
You can create a .ctl file describing dataset. Below is one example of
my .ctl describing netcdf files.
Note that the variable v is GRADS's name for your meridional_wind_speed.
DSET Ax2005082700_%f3_%n2
DTYPE netcdf
UNDEF 9.E36
OPTIONS TEMPLATE
XDEF 101 LINEAR 0 5.0
YDEF 1 LINEAR 1 1
ZDEF 20 LEVELS 1000.0 950.0 900.0 850.0 800.0 750.0 700.0
600.0 500.0 450.0 400.0 350.0 300.0 250.0 225.0 200.0
175.0 150.0 100.0 75.0
TDEF 10000 LINEAR 00z27AUG2005 5mn
VARS 1
meridional_wind_speed=>v 20 t,z,y,x v
ENDVARS
You can open this ctl by 'open' command.
Cheers, Mai
Shailendra Rai wrote:
> Hello All,
>
> Is there any limitation in the variable name length of NetCDF file in
> GrADS ?
>
> I have downloaded a NetCDF file which contains meridional wind speed
> (var name: meridional_wind_speed) and meridional wind stress (var name:
> meridional_wind_stress). When I opened the NetCDF file by 'sdfopen
> filename', the variable name for both the variables is meridional_wind
> (i guess it is due to limitation in var name length)so both the
> variable can not be distinguished.
>
> Kindly suggest how to proceed in this ?
>
> regards
>
> Shailendra.
> ----------
>
>
> *************************************************
> Dr. Shailendra Rai
> K. Banerjee Centre of Atmospheric and Ocean Studies
> Nehru Science Centre
> Faculty of Science
> University of Allahabad
> Allahabad, UP, INDIA-211002
> Phone: +91 (532)-2460974 (O); 09415649617 (M)
> Fax: +91 (532)-2460974
> *************************************************
> <http://sigads.rediff.com/RealMedia/ads/click_nx.ads/www.rediffmail.com/signatureline.htm@Middle?>
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Chi.Nguyen.vcf
Type: text/x-vcard
Size: 324 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20100402/13e4f762/attachment.vcf
More information about the gradsusr
mailing list