Skip to content

Commit

Permalink
number of years
Browse files Browse the repository at this point in the history
  • Loading branch information
jmframe committed Mar 24, 2024
1 parent 2aa0a29 commit 57b7e94
Show file tree
Hide file tree
Showing 4 changed files with 80 additions and 14 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ To use the analysis notebooks:
4. Activate the environment:
* ``conda activate nwm-cnn``
5. Open the Jupyter notebooks in Jupyter Lab or Notebook
6. Monify the paths to your locally downloaded data, replacing the existing path:
* ``LOC_DATA_DIR = "../2023_nwm_cnn_california/"``

# Floodbase
For more information please visit: (https://www.floodbase.com/about)
For more information please visit: (https://www.floodbase.com/about)
13 changes: 8 additions & 5 deletions figure1.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@
"outputs": [],
"source": [
"# Set up variables, etc.\n",
"LOC_DATA_DIR = \"/mnt/d/2023_nwm_cnn_california/\"\n",
"\n",
"#### User needs to modify this line to correspond to their local data, which can be downloaded from Hydroshare:\n",
"#### http://www.hydroshare.org/resource/dbf8e4c2a39a4c228db867b04f9c21ed\n",
"LOC_DATA_DIR = \"../2023_nwm_cnn_california/\"\n",
"\n",
"loc_max_daily_nwmcnn = f\"{LOC_DATA_DIR}NWM-CNN_predictions/v01_daily_max/\"\n",
"loc_huc_shp = f\"{LOC_DATA_DIR}shapefile/WBD_18_HU2_Shape/Shape/\"\n",
"loc_max_daily_huc8 = f\"{LOC_DATA_DIR}csv_files/NWM-CNN_mean_huc8\"\n",
Expand Down Expand Up @@ -293,7 +297,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -307,9 +311,8 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.18"
},
"orig_nbformat": 4
"version": "3.9.7"
}
},
"nbformat": 4,
"nbformat_minor": 2
Expand Down
66 changes: 61 additions & 5 deletions figure3.ipynb

Large diffs are not rendered by default.

11 changes: 8 additions & 3 deletions table1.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@
"from rasterio.warp import Resampling\n",
"import matplotlib.pyplot as plt\n",
"import matplotlib.lines as mlines\n",
"LOC_DATA_DIR = \"/mnt/d/2023_nwm_cnn_california/\"\n",
"\n",
"#### User needs to modify this line to correspond to their local data, \n",
"#### which can be downloaded from Hydroshare:\n",
"#### http://www.hydroshare.org/resource/dbf8e4c2a39a4c228db867b04f9c21ed\n",
"LOC_DATA_DIR = \"../2023_nwm_cnn_california/\"\n",
"\n",
"STATS_DIR = f\"{LOC_DATA_DIR}images_for_sacramento_stats/\""
]
},
Expand Down Expand Up @@ -912,7 +917,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -926,7 +931,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.18"
"version": "3.9.7"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 57b7e94

Please sign in to comment.