database: Connect to a database

Description Usage Arguments Value Examples

Description

These functions connect to a database that houses a datacube.

Usage

1
2
3

Arguments

...

optional arguments to index or configure a connection.

object

logical, whether the connection should be returned or not.

Value

None or the connection of class 'datacube.api.core.Datacube', if object = T

Examples

 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)

eo2cube/odcr documentation built on Dec. 20, 2021, 5:21 a.m.