r-a-dobson / dynamicSDM

An R package for species geographical distribution and abundance modelling at high spatiotemporal resolution
https://github.com/r-a-dobson/dynamicSDM
4 stars 2 forks source link

Error in function dynamic_proj_covariates #10

Closed vineetkrdubey closed 2 months ago

vineetkrdubey commented 6 months ago

I am getting an error while running this code, while all the raster files are in the local. directory : save_projection_covariates<-paste0(workingdirectory,"/projection_covariates") dynamic_proj_covariates(dates = projection_dates, varnames = variablenames, local.directory = projectionrasters,

user.email = user.email,

                    spatial.ext = sample_extent_data,
                    spatial.res.degrees = 0.05,
                    spatial.mask = sample_extent_data,
                    resample.method = resamplemethods,
                    cov.file.type = "csv",
                    prj="+proj=longlat +datum=WGS84",
                    save.directory = save_projection_covariates

) Error: [rast] filename is empty. Provide a valid filename

vineetkrdubey commented 6 months ago

Fix this thank you

r-a-dobson commented 6 months ago

Hi there! Thank you for getting in touch. The package maintainer is currently away in the field for the next 2 weeks. If you are able to send a sample of reproducible code that leads to this error to eerdo@leeds.ac.uk then this will help speed up the process upon their return.