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 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