Re: HighRes maps, cron job

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Tue Oct 30 2012 - 09:37:27 MDT

Yann,

You have a possible typo:

>> export NCARG_RANGS=forecast/util/ncl6.1.0/lib/ncarg/database/rangs/

You are missing a "/" in front of "forecast".

If the typo was just in this email, and you have it correct on your machine,
then when Gerry is suggesting is correct. You need to make sure
your enviroment variables are seen by your script.

You have actually put the RANGS files in the default location that NCL looks for
them based on your setting for NCARG_ROOT, so this leads me believe that
your NCARG_ROOT is not being seen by your cron job.

You can try debugging this by adding this line to your script:

   print("path for rangs is '" + ncargpath("rangs") + "'")

This will help you determine if the right path is being used.

--Mary

On Oct 30, 2012, at 8:30 AM, Gerry Creager wrote:

> Just a thought, but are you also telling your script about all paths
> and other environment variables? In your cron job, you might also
> source your .bash_profile to make sure everything is being picked up.
>
> gerry
>
> On Tue, Oct 30, 2012 at 2:35 AM, Yann Bertrand <yann74@yahoo.fr> wrote:
>> Hello,
>> i'm ploting maps with both NCL 5.1 and ncl 6.1.0
>> all my scripts are ok when I run them manually, but they don't work in
>> "HighRes" (empty maps)
>> if I run them from cron with NCL 6.1.0 or 6.1.O beta. All is ok "with
>> MedRes" & cron.
>> my script are "sourced":
>>
>> #!/bin/bash
>> export NCARG=/forecast/util/ncl6.1.0/
>> export NCARG_ROOT=/forecast/util/ncl6.1.0/
>> export PATH=/forecast/util/ncl6.1.0/bin/:$PATH
>>
>> And also:
>>
>> export NCARG_RANGS=forecast/util/ncl6.1.0/lib/ncarg/database/rangs/
>>
>> for HigRes coastlines with RANGS database.
>>
>> What is the problem?
>> Thanks in advance.
>>
>> Yann.
>>
>> _______________________________________________
>> 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 Tue Oct 30 09:37:47 2012

This archive was generated by hypermail 2.1.8 : Wed Oct 31 2012 - 09:14:12 MDT