Skip to content

Commit

Permalink
Update figures
Browse files Browse the repository at this point in the history
  • Loading branch information
pcoddo committed Nov 4, 2021
1 parent 0fe9ff2 commit 93d7fd3
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 61 deletions.
81 changes: 29 additions & 52 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

# Boston Tides
</p>
<p align="center">
<em>Sea level rise and extreme value analysis for Boston IPCC AR6 Projections</em>
<p align="left">
<em>Sea level rise and extreme value analysis for Boston using IPCC AR6 Projections</em>
</p>

<!-- Badges -->
Expand All @@ -19,35 +19,50 @@ Authors of original R code:
- [Klaus Keller ](https://personal.ems.psu.edu/~kzk10/)
- [Ryan Sriver](https://atmos.illinois.edu/directory/profile/rsriver)

**Contact:** [Perry Oddo](https://perryoddo.com)

## Installation

Clone repository to your device:
```shell
git init
```
```shell
git clone https://github.com/pcoddo/boston-tides.git
```

Create Anaconda environment using `environment.yml` file:
```shell
conda env create -f environment.yml
conda activate tides
```

## Usage
The three Jupyter Notebooks describe how to run the code:
1. `ar6_fit_distribution.ipynb` Fits a lognormal distribution to the empirical sea level projections for Boston from the IPCC AR6.
The following Jupyter Notebooks explain how to run the analysis:

1. `ar6_fit_distribution.ipynb` Fits a lognormal distribution to the IPCC AR6 empirical sea level projections for Boston in the year 2100.
![distribution](https://raw.githubusercontent.com/pcoddo/boston-tides/main/img/distribution.png)

2. `boston_slr.ipynb` Generates uncertain rejection sampling approach to generate uncertain sea level rise scenarios consistent with the IPCC expert assessment.
2. `boston_slr.ipynb` Uses rejection sampling approach to generate uncertain sea level rise scenarios consistent with the IPCC expert assessment.
![projection](https://raw.githubusercontent.com/pcoddo/boston-tides/main/img/projection.png)

3. `boston_gev.ipynb` Performs a generalized extreme value (GEV) analysis for the Boston tide gauge using block maxima and Markov chain Monte Carlo.
3. `boston_gev.ipynb` Performs a generalized extreme value (GEV) analysis for the Boston tide gauge using block maxima and Markov chain Monte Carlo. Based on [pyextremes](https://github.com/georgebv/pyextremes) package.
![gev](https://raw.githubusercontent.com/pcoddo/boston-tides/main/img/gev.png)

## Cited works
## Dependencies
**Python** version 3.7+

**Packages:**
- ipython
- matplotlib
- scipy
- ipykernel
- scikit-learn
- statsmodels
- ipywidgets
- openpyxl
- netcdf4
- seaborn
- fitter
- easydev
- pyextremes

## Referenced works
- Lempert, R., Sriver, R. L., & Keller, K. (2012). Characterizing Uncertain Sea Level Rise Projections to Support Investment Decisions (No. CEC-500-2012-056). California Energy Commission Sacramento, CA, USA. Retrieved from http://ced.berkeley.edu/faculty/ratt/readings/ALL_THE_CLIMATE_PAPERS_2012/PoLA_revision_feb_28_2012.pdf

- Oddo, P. C., Lee, B. S., Garner, G. G., Srikrishnan, V., Reed, P. M., Forest, C. E., & Keller, K. (2017). Deep Uncertainties in Sea-Level Rise and Storm Surge Projections: Implications for Coastal Flood Risk Management. Risk Analysis. https://doi.org/10.1111/risa.12888
Expand All @@ -64,49 +79,11 @@ The three Jupyter Notebooks describe how to run the code:
## Acknowledgements
We thank the projection authors for developing and making the sea-level rise projections available, multiple funding agencies for supporting the development of the projections, and the NASA Sea-Level Change Team for developing and hosting the IPCC AR6 Sea-Level Projection Tool. Special thanks to [Gregory Garner](https://sites.google.com/site/gggarner121) for providing subset of full projections for the Boston Tide gauge.


## Table of contents

<!-- After you have introduced your project, it is a good idea to add a **Table of contents** or **TOC** as **cool** people say it. This would make it easier for people to navigate through your README and find exactly what they are looking for.
Here is a sample TOC(*wow! such cool!*) that is actually the TOC for this README. -->

- [Project Title](#project-title)
- [Demo-Preview](#demo-preview)
- [Table of contents](#table-of-contents)
- [Installation](#installation)
- [Usage](#usage)
- [Development](#development)
- [Contribute](#contribute)
- [Sponsor](#sponsor)
- [Adding new features or fixing bugs](#adding-new-features-or-fixing-bugs)
- [License](#license)
- [Footer](#footer)

## Installation
[(^)](#table-of-contents)

<!-- *You might have noticed the **Back to top** button(if not, please notice, it's right there!). This is a good idea because it makes your README **easy to navigate.***
The first one should be how to install(how to generally use your project or set-up for editing in their machine).
This should give the users a concrete idea with instructions on how they can use your project repo with all the steps.
Following this steps, **they should be able to run this in their device.**
A method I use is after completing the README, I go through the instructions from scratch and check if it is working. -->

<!-- Here is a sample instruction:
To use this project, first clone the repo on your device using the command below:
```git init```
```git clone https://github.com/navendu-pottekkat/nsfw-filter.git``` -->

## License
[MIT License](https://opensource.org/licenses/MIT)

## Questions?
**Contact:** [Perry Oddo](https://perryoddo.com)

[(Back to top)](#About)

14 changes: 7 additions & 7 deletions ar6_fit_distribution.ipynb

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions environment.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: gev
name: tides
channels:
- conda-forge
- defaults
Expand All @@ -17,4 +17,4 @@ dependencies:
- fitter
- easydev
- pyextremes
prefix: /home/poddo/.conda/envs/gev
prefix: /home/poddo/.conda/envs/tides
Binary file modified img/distribution.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified plots/fit_dist/3_lognorm_fit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 93d7fd3

Please sign in to comment.