Problem with ut_inv_calendar

From: Dave Allured (dave.allured AT XXXXXX)
Date: Tue Dec 02 2003 - 23:48:54 MST


ut_inv_calendar seems to work part of the time, then fail in the
following stand-alone code. I'm using NCL Version 4.2.0.a030 on a unix
platform.

do year = 1981, 1985
   t_units = "hours since 1800-1-1 0:0:0"
   t1 = ut_inv_calendar (year, 11, 15, 0, 0, 0, t_units, 0)
   print (year + " t1 = " + doubletointeger (t1))
end do

This outputs:

(0) 1981 t1 = 1594248
(0) 1982 t1 = 1603008
Segmentation fault

With the print statement commented out, I get something different:

fatal:ut_inv_calendar: Invalid specification string

Any ideas??

--Dave

_______________________________________________
ncl-talk mailing list
ncl-talk@ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk



This archive was generated by hypermail 2b29 : Wed Dec 03 2003 - 09:32:36 MST