[Tcl-nap-users] write to text files
Brought to you by:
dav480,
peter_turner
From: <Guo...@cs...> - 2006-06-02 04:39:58
|
Dear Davies and others, =20 I need read about 600 netcdf files (at different pressure level, different year, for different variables) and write them into text files. I use three loops for "pressure level", "variables", and "year". It always stops at second time of the inner loop and gives me an error message "unable to alloc 4096 bytes". =20 =20 For example, in this case it stops in the second year of the first variable and in the first level (the first year data is prefect!) =20 foreach level $plevel { =20 foreach var $var_list { =20 foreach year $no_year { =20 #Read CDF and Write into a text filw =20 #close the text file=20 } } } =20 If I change into this order, then it stops for the second variable for the first year and first level (the first variable works perfectly). =20 foreach level $plevel { =20 foreach year $no_year { =20 foreach var $var_list { =20 #Read CDF and Write into a text filw =20 #close the text file=20 } } } =20 Thank you for your reply! =20 Guobin =20 |