{"id":22413775,"url":"https://github.com/jsta/glwdr","last_synced_at":"2026-02-12T10:32:16.405Z","repository":{"id":88675549,"uuid":"72219093","full_name":"jsta/glwdr","owner":"jsta","description":"R client for the Global Lakes and Wetlands Database","archived":false,"fork":false,"pushed_at":"2021-02-12T21:19:26.000Z","size":564,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-22T06:33:52.443Z","etag":null,"topics":["limnology","rstats"],"latest_commit_sha":null,"homepage":"https://www.worldwildlife.org/pages/global-lakes-and-wetlands-database","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jsta.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-10-28T15:25:14.000Z","updated_at":"2021-02-15T11:26:12.000Z","dependencies_parsed_at":"2023-03-13T18:19:31.449Z","dependency_job_id":null,"html_url":"https://github.com/jsta/glwdr","commit_stats":{"total_commits":33,"total_committers":2,"mean_commits":16.5,"dds":"0.18181818181818177","last_synced_commit":"30eafcbe23ff8c5d9232b3730d7f865cea53470e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jsta/glwdr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsta%2Fglwdr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsta%2Fglwdr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsta%2Fglwdr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsta%2Fglwdr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jsta","download_url":"https://codeload.github.com/jsta/glwdr/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsta%2Fglwdr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29363153,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T08:51:36.827Z","status":"ssl_error","status_checked_at":"2026-02-12T08:51:26.849Z","response_time":55,"last_error":"SSL_read: 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":["limnology","rstats"],"created_at":"2024-12-05T14:14:33.271Z","updated_at":"2026-02-12T10:32:16.383Z","avatar_url":"https://github.com/jsta.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# Global Lakes and Wetlands Database (GLWD) R client \n\n```{r, echo = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"vignettes/\"\n)\n```\n\n[![Project Status: Active - The project has reached a stable, usable state and is being actively developed.](http://www.repostatus.org/badges/latest/active.svg)](http://www.repostatus.org/#active)\n[![cran version](http://www.r-pkg.org/badges/version/glwdr)](https://cran.r-project.org/package=glwdr)\n\n## Installation\n\n```{r eval = FALSE}\ndevtools::install_github(\"jsta/glwdr\")\n```\n\n### Load Package\n```{r }\nlibrary(glwdr)\n```\n\n## Usage\n\n```{r eval = FALSE, echo=FALSE}\nlibrary(maps)\nlibrary(sp)\nlibrary(ggplot2)\nlibrary(raster)\n\n# glwd_get(level = 1)\nlevel_1 \u003c- glwd_load(level = 1)\n\nmap(\"world\")\nplot(level_1, add = TRUE, col = \"blue\")\n\n# glwd_get(level = 2)\nlevel_2 \u003c- glwd_load(level = 2)\nlevel_2_key \u003c- data.frame(TYPE = c(\"Lake\", \"Reservoir\", \"River\"),\n                col = c(\"blue\", \"red\", \"lightblue\"), stringsAsFactors = FALSE)\nlevel_2 \u003c- merge(level_2, level_2_key, all.x = TRUE, all.y = FALSE)\nplot(level_2, add = TRUE, col = level_2@data$col, border = NA)\n\n# glwd_get(level = 3)\nlevel_3 \u003c- glwd_load(level = 3)\n# need to define color ramp more closely matching pub\nplot(dt, breaks = 1:12, col = viridis::viridis(12), add = TRUE)\n```\n\n\n### Level 1\n```{r eval=FALSE} \nglwd_get(level = 1)\n\ndt \u003c- glwd_load(level = 1)\n```\n\n```{r echo=FALSE,message=FALSE,results='hide'} \nlibrary(glwdr)\n\ndt \u003c- suppressMessages(glwd_load(level = 1))\n```\n\n```{r level-1}\nlibrary(maps)\nlibrary(sp)\n\ndt \u003c- dt[dt$COUNTRY == \"United States\" \u0026\n         dt$LAT_DEG \u003c 56 \u0026\n         dt$AREA_SKM \u003c 30000,] \n \nmap(\"state\")\nplot(dt, add = TRUE, col = \"blue\")\naxis(1); axis(2)\n```\n\n```{r echo=FALSE, eval=FALSE}\ndt@data[1:5,]\n```\n\n### Level 2\n\n```{r eval=FALSE} \nglwd_get(level = 2)\n\ndt \u003c- glwd_load(level = 2)\n```\n\n```{r echo=FALSE,message=FALSE,results='hide'} \nlibrary(glwdr)\n\ndt \u003c- suppressMessages(glwd_load(level = 2))\n```\n\n```{r level-2}\nlibrary(ggplot2)\nlibrary(raster)\n\nstates \u003c- map_data(\"state\")\nstates \u003c- glwdr:::map_data_to_spdf(states)\nprojection(dt) \u003c- projection(states)\n\nmap(\"state\")\nplot(dt[states,], add = TRUE, border = \"blue\")\naxis(1); axis(2)\n```\n\n### Level 3\n\n```{r eval=FALSE}\nglwd_get(level = 3)\n\ndt \u003c- glwd_load(level = 3)\n```\n\n```{r echo=FALSE,message=FALSE,results='hide'} \nlibrary(glwdr)\n\ndt \u003c- suppressMessages(glwd_load(level = 3))\n```\n\n```{r level-3}\nmap(\"world\")\nplot(dt, breaks = 1:12, col = viridis::viridis(12), add = TRUE)\naxis(1); axis(2)\n```\n\n## References\n\nLehner, B., Döll, P.: Development and validation of a global\ndatabase of lakes, reservoirs and wetlands, Journal of Hydrology, Volume\n296, Issues 1–4, 20 August 2004, Pages 1-22,\nhttp://dx.doi.org/10.1016/j.jhydrol.2004.03.028.\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsta%2Fglwdr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsta%2Fglwdr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsta%2Fglwdr/lists"}