Re: ut_inv_calendar is undefined

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Sun Feb 21 2010 - 15:13:35 MST

On Feb 21, 2010, at 1:54 PM, Nicole Schiffer wrote:

> Why does NCL say (ut_inv_calendar) is undefined, can't continue?
>
> timeSince = ut_inv_calendar(floattoint(year(i)), floattoint(mon(i)),
> floattoint(day(i)), floattoint(hour(i)), 0, 0, "days since
> 1970-01-01 00:00:00", 0)
>
> Year(i) etc. refer to float arrays with i being the index variable
> in a loop. I'm running NCL v5.1.0 according to the script output,
> but ncl -V says 5.1.1. Thanks.
>

Hi Nicole,

It's possible that you have an NCL binary that was built without
support for Udunits, and hence the ut_calendar and ut_inv_calendar
functions won't be available.

I believe that every V5.1.1 binary that we provide on the ESG has
Udunits support built-in. Are you running a version of NCL that was
built by one of your system administrators? If so, then he/she might
have not included Udunits support.

--Mary

> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> * Nicole Schiffer
> * Graduate Research Assistant
> * Department of Atmospheric Sciences
> * University of Illinois, Urbana-Champaign
> * Email: nschiff2 [at] illinois [dot] edu
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> _______________________________________________
> 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 Feb 21 15:13:43 2010

This archive was generated by hypermail 2.1.8 : Tue Feb 23 2010 - 08:26:41 MST