[gradsusr] Displaying a .nc file

James T. Potemra jimp at hawaii.edu
Wed Jun 18 23:17:30 EDT 2014


Hi David,

You have to display a variable, so instead of
ga-> d atmos_month.nc.0000
try a variable name, e.g.,
ga-> d u

Jim
On 6/18/14 4:56 PM, David Stanfel wrote:
> 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/41e8e658/attachment.html 


More information about the gradsusr mailing list