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.

To learn about what's going on, see About the Archive Site.

Re: [netcdfgroup] delete colapsed dimension

 
I would still be interested in learning how to do this but I found a way of 
avoiding this problem in my case. I was getting a dimension with length=1 after 
averaging along that dimension with "ncwa -O -b ". 
 
By eliminating -b the default behaviour is to delete the degenerate dimension. 
Then I used ncks to eliminate the correponding variable.
 
tiago



________________________________
From: Tiago Silva <tiagoams@xxxxxxxxxxx>
To: "netcdfgroup@xxxxxxxxxxxxxxxx" <netcdfgroup@xxxxxxxxxxxxxxxx> 
Sent: Tuesday, 3 July 2012, 14:47
Subject: [netcdfgroup] delete colapsed dimension


Hi

How can I delete a dimension of length 1 from an netcdf file using NCO tools?
This is the initial part of the ncdump of one of my files and I want to 
elliminate lonc:

dimensions:
        time = 744 ;
        nbdyp = UNLIMITED ; // (102 currently)
        lonc = 1 ;
variables:
        float elev(nbdyp, time, lonc) ;
(...)

I am using NCO 4.0.5.

Thanks,
Tiago
_______________________________________________
netcdfgroup mailing list
netcdfgroup@xxxxxxxxxxxxxxxx
For list information or to unsubscribe,  visit: 
http://www.unidata.ucar.edu/mailing_lists/ 
  • 2012 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: