ChristinaB / landlab

Landlab codebase, wiki, and tests
http://landlab.github.io
MIT License
0 stars 1 forks source link

Update Landlab Component v2 Plan #4

Open ChristinaB opened 4 years ago

ChristinaB commented 4 years ago
ChristinaB commented 4 years ago

It looks like your fork is out-of-date with upstream/master and needs updating.

There are syntax errors in landslide_probability.py that are preventing the tests from running.

Add docstrings that demonstrate how to use the new functionality.

Add unit tests that test the new functionality that you've added.

ChristinaB commented 4 years ago
ChristinaB commented 4 years ago
ChristinaB commented 4 years ago
ChristinaB commented 4 years ago

Notes from talking to Eric:

ChristinaB commented 4 years ago

Earth Day Version

ChristinaB commented 4 years ago

Notes from Landlab call - to reoptimize

ChristinaB commented 4 years ago

Logical sequence of next steps; smallest increment documentable

OR

  1. Build unit tests for 1) statistical forcing recharge, 2) data forcing recharge, 3) statistical forcing depth, 4) data forcing depth.
ChristinaB commented 4 years ago

Things to test:

ChristinaB commented 4 years ago

Testing assertions for missing inputs:

image

ChristinaB commented 4 years ago

Discussed new sets of parameters with Erkan to parameterize De and Re based on known range of Relative Wetness 0-1 image

ChristinaB commented 4 years ago

The code updates and unit tests are here for component.py and here for the run unit test notebook, debugged for true/false options, added saturation threshold definition of 0.001 meters depth to groundwater is "saturated" for the use in RW calculations. Fixed limits on plotting. The last scenario in the unit tests is the one that sets the RW based min, max, mean, std that are used throughout the rest of the d, r, and statistical plots.

ChristinaB commented 4 years ago
ChristinaB commented 4 years ago

Build functions to create grids to for unit test functions that solve for single and variable inputs and areas - - this is to control for and solve a given set of inputs for Relative Wetness =1 for any given hydrology forcing. This is independent of the factor of safety unit test. We are doing this so we dont go crazy analyzing 7 million grid cells and proving we did it correctly.

Vision: input a real grid to create a synthetic grid that captures the statistics and range of the real area, and analyze the range of inputs outputs and parameters for a model instance unit test.

ChristinaB commented 4 years ago
ChristinaB commented 4 years ago
ChristinaB commented 4 years ago

5/15/2020 Update

  1. Asked CSDMS team for help with PR: https://github.com/landlab/landlab/pull/1180 Pull request updated: image
  2. Architected how to use HydroShare to launch a Binder environment using a Landlab development space. Unit_test_demo.ipynb can be launched here: Binder this is easier than using Binder when the branch is not yet merged with the distributed master version of landlab.
  3. Sorting out instructions for developing access to interactive coding that enables software developers to test code with domain scientists: Updated https://github.com/waterhackweek/learning-resources/blob/master/docs/hydroshare_binder.md
ChristinaB commented 4 years ago
ChristinaB commented 4 years ago

Binder for Landlab - latest version on github/landlab

The end goal is to have these three files (and others) working with this Binder.

Launch the Landlab Binder https://mybinder.org/v2/gh/ChristinaB/landlab/ChristinaB-landslide by clicking on the badge below.

don't click on this now Binder don't use this now The files that will be used in the Landlab PR are only, will only work once these three are finalized and in sync with Landlab: Unit_Test_Landslides.ipynb Synthetic_Landslide_Component_Default.ipynb Synthetic_Landslide_Component_Options.ipynb

Binder for Development Testing - pre Landlab integration

We have to make a new Binder and Edit all the rest of the files and upload to the bindertest-landslide branch. The .py files are in this location only to make the Notebooks run on Binder before the Landlab PR and release. Click here to launch a binder to test and compare in a binder with Landlab installed, but the Notebooks set up to import the changed files from within the Landslide tutorials folder. click on this badge Binder) click on this badge This takes a while to build.
Navigate to notebooks/tutorials/landslides

ChristinaB commented 4 years ago

How did I do that?

MyBinder.org

Github: https://github.com/ChristinaB/landlab Branch: bindertest-patch-1 Path to Notebook: https://github.com/ChristinaB/landlab/blob/bindertest-patch-1/notebooks/tutorials/landslides/Synthetic_Landslide_Component_Default-Binder4devtest.ipynb

image

ChristinaB commented 4 years ago

https://meet.jit.si/mybinder.org-2134f8d90c7e0f7a46ff9d8f9c32862b#config.startWithVideoMuted=true&config.startWithAudioMuted=true&config.prejoinPageEnabled=true

ChristinaB commented 4 years ago

‘Default’ notebook – runs just for Uniform distribution

‘Option’ notebook – runs 4 distribution options

Section 4.4 is not 'running the component'

ChristinaB commented 4 years ago

To run NOT on Binder:

  1. Add a server to your App Open With visibility. Click red grid to green at https://www.hydroshare.org/resource/6d7ef1127ad04f019fe11714daf47e02/

  2. Go to your HS resource: https://www.hydroshare.org/resource/4cac25933f6448409cab97b293129b4f/

  3. Open With - hsjp07.cigi.illinois.edu is the server running the landlab paper

1b -- get invite to the compute group to XSEDE - this connects to Open With CyberGIS for Water This is jetstream server connected to XSEDE

1c -- use CUAHSI JH for small jobs - no extra steps required.

1d -- set CSDMS as an App on HydroShare and set up user access with Eric.

ChristinaB commented 4 years ago

What drives a Landlab Landslide? A hydrology model.

How does Landlab hydro a Landslide? Recharge and Depth to Water Table.

Landlab Landslide Component Demonstration with a Synthetic Grid and implementation with Two Hydrologic Forcing Options (Depth to Groundwater and Recharge) compared using default parameters and Uniform Distribution.**

**

ChristinaB commented 4 years ago

To run Slippery Future Notebooks on HydroShare, just like the good ole days:

The CUAHSI JupyterHub is a default available on Open With. To see other servers -- for example: Add a server to your App Open With visibility. Click red grid to green at https://www.hydroshare.org/resource/6d7ef1127ad04f019fe11714daf47e02/

  1. Go to the Slippery Future HS resource: https://www.hydroshare.org/resource/4cac25933f6448409cab97b293129b4f/

  2. Open With - CUAHSI JupyterHub

  3. Select a Server: Python 3.7 Scientific with Landlab included in the software environment

  4. If default view takes you to Jupyter Lab, just replace lab in the URL to tree. Or watch a tutorial and learn to navigate with tree or lab views of Folders and Notebooks.

ChristinaB commented 4 years ago

Fixed kernel errors! 'pywin32_postinstall.py -install'