[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #BUL-932095]: ncdump

Hi Ahmed,

> i am using ncdump in my work , but always the variable that i am dealing
> with is function in time , latitude and longitude
> var(time,lat,lon)  ,and i often make the ncdump -v var file.nc > aa and i
> wanna to get the values of the variable at certain time step
> so i want var(1,lon,lat) , so how can i specify the value of the coordinate
> that i am using .

There is a sort of clumsy way you can do this with ncdump now, by specifying
full annotation of the output ("-fc" or "-ff" for C or Fortran annotation,
respectively), and then filter the output with something like grep to show
just the coordinates you want.

A better tool for this currently is the NCO software, specifically the
"ncks" tool:


developed and maintained as open source software at the Univeristy of
California at Irvine.


Russ Rew                                         UCAR Unidata Program
address@hidden                      http://www.unidata.ucar.edu

Ticket Details
Ticket ID: BUL-932095
Department: Support netCDF
Priority: Normal
Status: Closed

NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.