It's not a big issue, just I have to write the if statements like this:
if (.not. ismissing(var@var_type) .and. var@var_type .eq. "upl") then
......
It's shown by the example below:
v = 1
v@a = "missing"
print(v)
print(v@a)
print(ismissing(v@a))
v@a = new(1, string)
print(v)
print(v@a)
print(ismissing(v@a))
The two "print(v)" and "print(v@a)" produced the same output while the two "print(ismissing(v@a))" produced different output.
It looked as if the attribute "a" of variable "v" still have an _FillValue attribute, which is not included in the NCL variable model (as I perceived). Is it a desired behavior or just an accident?
# uname -a
Linux xxx 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
# ncl -V
6.0.0
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Apr 26 21:49:56 2012
This archive was generated by hypermail 2.1.8 : Thu May 03 2012 - 09:27:53 MDT