[1] Even after we requested that you use an appropriate "Subject",
you use "ncl_site" which is useless. PLEASE USE BETTER SUBJECT.
[2] The best debugging tool is to use print statement.
[3] *The error message is telling you exactly what is wrong.*
It says:
On 9/27/11 7:08 AM, cnl88 wrote:
> line 90 is :
p(:,0) = O3
Well, what type is "p". You typed it as same as type(a)
print("typeof(a)="+typeof(a))
print("typeof(p)="+typeof(p))
This is because you used
a = addfile(fn,"r")
where 'a' is type file
print("typeof(O3)="+typeof(O3))
I speculate O3 is type double or float
NCL is telling you that on line 90, O3 (float or double) can not
be stored in a variable of type file. Please read NCL documentation.
Try
p = new ( (/I,K/), typeof(O3) )
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Sep 27 07:35:21 2011
This archive was generated by hypermail 2.1.8 : Tue Sep 27 2011 - 15:14:38 MDT