How to open files and read variables in a loop?

From: Liang Guo <liang.guo.81_at_nyahnyahspammersnyahnyah>
Date: Wed, 19 Sep 2007 15:07:00 +0800

Dear All,

I try to open files and read variables in a loop as follow:
*"*
* do n = 0,11,1*
* fin = addfile (resu(n)+"control.nc", "r")
 pric = fin->precipitation*
* ... ... (omiting)*
* end do
"*

However, it seems no work, ths mistake information is:
"
*fatal:Assignment type mismatch, right hand side can't be coerced to type of
left hand side
fatal:Execute: Error occurred at or near line 41 in file draw_GT.ncl*
*"*
**
How can I do? Thanks!

Best,

Liang
2007/09/19

_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Sep 19 2007 - 01:07:00 MDT

This archive was generated by hypermail 2.2.0 : Mon Sep 24 2007 - 11:44:39 MDT