USGS, GEE and R. What?!?

August 20, 2020

Over the next month I’m going to be posting some quick examples from a few R packages that I’ve stumbled into. One is the dataRetrieval package by USGS. In short, it let’s you download any gauging station data across the country right into R and in a tidy format. How sweet is that? USGS also has other packages like the suite of smwr packages. These packages provide the user with some commonly used (but often tedious) functions used in hydrology, e.g. log pearson, data munging, etc. These packages are just the tip of the iceberg for hydrology applications so I will just cover the basics and stuff I use on a weekly basis. For more information look up the USGS site which provides a great platform for finding your way through USGS and R. In addition to all the cool stuff with USGS and R, some folks developed an R package that can interface with google earth engine (GEE)!

GEE is a open source platform that allows users to pull remote sensing data with a few lines of code. This is huge because we all know the pains of trying to figure out other platforms all foran image from 1996 at such and such location. Well, now it’s a few lines code and not only on the web but now in R. I’ll go through some examples using the Parameter elevation Regression on Independent Slopes Model (PRISM) grids by looking at precipitation over time and space with a few lines of code.

Finally, both the USGS and RGEE packages will help me do a short series on common distributions in hydrology, e.g. normal, lognormal, pearson/log pearson, etc. This will be fun bringing together both spatial and tabular data to explore the central tendancy, dispersion, shape and skew of precipitation and discharge data. Have a good one.

Posted on:
August 20, 2020
Length:
2 minute read, 306 words
Tags:
https://github.com/USGS-R/dataRetrieval https://github.com/r-spatial/rgee
See Also:
Graphing Using whitewater
RGEE and PRISM
Data Retrieval