globalecologylab / poems Goto Github PK
View Code? Open in Web Editor NEWPattern-oriented ensemble modelling and simulation (with spatially explicit populations)
Home Page: https://globalecologylab.github.io/poems/
Pattern-oriented ensemble modelling and simulation (with spatially explicit populations)
Home Page: https://globalecologylab.github.io/poems/
I've started this process, but I'm not 100% sure it's necessary in our case. You can see what I've done here https://github.com/scbrown86/poems/tree/terra_dev. The problem is that now my terra-dev branch is a number of commits behind the poems-main branch and I don't think it can be easily merged (if at all).
I'm just dumping some thoughts below, but happy to discuss.
rgeos
and rgdal
packages which are no longer under development and will be removed from CRAN. As of the 18th September 2022 these dependencies have been removed and raster
now uses terra
for the same functionality. This process started in 2021. See the raster news here.terra
doesn't readily support parallel processing without wrapping any spatRaster
objects. This is easily done, but in my testing we need to keep a wrapped copy of the region$region_raster
object that then needs to be unwrapped on each parallel session to make sure the data is consistent with the region. Any spatRaster
objects that would be passed on to any parallel functions need to be wrapped. This adds an overhead in wrapping and unwrapping particularly with large regionsterra
and still relies on raster
for it's calculations. If we swap to terra
we would need to convert back to raster
before doing those calculations adding additional overhead. At the moment in my terra-dev branch of poems I do it like this no_friction_rast <- raster::raster(terra::unwrap(raster_region$region_raster_packed))
## <simpleError in h(simpleError(msg, call)): error in evaluating the argument 'i' in selecting a method for function '[<-': NULL value passed as symbol address>
. I'm absolutely sure this is due to the way the conductance raster is stored in the region, but I need to keep working on this when I have time. See here and heregdistance
issues with swapping to terra
I'm not overly concerned with raster becoming deprecated particuarly as it's been heavily rewritten to use functionality from terra
in place of the old rgeos
and rgdal
functionality, so maybe it's best to just stick with raster
? Particularly given that outside of defining the region, the friction, and plotting, we don't do much else with raster
objects?
You are using "proj=utm"
with no zone number, which has never been valid. This invalidity causes errors in the most recent PROJ/GDAL. I think (as in PredictiveEcology/NetLogoR#43) this may be an attempt to trick raster into seeing the positional data as planar/projected. You should always use an appropriate declaration of coordinate reference systems. The package will fail CRAN checks and break for users as the newest (and best) PROJ/GDAL software propagates.
testthat.Rout.fail.zip
00check.log
Note that rgdal, rgeos and maptools will not be developed further, and will be withdrawn by 2024-01-01 at the latest. This means that you should transition to sf and either stars or terra (raster uses rgdal and rgeos).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.