Skip to content

Commit

Permalink
Update for new CDS API
Browse files Browse the repository at this point in the history
  • Loading branch information
pixalytics committed Sep 27, 2024
1 parent d330adb commit 2be63dc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions tools/c3s/c3s.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<tool id="c3s" name="Copernicus Climate Data Store" version="0.2.0">
<tool id="c3s" name="Copernicus Climate Data Store" version="0.3.0">
<description>for retrieving climate data</description>
<requirements>
<requirement type="package" version="3">python</requirement>
<requirement type="package" version="0.5.1">cdsapi</requirement>
<requirement type="package" version="1.9.9">cdo</requirement>
<requirement type="package" version="3.8">python</requirement>
<requirement type="package" version="0.7.3">cdsapi</requirement>
<requirement type="package" version="2.4.4">cdo</requirement>
<requirement type="package" version="1.34">tar</requirement>
<requirement type="package" version="6.0">unzip</requirement>
</requirements>
Expand Down Expand Up @@ -61,7 +61,7 @@ $is_file.api_req_text
<output name="request" ftype="txt">
<assert_contents>
<has_text text="dataset to retrieve: reanalysis-era5-single-levels-monthly-means" />
<has_text text="'format': 'netcdf'" />
<has_text text="'data_format': 'netcdf'" />
<has_text text="'product_type': 'monthly_averaged_reanalysis'" />
<has_text text="'variable': '2m_temperature'" />
<has_text text="'year': '2020'" />
Expand Down
2 changes: 1 addition & 1 deletion tools/c3s/test-data/input.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ c = cdsapi.Client()
c.retrieve(
'reanalysis-era5-single-levels-monthly-means',
{
'format': 'netcdf',
'data_format': 'netcdf',
'product_type': 'monthly_averaged_reanalysis',
'variable': '2m_temperature',
'year': '2020',
Expand Down

0 comments on commit 2be63dc

Please sign in to comment.