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

deleting dimensions in netCDF

Question: Is it possible to delete a dimension (and the corresponding data tied 
to this dimension) in a netCDF file?

Why? I need to add on raise several existing dimensions in a netCDF file (e.g.
append more data on the end of the array).  I would like to read in the current
contents of these dimensions, delete the dimensions from the netCDF file, and
create newer ones. Less attractive possibilities are: 

[1] rename the dimensions to something else and create a new dimension with the
old name. 

[2] initially create the dimensions so large they "could never be used" and 
fill them with garbage.

Idea [2] will probably be violated before the code dries. How big is "so 
large"? Idea [1] is interesting, but leaves the possibility of lots of dead 
data.

What have other people done? 
--
Dr. E. Loren Buhle, Jr.  INTERNET: BUHLE@xxxxxxxxxxxxx
University of Pennsylvania School of Medicine         Phone: 215-662-3084
Rm 440A, 3401 Walnut St., Philadelphia, PA 19104-6228   FAX: 215-349-5978


 
 
  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