how to append data into one NetCDF file

From: Xuguang Sun <sunxg007_at_nyahnyahspammersnyahnyah>
Date: Sat, 18 Apr 2009 23:45:13 +0800 (CST)

Dear everyone,

I've a list of NetCDF format files, like,

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

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
Tel: +86-025-83597203 (O)

ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
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