sampbias icon indicating copy to clipboard operation
sampbias copied to clipboard

cropping of raster

Open egodrive opened this issue 4 years ago • 2 comments

Hi, just testing out the function calculate_bias(), which threw this error: " Error in strsplit(row.names(xy), " ") : non-character argument "

I narrowed it down to the following lines in dis_rast.R: gaz.crop <- lapply(gaz, function(k) { raster::crop(k, cut.off) })

My area didn't have any rivers in it, so the cropping function failed. How about rewriting it to account for this?

egodrive avatar Oct 12 '20 19:10 egodrive

@egodrive did you find a solution/work around? i think this might be related to the issue I was having in my attempt to create custom gazetteers. (see my issue post) maybe you can help me?

KatLeigh11 avatar Aug 25 '21 23:08 KatLeigh11

Hello there! We've recently overhauled the Sampbias package, integrating new spatial packages and implementing substantial changes to the code. If you're still encountering the issue after updating the package to the latest version available on GitHub, could you please share a reproducible code along with the accompanying data? This will enable us to investigate the error more effectively and provide you with a timely resolution. Your cooperation is greatly appreciated!

BrunoVilela avatar Jan 24 '24 14:01 BrunoVilela