Dear everyone,
I've a list of NetCDF format files, like,
1948-01.nc
1948-02.nc
1948-03.nc
...
and I'd like to combine these data files into one NetCDF format file. I do know that I could solve this problem by using
fns = systemfunc("ls 19??-??.nc")
in = addfiles(fns,"r") ; open netcdf file
ListSetType(in,"cat")
...
However, if I'd like to open one NetCDF data file, and write it into one file, and then open another NetCDF data file, and write it into the same file, ..., all the above processes are repeated until all the nc files are opened and the data are writted into the same data file. I checked that the addfile function only has three options to open one file, "r", "w", "c", and there is no append option, so I'm wondering how to solve this problem by the above method. And at the same time, is there anybody like to explain the usage of "w" option? Thanks in advance.
SUN Xuguang
School of Atmospheric Sciences, Nanjing University
22 Hankou Road, Nanjing 210093
China
Tel: +86-025-83597203 (O)
Email: sunxg007_at_yahoo.com.cn
___________________________________________________________
好玩贺卡等你发,邮箱贺卡全新上线!
http://card.mail.cn.yahoo.com/
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Sat Apr 18 2009 - 09:45:13 MDT
This archive was generated by hypermail 2.2.0 : Mon Apr 20 2009 - 09:36:23 MDT