I am sure that someone more knowledgeable than me will answer.
Please post the output from:
%> uname -a
%> gcc --version
---------------------------
Also,
Unidata is no longer supporting the internal codes that ut_calendar
and ut_inv_calendar are based on. We recommend that you use the
cd_calendar and cd_inv_calendar functions instead.
---------------------------
For the record, on my linux system
%> uname -a
Linux harmon.cgd.ucar.edu 2.6.18-238.12.1.el5.centos.plus #1 SMP Wed Jun
1 11:12:25 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
It works fine.
%> ncl
Copyright (C) 1995-2011 - All Rights Reserved
University Corporation for Atmospheric Research
NCAR Command Language Version 6.0.0
The use of this software is governed by a License Agreement.
See http://www.ncl.ucar.edu/ for more details.
ncl 0> refstr = "seconds since 2006-08-19 12:00:00"
ncl 1> print(ut_inv_calendar(2006,08,19,12,0,0,refstr,0))
Variable: unnamed (return)
Type: double
Total Size: 8 bytes
1 values
Number of Dimensions: 1
Dimensions and sizes: [1]
Coordinates:
Number Of Attributes: 2
calendar : standard
units : seconds since 2006-08-19 12:00:00
(0) 0
On 7/28/11 7:15 AM, Robert Schuster wrote:
> Dear NCL team,
>
> I have a problem with the ut_inv_calendar function. It works without any problems on Mac OS X, but it produces the following error on Linux:
>
> Copyright (C) 1995-2011 - All Rights Reserved
> University Corporation for Atmospheric Research
> NCAR Command Language Version 6.0.0
> The use of this software is governed by a License Agreement.
> See http://www.ncl.ucar.edu/ for more details.
> ncl 0> refstr = "seconds since 2006-08-19 12:00:00"
> ncl 1> print(ut_inv_calendar(2006,08,19,12,0,0,refstr,0))
> fatal:ut_inv_calendar: Invalid specification string
> fatal:Execute: Error occurred at or near line 1
>
> I don't have an UDUNITS_PATH environment variable set, and setting UDUNITS2_XML_PATH to $NCARG_ROOT/lib/ncarg/udunits/udunits2.xml don't helps.
>
> Any suggestions?
>
> Robert
>
> _______________________________________________
> 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 Thu Jul 28 07:39:59 2011
This archive was generated by hypermail 2.1.8 : Fri Jul 29 2011 - 08:44:18 MDT