Skip to content

Commit

Permalink
lpj-guess data
Browse files Browse the repository at this point in the history
  • Loading branch information
robkooper committed Aug 12, 2016
1 parent 07a280c commit ee00732
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
4 changes: 4 additions & 0 deletions scripts/add.data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,17 @@ DALEC="$DATADIR/dalec_EnKF_pub/input_data"
ED_INPUT="$DATADIR/ed_inputs"
FAO_INPUT="$DATADIR/faoOLD"
OGE2_INPUT="$DATADIR/oge2OLD"
LPJ_GUESS="$DATADIR/lpj-guess"

# ED inputs
addInputFile "${FQDN}" "294" "" "${ED_INPUT}/glu"
addInputFile "${FQDN}" "295" "" "${ED_INPUT}"
addInputFile "${FQDN}" "297" "FAO_" "${FAO_INPUT}"
addInputFile "${FQDN}" "296" "OGE2_" "${OGE2_INPUT}"

# LPJ-GUESS inputs
addInputFile "${FQDN}" "1000000903" "cru_1901_2006.bin" "${LPJ_GUESS}"

# [76] EBIFARM
addInputFile "${FQDN}" "7" "ED_MET_DRIVER_HEADER" "${SITES}/ebifarm"
addInputFile "${FQDN}" "6" "ebifarm.lat40.0lon-88.0.css" "${SITES}/ebifarm"
Expand Down
7 changes: 7 additions & 0 deletions scripts/install_pecan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,13 @@ if [ ! -e ${HOME}/inputs ]; then
rm inputs.tgz
fi

if [ ! -e ${HOME}/lpj-guess/cru_1901_2006.bin ]; then
if [ ! -d ${HOME}/lpj-guess ]; then
mkdir ${HOME}/lpj-guess
fi
curl -s -o ${HOME}/lpj-guess/cru_1901_2006.bin http://isda.ncsa.illinois.edu/~kooper/PEcAn/data/cru_1901_2006.bin
fi

if [ ! -e ${HOME}/plot ]; then
curl -s -o plot.tgz http://isda.ncsa.illinois.edu/~kooper/EBI/plot.tgz
tar zxf plot.tgz
Expand Down
5 changes: 3 additions & 2 deletions scripts/load.bety.sh
Original file line number Diff line number Diff line change
Expand Up @@ -177,16 +177,17 @@ PG_OPT="${PG_OPT} -v ON_ERROR_ROLLBACK=on"
EMPTY_TABLES="formats machines mimetypes users"

# list of all tables, schema_migrations is ignored since that
# will be imported during creaton
# will be imported during creaton. Order is semi important.
CLEAN_TABLES="benchmark_sets benchmarks"
CLEAN_TABLES="${CLEAN_TABLES} citations covariates cultivars dbfiles"
CLEAN_TABLES="${CLEAN_TABLES} citations covariates cultivars"
CLEAN_TABLES="${CLEAN_TABLES} ensembles entities formats inputs"
CLEAN_TABLES="${CLEAN_TABLES} likelihoods machines managements metrics"
CLEAN_TABLES="${CLEAN_TABLES} methods mimetypes models modeltypes"
CLEAN_TABLES="${CLEAN_TABLES} pfts posteriors priors reference_runs"
CLEAN_TABLES="${CLEAN_TABLES} runs sites species treatments"
CLEAN_TABLES="${CLEAN_TABLES} variables workflows"
CLEAN_TABLES="${CLEAN_TABLES} projects sitegroups"
CLEAN_TABLES="${CLEAN_TABLES} dbfiles"

# tables that have checks that need to be looked at.
CHECK_TABLES="traits yields"
Expand Down

0 comments on commit ee00732

Please sign in to comment.