Re: ut_calendar and UDUNITS_PATH

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Mon Apr 26 2010 - 08:59:24 MDT

I've written to the UDUNITS-2 folks to try to find out more information about UDUNITS_PATH versus UDUNITS2_XML_PATH.

The NCL code is not using UDUNITS_PATH as far as I can tell, but it looks like the external UDUNITS-2 package is.

I could probably compile a special version of NCL for you that internally sets UDUNITS_PATH to the NCL version of the files, so that you don't have to do this.

If you need this, send me a personal email and let me know which NCL binary you downloaded.

--Mary

On Apr 26, 2010, at 1:05 AM, Alvaro M. Valdebenito B. wrote:

> Dear Mary
>
> I am also puzzled.
> In my previous email I missed the "$" on the UDUNITS2_XML_PATH definition
> (I did set it correctly on the first try).
> This are my settings
> export UDUNITS_PATH=some-local-disk/udunits.dat
> export UDUNITS2_XML_PATH=$NCARG_ROOT/lib/ncarg/udunits
>
> In the meantime I wrapped ncl in a shell script in which I unset UDUNITS_PATH,
> but I very much would like to find a more elegant solution.
>
> Thanks,
> Á.
>
>
> ----- Original Message -----
> From: "Mary Haley" <haley@ucar.edu>
> To: "Álvaro M. Valdebenito B." <alvaro.valdebenito@met.no>
> Cc: "ncl forum" <ncl-talk@ucar.edu>
> Sent: Friday, 23 April, 2010 4:28:07 PM
> Subject: Re: ut_calendar and UDUNITS_PATH
>
> Dear Álvaro,
>
> I'm sorry you're having trouble with this. I'm a little puzzled,
> because it seems like internally,
> the UDUNITS-2 code is actually looking at UDUNITS_PATH and favoring this
> over UDUNITS2_XML_PATH.
>
> Can you tell me what UDUNITS environment variable you currently have
> set and
> what you have it set to?
>
> Also, if you did try to set UDUNITS2_XML_PATH to NCARG_ROOT/lib/ncarg/
> udunits,
> that that is an error. You need a "$" in front of the path:
>
> setenv UDUNITS2_XML_PATH $NCARG_ROOT/lib/ncarg/udunits
>
> or
>
> export UDUNITS2_XML_PATH=$NCARG_ROOT/lib/ncarg/udunits
>
> The NCL code is specifically checking for this environment variable,
> and will
> use it if set, but I'm worried that the internal UDUNITS code is then
> using UDUNITS_PATH instead.
>
> I think I may need to fix the code on our end to look for a
> NCARG_UDUNITS setting, and
> use this to overwrite any UDUNITS_XXXX settings, because there are
> definite
> incompatibilities between versions of UDUNITS-2.
>
> --Mary
>
>
> On Apr 23, 2010, at 1:54 AM, Álvaro M. Valdebenito B. wrote:
>
>> Hi all,
>>
>> I just tried the new ncl version and am having some problems with
>> ut_calendar and UDUNITS_PATH. I need to set UDUNITS_PATH for some
>> of my
>> applications to work so I can not un-set it. I have tried setting
>> UDUNITS2_XML_PATH to NCARG_ROOT/lib/ncarg/udunits, but that does not
>> work either.
>>
>> Do you see any solution on the recent future?
>>
>> I need to update to 5.2.0 ASAP, as 5.1.1 seems to have a bug related
>> with multiple output files and annotations...
>>
>> Thanks in advance,
>> Álvaro.
>>
>> --
>> Álvaro M. Valdebenito B., Dr. rer. nat.
>> alvaro.valdebenito@met.no
>> Air Pollution Section/Research Department Tel. +47-2296 3397
>> Norwegian Meteorological Institute http:\\www.met.no
>> P.O. Box 43 Blindern, 0313 Oslo, NORWAY http:\\www.emep.int/CWF
>> _______________________________________________
>> 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

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Apr 26 08:59:31 2010

This archive was generated by hypermail 2.1.8 : Thu Apr 29 2010 - 08:05:27 MDT