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

Re: 20030409:How to extract a slice from a netCDF file

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: Re: 20030409:How to extract a slice from a netCDF file
  • Date: Wed, 09 Apr 2003 15:55:44 -0600

>To: <address@hidden>
>From: "Hongfei Tian" <address@hidden>
>Subject: urgentHelpOnNetCDF
>Organization: UCAR/Unidata
>Keywords: 200304091902.h39J2V7U024167

Hi,

> Could you please tell me how to cut a piece of data from the NetCDF
> file? I understand the structure of the files, but I need a software
> tool to help me extract a slice of array, right? Which software can be
> run Windows?

ncks is a program that is part of the NCO (netCDF operators) package,
available from

  http://nco.sourceforge.net/

that will extract arbitrary slices of netCDF variables.  Since it is
offered in source form, I think you will have to compile it from
sources, but it has been tested on Windows NT.

There are other programs that can slice netCDF data as well, but some
of them work only for files that follow specific netCDF conventions:

  http://www.unidata.ucar.edu/packages/netcdf/software.html

--Russ

_____________________________________________________________________

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