
# check reanalysis:
month=01
day=02

for year in {2002..2013}
do
ncks -O -h -d latitude,64 -d longitude,632 -d time,56,83 /esnas/exp/ECMWF/monthly/ensforhc/6hourly/sfcWind/2014${month}${day}00/sfcWind_${year}${month}${day}00.nc ~/my_point_sfcWind.nc;
ncwa -O -a ensemble ~/my_point_sfcWind.nc ~/my_point_ensemble_sfcWind.nc;
ncwa -O -a time ~/my_point_ensemble_sfcWind.nc ~/my_point_ensemble_all28_sfcWind_${year}010200.nc;
ncks -O -h -d time,0,,4 ~/my_point_ensemble_sfcWind.nc ~/my_point_ensemble_UTM_sfcWind.nc;
ncwa -O -a time ~/my_point_ensemble_UTM_sfcWind.nc ~/my_point_ensemble_UTM0_sfcWind_${year}010200.nc;
ncks -O -h -d time,1,,4 ~/my_point_ensemble_sfcWind.nc ~/my_point_ensemble_UTM_sfcWind.nc;
ncwa -O -a time ~/my_point_ensemble_UTM_sfcWind.nc ~/my_point_ensemble_UTM6_sfcWind_${year}010200.nc;
ncks -O -h -d time,2,,4 ~/my_point_ensemble_sfcWind.nc ~/my_point_ensemble_UTM_sfcWind.nc;
ncwa -O -a time ~/my_point_ensemble_UTM_sfcWind.nc ~/my_point_ensemble_UTM12_sfcWind_${year}010200.nc;
ncks -O -h -d time,3,,4 ~/my_point_ensemble_sfcWind.nc ~/my_point_ensemble_UTM_sfcWind.nc;
ncwa -O -a time ~/my_point_ensemble_UTM_sfcWind.nc ~/my_point_ensemble_UTM18_sfcWind_${year}010200.nc;
done




# check forecasts:
month=01
for day in 02 09 16 23 30
do
ncks -O -h -d latitude,64 -d longitude,632 -d time,56,83 /esnas/exp/ECMWF/monthly/ensfor/6hourly/sfcWind/sfcWind_2014${month}${day}00.nc ~/my_point_sfcWind.nc;
ncwa -O -a ensemble ~/my_point_sfcWind.nc ~/my_point_ensemble_sfcWind.nc;
ncwa -O -a time ~/my_point_ensemble_sfcWind.nc ~/my_point_ensemble_all28_sfcWind_2014${month}${day}00.nc;
done

