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

[netCDF #UEP-102961]: data information in detail

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 #UEP-102961]: data information in detail
  • Date: Thu, 10 May 2007 09:31:16 -0600

> 
> I'm so sorry to trouble you again.
> 
> Maybe I made a mistake.
> 
> In a word, I wonder if I can get the information such as the beginning
> and endding value of dimentions of netcdf data file by fortran commands.
> 
> Thanks very much
> 
> ying
> 

Sure, you can open the file, use nf_inq to learn how many dims there are, then 
use nf_inq_dim to learn about each dimension. To find the associated coordinate 
var (which will contain the values along the dimension axis) then look for a 
variable with the same name as the dimension.

For example, if you have a "latitude" dimension, look for a variable called 
"latitude" which, if it exists, will contain the latitudes.

Or, you could use ncdump to dump the file in ASCII and look at the answers.

Thanks,

Ed


Ticket Details
===================
Ticket ID: UEP-102961
Department: Support netCDF
Priority: Normal
Status: Closed