NCL has the same scoping rules as Pascal.
One aspect of these rules is that the order in which the
scripts are loaded is important. Please reverse your load
statements:
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
Erik Noble wrote:
> I used one of the contour examples on the web to try an display
> variables from FNL data. I
>
> I am getting an error:
> fatal:Undefined identifier: (gsn_csm_contour_map_ce) is undefined,
> can't continue
>
> Its not clear how i am arriving to this error in my code
>
> Could I have some help with this?
> -Erik
>
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
> load "$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl"
>
> begin
> ;Make a list of all files we are interested in
> DATADir = "/ptmp/noble/Metgrid-WRF_Store/MET_EM-STORAGE/SOP3_Month-Study_MET_EM_FILES/"
> ; pa
> th to
> FILES = systemfunc ("csh -c ' ls " + DATADir + "met_em* '") ;
> root of data file you want to pl
> ot
> numFILES = dimsizes(FILES)
>
> do ifil = 0, numFILES-1 ; BIG FILES LOOP ; NEW file loop
> a = addfile(FILES(ifil)+".nc","r")
>
> type = "x11"
>
> wks = gsn_open_wks(type,"Input_")
>
> ; Which times and how many time steps are in this data set?
> times = wrf_user_list_times(a) ; get times in the file
> ntimes = dimsizes(times) ; number of times in the file
>
> do it = 0,ntimes-1,8 ; TIME LOOP
> print("Working on time: " + times(it) )
>
> slp = a->PMSL
> ;tk = a->TT
> ; tk = a->SKINTEMP ;surface temperature
> ;u = a->UU
> ;v = a->VV
> plot = gsn_csm_contour_map_ce(wks,slp,false)
> end do
> end do
> end.
> _______________________________________________
> ncl-talk mailing list
> ncl-talk_at_ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Sep 07 2007 - 16:46:00 MDT
This archive was generated by hypermail 2.2.0 : Tue Sep 11 2007 - 10:34:39 MDT