catalogueMOPEX: Data source: MOPEX catalogue

Description Usage Arguments Value Author(s) Examples

Description

This function interfaces the MOPEX database catalogue (available from ftp://hydrology.nws.noaa.gov/pub/gcip/mopex/US_Data/) containing 438 daily datasets.

Usage

1
2
catalogueMOPEX(areaBox = NULL, columnName = NULL, columnValue = NULL,
  useCachedData = TRUE)

Arguments

areaBox

bounding box, a list made of 4 elements: minimum longitude (lonMin), minimum latitude (latMin), maximum longitude (lonMax), maximum latitude (latMax)

columnName

name of the column to filter

columnValue

value to look for in the column named columnName

useCachedData

logical, set to TRUE to use cached data, set to FALSE to retrive data from online source. This is TRUE by default.

Value

This function returns a data frame made of 431 rows (gauging stations) and 12 columns containing stations metadata.

Author(s)

Claudia Vitolo

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## Not run: 
  # Retrieve the MOPEX catalogue
  MOPEX_catalogue_all <- catalogueMOPEX()

  # Define a bounding box
  areaBox <- raster::extent(-95, -92, 37, 41)
  # Filter the catalogue based on bounding box
  MOPEX_catalogue_bbox <- catalogueMOPEX(areaBox = areaBox)

  # Get only catchments within NC
  MOPEX_catalogue_state <- catalogueMOPEX(columnName = "state",
                                          columnValue = "NC")


## End(Not run)


Search within the hddtools package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.