ropensci / chopin

Computation of Spatial Data by Hierarchical and Objective Partitioning of Inputs for Parallel Processing
https://niehs.github.io/chopin/
Other
12 stars 2 forks source link

Support for other classes for spatial data + lower level access #86

Closed sigmafelix closed 4 months ago

sigmafelix commented 4 months ago
sigmafelix commented 4 months ago

https://github.com/NIEHS/chopin/blob/f855f2ac59006812740a61b53097744fa3d036e6/R/scale_process.R#L582-L621

This function can map generic functions' arguments that are not x or y, which are standard argument names for using par_* functions, into x or y. Users will take advantage of this function to parallelize workflows using spatial data analysis packages based on sf or terra objects.

Along with S4 method expansion with proper signatures, maintainers / contributors can easily expand chopin functions to be compatible with new spatial data classes in the future.