Skip to content

Commit

Permalink
update fates seed dispersal test mod
Browse files Browse the repository at this point in the history
This update implments a shell script to call ncgen
and the fates modify parameter file tooling to generate
and update the default fates parameters on the fly with
values appropriate for seed dispersal mode.
  • Loading branch information
glemieux committed Oct 17, 2023
1 parent 32acc65 commit 2896889
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
SRCDIR=`./xmlquery SRCROOT --value`
CASEDIR=`./xmlquery CASEROOT --value`
FATESROOT=$SRCDIR/src/fates
FATESPARAMFILE=$CASEDIR/fates_params_seeddisp_4x5.nc

ncgen -o $FATESPARAMFILE $FATESROOT/parameter_files/fates_params_default.cdl

$FATESROOT/tools/modify_fates_paramfile.py --O --fin $FATESPARAMFILE --fout $FATESPARAMFILE --var fates_seed_dispersal_fraction --val 0.2 --allpfts
$FATESROOT/tools/modify_fates_paramfile.py --O --fin $FATESPARAMFILE --fout $FATESPARAMFILE --var fates_seed_dispersal_max_dist --val 2500000 --allpfts
$FATESROOT/tools/modify_fates_paramfile.py --O --fin $FATESPARAMFILE --fout $FATESPARAMFILE --var fates_seed_dispersal_pdf_scale --val 1e-05 --allpfts
$FATESROOT/tools/modify_fates_paramfile.py --O --fin $FATESPARAMFILE --fout $FATESPARAMFILE --var fates_seed_dispersal_pdf_shape --val 0.1 --allpfts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
fates_paramfile = '/glade/p/cesm/cseg/inputdata/lnd/clm2/paramdata/fates_params_api.25.5.0_12pft_5x5_amazon_seeddispersal_c230925.nc'
fates_paramfile = '$CASEROOT/fates_params_seeddisp_4x5.nc'
fates_seeddisp_cadence = 1
hist_fincl1 = 'FATES_SEEDS_IN_GRIDCELL_PF', 'FATES_SEEDS_OUT_GRIDCELL_PF'

0 comments on commit 2896889

Please sign in to comment.