Re: problem with pres-hgt plot

From: Debasish PaiMazumder <debasish_at_nyahnyahspammersnyahnyah>
Date: Mon, 17 Aug 2009 10:18:04 -0400

Dear Marziye,

The error occurs in line where you read pp (p=a->pp(0,:,{23},:)). You
are trying to read the variable pp @time=0 and @latitude(i_cross)=23
but in your file MMOUT_DOMAIN3.nc, I guess that there is no defined
latitude(i_cross) coordinate variable which is associated with pp
(i_cross=23). Please check you input netcdf file for defined i_cross.
If you have defined i_cross, then please check for i_cross=23.

Good luck

Debasish

On 09-08-17, at 04:58, marziyeh dadizadeh wrote:

> 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

Debasish PaiMazumder, PhD
Hydrology & Climate Science
Postdoctoral Researcher at UQÀM/Ouranos
550, Sherbrooke west, 19th floor, west tower,
Montréal, QC, Canada H3A 1B9
Tel: (514) 282-6464-343
      (514) 937-0042 (R)
email: debasish_at_sca.uqam.ca

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Aug 17 2009 - 08:18:04 MDT

This archive was generated by hypermail 2.2.0 : Mon Aug 17 2009 - 14:39:26 MDT