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

Re: 20000330: editing an existing netCDF file



Mekell,

> To: address@hidden
> From: mekell <address@hidden>
> Subject: help
> Organization: .
> Keywords: 200003302137.OAA17481

In the above message, you wrote:

> I wish to edit data in an existing NetCDF file; e.g delete a few records
> of bad data.
> How is this done?
> 
> Phil Blumenau
> MIT Lincoln Laboratory

There are several ways to do this:

    1.  Convert the netCDF file to CDL form via the "ncdump" utility,
        edit the CDL file, and then convert it back to netCDF form.
        This works for not-too-large dataset.

    2.  Dump just the header of the netCDF file via the "ncdump" utility,
        use the "ncgen" utility to create a template program for that
        data, edit the template program to do what you what, and then
        execute the program on the netCDF file.  This works for any size
        dataset.

(For either of the above, see the netCDF manual pages for further
information or <http://www.unidata.ucar.edu/packages/netcdf/docs.html>).

    3.  Use a 3rd-party package to edit the data.  See
        <http://www.unidata.ucar.edu/packages/netcdf/software.html> for
        examples.

Regards,
Steve Emmerson   <http://www.unidata.ucar.edu>