Package: flowcam 0.1.0.9000
flowcam: Download and Animate USGS Stream-Gage Camera Images
A tidy interface to the U.S. Geological Survey (USGS) National Imagery Management System (NIMS) API (<https://api.waterdata.usgs.gov/docs/nims/overview/>), which stores and serves images collected by stream-gage cameras at monitoring locations across the United States. Provides functions to discover cameras by NWIS site number or camera ID, list and filter available images by date and time, download images at multiple resolutions, and assemble downloaded frames into animated GIFs or MP4 videos. Integrates with the 'dataRetrieval' package (<https://doi-usgs.github.io/dataRetrieval/>) to enrich camera records with watershed metadata (drainage area, hydrologic unit code, state, county) and to retrieve co-located streamflow, stage, or water-quality time series — enabling direct comparison of visual stream conditions with measured observations. API authentication uses the 'API_USGS_PAT' environment variable shared with 'dataRetrieval', so a single key covers both packages.
Authors:
flowcam_0.1.0.9000.tar.gz
flowcam_0.1.0.9000.zip(r-4.7)flowcam_0.1.0.9000.zip(r-4.6)flowcam_0.1.0.9000.zip(r-4.5)
flowcam_0.1.0.9000.tgz(r-4.6-any)flowcam_0.1.0.9000.tgz(r-4.5-any)
flowcam_0.1.0.9000.tar.gz(r-4.7-any)flowcam_0.1.0.9000.tar.gz(r-4.6-any)
flowcam_0.1.0.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
card.svg |card.png
flowcam/json (API)
NEWS
| # Install 'flowcam' in R: |
| install.packages('flowcam', repos = c('https://connorb.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/connorb/flowcam/issues
Pkgdown/docs site:https://connorb.github.io
usgsstream gagestreamgagehydrologywater datariver camerasnimsnwistimelapseflood monitoringcamera imagesflood-monitoringgifmp4streamflowusgs-apiusgs-datawater-dataquarto
Last updated from:e900f71b49. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 151 | ||
| source / vignettes | OK | 229 | ||
| linux-release-x86_64 | OK | 149 | ||
| macos-release-arm64 | OK | 152 | ||
| macos-oldrel-arm64 | OK | 133 | ||
| windows-devel | OK | 143 | ||
| windows-release | OK | 113 | ||
| windows-oldrel | OK | 124 | ||
| wasm-release | OK | 135 |
Exports:build_image_urldownload_imagesfind_camerasfind_gage_camerasget_flow_statisticsget_network_camerasget_site_data_availabilityget_site_field_measurementsget_site_streamflowget_timelapse_urllist_imagesmake_gifmake_videoset_nims_keyset_usgs_api_key
Dependencies:askpassclicurlgluehttr2lifecyclemagrittropensslpillarpkgconfigR6rappdirsrlangsystibbleutf8vctrswithr
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Build full image URLs from camera metadata and filenames | build_image_url |
| Download camera images to disk | download_images |
| Query NIMS cameras | find_cameras |
| Query NIMS cameras and enrich with NWIS site metadata | find_gage_cameras |
| Retrieve historical flow statistics for a USGS gage | get_flow_statistics |
| Find cameras on the same stream network | get_network_cameras |
| Discover available time series at a USGS gage | get_site_data_availability |
| Retrieve manual field measurements for a USGS gage | get_site_field_measurements |
| Retrieve streamflow data for a USGS gage | get_site_streamflow |
| Get the timelapse video URL for a camera | get_timelapse_url |
| List image filenames for a NIMS camera | list_images |
| Assemble camera images into an animated GIF | make_gif |
| Assemble camera images into an MP4 video | make_video |
| Store your USGS API key in .Renviron | set_usgs_api_key |
