GithubHelp home page GithubHelp logo

vb6hobbyst7 / tnc-pilotproject Goto Github PK

View Code? Open in Web Editor NEW

This project forked from samzipper/tnc-pilotproject

0.0 1.0 0.0 197.18 MB

Repository for UVic/Foundry Spatial/TNC pilot project in California

License: GNU Affero General Public License v3.0

R 0.83% Python 0.08% Shell 0.01% VBA 99.08%

tnc-pilotproject's Introduction

TNC-PilotProject

Repository for UVic/Foundry Spatial/TNC pilot project in California.

Some notes on the various scripts:

There is a rough (but not prescribed) order in which the various models contained in this directory should be run because initial conditions and model parameters are 'daisy-chained' from one to the next. For instance, the steady-state output is used as initial conditions and to provide parameter values for the transient model.

Here is an overview of the recommended sequence and relevant scripts:

  1. Steady-state model
    • MODFLOW_Navarro-SteadyState.py = create and run steady-state model
    • MODFLOW_HTC_Navarro_SetUpSteadyStateWithPumping.py = create subdirectories needed to run pumping scenarios on a high-throughput computing system. MODFLOW_Navarro-SteadyState.py must be run on your HTC machine before running this script.
      • launch_allRuns.sl = script to deploy all pumping runs (sbatch launch_allRuns.sl)
      • launch_thisRun_(version).sh = script to launch an individual model run, which is copied into each subdirectory
      • Navarro-SteadyState_Template_(version).nam = template for NAM file so that subdirectories can share input files.
    • MODFLOW_HTC_CheckFailure.py = check whether any models failed to converge.
    • MODFLOW_HTC_Navarro_(stream BC)-SummarizeLeakage.py = postprocess and inspect MODFLOW model output.
    • MODFLOW_Navarro-SteadyState-WithPumping.py = pump an individual well and look at the output. MODFLOW_Navarro-SteadyState.py must be run on the machine before running this script.
  2. Transient model
    • MODFLOW_Navarro-Transient-SpinUp.py = run a long spin-up simulation. MODFLOW_Navarro-SteadyState.py must be run on the machine before running this script.
    • MODFLOW_HTC_Navarro_SetUpTransientWithPumping.py = create subdirectories needed to run pumping scenarios on a HTC system. MODFLOW_Navarro-Transient-SpinUp.py must be run before running this script (can be run on a different machine, as the appropriate outputs are tracked).
      • launch_thisRun.sh = script to launch an individual model run, which is copied into each subdirectory
      • postprocess_thisRun_(stream BC).py = script to postprocess an individual model run, which is copied into each subdirectory
      • launch_allRuns.sl = script to deploy all pumping runs (sbatch launch_allRuns.sl), which includes postprocessing
      • postprocess_allRuns.sl = script to deploy all postprocessing; this shouldn't be necessary since launch_allRuns.sl now includes postprocessing.
    • MODFLOW_HTC_Navarro_SetUpTransientWithPumping-AddMoreRuns.py = supplement the subdirectories created with MODFLOW_HTC_Navarro_SetUpTransientWithPumping.py if there are additional wells you want to create and run.
    • MODFLOW_HTC_CheckFailure.py = check whether any models failed to converge.
    • MODFLOW_HTC_Navarro_TransientSummarizeLeakage.R = combines postprocessed results from individual MODFLOW folders into a single file.
    • MODFLOW_HTC_Navarro_CalculateCaptureFraction.R = Calculate the capture fraction based on the postprocessed output from the HTC runs.
  3. Analytical model
    • Navarro_DepletionApportionment.R = calculate depletion apportionment equations
      • _MaskDryStreams = apply a mask of dry streams to the steady-state model to only apportion depletion into flowing reaches. This is only relevant when (i) using the SFR package AND (ii) not including any overland flow.
    • Navarro_Analytical_Transient.R = calculate streamflow depletion for each stream reach and pumping well. Needs output from Navarro_DepletionApportionment.R
      • _DetermineSimulationLength.R = estimate analytical depletion for a long time to figure out when it asymptotes. Needs output from Navarro_DepletionApportionment.R
  4. Model comparison
    • Navarro_CompareMODFLOWtoDepletionApportionment_SteadyState.R = compare MODFLOW and analytical results for steady-state model.
    • Navarro_CompareMODFLOWtoDepletionApportionment_Transient.R = compare MODFLOW and analytical results for transient model.

tnc-pilotproject's People

Contributors

samzipper avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.