-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add drop argument to spectralIndices #21
Labels
enhancement
New feature or request
Comments
Sure thing! |
Done! |
drop=FALSE works great! library(rgee)
library(rgeeExtra)
ee_Initialize()
s2 <- ee$ImageCollection$Dataset$COPERNICUS_S2_SR %>%
ee$ImageCollection$first() %>%
ee_ImageCollection_preprocess()
green_indices <- ee_ImageCollection_spectralIndex(s2, c("NDVI", "SAVI"), drop = FALSE)
names(green_indices) [1] "B1" "B2" "B3" "B4" "B5" "B6" "B7" "B8" "B8A" "B9" drop=TRUE :( library(rgee)
library(rgeeExtra)
ee_Initialize()
s2 <- ee$ImageCollection$Dataset$COPERNICUS_S2_SR %>%
ee$ImageCollection$first() %>%
ee_ImageCollection_preprocess()
green_indices <- ee_ImageCollection_spectralIndex(s2, c("NDVI", "SAVI"), drop = TRUE) [1] "SAVI" |
Ahhhh no manches. Ya sé qué hice mal. Espera. |
Ya! :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @davemlz, please 🙏 can you add a drop=False argument to ee_extra.Spectral.core.spectralIndices?
I got:
[1] "B1" "B2" "B3" "B4" "B5" "B6" "B7" "B8" "B8A" "B9"
[11] "B11" "B12" "AOT" "WVP" "SCL" "TCI_R" "TCI_G" "TCI_B" "QA10" "QA20"
[21] "QA60" "kEVI" "kNDVI" "kRVI" "kVARI"
I would like:
[1] "kEVI" "kNDVI" "kRVI" "kVARI"
The text was updated successfully, but these errors were encountered: