comparison cads.sh @ 0:b768e517a7d0 draft default tip

"planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/cads commit 778688ee8d14e22b00b648858ad9bd1c2f46b1e0"
author climate
date Sat, 19 Jun 2021 18:35:50 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:b768e517a7d0
1 #!/usr/bin/env bash
2
3 if [ -f download.tar.gz ]; then
4 tar zxvf download.tar.gz
5 cat *.grib > tmp.grib
6 cdo setgridtype,regular tmp.grib tmpg.grib
7 cdo -f nc -t ecmwf copy tmpg.grib tmp.nc
8 elif [ -f download.zip ]; then
9 unzip download.zip
10 cat *.grib > tmp.grib
11 cdo setgridtype,regular tmp.grib tmpg.grib
12 cdo -f nc -t ecmwf copy tmpg.grib tmp.nc
13 elif [ -f download.grib ]; then
14 cdo -f nc -t ecmwf copy download.grib tmp.nc
15 elif [ -f download.nc ]; then
16 mv download.nc tmp.nc
17 else
18 echo "No data found! Check your request and/or credentials."
19 fi