Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.

netcdf4 and ncdump

Hello

I'm in the process of re-writing the output routines of a ocean model
from NetCDF3 to NetCDF4.

As part of my efforts I would like to see if I'm actually storing data
in my .nc file. Usually I use ncdump for that purpose but with NetCDF4 I
get:

kbk@orca:~/getm-setups/v1.6.x/haidvogel$ /opt/netcdf4/bin/ncdump getm.nc
netcdf getm {
dimensions:
        lon = 130 ;
        lat = 5 ;
        z = 21 ;
variables:
        float lon(lon) ;
        float lat(lat) ;
        float level(z) ;

// global attributes:
                :title = "Haidvogel and Beckmann test case" ;
                :history = "Generated by getm, ver. 1.7.0" ;
data:

 lon = _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _,
    _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _,
    _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _,
    _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _,
    _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _,
    _, _, _, _, _, _, _, _, _, _, _ ;

 lat = _, _, _, _, _ ;

 level = _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ ;

group: 2d {
dimensions:
        time = UNLIMITED ; // (48 currently)
variables:
        float time(time) ;
        float elev(time, lat, lon) ;
        float U(time, lat, lon) ;
        float V(time, lat, lon) ;
data:
}
}

Notice that it is listed that there are 48 in the unlimited dimension I
do hwoever not see any data listed. For testing I just dump random
numbers into elev, U and V.

Is that a new feature of ncdump?


Another question - I'm I right in the assumption that I can inherit
dimensions from the root group - as shown above - does that imply I also
inherit the root coordinate variables?


Karsten


PS: The file in question can be downloaded here:
ftp://bbh.homelinux.net/pub/karsten.bolding/getm.nc


-- 
----------------------------------------------------------------------
Karsten Bolding                    Bolding & Burchard Hydrodynamics
Strandgyden 25                     Phone: +45 64422058
DK-5466 Asperup                    Fax:   +45 64422068
Denmark                            Email: karsten@xxxxxxxxxxxxxxxxxxxx

http://www.findvej.dk/Strandgyden25,5466,11,3
----------------------------------------------------------------------

==============================================================================
To unsubscribe netcdfgroup, visit:
http://www.unidata.ucar.edu/mailing-list-delete-form.html
==============================================================================


  • 2007 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: