Re: utility to turn UNLIMITED dimension into fixed len dim?

  • To: Chris Webster <cjw@xxxxxxxx>
  • Subject: Re: utility to turn UNLIMITED dimension into fixed len dim?
  • From: Rorik Peterson <ffrap1@xxxxxxxxxxxxxx>
  • Date: Fri, 02 Apr 2004 09:40:41 -0900
Actually, use 'ncecat' then 'ncwa'.

rorik@chabuku:~/nco/data$ ncdump one.nc; ncecat one.nc one$$.nc; ncwa -O -a record one$$.nc one.nc;ncdump one.nc
netcdf one {
dimensions:
       time = UNLIMITED ; // (2 currently)
       lat = 2 ;
       lon = 2 ;
variables:
       float lat(lat) ;
       float lon(lon) ;
       float wind(time, lat, lon) ;
data:

lat = 2.2, 3.3 ;

lon = 4.4, 5.5 ;

wind
 1, 2,
 3, 4,
 5, 6,
 7, 8 ;
}
netcdf one {
dimensions:
       time = 2 ;
       lat = 2 ;
       lon = 2 ;
variables:
       float lat(lat) ;
       float lon(lon) ;
       float wind(time, lat, lon) ;

// global attributes:
:history = "Fri Apr 2 09:38:45 2004: ncwa -O -a record one17332.nc one.nc\n", "Fri Apr 2 09:38:45 2004: ncecat one.nc one17332.nc" ;
data:

lat = 2.2, 3.3 ;

lon = 4.4, 5.5 ;

wind
 1, 2,
 3, 4,
 5, 6,
 7, 8 ;
}


Chris Webster wrote:


Is there a utility to copy an existing netCDF file with an UNLIMITED
dimension into one without?

--Chris


--
Rorik Peterson, PhD
Geophysical Institute
University of Alaska, Fairbanks



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