Commit a14ad85d authored by jan vogelsang's avatar jan vogelsang

Fixed preprocessing of data

parent 841a980c
gridtype = lonlat
gridsize = 6481800
xsize = 3601
ysize = 1800
xfirst = 0.00
xinc = 0.1
yfirst = -89.95
yinc = 0.1
gridtype = lonlat
gridsize = 6481800
xsize = 3601
ysize = 1800
xfirst = -180
xinc = 0.1
yfirst = -89.95
yinc = 0.1
This source diff could not be displayed because it is stored in LFS. You can view the blob instead.
#!/bin/bash
start=$(($3 % 360 - 180))
sed -i -e "s/xfirst.*/xfirst\t = $start/g" custom_grid.txt
cdo -f nc4 -z zip -setreftime,'1970-01-01','00:00:00' -settunits,hours -setcalendar,standard -remapnn,custom_grid.txt $1 $2
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