Thanks.

Can you make the test file available?
Also, on which arcitecture is this, i386 or amd64?
and can you send the output of "cdo -V" please.

thanks
Alastair



On 12/04/2014 11:21, Alberto Maurizi wrote:
>  cdo selname,param8.1.0 -seldate,2014-03-03T12:00:00,2014-04-03T00:00:00 
> 00/globo_201403020 0_00.grib2 qq.grib2
>   cdo -f nc selname,param8.1.0 
> -seldate,2014-03-03T12:00:00,2014-04-03T00:00:00 00/globo_201 
> 4030200_00.grib2 qq.nc
>
> give different results (checked with cdo sinfo). The result of the first
> command gives wrong dates:
>    Time coordinate :  unlimited steps
>      RefTime =  2014-03-02 00:00:00  Units = minutes  Calendar = 
> proleptic_gregorian
>   YYYY-MM-DD hh:mm:ss  YYYY-MM-DD hh:mm:ss  YYYY-MM-DD hh:mm:ss  YYYY-MM-DD 
> hh:mm:ss
>   2014-05-31 00:00:00  2014-06-30 00:00:00  2014-07-30 00:00:00  2014-08-29 
> 00:00:00
>   2014-09-28 00:00:00  2014-10-28 00:00:00  2014-11-27 00:00:00  2014-12-27 
> 00:00:00
>   2015-01-26 00:00:00  2015-02-25 00:00:00  2015-03-27 00:00:00  2015-04-26 
> 00:00:00
>   2015-05-26 00:00:00  2015-06-25 00:00:00  2015-07-25 00:00:00  2015-08-24 
> 00:00:00
>   2015-09-23 00:00:00  2015-10-23 00:00:00  2015-11-22 00:00:00  2015-12-22 
> 00:00:00
>   2016-01-21 00:00:00  2016-02-20 00:00:00  2016-03-21 00:00:00  2016-04-20 
> 00:00:00
>   2016-05-20 00:00:00  2016-06-19 00:00:00  2016-07-19 00:00:00  2016-08-18 
> 00:00:00
>   2016-09-17 00:00:00  2016-10-17 00:00:00  2016-11-16 00:00:00  2016-12-16 
> 00:00:00
>   2017-01-15 00:00:00  2017-02-14 00:00:00  2017-03-16 00:00:00  2017-04-15 
> 00:00:00
>   2017-05-15 00:00:00  2017-06-14 00:00:00  2017-07-14 00:00:00  2017-08-13 
> 00:00:00
>   2017-09-12 00:00:00  2017-10-12 00:00:00  2017-11-11 00:00:00  2017-12-11 
> 00:00:00
>   2018-01-10 00:00:00  2018-02-09 00:00:00  2018-03-11 00:00:00  2018-04-10 
> 00:00:00
>   2018-05-10 00:00:00  2018-06-09 00:00:00  2018-07-09 00:00:00  2018-08-08 
> 00:00:00
>   2018-09-07 00:00:00  2018-10-07 00:00:00  2018-11-06 00:00:00  2018-12-06 
> 00:00:00
>   2019-01-05 00:00:00  2019-02-04 00:00:00  2019-03-06 00:00:00  2019-04-05 
> 00:00:00
>   2019-05-05 00:00:00  2019-06-04 00:00:00
>
> while the second gives:
>    Time coordinate :  62 steps
>      RefTime =  2014-03-02 00:00:00  Units = minutes  Calendar = 
> proleptic_gregorian
>   YYYY-MM-DD hh:mm:ss  YYYY-MM-DD hh:mm:ss  YYYY-MM-DD hh:mm:ss  YYYY-MM-DD 
> hh:mm:ss
>   2014-03-03 12:00:00  2014-03-04 00:00:00  2014-03-04 12:00:00  2014-03-05 
> 00:00:00
>   2014-03-05 12:00:00  2014-03-06 00:00:00  2014-03-06 12:00:00  2014-03-07 
> 00:00:00
>   2014-03-07 12:00:00  2014-03-08 00:00:00  2014-03-08 12:00:00  2014-03-09 
> 00:00:00
>   2014-03-09 12:00:00  2014-03-10 00:00:00  2014-03-10 12:00:00  2014-03-11 
> 00:00:00
>   2014-03-11 12:00:00  2014-03-12 00:00:00  2014-03-12 12:00:00  2014-03-13 
> 00:00:00
>   2014-03-13 12:00:00  2014-03-14 00:00:00  2014-03-14 12:00:00  2014-03-15 
> 00:00:00
>   2014-03-15 12:00:00  2014-03-16 00:00:00  2014-03-16 12:00:00  2014-03-17 
> 00:00:00
>   2014-03-17 12:00:00  2014-03-18 00:00:00  2014-03-18 12:00:00  2014-03-19 
> 00:00:00
>   2014-03-19 12:00:00  2014-03-20 00:00:00  2014-03-20 12:00:00  2014-03-21 
> 00:00:00
>   2014-03-21 12:00:00  2014-03-22 00:00:00  2014-03-22 12:00:00  2014-03-23 
> 00:00:00
>   2014-03-23 12:00:00  2014-03-24 00:00:00  2014-03-24 12:00:00  2014-03-25 
> 00:00:00
>   2014-03-25 12:00:00  2014-03-26 00:00:00  2014-03-26 12:00:00  2014-03-27 
> 00:00:00
>   2014-03-27 12:00:00  2014-03-28 00:00:00  2014-03-28 12:00:00  2014-03-29 
> 00:00:00
>   2014-03-29 12:00:00  2014-03-30 00:00:00  2014-03-30 12:00:00  2014-03-31 
> 00:00:00
>   2014-03-31 12:00:00  2014-04-01 00:00:00  2014-04-01 12:00:00  2014-04-02 
> 00:00:00
>   2014-04-02 12:00:00  2014-04-03 00:00:00
>
> In addition: if I execute
>   cdo selname,param8.1.0 00/globo_2014030200_00.grib2 tmp.grib2
> and then
>   cdo seldate,2014-03-03T12:00:00,2014-04-03T00:00:00 tmp.grib2 qq.grib2
> I get the right dates.
>
> In wheezy with cdo rebuilt for a backport of grib-api (1.10.4) I get the
> right result.
>
> Let me know if you need the input file (300MB) to reproduce the
> error, I will made it available for download.

-- 
Alastair McKinstry, <alast...@sceal.ie>, <mckins...@debian.org>, 
https://diaspora.sceal.ie/u/amckinstry
A decent provision for the poor is the true test of civilization.
~Samuel Johnson, Boswell: Life of Johnson


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to