{"id":28196530,"url":"https://github.com/jds485/pad_icejamfloods","last_synced_at":"2026-04-27T18:34:37.089Z","repository":{"id":37770443,"uuid":"135621017","full_name":"jds485/PAD_IceJamFloods","owner":"jds485","description":"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).","archived":false,"fork":false,"pushed_at":"2023-09-17T15:43:08.000Z","size":18823,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-09T10:07:43.326Z","etag":null,"topics":["bootstrap","flood-frequency-analysis","hydrology-statistical","ice-jam-flooding","logistic-regression","peace-athabasca-delta","regression"],"latest_commit_sha":null,"homepage":"","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jds485.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-31T18:27:27.000Z","updated_at":"2022-08-24T03:21:59.000Z","dependencies_parsed_at":"2023-02-08T04:01:56.232Z","dependency_job_id":null,"html_url":"https://github.com/jds485/PAD_IceJamFloods","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/jds485/PAD_IceJamFloods","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jds485%2FPAD_IceJamFloods","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jds485%2FPAD_IceJamFloods/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jds485%2FPAD_IceJamFloods/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jds485%2FPAD_IceJamFloods/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jds485","download_url":"https://codeload.github.com/jds485/PAD_IceJamFloods/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jds485%2FPAD_IceJamFloods/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32349812,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T17:12:42.749Z","status":"ssl_error","status_checked_at":"2026-04-27T17:12:41.658Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bootstrap","flood-frequency-analysis","hydrology-statistical","ice-jam-flooding","logistic-regression","peace-athabasca-delta","regression"],"created_at":"2025-05-16T15:18:54.415Z","updated_at":"2026-04-27T18:34:37.073Z","avatar_url":"https://github.com/jds485.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PAD_IceJamFloods\n\nThis repository provides supporting statistical analysis for three papers:\\\n1. 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).\\\n2. 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.\\\n3. 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*\\\n\nCode Repository Authors: Jared D. Smith (jared.d.smith485@gmail.com) and Jonathan R. Lamontagne (Jonathan.Lamontagne@tufts.edu)\\\nIf you have questions about the repository, please email Jared.\n\n# Description of Repository\nThis repository houses all of the necessary code to reproduce the statistical analyses presented in the above papers.\\\n\n## **block_bootstrap directory for Timoney et al. (2018)**\nThis 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.\\\n\nR 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(\u003cpackage1\u003e, \u003cpackage2\u003e))`. If versions are different, you can use the devtools package function `install_version()`.\\\n\nThe PAD_FloodAnalysis.R script assumes that all files are located and written to one directory.\\\nFlood data are loaded from the provided data file, and several cumulative flood count plots are made using that dataset.\\\nBinomial 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).\\\n\nBeltaos' regression and Mann-Kendall test are reproduced (but these are inappropriate for reasons explained in the paper).\\\nPacific decadal osciallation indicators are plotted to see if climate may affect the flood frequency (not explored further here).\\\nAutoregressive models are tested, but found to be nonstationary and are not recommended.\\\nBlock 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.\\\nThe 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.\n\n## **logistic_regression directory for Lamontagne et al. (2021)**\nThis directory corresponds to the Lamontagne et al. (2021) paper. All paper figures are provided, as well as intermediate figures not presented in the paper.\\\n\\\nPython 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`\\\n\nThe 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.\\\n\nThe 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.\n\n## **bayesian_regression directory for Smith et al.**\nThis 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.\\\n\\\nPython 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`\\\nR version 3.5.3 was used for this analysis.\n\n# License\nSee license file.\n\n# Code Repository Citation\nSmith, J.D., and J.R. Lamontagne. (2018). PAD_IceJamFloods. Online GitHub Repository. https://github.com/jds485/PAD_IceJamFloods\n[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.4474826.svg)](https://doi.org/10.5281/zenodo.4474826)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjds485%2Fpad_icejamfloods","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjds485%2Fpad_icejamfloods","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjds485%2Fpad_icejamfloods/lists"}