Thank you very much for developing the package, it has been very useful for me. I have an error downloading MODIS data that I have not been able to solve. This is the code I am using
library(tidyverse)
library(climateR)
library(AOI)
library(bioclima)
library(sf)
library(sp)
library(mapview)
# Get all Texas area
Texas <- aoi_get(state = c("TX"))
#Just to check
Texas %>% st_as_sf() %>% aoi_map(returnMap = T)
modis <- getMODIS(
AOI = Texas,
asset = 'MOD13A2.061',
# ID= "MODIS",
varname = c("_1_km_16_days_EVI", "_1_km_16_days_NDVI"),
startDate = "2023-06-20",
endDate = "2023-12-19")
This is the error I get when I run the getMODIS function:
Error in fix.by(by.x, x) : 'by' must specify a uniquely valid column
I have used other functions like getGridMET and they have worked fine using the same area and dates, so I don't understand what could be happening.
Hi @mikejohnson51 ,
Thank you very much for developing the package, it has been very useful for me. I have an error downloading MODIS data that I have not been able to solve. This is the code I am using
This is the error I get when I run the
getMODIS
function:I have used other functions like
getGridMET
and they have worked fine using the same area and dates, so I don't understand what could be happening.Thanks,