PAD_IceJamFloods

所属分类:自动编程
开发工具:R
文件大小:6039KB
下载次数:0
上传日期:2023-01-08 01:18:49
上 传 者sh-1993
说明:  冰塞洪水频率分析在加拿大和平阿萨巴斯卡三角洲应用。用作纸张代码寄存...
(Frequency analysis for ice jam floods applied in the Peace-Athabasca Delta, Canada. Serves as the paper code repository for Timoney et al. (2018) and Lamontagne et al. (in prep).)

文件列表:
LICENSE (1149, 2023-09-17)
bayesian_regression (0, 2023-09-17)
bayesian_regression\BayesianLogisticIJF.R (202650, 2023-09-17)
bayesian_regression\CompareBetasLogisticBayes.py (10351, 2023-09-17)
bayesian_regression\GCM_Precip.csv (11725, 2023-09-17)
bayesian_regression\GCM_Temp_Chip.csv (15551, 2023-09-17)
bayesian_regression\GCM_Temp_Smith.csv (15446, 2023-09-17)
bayesian_regression\GCM_Temp_Verm.csv (15428, 2023-09-17)
bayesian_regression\PlotProbsHistGCM.py (103947, 2023-09-17)
bayesian_regression\PlotProbsHistGCM_HistoricalY1.py (28828, 2023-09-17)
bayesian_regression\WAIC_Edits.R (4439, 2023-09-17)
bayesian_regression\cleaned_dataLMSAllYears.csv (6308, 2023-09-17)
bayesian_regression\mcmc_pairsEdits.R (17579, 2023-09-17)
bayesian_regression\utils.R (26189, 2023-09-17)
block_bootstrap (0, 2023-09-17)
block_bootstrap\BeltaosRegressionDiagnostics.png (67883, 2023-09-17)
block_bootstrap\Block5BootstrappedCumulativeFloods.pdf (329369, 2023-09-17)
block_bootstrap\Block5BootstrappedCumulativeFloods_BeltaosDataset.pdf (308437, 2023-09-17)
block_bootstrap\Block5BootstrappedCumulativeFloods_FullDataset_1900Start.pdf (389123, 2023-09-17)
block_bootstrap\Block5BootstrappedCumulativeFloods_SideBySide.pdf (637427, 2023-09-17)
block_bootstrap\Block5BootstrappedCumulativeFloods_SideBySide.png (106423, 2023-09-17)
block_bootstrap\Block5BootstrappedCumulativeFloods_SideBySide_0start_BW.png (106025, 2023-09-17)
block_bootstrap\Block5BootstrappedCumulativeFloods_SideBySide_BW.png (103549, 2023-09-17)
block_bootstrap\CumulativeFloods.png (49776, 2023-09-17)
block_bootstrap\CumulativeFloods_0start_BW.png (52138, 2023-09-17)
block_bootstrap\CumulativeFloods_BW.png (50109, 2023-09-17)
block_bootstrap\Figure1.pdf (6406, 2023-09-17)
block_bootstrap\Figure2.pdf (5689, 2023-09-17)
block_bootstrap\Figure3.pdf (636526, 2023-09-17)
block_bootstrap\FloodData.csv (6365, 2023-09-17)
block_bootstrap\GumbelCheck.png (29589, 2023-09-17)
block_bootstrap\GumbelCheck_Belt.png (29700, 2023-09-17)
block_bootstrap\GumbelCheck_Full1900Start.png (26259, 2023-09-17)
block_bootstrap\MovingWindowBinomialTest.png (62959, 2023-09-17)
block_bootstrap\MovingWindowGeometricWaitingTime.png (68989, 2023-09-17)
... ...

# PAD_IceJamFloods This repository provides supporting statistical analysis for three papers:\ 1. Timoney, K., J.D. Smith, J.R. Lamontagne, and M. Jasek. (2018). [*Discussion of "Frequency of ice-jam flooding of Peace-Athabasca Delta" by S. Beltaos*](https://doi.org/10.1139/cjce-2018-0409) Canadian Journal of Civil Engineering, 46(3).\ 2. Lamontagne, J.R., M. Jasek, and J.D. Smith. (2021). [*Coupling physical understanding and statistical modeling to estimate ice jam flood frequency in the northern Peace-Athabasca Delta under climate change*](https://doi.org/10.1016/j.coldregions.2021.103383) Cold Regions Science and Technology, 192.\ 3. Smith, J.D., J.R. Lamontagne, and M. Jasek. (submitted to Water Resources Research). *Considering Uncertainty of Historical Ice Jam Flood Records in a Bayesian Frequency Analysis for the Peace-Athabasca Delta*\ Code Repository Authors: Jared D. Smith (jared.d.smith485@gmail.com) and Jonathan R. Lamontagne (Jonathan.Lamontagne@tufts.edu)\ If you have questions about the repository, please email Jared. # Description of Repository This repository houses all of the necessary code to reproduce the statistical analyses presented in the above papers.\ ## **block_bootstrap directory for Timoney et al. (2018)** This directory corresponds to the Timoney et al. (2018) paper. All output data and figures are provided, as well as intermediate figures and additional statistical tests not presented in the paper. Note that some of these statistical tests are not recommended by the authors.\ R 3.5.0 was used for this analysis. The requirements.txt file provides the packages and versions used for this analysis. If needed, you can install these packages using `install.packages(c(, ))`. If versions are different, you can use the devtools package function `install_version()`.\ The PAD_FloodAnalysis.R script assumes that all files are located and written to one directory.\ Flood data are loaded from the provided data file, and several cumulative flood count plots are made using that dataset.\ Binomial exact tests and geometric distribution-based tests are used to compare to Beltaos' t-tests (but they are not appropriate tests to use because of nonstationarity in the probability of a flood over the period of record).\ Beltaos' regression and Mann-Kendall test are reproduced (but these are inappropriate for reasons explained in the paper).\ Pacific decadal osciallation indicators are plotted to see if climate may affect the flood frequency (not explored further here).\ Autoregressive models are tested, but found to be nonstationary and are not recommended.\ Block bootstrapping (preferred method for this paper) is used, and hypothesis tests are performed using the bootstrapped data. Additional tests not presented in the paper are provided for the maximum length of time before seeing a flood in the regulated era.\ The Mann-Kendall test as used in Beltaos is applied to the bootstrapped data to illustrate the affect of stochastic variability on the results of the test. ## **logistic_regression directory for Lamontagne et al. (2021)** This directory corresponds to the Lamontagne et al. (2021) paper. All paper figures are provided, as well as intermediate figures not presented in the paper.\ \ Python 3.7.4 was used for this analysis. The requirements.txt file provides the packages and versions used for this analysis. If needed, you can install these using `pip install -r requirements.txt`\ The utils.py and utils_figures.py scripts load user-defined functions that are used for this analysis. These functions depend on Jared's [firth_regression](https://gist.github.com/jds485/fd737a8314d45485f7e11f588baf88b9) function, which was forked and modified from John Lees' Gist. Click the provided link and place that function script into a directory of your choice. Place that directory name into the utils.py script where os.chdir is located.\ The example.py script assumes that all files are written to the .\PAD_IceJamFloods\logistic_regression directory. This script takes up to 5 hours to run. The resulting data file is about 39 GB. We estimate that a machine with 16 GB RAM or more is required to run this script. This script will generate many figures to the plotting window, some of which were not used in the paper. We saved the final paper figures in the PaperFigures directory. ## **bayesian_regression directory for Smith et al.** This directory corresponds to the Smith et al. paper. The code in that directory may be run to generate all of the paper figures, as well as intermediate figures not presented in the paper. This code takes about 4 hours to run on an 8-core machine with at least 16 GB RAM.\ \ Python 3.10.8 was used for this analysis. The requirements.txt file in the logistic_regression folder provides the packages used for this analysis. If needed, you can install these using `pip install -r requirements.txt`\ R version 3.5.3 was used for this analysis. # License See license file. # Code Repository Citation Smith, J.D., and J.R. Lamontagne. (2018). PAD_IceJamFloods. Online GitHub Repository. https://github.com/jds485/PAD_IceJamFloods [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.4474826.svg)](https://doi.org/10.5281/zenodo.4474826)

近期下载者

相关文件


收藏者