[gradsusr] Displaying a .nc file
David Stanfel
dstanfel at ualberta.ca
Wed Jun 18 23:52:10 EDT 2014
How do I know what variable name will work? I've tried u, v, w, and z and
still only get:
ga-> d v
Error: Variable v not in netcdf file
Data Request Error: Error for variable 'v'
Error ocurred at column 1
DISPLAY error: Invalid expression
Expression = v
Thanks,
David
On Wed, Jun 18, 2014 at 11:13 PM, Hosmay Lopez <hlopez at rsmas.miami.edu>
wrote:
> David,
>
> You should let GrADS know that the file is a netCDF. You do that by adding
> the following text line in your control file:
>
> DTYPE netcdf
>
> Insert such after the UNDEF line.
>
> Good luck!
>
> Hosmay Lopez
> UM/CIMAS/RSMAS NOAA/AOML/PHOD
> 4301 Rickenbacker Causeway,
> Miami, FL 33149, USA
> Phone: (305) 361-4329
>
> ------------------------------
> *From:* gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] on
> behalf of David Stanfel [dstanfel at ualberta.ca]
> *Sent:* Wednesday, June 18, 2014 10:58 PM
> *To:* GrADS Users Forum
> *Subject:* [gradsusr] Displaying a .nc file
>
> So I figured out how to use a descriptor file but I am still having
> troubles opening the file. My descriptor file is as follows:
>
> DSET ^atmos_month.nc.0000
> UNDEF 1.e-10
> TITLE 6 Months Sample Model Output
> *
> XDEF 96 LINEAR 0.0 3.75
> *
> YDEF 80 GAUSR30 1
> *
> ZDEF 18 LEVELS 1000 950 900 850 800 750 700 650 600 550 500 450 400 350
> 300
> 250 200 150
> *
> TDEF 804 LINEAR JAN0 1MO
> *
> VARS 7
> u 18 0 u
> v 18 0 v
> w 18 0 v
> t 18 0 v
> sh 18 0 v
> rh 18 0 v
> z 18 0 v
> ENDVARS
>
> It was able to open it without issue:
>
> ga-> open cont.ctl
>
> Scanning description file: cont.ctl
>
> Data file atmos_month.nc.0000 is open as file 1
>
> LON set to 0 360
>
> LAT set to -88.29 88.29
>
> LEV set to 1000 1000
>
> Time values set: 0:1:1:0 0:1:1:0
>
> E set to 1 1
>
>
> However, I am having trouble displaying the data. I tried to use the
> display command (d) with this result:
>
>
> ga-> d atmos_month.nc.0000
>
> Syntax error: Bad file number for variable atmos_month
>
> Error ocurred at column 1
>
> DISPLAY error: Invalid expression
>
> Expression = atmos_month.nc.0000
>
>
> Is my syntax off?
>
>
> Thanks,
>
>
> David
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20140618/7456042b/attachment-0001.html
More information about the gradsusr
mailing list