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

[netCDF #VFS-516826]: Number of netcdf file into one single Netcdf

This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.


  • Subject: [netCDF #VFS-516826]: Number of netcdf file into one single Netcdf
  • Date: Mon, 21 Jul 2008 11:26:20 -0600

Hi Kapil,

There are several ways to merge multiple netCDF files into one file.

Using the netCDF-Java software, you can do "aggregation" with NcML,
as the example in the email response illustrates:

  
http://www.unidata.ucar.edu/mailing_lists/archives/netcdf-java/2008-February/000593.html

An explanation of aggregating with NcML is here:

  http://www.unidata.ucar.edu/software/netcdf/ncml/v2.2/Aggregation.html

Another way to merge files is by using the NCO (netCDF Operators) package:

  http://nco.sourceforge.net/

where the programs "ncecat" and "ncks" might do what you want:

  http://nco.sourceforge.net/nco.html#ncecat-netCDF-Ensemble-Concatenator
  http://nco.sourceforge.net/nco.html#ncks-netCDF-Kitchen-Sink

Finally, if you are familiar with one of the scripting languages Perl, Python,
or Ruby, you could use the corresponding netCDF interface to read data from
the input files and write it to the output file more easily than writing a
C or Fortran program to do the same thing.

--Russ


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



Ticket Details
===================
Ticket ID: VFS-516826
Department: Support netCDF
Priority: Normal
Status: Closed