check_gcloud | R Documentation |
Google Cloud SDK is an optional dependency, required to search and download SAFE archives from Google Cloud.
check_gcloud()
checks if Google Cloud SDK is externally
installed and if a user account is set.
is_gcloud_configured()
check if Google Cloud SDK were already
configured in sen2r using check_gcloud()
.
check_gcloud_connection()
check if internet connection
is available and Sentinel-2 bucket is accessible on Google Cloud.
check_gcloud(
gsutil_dir,
force = FALSE,
full_scan = FALSE,
abort = TRUE,
check_creds = TRUE
)
is_gcloud_configured()
check_gcloud_connection()
gsutil_dir |
(optional) Character: the path of the |
force |
(optional) Logical: if TRUE, check even if it is already configured (default is FALSE). |
full_scan |
(optional) Logical: in Linux and MacOS, if |
abort |
(optional) Logical: if TRUE (default), the function aborts in case no Google Cloud SDK installation is found; if FALSE, a warning is shown and FALSE is returned. |
check_creds |
(optional) Logical: if TRUE, check also if a user account (required to search and download products) was set. |
check_gcloud()
returns TRUE (invisible) in case Google Cloud SDK
was correctly set, FALSE if it was not found, not configured
(if check_creds = TRUE
) and abort = FALSE
(otherwise, the function stops).
is_gcloud_configured()
returns TRUE if Google Cloud SDK is installed
and an account is configured, FALSE if not.
check_gcloud_connection()
returns TRUE if connection
is available, FALSE otherwise.
License: GPL 3.0
Luigi Ranghetti, phD (2021)
L. Ranghetti, M. Boschetti, F. Nutini, L. Busetto (2020). "sen2r": An R toolbox for automatically downloading and preprocessing Sentinel-2 satellite data. Computers & Geosciences, 139, 104473. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1016/j.cageo.2020.104473")}, URL: https://sen2r.ranghetti.info/.
## Not run:
check_gcloud()
check_gcloud_connection()
## End(Not run)
is_gcloud_configured()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.