I couldn't find the script or approach to download the data with the attribute as I describe in the following:

  1. one single file;
  2. contains data in successive months in two adjacent years ( for example, from 20081201 to 20090201);

In cdsapi, when I use the function retrieve in Client class, I have to provide a request as a type of dictionary which contains the information such as 'variables', 'year', 'month', etc..

I don't know whether I can handle the year and month as 'year': /[2008, 2009], 'month':[[12],[1,2]]

or is there any other way I can retrieve the data without creating or using Client. retrieve function.

2 Comments

  1. Hi Helong,

    I will have a try and get back to you.

    Regards,

    Xiaobo


  2. Hi Helong,

    My test shows that your settings will give something you do not prefer:

    2008-01

    2008-02

    2008-12

    2009-01

    2009-02

    2009-12

    So you will have to make two separate requests, one for 2008-12, one for 2009-01 and 2009-02.

    Kind regards,

    Xiaobo