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

HSP2 Python Implementation of HSPF SPEC-ACTIONS (withdrawals) #5

Open
9 of 17 tasks
rburghol opened this issue Jun 8, 2022 · 3 comments
Open
9 of 17 tasks

HSP2 Python Implementation of HSPF SPEC-ACTIONS (withdrawals) #5

rburghol opened this issue Jun 8, 2022 · 3 comments
Assignees

Comments

@rburghol
Copy link

rburghol commented Jun 8, 2022

Development main tracking here. Live issue on $hsp^2$ is: respec#90

  • Main code base is /opt/model/HSPsquared
  • Our fork of respec is /opt/model/HSP2fork

Overview

This issue is set up to plan and track development for a proposed "SPEC-ACTIONS" module in hsp2. Development has 2 main components:

  1. Understand the model representation of Withdrawals. What variables to set, how standard WDM withdrawals work, etc.
  2. Provide support for pre-hsp2 uci files that use SPEC-ACTIONS
  3. Provide an enhanced "next generation" type implementation for SPEC-ACTIONS
  4. Use new form spec-actions to make complex operational withdrawals.
  5. Understand how model handles releases from reaches (reservoirs).
  6. Use new form spec-actions to make complex operational releases.

Tasks

Reference

@rburghol
Copy link
Author

rburghol commented Jun 8, 2022

Where do special actions get called?

fgrep "call specl" -i hspf/lib3.2/src/hspf/*
hspf/lib3.2/src/hspf/himp.f:          CALL SPECL (OPTYP,LSNO,SPAKND,SPOPNO,DATIM,MESSU,SPIVL,
hspf/lib3.2/src/hspf/hper.f:          CALL SPECL (OPTYP,LSNO,SPAKND,SPOPNO,DATIM,MESSU,SPIVL,
hspf/lib3.2/src/hspf/hrch.f:          CALL SPECL (OPTYP,RCHNO,SPAKND,SPOPNO,DATIM,MESSU,SPIVL,
hspf/lib3.2/src/hspf/hutop.f:          CALL SPECL (OPTYP,COPYNO,SPAKND,SPOPNO,DATIM,MESSU,SPIVL,
hspf/lib3.2/src/hspf/hutop.f:          CALL SPECL (OPTYP,GENRNO,SPAKND,SPOPNO,DATIM,MESSU,SPIVL,
hspf/lib3.2/src/hspf/hutop.f:          CALL SPECL (OPTYP,PLTNO,SPAKND,SPOPNO,DATIM,MESSU,SPIVL,

@rburghol rburghol transferred this issue from HARPgroup/pydro-tools Jul 11, 2022
@rburghol rburghol changed the title HSP2 Python Implementation of HSPF HSP2 Python Implementation of HSPF SPEC-ACTIONS (withdrawals) Jul 11, 2022
@rburghol rburghol self-assigned this Jul 11, 2022
@rburghol
Copy link
Author

Find the HYDR routine in the old code base:
fgrep "HYDR" /opt/model/p53/p532c-sova/code/src/* -R|grep -i subroutine

@jdkleiner
Copy link
Member

jdkleiner commented Nov 9, 2022

Next Steps (11/9/22):

  • Work off of specdev branch
    • verified we're able to install and tests run with no errors
  • We know how to modify the ts variables, now we want to be able to modify ts dictionary values without manually resetting ts
  • Now we need to know how to modify the state variable (i.e. lowercase outdgt)
  • Test setting of values inside of SPECL.py
    • Rob may set up an equation function to do this

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

3 participants