time series extraction
Added by Alvaro Santamaría over 10 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 Ralf Mueller over 10 years ago
use the output operator: https://code.zmaw.de/projects/cdo/embedded/1.6.4/cdo.html#x1-6140002.14.5
RE: time series extraction - Added by Uwe Schulzweida over 10 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 ifileThe following parameter are implemented:
value, code, name, lon, lat, lev, date, time, year, month, dayYou can try it with:
cdo outputtab,time,value ifileI have added the parameter timestep to the next CDO release.
Cheers,
Uwe
RE: time series extraction - Added by Alvaro Santamaría over 10 years ago
Thanks Uwe.
I tried with cdo outputtab,year,month,day,value and it worked like a charm (daily data).
Alvaro.