[gradsusr] cdo seltimestep has removed lon and lat from my timeseries
Andrew Friedman
andfried at berkeley.edu
Thu May 22 17:31:17 EDT 2014
Hi Adam,
You can open the file by creating a descriptor file and using xdfopen following instructions here:
http://www.iges.org/grads/gadoc/SDFdescriptorfile.html
You may also want to look at the cdo documentation for information on preserving the spatial dimension information:
You should write https://code.zmaw.de/projects/cdo
Andrew
http://www.iges.org/grads/gadoc/SDFdescriptorfile.html
On May 22, 2014, at 1:01 PM, Adam Bamba <adambamba_2000 at yahoo.com> wrote:
> Dear grads users,
> I have a monthly precipitation data from CRU covering the period 1901-2006.
> I have selected a period within the time series using cdo as follow
> example: cdo seltimestep,10/130 cru.nc output.nc
>
> when I try to open the output.nc with grads I have this message
> scanning self-describing file: output.nc
> gadsdf: SDF file has no discernable X coordinate.
>
> when I check with:
> ncdump -c output.nc
> I have something like that:
>
> netcdf output {
> dimensions:
> x = 194 ;
> y = 201 ;
> time = UNLIMITED ; // (120 currently)
> nb2 = 2 ;
> .
> .
> .
>
> data:
>
> time = 29599, 29630, 29658, 29689, 29719, 29750, 29780, 29811, 29842, 29872,
> 29903, 29933, 29964, 29995, 30023, 30054, 30084, 30115, 30145, 30176,
> 30207, 30237, 30268, 30298, 30329.....
> }
>
> I note that the longitude and latitude don't appear but the time appears. It is like the operation on cdo has
> removed the longitude and latitude.
>
> NB: I can open the original file (the one with the complet time series) with grads without any problem.
>
> Can anybody help me, thanks in advance.
>
>
> Adam Bamba
>
>
>
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
More information about the gradsusr
mailing list