Project

General

Profile

time series extraction

Added by Alvaro Santamaría over 9 years ago

Hi everyone,

could someone tell me how to extract the time series for some selected grid points into an ascii file?
I'm using multi-year netcdf files and the output format I looking for is: 'timestep value'
I know how to select points with sellonlatbox and then to print the values with outputf, but this only gives me the values not the timesteps.
Any suggestion?

Thanks,
Alvaro.


Replies (3)

RE: time series extraction - Added by Uwe Schulzweida over 9 years ago

Dear Alvaro,

Try the undocumented operator outputtab to create a user defined table of a dataset:
Each parameter of outputtab is one row in the table. Here is an example to print the Lon, Lat and Value of all fields:

cdo outputtab,lon,lat,value ifile
The following parameter are implemented:
value, code, name, lon, lat, lev, date, time, year, month, day
You can try it with:
cdo outputtab,time,value ifile
I have added the parameter timestep to the next CDO release.

Cheers,
Uwe

RE: time series extraction - Added by Alvaro Santamaría over 9 years ago

Thanks Uwe.
I tried with cdo outputtab,year,month,day,value and it worked like a charm (daily data).

Alvaro.

    (1-3/3)