1 | dirin1="/prodigfs/project/input4MIPs/UReading/surfaceFluxes/CMIP/NCAR-CCMI-2-0/mon" |
---|
2 | dirin2="gn/v20161207" |
---|
3 | dirout="./OUTPUT" |
---|
4 | if [ ! -d ${dirout} ] ; then mkdir ${dirout} ; fi |
---|
5 | # |
---|
6 | #--1850 climatological N deposition |
---|
7 | # |
---|
8 | drynhx=${dirin1}"/drynhx/"${dirin2}"/drynhx_input4MIPs_surfaceFluxes_CMIP_NCAR-CCMI-2-0_gn_185001-185012-clim.nc" |
---|
9 | wetnhx=${dirin1}"/wetnhx/"${dirin2}"/wetnhx_input4MIPs_surfaceFluxes_CMIP_NCAR-CCMI-2-0_gn_185001-185012-clim.nc" |
---|
10 | drynoy=${dirin1}"/drynoy/"${dirin2}"/drynoy_input4MIPs_surfaceFluxes_CMIP_NCAR-CCMI-2-0_gn_185001-185012-clim.nc" |
---|
11 | wetnoy=${dirin1}"/wetnoy/"${dirin2}"/wetnoy_input4MIPs_surfaceFluxes_CMIP_NCAR-CCMI-2-0_gn_185001-185012-clim.nc" |
---|
12 | # |
---|
13 | cdo merge $drynhx $wetnhx $dirout/CMIP6_fluxnhx_merged_clim_1850.nc |
---|
14 | cdo merge $drynoy $wetnoy $dirout/CMIP6_fluxnoy_merged_clim_1850.nc |
---|
15 | cdo expr,'fluxnhx=drynhx+wetnhx' $dirout/CMIP6_fluxnhx_merged_clim_1850.nc $dirout/CMIP6_fluxnhx_clim_1850.nc |
---|
16 | cdo expr,'fluxnoy=drynoy+wetnoy' $dirout/CMIP6_fluxnoy_merged_clim_1850.nc $dirout/CMIP6_fluxnoy_clim_1850.nc |
---|
17 | rm -f $dirout/CMIP6_fluxnhx_merged_clim_1850.nc $dirout/CMIP6_fluxnoy_merged_clim_1850.nc |
---|
18 | # |
---|
19 | # |
---|
20 | #--1850-2014 annual N deposition |
---|
21 | # |
---|
22 | drynhx=${dirin1}"/drynhx/"${dirin2}"/drynhx_input4MIPs_surfaceFluxes_CMIP_NCAR-CCMI-2-0_gn_185001-201412.nc" |
---|
23 | wetnhx=${dirin1}"/wetnhx/"${dirin2}"/wetnhx_input4MIPs_surfaceFluxes_CMIP_NCAR-CCMI-2-0_gn_185001-201412.nc" |
---|
24 | drynoy=${dirin1}"/drynoy/"${dirin2}"/drynoy_input4MIPs_surfaceFluxes_CMIP_NCAR-CCMI-2-0_gn_185001-201412.nc" |
---|
25 | wetnoy=${dirin1}"/wetnoy/"${dirin2}"/wetnoy_input4MIPs_surfaceFluxes_CMIP_NCAR-CCMI-2-0_gn_185001-201412.nc" |
---|
26 | # |
---|
27 | cdo merge $drynhx $wetnhx $dirout/CMIP6_fluxnhx_merged_annual_1850-2014.nc |
---|
28 | cdo merge $drynoy $wetnoy $dirout/CMIP6_fluxnoy_merged_annual_1850-2014.nc |
---|
29 | cdo splityear -expr,'fluxnhx=drynhx+wetnhx' $dirout/CMIP6_fluxnhx_merged_annual_1850-2014.nc $dirout/CMIP6_fluxnhx_annual_ |
---|
30 | cdo splityear -expr,'fluxnoy=drynoy+wetnoy' $dirout/CMIP6_fluxnoy_merged_annual_1850-2014.nc $dirout/CMIP6_fluxnoy_annual_ |
---|
31 | rm -f $dirout/CMIP6_fluxnhx_merged_annual_1850-2014.nc $dirout/CMIP6_fluxnoy_merged_annual_1850-2014.nc |
---|