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

Re: deleting dimensions and variables

Hi James,

>> Is there no way to delete a dimension, a variable or a data element from
>> a netCDF database?

In case you don't know about NCO, most of the NCO operators will
delete variables from existing netCDF files with, e.g.,

ncks -x -v var1,var2 in.nc out.nc

When all the variables containing a given dimension have been deleted,
the above command automatically deletes the dimension as well.
See http://www.cgd.ucar.edu/cms/nco for more details.

Charlie
-- 
Charlie Zender      Voice: (303) 497-1612, FAX: 497-1324 
NCAR ACD & CGD     E-mail: zender@xxxxxxxxxxxxx
P.O. Box 3000         URL: http://www.cgd.ucar.edu/cms/zender
Boulder CO 80307-3000 PGP: finger -l zender@xxxxxxxxxxxxxxxxx


 
 
  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