{"id":24503352,"url":"https://github.com/pointblue/what","last_synced_at":"2025-08-22T22:20:42.871Z","repository":{"id":230464604,"uuid":"679839985","full_name":"pointblue/WHAT","owner":"pointblue","description":"Wetland Hydrological Analysis Tool","archived":false,"fork":false,"pushed_at":"2024-03-29T22:04:49.000Z","size":6851,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-15T08:21:51.693Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pointblue.github.io/WHAT/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pointblue.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-17T18:30:08.000Z","updated_at":"2024-03-29T21:40:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"6721fa11-416c-4d42-8797-b9d9c1b4ae01","html_url":"https://github.com/pointblue/WHAT","commit_stats":null,"previous_names":["pointblue/what"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/pointblue/WHAT","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pointblue%2FWHAT","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pointblue%2FWHAT/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pointblue%2FWHAT/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pointblue%2FWHAT/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pointblue","download_url":"https://codeload.github.com/pointblue/WHAT/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pointblue%2FWHAT/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271710525,"owners_count":24807684,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-22T02:00:08.480Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-01-21T23:16:58.213Z","updated_at":"2025-08-22T22:20:42.854Z","avatar_url":"https://github.com/pointblue.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\"\n)\n```\n\n# WHAT: Wetland Hydrological Analysis Tools\n\n\u003c!-- badges: start --\u003e\n`r badger::badge_repostatus('Active')`\n`r badger::badge_lifecycle(stage = 'stable')`\n`r badger::badge_license()`\n`r badger::badge_github_actions()`\n[![DOI](https://zenodo.org/badge/679839985.svg)](https://zenodo.org/doi/10.5281/zenodo.10895876)\n\u003c!-- badges: end --\u003e\n\nWHAT supports estimation of wetland water management schedules in California’s \nCentral Valley through analysis of near-real-time, automated hydrological data \nfrom Point Blue's [Water Tracker](https://www.pointblue.org/watertracker). \n\nWater Tracker uses LandSat satellite imagery to detect open surface water in the \nCentral Valley and estimate the proportion of a given spatial unit that is \nflooded on a given date. WHAT supports estimating the typical maximum extent of \nflooding in individual units across multiple water years, variation in the \ntiming and extent of flooding among water years, and estimating the timing of \nwater management schedules, such as floodup and drawdown. \n\nWHAT is intended for application to spatial units representing individual \nwetland management units, and provides support for summarizing across multiple \nunits within a larger region, such as a Groundwater Sustainability Plan area. \nKnown and likely wetland management unit boundaries have already been integrated \ninto WaterTracker's automated processing of satellite imagery, to facilitate \napplication of tools in the WHAT package, but hydrological data within custom \nboundaries can also be requested from WaterTracker by uploading a shapefile or \ndrawing a custom spatial area.\n\n## Installation\n\nYou can install the development version of WHAT from [GitHub](https://github.com/) with:\n\n``` r\n# install.packages(\"devtools\")\ndevtools::install_github(\"pointblue/WHAT\")\n```\n\n## Examples\n\nUsing sample data included, estimate the 95th percentile of the wetted area detected in each wetland management unit over all water years included:\n\n```{r example_floodstatus}\nlibrary(WHAT)\n\ndata(sampledat)\n\ndat \u003c- format_watertracker(sampledat[sampledat$WETLAND == 'SampleWetland1',]) |\u003e \n  estimate_flood_extent(prob = 0.95)\n\ndplyr::select(dat, unit, ObservedAreaWaterHa_pq) |\u003e dplyr::distinct()\n```\n\nInterpolate the extent of flooding onto a common set of dates to explore variation across water years (for an individual unit or combinations of units):\n\n```{r example_interpolate}\ndat_interp = interpolate_flooding(\n  dat[dat$unit == 'SampleWetland1_Unit2',], \n  wateryear = c(2014, 2015, 2016, 2017), \n  interval = 'week')\n\nlibrary(ggplot2)\n\nggplot(dat_interp, aes(interval, AreaWater_ac)) + \n  geom_line() +\n  facet_wrap(~wateryear, ncol = 1) +\n  scale_x_continuous(breaks = seq(1, 53, 4), \n                     labels = dat_interp$date[seq(1, 53, 4)] |\u003e format('%b-%d')) +\n  labs(x = NULL, y = 'Acres Flooded')\n```\n\nInterpret the sequence of WaterTracker observations to detect monthly modes in each unit, and optionally generalize across multiple water years to estimate the general wetland management schedule:\n\n```{r example_modes}\nestimate_flood_delta(dat[dat$unit == 'SampleWetland1_Unit2',]) |\u003e \n  estimate_wetland_mode() |\u003e \n  generalize_wetland_mode() |\u003e \n  dplyr::select(month_name, mode, weight) |\u003e \n  print(n = 12)\n\n```\n## Funding Statement\n\nThis package was originally developed as part of the project \"California Central Valley Wetlands Water Budget Tool Development\", Grant No. R21AP10037-00, a WaterSMART (Sustain and Manage America's Resources for Tomorrow) Applied Science Grant from the U.S. Bureau of Reclamation.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpointblue%2Fwhat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpointblue%2Fwhat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpointblue%2Fwhat/lists"}