Re: how to deliver an environment variable into ncl script

From: Karin Meier-Fleischer <meier-fleischer_at_nyahnyahspammersnyahnyah>
Date: Wed Jun 18 2014 - 08:22:32 MDT

Hi Feng,

try ncl 'var="'$var'"' script.ncl

Bye,
Karin


Am 18.06.2014 um 16:06 schrieb ChenFeng <fengfengabc003@163.com>:

> Hi all,
>
> I need to deliver an environment variable into ncl script. Such as:
> export var="0300"
> ncl var="$var" script.ncl
> But I found the kind of variable var change from string to integer (in the ncl script the var is 300, rather than "0300").
> If I use
> ncl 'var="$var"' script.ncl
> then the variable in script is "$var", also not "0300".
> I have no idea about it.
> It is very appreciate if anybody can solve the problem.
>
> feng
> _______________________________________________
> 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 Wed Jun 18 02:22:50 2014

This archive was generated by hypermail 2.1.8 : Wed Jul 23 2014 - 15:33:46 MDT