Description Usage Arguments Value Examples
These functions connect to a database that houses a datacube.
1 2 3 | database_connect(..., object = F)
database_get_active()
|
... |
optional arguments to index or configure a connection. |
object |
logical, whether the connection should be returned or not. |
None or the connection of class 'datacube.api.core.Datacube', if object = T
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## Not run:
library(odcr)
# connect to a database, store the Daatcube connection internally (default and recommended)
database_connect(app = "Sentinel_2")
# retrieve the current connection as an object
dc <- database_get_active()
# or return a Datacube object
dc <- database_connect(app = "Sentinel_2", object = TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.