NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
I have 4-D variable A (time, lev, lat, lon) in a netcdf file, and I have
extracted the data at the first level using "ncks -v A -d lev,1,1 ..."
into A2. However, the dimensions for A2 remain as (time, lev, lat, lon)
although it is actually a 3-D data right now.
My question is how I can delete the dimension 'lev' from A2 using ncks?
(I know 'ncwa -O -a lev ...' would work, but it creates other problems
for compiling my code).