how to deliver an environment variable into ncl script

From: ChenFeng <fengfengabc003_at_nyahnyahspammersnyahnyah>
Date: Wed Jun 18 2014 - 08:06:13 MDT

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

Received on Wed Jun 18 02:06:20 2014

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