#!/bin/bash
echo "Enter the Year"
read year
echo "Processing Temperature, u and v wind in $year"

cdo -b F64 mergetime /bdd/ERA40/NETCDF/4xdaily/AN_PL/${year}/t*.nc t${year}.nc
cdo -b F64 mergetime /bdd/ERA40/NETCDF/4xdaily/AN_PL/${year}/u*.nc u${year}.nc
cdo -b F64 mergetime /bdd/ERA40/NETCDF/4xdaily/AN_PL/${year}/v*.nc v${year}.nc
cdo -b F64 mergetime /bdd/ERA40/NETCDF/4xdaily/AN_PV/${year}/pres*.nc pres${year}.nc


cdo -b F64  mergetime t${year}.nc u${year}.nc v${year}.nc pres${year}.nc ${year}.nc
