I don't know if these are known, but it looks like there are recurring issues with the palmer index due to the THREDDS server so feel free to ignore that one! Also, the fmoist_*
parameters can be handled individually, since this looks to be an issue only with using them in combination.
> climateR::getGridMET(aoi, c("fmoist_100", "fmoist_1000"), "2012-01-01", "2013-01-01")
Error in `names<-`(`*tmp*`, value = unique(date.names)) : incorrect number of layer names
> climateR::getGridMET(aoi, "palmer", "2021-01-01", "2021-02-01")
Error in var[[i]] * scale_factor : non-numeric argument to binary operator
aoi <- AOI::aoi_get("UCSB")
# Works
climateR::getGridMET(
AOI = aoi,
param = "fmoist_100",
startDate = "2021-01-01",
endDate = "2021-02-01"
)
#> $fmoist_100
#> class : RasterStack
#> dimensions : 2, 2, 4, 32 (nrow, ncol, ncell, nlayers)
#> resolution : 0.04166667, 0.04166667 (x, y)
#> extent : -119.9125, -119.8292, 34.37917, 34.4625 (xmin, xmax, ymin, ymax)
#> crs : +proj=longlat +datum=WGS84 +no_defs
#> names : X2021.01.01, X2021.01.02, X2021.01.03, X2021.01.04, X2021.01.05, X2021.01.06, X2021.01.07, X2021.01.08, X2021.01.09, X2021.01.10, X2021.01.11, X2021.01.12, X2021.01.13, X2021.01.14, X2021.01.15, ...
#> min values : 16.6, 17.5, 18.1, 18.5, 19.9, 17.3, 14.8, 12.9, 12.4, 11.8, 11.0, 10.7, 11.4, 10.8, 10.0, ...
#> max values : 19.7, 19.7, 19.6, 19.6, 22.2, 21.3, 18.9, 17.0, 17.4, 17.3, 15.5, 15.5, 16.7, 14.9, 13.2, ...
# Works
climateR::getGridMET(
AOI = aoi,
param = "fmoist_1000",
startDate = "2021-01-01",
endDate = "2021-02-01"
)
#> $fmoist_1000
#> class : RasterStack
#> dimensions : 2, 2, 4, 32 (nrow, ncol, ncell, nlayers)
#> resolution : 0.04166667, 0.04166667 (x, y)
#> extent : -119.9125, -119.8292, 34.37917, 34.4625 (xmin, xmax, ymin, ymax)
#> crs : +proj=longlat +datum=WGS84 +no_defs
#> names : X2021.01.01, X2021.01.02, X2021.01.03, X2021.01.04, X2021.01.05, X2021.01.06, X2021.01.07, X2021.01.08, X2021.01.09, X2021.01.10, X2021.01.11, X2021.01.12, X2021.01.13, X2021.01.14, X2021.01.15, ...
#> min values : 14.3, 14.6, 14.6, 14.6, 15.9, 15.9, 15.8, 15.6, 15.4, 15.0, 14.6, 14.1, 14.2, 14.1, 14.0, ...
#> max values : 20.1, 20.1, 19.9, 19.6, 20.9, 21.0, 20.8, 20.5, 20.5, 20.2, 19.7, 19.2, 19.3, 19.0, 18.7, ...
# Doesn't Work
climateR::getGridMET(
AOI = aoi,
param = c("fmoist_100", "fmoist_1000"),
startDate = "2021-01-01",
endDate = "2021-02-01"
)
#> Error in `names<-`(`*tmp*`, value = unique(date.names)): incorrect number of layer names