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