Dear NCL users,
I used a very simple code to run "gsn_csm_pres_hgt" function. But got this error:
fatal: Dimention (i_cross) of file (MMOUT_DOMAIN3) does not have an associated coordinate variable
fatal: Execute: Error occurred at or near line 6 in file prs-high
Can any one tell me please how eliminate it? (I am new in NCL)
I work with NCL version 5.0.0 and mm5 output file.
thanks,
Marziye
here is my code:
;---------------------------------------------------------------------------
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
begin
a = addfile("/home/user/output/MMOUT_DOMAIN3.nc","r")
p = a->pp(0,:,{23},:) ;pp(time, sigma_level, i_cross, j_cross)
wks = gsn_open_wks("X11", "preshgt")
res = True
plot = gsn_csm_pres_hgt(wks,p,res) ; Call gsn_csm function for
; drawing a pressure/height plot.
end
;---------------------------------------------------------------------------------
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Aug 17 2009 - 02:58:05 MDT
This archive was generated by hypermail 2.2.0 : Mon Aug 17 2009 - 14:39:26 MDT