Skip to content

Commit

Permalink
Merge pull request #65 from pixalytics-ltd/master
Browse files Browse the repository at this point in the history
Fix for issue #54
  • Loading branch information
bgruening authored Feb 8, 2024
2 parents 1259ec8 + 344dd61 commit de74da4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
11 changes: 8 additions & 3 deletions tools/c3s/c3s.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,14 @@ if [ -f download.tar.gz ]; then
cdo -f nc -t ecmwf copy tmpg.grib tmp.nc
elif [ -f download.zip ]; then
unzip download.zip
cat *.grib > tmp.grib
cdo setgridtype,regular tmp.grib tmpg.grib
cdo -f nc -t ecmwf copy tmpg.grib tmp.nc
files=(*.nc)
if [ -e "${files[0]}" ]; then
mv ${files[0]} tmp.nc
else
cat *.grib > tmp.grib
cdo setgridtype,regular tmp.grib tmpg.grib
cdo -f nc -t ecmwf copy tmpg.grib tmp.nc
fi
elif [ -f download.grib ]; then
cdo -f nc -t ecmwf copy download.grib tmp.nc
elif [ -f download.nc ]; then
Expand Down
4 changes: 2 additions & 2 deletions tools/c3s/c3s.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<tool id="c3s" name="Copernicus Climate Data Store" version="0.1.0">
<description>for retrieveing climate data</description>
<tool id="c3s" name="Copernicus Climate Data Store" version="0.2.0">
<description>for retrieving climate data</description>
<requirements>
<requirement type="package" version="3">python</requirement>
<requirement type="package" version="0.5.1">cdsapi</requirement>
Expand Down

0 comments on commit de74da4

Please sign in to comment.