{"id":28553785,"url":"https://github.com/mikejohnson51/hydrodata","last_synced_at":"2025-07-28T09:09:40.702Z","repository":{"id":102461627,"uuid":"112221493","full_name":"mikejohnson51/HydroData","owner":"mikejohnson51","description":"An R 📦 for finding and getting geospatial earth systems data","archived":false,"fork":false,"pushed_at":"2019-01-17T06:36:26.000Z","size":250672,"stargazers_count":41,"open_issues_count":3,"forks_count":5,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-07-08T00:37:53.546Z","etag":null,"topics":["aoi","climate","dataset","hydrology","noaa","r","usgs","weather"],"latest_commit_sha":null,"homepage":"https://mikejohnson51.github.io/HydroData/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mikejohnson51.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,"governance":null}},"created_at":"2017-11-27T16:39:08.000Z","updated_at":"2024-09-09T15:36:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"e741ec76-c2dc-44c9-9716-8c033c942b81","html_url":"https://github.com/mikejohnson51/HydroData","commit_stats":{"total_commits":233,"total_committers":5,"mean_commits":46.6,"dds":0.296137339055794,"last_synced_commit":"6b7f08656d7299bca3a544652cb69ae064049d41"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mikejohnson51/HydroData","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikejohnson51%2FHydroData","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikejohnson51%2FHydroData/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikejohnson51%2FHydroData/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikejohnson51%2FHydroData/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mikejohnson51","download_url":"https://codeload.github.com/mikejohnson51/HydroData/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikejohnson51%2FHydroData/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267490522,"owners_count":24095976,"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-07-28T02:00:09.689Z","response_time":68,"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":["aoi","climate","dataset","hydrology","noaa","r","usgs","weather"],"created_at":"2025-06-10T04:12:43.509Z","updated_at":"2025-07-28T09:09:40.680Z","avatar_url":"https://github.com/mikejohnson51.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HydroData: Earth Systems Data in R \u003cimg src=\"man/figures/logo.png\" width=160 height = 120 align=\"right\" /\u003e\n\n[![travis](https://travis-ci.org/mikejohnson51/HydroData.svg?branch=master)](http://travis-ci.org/mikejohnson51/HydroData)  [![DOI](https://zenodo.org/badge/112221493.svg)](https://zenodo.org/badge/latestdoi/112221493)\n\n**HydroData** is designed to help (1) find, (2) get, (3) visualize, and (4) format disparate earth systems data through a core language (R); a common geospatial reference (ESPG:4629) ; and unifying vocabulary built around querying data by an area of interest (AOI). The package supports access to 20+ National/Global data sources. \n\nAll functions are designed to work with the [AOI](https://mikejohnson51.github.io/AOI/) package and magrittr pipe operation `%\u003e%` allowing successive HydroData calls to be directly chained to an area of interest:\n\n|**Number**|**Dataset**                 | **Description**                                                            | **Format**                       |\n|----------|----------------------------| ---------------------------------------------------------------------------|----------------------------------|\n|1         | **GHCN**                   | Global Historical Climate Network                                          | Vector point                     |\n|2         | **International Airports** | OpenFlights Geo-database                                                   | Vector point                     |\n|3         | **NID**                    | National Inventory of Dams (USACE)                                         | Vector point                     |\n|4         | **NWIS**                   | National Water Information System Site Index                               | Vector point                     |\n|5         | **Snotel**                 | The NRCS Snow Measurement Stations                                         | Vector point                     |\n|6         | **GagesII**                | Geospatial Attributes of Gages for Evaluating Streamflow                   | Vector point, line               |\n|7         | **NLDI**                   | The Network Linked Data Index                                              | Vector point, line, polygon      |\n|8         | **TIGER**                  | 2017 US Census Bureau Road Network                                         | Vector line                      |\n|9         | **NHDPlus**                | National Hydrography Dataset Waterbodies, River Network, Catchments        | Vector line, polygon             |\n|10        | **EPA Basins**             | Environmental Protection Agency NWIS drainage basins                       | Vector polygon                   |\n|11        | **SSURGO**                 | National Cooperative Soil Survey Geospatial Soil Data Base                 | Vector polygon                   |\n|12        | **WBD**                    | The Watershed Boundary Dataset (all HUC levels)                            | Vector polygon                   |\n|13        | **CDL**                    | USDA Crop Data Layers (2008 - 2017)                                        | Raster                           |\n|14        | **NED**                    | National Elevation Dataset (10 and 30 meter resolutions)                   | Raster                           |\n|15        | **NLCD**                   | National Land Cover Dataset (01,06,11) (Impervious, canopy, Land cover)    | Raster                           |\n\n```r\nmyData = getAOI(clip = list(\"UCSB\", 10, 10)) %\u003e% \nfindNHD() %\u003e% \nfindWaterbodies %\u003e% \nfindNWIS %\u003e% \nfindNED()\n```\n```\nstr(myData,max.level = 2)\n\nList of 5\n $ AOI        :Formal class 'SpatialPolygons' [package \"sp\"] with 4 slots\n $ nhd        :Formal class 'SpatialLinesDataFrame' [package \"sp\"] with 4 slots\n $ waterbodies:Formal class 'SpatialPolygonsDataFrame' [package \"sp\"] with 5 slots\n $ nwis       :Formal class 'SpatialPointsDataFrame' [package \"sp\"] with 5 slots\n $ NED        :Formal class 'RasterLayer' [package \"raster\"] with 12 slots\n - attr(*, \"class\")= chr \"HydroData\"\n```\n\nFor now, most internal HydroData operations are based of the 'simple feature (sf)' library however objects are all returned as Spatial* sp objects. As the community around simple features grows the default output of 'HydroData' might change. Until then users can use the `to_sf` function to convert a `HydroData` object to simple features where appropriate.\n\nHydroData offer in-package tools for generating interactive visualizations of HydroData Spatial* objects\n\n```r\nmyData.sf = myData %\u003e% to_sf\n```\n```\nstr(myData.sf,max.level = 1)\n\nList of 5\n $ NED        :Formal class 'RasterLayer' [package \"raster\"] with 12 slots\n $ AOI        :Classes ‘sf’ and 'data.frame':\t1 obs. of  1 variable:\n  ..- attr(*, \"sf_column\")= chr \"geometry\"\n  ..- attr(*, \"agr\")= Factor w/ 3 levels \"constant\",\"aggregate\",..: \n  .. ..- attr(*, \"names\")= chr(0) \n $ nhd        :Classes ‘sf’ and 'data.frame':\t100 obs. of  92 variables:\n  ..- attr(*, \"sf_column\")= chr \"geometry\"\n  ..- attr(*, \"agr\")= Factor w/ 3 levels \"constant\",\"aggregate\",..: NA NA NA NA NA NA NA NA NA NA ...\n  .. ..- attr(*, \"names\")= chr [1:91] \"id\" \"ogc_fid\" \"comid\" \"fdate\" ...\n $ waterbodies:Classes ‘sf’ and 'data.frame':\t11 obs. of  24 variables:\n  ..- attr(*, \"sf_column\")= chr \"geometry\"\n  ..- attr(*, \"agr\")= Factor w/ 3 levels \"constant\",\"aggregate\",..: NA NA NA NA NA NA NA NA NA NA ...\n  .. ..- attr(*, \"names\")= chr [1:23] \"id\" \"objectid\" \"comid\" \"fdate\" ...\n $ nwis       :Classes ‘sf’ and 'data.frame':\t3 obs. of  8 variables:\n  ..- attr(*, \"sf_column\")= chr \"geometry\"\n  ..- attr(*, \"agr\")= Factor w/ 3 levels \"constant\",\"aggregate\",..: NA NA NA NA NA NA NA\n  .. ..- attr(*, \"names\")= chr [1:7] \"OBJECTID\" \"feature_id\" \"site_no\" \"site_name\" ...\n  \n```\nHydroData offer in-package tools for generating interactive visualizations of HydroData Spatial* objects\n\n```r\n myData %\u003e% explore()\n\n```\n\u003cbr\u003e\n\u003cimg src=\"man/figures/explore_ex.png\" width=500 /\u003e\n\u003cbr\u003e\n\nTo download and get started with HydroData, install from GitHub using the `devtools` packages:\n\n```r\nlibrary(devtools)\ninstall_github(\"mikejohnson51/HydroData\")\n```\n\n### Support:\n\nHydroData is written by [Mike Johnson](https://mikejohnson51.github.io), a graduate Student at the [University of California, Santa Barbara](https://geog.ucsb.edu) in [Keith C. Clarke's](http://www.geog.ucsb.edu/~kclarke/) Lab, 2018 and is funded through the NOAA National Water Center (NWC) via the UCAR COMET Program (2017/18).\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikejohnson51%2Fhydrodata","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikejohnson51%2Fhydrodata","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikejohnson51%2Fhydrodata/lists"}