Skip to content

Commit

Permalink
Simplify the drq2varlist.py call and (re)naming of the json data requ…
Browse files Browse the repository at this point in the history
…est file #253.
  • Loading branch information
treerink committed Mar 21, 2019
1 parent 28bfbb9 commit dc80201
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions ece2cmor3/scripts/genecec-per-mip-experiment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -154,15 +154,10 @@ if [ "$#" -eq 5 ] || [ "$#" -eq 6 ]; then
exit
fi

# Produce the json data request variant, the so called varlist.json
./drq2varlist.py --drq cmip6-data-request/cmip6-data-request-m=${mip_label}-e=${experiment}-t=${tier}-p=${priority}/cmvme_${select_substring}*${experiment}_${tier}_${priority}.xlsx --ececonf ${model_configuration}

mkdir -p ${path_of_created_output_control_files}/file_def-compact
mv -f varlist.json ${path_of_created_output_control_files}/ece-cmip6-data-request-${mip_label}-${experiment}-${model_configuration}.json

# Create the ppt files for IFS input and estimate the Volume of the IFS output:
./drq2ppt.py --drq cmip6-data-request/cmip6-data-request-m=${mip_label}-e=${experiment}-t=${tier}-p=${priority}/cmvme_${select_substring}*${experiment}_${tier}_${priority}.xlsx

mkdir -p ${path_of_created_output_control_files}/file_def-compact
if [ -f pptdddddd0100 ]; then rm -f pptdddddd0100 ; fi # Removing the hourly / sub hourly table variables.
mv -f ppt0000000000 pptdddddd* ${path_of_created_output_control_files}

Expand All @@ -183,6 +178,9 @@ if [ "$#" -eq 5 ] || [ "$#" -eq 6 ]; then
./drq2ins.py --drq cmip6-data-request/cmip6-data-request-m=${mip_label}-e=${experiment}-t=${tier}-p=${priority}/cmvme_${select_substring}*${experiment}_${tier}_${priority}.xlsx
mv -f ./lpjg_cmip6_output.ins ${path_of_created_output_control_files}

# Produce the json data request variant, the so called varlist.json
./drq2varlist.py --drq cmip6-data-request/cmip6-data-request-m=${mip_label}-e=${experiment}-t=${tier}-p=${priority}/cmvme_${select_substring}*${experiment}_${tier}_${priority}.xlsx --ececonf ${model_configuration} --varlist ${path_of_created_output_control_files}/ece-cmip6-data-request-${mip_label}-${experiment}-${model_configuration}.json

cat volume-estimate-ifs.txt volume-estimate-nemo.txt volume-estimate-tm5.txt volume-estimate-lpj-guess.txt > ${path_of_created_output_control_files}/volume-estimate-${mip_label}-${experiment}.txt
rm -f volume-estimate-ifs.txt volume-estimate-nemo.txt volume-estimate-tm5.txt volume-estimate-lpj-guess.txt

Expand Down

0 comments on commit dc80201

Please sign in to comment.