HARPgroup / HSPsquared

Hydrologic Simulation Program Python (HSPsquared)
GNU Affero General Public License v3.0
1 stars 0 forks source link

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

Open rburghol opened 2 years ago

rburghol commented 2 years ago

Development main tracking here. Live issue on $hsp^2$ is: https://github.com/respec/HSPsquared/issues/90

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 commented 2 years ago

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 commented 2 years ago

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

jdkleiner commented 2 years ago

Next Steps (11/9/22):