[ncl-talk] about variables

Mark Chan cym263 at yahoo.com
Sat Dec 13 03:59:47 MST 2014


Dear NCL users,
A variable "plev2" is defined as in the below:

 plev2=3.0
 plev2 at axis=(/"Z"/)
 plev2 at positive=(/"Down"/)
 plev2 at units=(/"Pa"/)
 plev2 at standard_name=(/"air_pressure"/)
 plev2 at long_name=(/"pressure"/)
 plev2!0 = "ncl_scalar"

Then another variable "plev" would be defined, with the same attribute as "plev2", but its value is different.

      plev=50000.0
      filevardef(write_file,"plev",typeof(plev2),"ncl_scalar")
      filevarattdef(write_file,"plev", plev2)
      write_file->zg500=ZG500(limTime(0):limTime(1),0,limS_N(0):limS_N(1),  \
                           limW_E(0):limW_E(1))
However, the variable "plev" did not get the value as 50000.0 here.I would appreciate your help very much!
With my best regards,
Mark

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20141213/db8f36af/attachment.html 


More information about the ncl-talk mailing list