source: TOOLS/CMIP6_FORCING/NITROGEN/nitrogen.sh @ 3387

Last change on this file since 3387 was 3387, checked in by oboucher, 7 years ago

Uploading scripts to generale Nitrogen deposition maps for CMIP6
We do not use this forcing dataset in our main AO model.

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