Re: ut_calendar error

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Mon May 02 2011 - 00:52:15 MDT

Hi Daniel,

This kind of error showed up with version 5.2.0, but I'm not sure why you're seeing it with version 5.2.1. Maybe the answer will still help, in case you have some kind of UDUNITS environment variable set:

    NCL Version 5.2.0 was built against UDUNITS-2, V2.1.14. It needs to have the correct path to some UDUNITS xml files in order to work properly.
If you have the environment variable UDUNITS2_XML_PATH set to point to an different version of UDUNITS-2, then you may see this message. Try unsetting this environment variable with "unset" or "unsetenv".

This comes from the FAQ:

http://www.ncl.ucar.edu/faq/index.shtml#err_msgs_006

If this doesn't help, let me know.

--Mary

On Apr 27, 2011, at 12:36 PM, Daniel Adriaansen wrote:

> Hello,
>
> I am running NCL on Fedora 12. System information:
>
> $ uname -a
> $ Linux localhost.localdomain 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7
> 21:25:57 EST 2009 i686 i686 i386 GNU/Linux
>
> The default NCL package that I chose to install during the Fedora
> installation was 5.1.1. In this version, the ut_calendar() function
> performs as expected.
>
> However, I upgraded to a pre-compiled non-openDAP enabled binary for
> version 5.2.1
> (ncl_ncarg-5.2.1.Linux_i686_nodap_gcc432.tar.gz). This version gave me
> the following error:
>
> Copyright (C) 1995-2010 - All Rights Reserved
> University Corporation for Atmospheric Research
> NCAR Command Language Version 5.2.1
> The use of this software is governed by a License Agreement.
> See http://www.ncl.ucar.edu/ for more details.
> ncl 0> a = 1303914836
> ncl 1> a@units = "seconds since 1970-1-1 00:00:00"
> ncl 2> b = ut_calendar(a,0)
> warning:ut_calendar: Invalid specification string. Missing values will be
> returned.
>
> I did not notice this error while using 5.2.1, and have since upgraded to
> the new ncl-6.0.0-beta:
> (ncl_ncarg-6.0.0-beta.Linux_RedHat_i686_nodap_gcc412.tar.gz). It was with
> this version that I uncovered the same error:
>
> Copyright (C) 1995-2011 - All Rights Reserved
> University Corporation for Atmospheric Research
> NCAR Command Language Version 6.0.0-beta
> The use of this software is governed by a License Agreement.
> See http://www.ncl.ucar.edu/ for more details.
> ncl 0> a = 1303914836
> ncl 1> a@units = "seconds since 1970-1-1 00:00:00"
> ncl 2> b = ut_calendar(a,0)
> warning:ut_calendar: Invalid specification string. Missing values will be
> returned.
>
> I did a little research and noted that this particular warning was an
> issue that was supposedly solved in 5.2.1. I also noted that
> ut_calendar() is being replaced by cd_calendar in ncl-6.0.0 but it appears
> this isn't built into the beta yet:
>
> Copyright (C) 1995-2011 - All Rights Reserved
> University Corporation for Atmospheric Research
> NCAR Command Language Version 6.0.0-beta
> The use of this software is governed by a License Agreement.
> See http://www.ncl.ucar.edu/ for more details.
> ncl 0> a = 1303914836
> ncl 1> a@units = "seconds since 1970-1-1 00:00:00"
> ncl 2> b = cd_calendar(a,0)
> fatal:Undefined identifier: (cd_calendar) is undefined, can't continue
> fatal:Execute: Error occurred at or near line 3
>
> One of the biggest head-scratchers I have is that I also run
> ncl-6.0.0-beta on a version of Ubuntu I have installed on another machine,
> and I do not get this error. ut_calendar() works fine on that setup.
> System info there:
>
> $ uname -a
> $ Linux 2.6.35-28-generic #50-Ubuntu SMP Fri Mar 18 19:00:26 UTC 2011 i686
> GNU/Linux
>
> NCL binary package installed on Ubuntu:
> ncl_ncarg-6.0.0-beta.Linux_Debian_i686_nodap_gcc432.tar.gz
>
> Does anyone have any idea why it won't work on Fedora? Just for kicks I
> also downloaded the other two 32-bit binaries:
> ncl_ncarg-6.0.0-beta.Linux_Debian_i686_nodap_gcc445.tar.gz
> ncl_ncarg-6.0.0-beta.Linux_Debian_i686_nodap_gcc432.tar.gz
>
> but recieved the same error when using those installations.
>
> I'm perplexed as to why it works on Ubuntu and not Fedora, and why 5.1.1
> works on Fedora but not 5.2.1 or 6.0.0-beta. I'm also curious why
> cd_calendar() does not work on 6.0.0-beta either. Suggestions would be
> appreciated. Thanks in advance.
>
> -Dan
>
> _______________________________________________
> 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 Mon May 2 13:04:21 2011

This archive was generated by hypermail 2.1.8 : Tue May 03 2011 - 14:47:34 MDT