Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for issue #54 #65

Merged
merged 2 commits into from
Feb 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading