comparison c3s.sh @ 1:bd153c794da1 draft

planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/c3s commit de74da48cc04c0cb261d07c451d00598beb834d9
author climate
date Thu, 08 Feb 2024 17:58:54 +0000
parents 250554670f72
children
comparison
equal deleted inserted replaced
0:250554670f72 1:bd153c794da1
5 cat *.grib > tmp.grib 5 cat *.grib > tmp.grib
6 cdo setgridtype,regular tmp.grib tmpg.grib 6 cdo setgridtype,regular tmp.grib tmpg.grib
7 cdo -f nc -t ecmwf copy tmpg.grib tmp.nc 7 cdo -f nc -t ecmwf copy tmpg.grib tmp.nc
8 elif [ -f download.zip ]; then 8 elif [ -f download.zip ]; then
9 unzip download.zip 9 unzip download.zip
10 cat *.grib > tmp.grib 10 files=(*.nc)
11 cdo setgridtype,regular tmp.grib tmpg.grib 11 if [ -e "${files[0]}" ]; then
12 cdo -f nc -t ecmwf copy tmpg.grib tmp.nc 12 mv ${files[0]} tmp.nc
13 else
14 cat *.grib > tmp.grib
15 cdo setgridtype,regular tmp.grib tmpg.grib
16 cdo -f nc -t ecmwf copy tmpg.grib tmp.nc
17 fi
13 elif [ -f download.grib ]; then 18 elif [ -f download.grib ]; then
14 cdo -f nc -t ecmwf copy download.grib tmp.nc 19 cdo -f nc -t ecmwf copy download.grib tmp.nc
15 elif [ -f download.nc ]; then 20 elif [ -f download.nc ]; then
16 mv download.nc tmp.nc 21 mv download.nc tmp.nc
17 else 22 else