View source: R/getCoordsDBHYDRO.R
getCoords_DBHYDRO | R Documentation |
Downloads DBHYDRO station coordinate data. Note that these coordinates may be incorrect in DBHYDRO (e.g., LASPALM12 appears right next to LPG1, when in reality it is ~500 meters north).
getCoords_DBHYDRO(stn = "LASPALM11", spatial = TRUE)
stn |
character string. Case sensitive. |
spatial |
logical. If 'TRUE', a spatialPointsDataFrame is returned. If 'FALSE', a dataframe is returned |
dataframe/spdf getCoords_DBHYDRO
returns a dataframe or spatialPointsDataFrame with lat/long (epsg:4326) and UTM zone 19 coordinates.
## Not run:
### example usage as part of a workflow
SMA.keys <- c(
37737, # LPG1
37740, # LPG2
39288, # LASPALM11
39289, # LASPALM12
39290, # LASPALM13
39291, # LASPALM14
39292, # LASPALM15
"07103", # ANGEL
"05738", # G-3273
"WN173", # S357_H
"AM177" # S357N_H
)
SMAlist <- lapply(X = SMA.keys, getHydro, startDate = "20200101",
endDate = "20200901")
SMADat <- do.call(rbind, SMAlist)
sma.coords <- do.call(rbind, lapply(X = unique(SMADat$stn), getCoords_DBHYDRO))
plot(sma.coords)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.