Description Usage Arguments Format Details Value Author(s) See Also Examples
This function reads water-level measurements exported from the U.S. Geological Survey (USGS) National Water Information System (NWIS) database and summarizes this data for a specified duration of time.
1 | ReadNWISData(file, dt.lim, dt.fmt = "%Y-%m-%d %H:%M", sep = "\t")
|
file |
|
dt.lim |
|
dt.fmt |
|
sep |
|
The input text file contains the names of the variables in its first line. Each subsequent line corresponds to a single water-level measurement. Measurement variables (columns in the data table) include:
is the site number.
is the decimal longitude.
is the decimal latitude.
is the latitude/longitude coordinate accuracy code (optional).
is the latitude/longitude (horizontal) coordinate datum code (optional).
is the code indicating the method used to determine horizontal datum (optional).
is the gage or land-surface datum, in feet.
is the accuracy of land-surface datum, in feet.
is a code indicating the geodetic or local vertical datum of the elevation datum elevation component (optional); for example, "NGVD29" or "NAVD88".
is a code indicating the method used to determine the elevation of land-surface datum (optional).
is the borehole depth, in feet (optional).
is the well depth, in feet (optional).
is the date/time when water-level measurement was recorded.
The expected conversion specification format is "%Y-%m-%d %H:%M:%S"; see strftime
for details.
is the water-level measurement referenced to land-surface datum (that is, depth below land surface), in feet.
is a water-level measurement accuracy code.
is a code indicating how the water level was measured (optional).
is the site name (optional).
is the water-level monitoring network name (optional). Sites belonging to multiple networks should be comma separated. This variable is not included in the NWIS database and it is tasked to the user to populate this field.
This function is a pre-processor for ObsNetwork. Groundwater data can be downloaded at NWISWeb.
Returns an object of SpatialPointsDataFrame-class
with the following components:
site.no |
|
var1 |
|
var1.acy |
|
var1.sd |
|
var2 |
|
map.no |
|
network.nm |
|
nrec.por |
|
nrec |
|
alt.acy.va |
|
lev.acy.va |
|
coord.acy.va |
|
coord.meth.cd |
|
alt.meth.cd |
|
lev.meth.cd |
|
site.nm |
|
J.C. Fisher
1 2 3 4 5 6 7 8 9 | # Read data from text file
file <- system.file("extdata/ESRP_NWIS.tsv", package = "ObsNetwork")
dt.lim <- c("2008-01-01 00:00", "2008-12-31 23:59") # 2008 calendar year
obj <- ReadNWISData(file, dt.lim)
str(obj)
# Compare with available data set
data(ESRP_NWIS)
identical(obj, ESRP_NWIS)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.