get_locations_from_ssdb | R Documentation |
Get locations ("locations" table) from a SumavaDB-like spatiotemporal database
get_locations_from_ssdb(conn, ...)
conn |
database (preferrably PodtgresSQL) connection. See ouput of |
... |
further arguments for |
## Not run: library(RPostgreSQL) dbname <- "hydroclimatedb_testing00" val <- sumava_snow_dataset() conn = dbConnect(PostgreSQL(), dbname = dbname) add_locations_into_ssdb(conn,val$locations,new=TRUE) ### Add weather station from MeteoTrentino network, Trentino, Italy val_smet <- meteotrentino_smet_dataset(smet_files=c("T0175","T0179")) add_locations_into_ssdb(conn,val_smet$locations,append=TRUE) dbDisconnect(conn) conn = dbConnect(PostgreSQL(), dbname = dbname) out <- get_locations_from_ssdb(conn) dbDisconnect(conn) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.