Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check_met, check_prad and check_land: New Helper Functions #84

Open
rburghol opened this issue Sep 3, 2022 · 0 comments
Open

check_met, check_prad and check_land: New Helper Functions #84

rburghol opened this issue Sep 3, 2022 · 0 comments

Comments

@rburghol
Copy link
Collaborator

rburghol commented Sep 3, 2022

  • cbp: see this script (which is the preferred way of calling all these since it loads hspf.config for you) cbp helper function and hspf_config #69
  • check_land
    • Fn: Checks to see if a wdm file has been created indicating that this land segment/land use combo has completed for the scenario in question.
    • path: run/useful/check_land
    • Use: cbp check_land [scenario] [river segment outlet]
    • Ex: cbp check_land vadeq_2021 J
  • get_config
    • Fn: gets the contents of the block from a river or land config file
    • path: /usr/local/bin/get_config
    • Use: `[cbp] get_config scenario module(river/land/script) varname
    • Ex: cbp get_config vadeq_2021 river IOVARS
    • output: p600
    • Ex 2(script): cbp get_config vadeq_2021 script BASINS
    • output: JL3_7090_7150
    • Ex 2(script): cbp get_config vadeq_2021 script all
    • output:
  • check_met
    • Fn: looks into the met directory to see if a given rivers land segments have met WDMs for the requested met scenario
    • Use: cbp check_met [met scenario] [basin]
    • Ex (met for entire Potomac, scenario nldas1221): cbp check_met nldas1221 P
      • Note: the met scenario is NOT equivalent name to the river/land scenario.
      • To find the name of a met scenario for a given river or land scenario use get_config:
        • river met: cbp get_config vadeq_2021 river METEOROLOGY
        • land met: cbp get_config vadeq_2021 land METEOROLOGY
        • Can even set a variable with the output like so:
          • met_scen=`cbp get_config vadeq_2021 land METEOROLOGY
          • echo $met_scen
          • nldas1221
PROJECT_HOME=/opt/model/p6/vadeq
MY_HOME=run_bhatt
SCRIPT_DIR=OneCommandWSM_P6_STRLOAD_SCENCF
MODEL_FILES_GROUP=allmodelers
MODEL_VERSION_CODE=cbp-6.0
HSP_VERSION=hspf # hsp2 or hspf
INFEXP=1
LAND_QUIET=1
N_SPIN_MONTHS=360
CHECK_SLURM=1
REMOVE_SLURM=1
...
@rburghol rburghol changed the title New Helper Functions check_met, check_prad and check_land: New Helper Functions Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant