Re: Does ncl give the right time span for this netcdf file?

From: Dave Allured <dave.allured_at_nyahnyahspammersnyahnyah>
Date: Wed, 29 Jul 2009 13:25:23 -0600

Lin,

More info is needed. Please show the full results of
printVarSummary(time) after the statement that reads "time" from the
Netcdf file.

However, the initial symptoms strongly suggest that that version of
ncBrowse does not correctly handle the "noleap" calendar, and the
NCL calendar function is doing it correctly.

Dave Allured
CU/CIRES Climate Diagnostics Center (CDC)
http://cires.colorado.edu/science/centers/cdc/
NOAA/ESRL/PSD, Climate Analysis Branch (CAB)
http://www.cdc.noaa.gov/psd1/

leo.aries.g wrote:
> Hi, all
>
> I met a problem when dealing a netcdf file with NCL 5.1.1. The
> netcdf file is
>
> "psl_A1_2001_2100.nc", downloaded from
>
> "ftp-esg.ucllnl.org /data16/sresa1b/atm/mo/psl/csiro_mk3_5/run1/".
>
> The time span from 2000-09-16 to 2100-07-23 when I browse this nc file
> with ncBrowse ,(www.epic.noaa.gov/java/*ncBrowse*/
> <http://www.epic.noaa.gov/java/ncBrowse/>)
>
> while it span from 200201 to 210112 when I use the following scripts of NCL.
>
> data_path = "..."
> sub_data_path = " ..."
> datafilename = "psl_A1_2001_2100.nc"
> fi = addfile(data_path + sub_data_path + data_filename, "r")
> time = fi->time
> yyyymm = ut_calendar(time,-1)
> print(yyyymm)
> print(yyyymm(0)) ; yyyymm(0) is 200201
>
> By the way, I just update the ncl to version 5.1.1, and ncl 5.0.0 can
> not deal with
>
> the "noleap" calendar type of this files.
>
>
>
> Thanks!
>
>
>
> Lin
>
> 2009-07-30
> ------------------------------------------------------------------------
> leo.aries.g
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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 Wed Jul 29 2009 - 13:25:23 MDT

This archive was generated by hypermail 2.2.0 : Fri Jul 31 2009 - 14:51:03 MDT