mikejohnson51 / climateR

An R 📦 for getting point and gridded climate data by AOI
https://mikejohnson51.github.io/climateR/
MIT License
168 stars 40 forks source link

MACA monthly Returns are not correctly indexed #42

Closed mikejohnson51 closed 2 years ago

mikejohnson51 commented 3 years ago
library(climateR)
library(sf)

box_sfc <- st_as_sfc(st_bbox(c(xmin = -76., xmax = -74., 
                               ymax =  43., ymin = 41.), 
                             crs=4326)) 

# does not work with end date???
t3 <- climateR::getMACA(box_sfc, 
                        param="prcp", 
                        model = "CCSM4", 
                        scenario="rcp45", 
                        startDate = as.Date("1950-01-01"), endDate=as.Date("1950-03-01"),
                        timeRes="monthly")