From 8ee4d5f7bc8ac5fcd4f2d5898fa0856d42c57c1a Mon Sep 17 00:00:00 2001 From: sam-pixalytics Date: Thu, 8 Feb 2024 07:31:12 +0000 Subject: [PATCH 1/2] Fix for issue #54 --- tools/c3s/c3s.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/tools/c3s/c3s.sh b/tools/c3s/c3s.sh index 09a7e98..5d0e5e2 100644 --- a/tools/c3s/c3s.sh +++ b/tools/c3s/c3s.sh @@ -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 From 344dd61bb5271e9e9324da11b512eecfbc9b7b2d Mon Sep 17 00:00:00 2001 From: sam-pixalytics Date: Thu, 8 Feb 2024 09:37:45 +0000 Subject: [PATCH 2/2] Updating version number and spelling mistake --- tools/c3s/c3s.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/c3s/c3s.xml b/tools/c3s/c3s.xml index 15901c3..1932df0 100644 --- a/tools/c3s/c3s.xml +++ b/tools/c3s/c3s.xml @@ -1,5 +1,5 @@ - - for retrieveing climate data + + for retrieving climate data python cdsapi