Skip to content
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

caching isn't working properly #336

Open
cmahony opened this issue Nov 29, 2024 · 0 comments
Open

caching isn't working properly #336

cmahony opened this issue Nov 29, 2024 · 0 comments
Assignees
Labels
bug Something isn't working v0.2.0 complete for next minor release

Comments

@cmahony
Copy link
Collaborator

cmahony commented Nov 29, 2024

this query is repeatedly downloading and caching from scratch. takes 10 minutes each time. appears that it is downloading the refmap.

dir <- paste("//objectstore2.nrs.bcgov/ffec/Climatologies/PRISM_BC/PRISM_dem/", sep="")
dem <- rast(paste(dir, "PRISM_dem.asc", sep=""))
dem <- aggregate(dem, fact=3)
dem <- mask(dem, bc)
dem <- trim(dem)

# climr data
grid <- as.data.frame(dem, cells = TRUE, xy = TRUE)
colnames(grid) <- c("id", "lon", "lat", "elev") # rename column names to what climr expects
clim.grid <- downscale(xyz = grid, 
                       which_refmap = "refmap_climr", 
                       gcms = list_gcms()[1], 
                       ssps = list_ssps()[2],
                       gcm_periods = list_gcm_periods()[3], 
                       max_run = 2,
                       vars = list_vars()
                       )
Welcome to climr!
Getting normals...
Not fully cached :( Will download more
Downloading new data...
.........
@cmahony cmahony added bug Something isn't working v0.2.0 complete for next minor release labels Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working v0.2.0 complete for next minor release
Projects
None yet
Development

No branches or pull requests

2 participants