problem with pres-hgt plot

From: marziyeh dadizadeh <marzi_d65_at_nyahnyahspammersnyahnyah>
Date: Mon, 17 Aug 2009 01:58:05 -0700 (PDT)

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.


here is my code:
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"   

  a = addfile("/home/user/output/","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.

ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
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