Re: time variable in netcdf

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Sun Oct 03 2010 - 22:25:31 MDT

NCL subscripts are zero based (like C, C++, IDL,...)

Change

plot = gsn_csm_contour_map_ce(wks,T(1,:,:),res)

to

plot = gsn_csm_contour_map_ce(wks,T(0,:,:),res)

====
Please look at the manuals at:

http://www.ncl.ucar.edu/Document/Manuals/

===
Good luck

On 10/3/10 8:20 PM, jagan TNAU wrote:
> Dear NCL users,
>
> I am trying to use CRU monthly climatology file
> cru_ts_3_00.1901.2006.tmx.nc <http://cru_ts_3_00.1901.2006.tmx.nc>
> (1.32GB) to view data for Bangladesh and West Bengal of India. I
> slightly modified the cru_1.ncl and was able to get a plot. The data has
> 1272 time files and I don't know for which time period the plotting is
> done. To remove confusion I used NCO's ncks and extracted January 1971
> data for the required domain (ncks -H -d time,840 -d lat,20.75,27.75 -d
> lon,85.75,93.25 cru_ts_3_00.1901.2006.tmx.nc <http://tmx.nc>
> tmax-197101.nc) which is attached (tmax-197101.nc
> <http://tmax-197101.nc>). Then I used the same attached ncl script to
> plot the data but I got the following error. NCL version is 5.2.0 (MAC
> OS 10.6).
>
> fatal:Subscript out of range, error in subscript #0
> fatal:An error occurred reading T
> fatal:Execute: Error occurred at or near line 69 in file cru_jag.ncl
>
> I am only in the learning process and help me to sort out the issue.
>
> --
> With regards
>
> Dr.R.Jagannathan
> Professor of Agronomy,
> Department of Agronomy
> Tamil Nadu Agricultural University,
> Coimbatore - 641 003 India
>
> PHONE: Mob: +91 94438 89891
>
> DO NOT PRINT THIS E-MAIL UNLESS NECESSARY. THE ENVIRONMENT CONCERNS US ALL.
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Sun Oct 3 22:25:36 2010

This archive was generated by hypermail 2.1.8 : Mon Oct 04 2010 - 08:55:54 MDT