We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0cd7e50 commit 4a901edCopy full SHA for 4a901ed
R/query_and_sign.R
@@ -119,6 +119,8 @@ rsi_query_api <- function(bbox,
119
#' @export
120
sign_planetary_computer <- function(items,
121
subscription_key = Sys.getenv("rsi_pc_key")) {
122
+ # check for the variable used by sits if the rsi one isn't set
123
+ if (subscription_key == "") subscription_key <- Sys.getenv("MPC_TOKEN")
124
if (subscription_key == "") {
125
rstac::items_sign(items, rstac::sign_planetary_computer(rsi_user_agent))
126
} else {
0 commit comments