[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #QGA-343211]: about combining nc files together



Hi,

> I have downloaded some flux data in nc format of seperate years. My
> question is how can i combine those nc files together according to the time
> serial using fortran 90.
> Thanks for answering this email in advance.

To do this with Fortran 90, you would need to write a program that creates a
new
netCDF output file, reads in the data from each netCDF input file, and writes
the
data to the output file.  Some simple examples of Fortran 90 programs for
reading
and writing netCDF data are available here:

  http://www.unidata.ucar.edu/netcdf/examples/programs/

and the Fortran-90 API documentation is here:

  http://www.unidata.ucar.edu/netcdf/docs/netcdf-f90.html

There are utility programs that already do this kind of data manipulation in
the NCO package
of freely available netCDF operators: ncrcat and ncecat, documented here:

  http://nco.sourceforge.net/nco.html#Averaging-vs_002e-Concatenating

You can download and install the NCO package from here:

  http://nco.sourceforge.net/

Another set of utilities that may also be useful for this task are the merge
facilities of the
Climate Data Operators (CDO) package:

  http://www.mpimet.mpg.de/fileadmin/software/cdo/cdo.pdf

and in particular, the "merge" utilities.  CDO can be downloaded from

  http://www.mpimet.mpg.de/fileadmin/software/cdo/

--Russ



Russ Rew                                         UCAR Unidata Program
address@hidden                     http://www.unidata.ucar.edu



Ticket Details
===================
Ticket ID: QGA-343211
Department: Support netCDF
Priority: Normal
Status: Closed