Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

[netcdfgroup] Organise data in netCDF

Hi all!

I'm Miquel from Barcelona's university (EPSC-UPC). I'm actually working on a
project where we using netCDF file standard. I've been reading documentation
about, but there's still something about netCDF that I can't understand. My
doubts are all about how to organise data.

Let's supose a simple example. One variable, temp, depending on two
dimension, lat & lon both of legnth 1. After creating my netCDF file, that's
what I can see with 'ncdump temp.nc'

netcdf temp {
dimensions:
        lat = 1 ;
        lon = 1 ;
variables:
        double temp(lat, lon) ;

// global attributes:
                :history = "example file" ;
data:

 temp =
  _ ;
}

temp is empty, that's ok! But seems like I created 1X1 array. My original temp
data is an array of 10e6 values. How can I do netCDF files in order to load
this kind of array with 10e6X1 dimensions? How can I organise if temp
depends on lat(1),lon(1) and depth(20e6), where depth is another variable
with different length of temp?

Thanks in advance for your help and your time,
Miquel


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690