Commit 144ab6a1 authored by Willi Rath's avatar Willi Rath

Copy with cdo and compress with nccopy

parent 84e71091
......@@ -3,8 +3,10 @@
function convert_grb_to_netcdf {
grb_file=$1
nc_file="$(echo ${grb_file} | rev | cut -d. -f2- | rev)".nc
cdo -t ecmwf -f nc -copy -remapcon,r720x360 -setgridtype,regular \
${grb_file} ${nc_file}
tmp_nc_file=${nc_file}_tmp
cdo -t ecmwf -f nc -copy ${grb_file} ${tmp_nc_file}
nccopy -7 -d1 -s ${tmp_nc_file} ${nc_file}
rm -f ${tmp_nc_file}
}
export -f convert_grb_to_netcdf
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment