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

[netCDF #WND-618827]: how to downgrade a netcdf file to classic

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 #WND-618827]: how to downgrade a netcdf file to classic
  • Date: Thu, 13 Jul 2006 21:38:32 -0600

> I have come up with a trivial solution using nco operators built with LFS:
> 
> ncks -O foo.nc foo.nc will automatically convert foo.nc to a version 1
> netcdf file, provided that it is small enough.
> 
> Harper

Great, glad to hear it!

There is no way to do this internal to netcdf, just to use a program which 
reads one netcdf file and writes another. There is probably some way to do this 
on the command line with ncdump and ncgen, but using the NCO operators is no 
doubt much faster, since nothing is (presumably) converted to ASCII, as ncdump 
would do.

Keep on netCDFing!

Ed Hartnett

Ticket Details
===================
Ticket ID: WND-618827
Department: Support netCDF
Priority: High
Status: Closed