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

[netCDF #XQE-706031]: data conversion

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 #XQE-706031]: data conversion
  • Date: Mon, 12 Mar 2012 15:14:32 -0600

Hi Tim,

> I have data stored in a netCDF format and I want to convert it to a binary
> format. Is there a way to do that?

Probably, depending on what you mean by "binary format".  NetCDF is actually
already a binary format, in that it stores numeric values in binary form, so
that it can directly seek to values in large arrays based on the size and 
dimensionality of the arrays and the indexes for values.  Maybe what you have
is the text form of netCDF data, typically stored in files with a ".cdl"
extension?  In that case, there is a utility program, ncgen, that's part of 
netCDF and that converts CDL to netCDF.

--Russ

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



Ticket Details
===================
Ticket ID: XQE-706031
Department: Support netCDF
Priority: Normal
Status: Closed