Checking for non-preferred file/folder path names (may take a long time depending on the number of files/folders) ...
This resource contains some files/folders that have non-preferred characters in their name. Show non-conforming files/folders.
This resource contains content types with files that need to be updated to match with metadata changes. Show content type files that need updating.
Authors: |
|
|
---|---|---|
Owners: |
|
This resource does not have an owner who is an active HydroShare user. Contact CUAHSI (help@cuahsi.org) for information on this resource. |
Type: | Resource | |
Storage: | The size of this resource is 3.7 MB | |
Created: | Aug 12, 2025 at 11:09 p.m. (UTC) | |
Last updated: | Aug 12, 2025 at 11:29 p.m. (UTC) | |
Citation: | See how to cite this resource |
Sharing Status: | Public |
---|---|
Views: | 26 |
Downloads: | 0 |
+1 Votes: | Be the first one to this. |
Comments: | No comments (yet) |
Abstract
The purpose of this code is to identify periods of three-, four-, and 10-year extreme low natural flow at Lee Ferry. The code also identifies when the rolling sum of ten consecutive values sums to less than 75 million acre-feet (maf). These values are pulled out from the traces and ensembles in the HydrologyScenarios.xlsx file (Salehabadi, 2024). The results of this code are used to create scenarios of extreme low inflow to Lake Mead.
Description of Contents
1.HydrologyScenarios.xlsx is the input for all three codes. This workbook comes from Salehabadi et al, 2024).
2. MinimumHydrologyScenarios - Folder contains the Python code (MinimumHydrologyScenarios.py) used to find 3-, 4-, and 10-year minimum flows.
3. Old - Folder with older versions of Python code.
4. MinimumHydrologyScenarios/Results - Subfolder that contains results in Excel files, e.g., 3yearsMinimumHydrologyResults.xlsx.
The README.md file below shows an in-depth description of the contents and reproducibility.
Contact Information
Authors
Anabelle Myers. Email: A02369941@aggies.usu.edu.
David E. Rosenberg. Email: david.rosenberg@usu.edu
Subject Keywords
Coverage
Spatial
Content
README.md
Supporting Extreme Low Reservoir Infows for Immersive Model for Lake Mead
This code identifies periods of three-, four-, and 10-year extreme low natural flow at Lee Ferry. The code also identifies when the rolling sum of ten consecutive values sums to less than 75 million acre-feet (maf). These values are pulled out from the traces and ensembles in the HydrologyScenarios.xlsx file (Salehabadi, 2024). The results of this code are used to create scenarios of extreme low inflow to Lake Mead.
Description of Contents
- HydrologyScenarios.xlsx is the input for all three codes. This workbook comes from Salehabadi et al, 2024). A furthur description can be found below in the Input section.
- MinimumHydrologyScenarios - Folder contains the Python code (MinimumHydrologyScenarios.py) used to find 3-, 4-, and 10-year minimum flows.
- Old - Folder with older versions of Python code.
- MinimumHydrologyScenarios/Results - Subfolder that contains results in Excel files, e.g., 3yearsMinimumHydrologyResults.xlsx.
Code (MinimumHydrologyScenarios / MinimumHydrologyScenarios.py)
First the code takes user input to define the number of consecutive years to use for calculations. Then the window and flow rates of the minimum consecutive years are found for every trace in every ensemble. The ensembles with 'ISM' in the title only iterates through one trace. This trace is duplicated and vertically stacked then the minimum consecutive years window sum is calculated. The ensemble title, trace title, starting position, and average for the windows are stored and outputted to Excel. In-depth descriptions can be found in the comments in the script. Notes: Only one trace in the 'ISM' ensembles are calculated because the 'ISM' traces have the same data in the same order, but offset by one cell. Doing this rids the results of redundant data.
Output (MinimumHydrologyScenarios / Results / 'X'yearsMinimumHydrologyResults.xlsx)
The results for the minimum consecutive years are stored in Excel files in the 'Results' folder located in the 'MinimumHydrologyScenarios' folder. 'X' represents the number of consecutive years the user chooses. The results only are overwritten when the user chooses the same number.
Directions to Reproduce Results
Software Needed
The software applications needed to reproduce these results are Microsoft Excel, and PyCharm.
Reproducibility
To reproduce the results for MinimumHydrologyScenarios.py, follow the directions below. 1. Install Microsoft Excel. - Search 'https://excel.cloud.microsoft/' in a search engine. - Sign in or create an account. - If Excel is not purchased, follow Microsofts provided instructions to purchase Excel. - Open Excel and sign in. 2. Install Python. - Search 'https://www.python.org/' in a search engine. - Scroll down to the 'Download' section and click the latest Python version. - Scroll down to the 'Files' section. - Read the 'Description' column in the table, choose the best description for the device in use, then follow the row to the left to the 'Version' column and click on the installer option. - Go to the device's downloads and find the installer chosen in step 2d. - Click on the installer and follow the directions. 3. Install Pycharm - Search 'https://www.jetbrains.com/pycharm/' in a search engine. - Select 'Download'. - Ensure the .dmg is correct for the device in use, then select 'Download'. - Go to the device's downloads and find the installer chosen in step 3c. - Select the installer and follow the directions. 4. Download this repository. - Scroll to the top of this page and select 'Code'. - Select 'Download ZIP'. - Go to the device's downloads and select 'ImmersiveModelLakeMead-main'. This will unzip the file. 5. Open the Python script. - In the 'ImmersiveModelLakeMead-main' file, select the folder 'MinimumHydrologyScenarios'. - Open 'MinimumHydrologyScenarios.py' with Pycharm. - Follow the directions. - Select 'MinimumHydrologyScenarios.py'. 6. Select a Python interpreter. 7. Open settings in Pycharm. - Select 'Project:MinimumHydrologyScenarios', 'Python Interpreter', then "+". - In the search bar, type, 'pandas'. Select 'pandas' then 'Install Package'. - Repeat step 5b. with 'openpyxl' instead of 'pandas'. 8. Click the green play arrow at the top of the page. 9. Follow the directions at the bottom of the page. 10. The results will be stored in a created excel file in the 'Results' folder in the 'MinimumHydrologySenarios' folder.
Contact Information
Authors
Anabelle Myers. Email: A02369941@aggies.usu.edu.
David E. Rosenberg. Email: david.rosenberg@usu.edu
Requested Citation
Myers, Anabelle (2025). "Supporting Extreme Low Reservoir Infows for Immersive Model for Lake Mead." Github. https://github.com/Anabelle374/ImmersiveModelLakeMead.
Related Resources
This resource updates and replaces a previous version | Myers, A., D. E. Rosenberg (2025). Code Efforts Supporting 'Immersive Model for Lake Mead Based on the Principle of Division of Reservoir Inflow', HydroShare, http://www.hydroshare.org/resource/27efb472ec9f4632910719b1f0c74fa2 |
How to Cite
This resource is shared under the Creative Commons Attribution CC BY.
http://creativecommons.org/licenses/by/4.0/
Comments
There are currently no comments
New Comment