Assistance sought,
Being new to ncl, I am still learning to use the documentation. I have a data
file in NetCdf format. I tried to make a contour plot using native_2.ncl. I have
defined as in the code snippet below my variable p and lon ,lat. I get the error
"either file (f1) isn't defined or the variable (lat) is not a variable in the
file".
What is the correct way to do it?
Assistance will be appreciated.
Zilore
;*****************************************************
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
;*****************************************************
begin
f1 = addfile("pmer.nc","r")
p=f1->p
lat = p->lat
lon = p->lon
nlat = dimsizes(lat)
nlon = dimsizes(lon)
;**************************************
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Mar 18 07:53:00 2011
This archive was generated by hypermail 2.1.8 : Wed Mar 23 2011 - 16:15:59 MDT