ut_calendar error

From: Daniel Adriaansen <dadriaan_at_nyahnyahspammersnyahnyah>
Date: Tue Apr 26 2011 - 20:36:02 MDT

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
Received on Tue Apr 26 20:36:10 2011

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