Commit 94c67ec8 authored by chrisdane's avatar chrisdane

Paul fixed the Ndepo problem

parent 60eee01a
......@@ -201,12 +201,9 @@ jsbach_modify_forcing() {
;;
HIST)
for ((yr = YR0_jsbach; yr <= YRN_jsbach + 0; ++yr)) do
echo -e "\t\tjsbach: selecting year $yr from ${FORCING_DIR_jsbach}/Ndepo.1850-2014.nc"
cdo selyear,${yr} ${FORCING_DIR_jsbach}/Ndepo.1850-2014.nc ${FORCING_DIR_jsbach}/foo${yr}.nc >> $dumpfile 2>&1
echo -e "\t\tjsbach: selecting year $yr from ${FORCING_DIR_jsbach}/Ndepo.${yr}.nc"
cdo selyear,${yr} ${FORCING_DIR_jsbach}/Ndepo.${yr}.nc ${FORCING_DIR_jsbach}/foo${yr}.nc >> $dumpfile 2>&1
mv ${FORCING_DIR_jsbach}/foo${yr}.nc ${FORCING_DIR_jsbach}/Ndepo.${yr}.nc >> $dumpfile
echo "\$WF_jsbach=$WF_jsbach"
echo "\$work=$work"
add_to ${FORCING_DIR_jsbach}/Ndepo.${yr}.nc Ndepo.${yr}.nc
done
;;
1950)
......@@ -311,11 +308,11 @@ jsbach_prepare_forcing()
if [ $yr -le 1849 ] ; then
add_to ${jsbach_INPUT_DIR}/${RES_jsbach}/New_Hampshire_LCC/${hist_fold}/LUH_harvest_${RES_jsbach}_1850.nc \
landuseHarvest.$yr.nc
add_to ${jsbach_INPUT_DIR}/${RES_jsbach}/land_use_maps/cover_fract_${RES_jsbach}_11tiles_1850.nc cover_fract.${yr}.nc
add_to ${jsbach_INPUT_DIR}/${RES_jsbach}/land_use_maps/cover_fract_${RES_jsbach}_11tiles_1850.nc cover_fract.${yr}.nc
elif [ $yr -le 2015 ] ; then
add_to ${jsbach_INPUT_DIR}/${RES_jsbach}/New_Hampshire_LCC/${hist_fold}/LUH_harvest_${RES_jsbach}_$yr.nc \
landuseHarvest.$yr.nc
add_to ${jsbach_INPUT_DIR}/${RES_jsbach}/land_use_maps/cover_fract_${RES_jsbach}_11tiles_${yr}.nc cover_fract.${yr}.nc
add_to ${jsbach_INPUT_DIR}/${RES_jsbach}/land_use_maps/cover_fract_${RES_jsbach}_11tiles_${yr}.nc cover_fract.${yr}.nc
else
add_to ${jsbach_INPUT_DIR}/${RES_jsbach}/New_Hampshire_LCC/rcp${SCEN_NB_jsbach}/LUH_harvest_${RES_jsbach}_rcp${SCEN_NB_jsbach}_$yr.nc \
landuseHarvest.$yr.nc
......@@ -323,8 +320,11 @@ jsbach_prepare_forcing()
done
if [[ ${jsbach_VERSION} = "3.20" ]]; then
# PG: New for mpiesm-1.2.01, nitrogren input files
add_to ${jsbach_INPUT_DIR}/${RES_jsbach}/${RES_jsbach}_ndepo_CMIP_NCAR_CCMI-1-0_gr_185001-201412.nc \
Ndepo.1850-2014.nc
for ((yr = YR0_jsbach; yr <= YRN_jsbach + 0; ++yr)) do
echo -e "\t\tjsbach: selecting year $yr from ${jsbach_INPUT_DIR}/${RES_jsbach}/${RES_jsbach}_ndepo_CMIP_NCAR_CCMI-1-0_gr_185001-201412.nc"
add_to ${jsbach_INPUT_DIR}/${RES_jsbach}/${RES_jsbach}_ndepo_CMIP_NCAR_CCMI-1-0_gr_185001-201412.nc \
Ndepo.${yr}.nc
done
fi
;;
SSP*)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment