Commit 2920fb6e authored by Willi Rath's avatar Willi Rath

Let CDO create a relative time axis

parent b2351c90
...@@ -4,7 +4,8 @@ function convert_grb_to_netcdf { ...@@ -4,7 +4,8 @@ function convert_grb_to_netcdf {
grb_file=$1 grb_file=$1
nc_file="$(echo ${grb_file} | rev | cut -d. -f2- | rev)".nc nc_file="$(echo ${grb_file} | rev | cut -d. -f2- | rev)".nc
tmp_nc_file=${nc_file}_tmp tmp_nc_file=${nc_file}_tmp
cdo -t ecmwf -f nc -copy ${grb_file} ${tmp_nc_file} cdo -r -t ecmwf -f nc -copy ${grb_file} ${tmp_nc_file}
rm -f ${nc_file}
nccopy -7 -d1 -s ${tmp_nc_file} ${nc_file} nccopy -7 -d1 -s ${tmp_nc_file} ${nc_file}
rm -f ${tmp_nc_file} rm -f ${tmp_nc_file}
} }
......
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