Package: chopin 0.8.3

Insang Song

chopin: Computation of Spatial Data by Hierarchical and Objective Partitioning of Inputs for Parallel Processing

Geospatial data computation is parallelized by grid, hierarchy, or raster files. Based on future and mirai parallel backends, terra and sf functions as well as convenience functions in the package can be distributed over multiple threads. The simplest way of parallelizing generic geospatial computation is to start from `par_pad_*` functions to `par_grid`, `par_hierarchy`, or `par_multirasters` functions. Virtually any functions accepting classes in terra or sf packages can be used in the three parallelization functions. A common raster-vector overlay operation is provided as a function `extract_at`, which uses exactextractr, with options for kernel weights for summarizing raster values at vector geometries. Other convenience functions for vector-vector operations including simple areal interpolation (`summarize_aw`) and summation of exponentially decaying weights (`summarize_sedc`) are also provided.

Authors:Insang Song [aut, cre], Kyle Messier [aut, ctb], Alec L. Robitaille [rev], Eric R. Scott [rev]

chopin_0.8.3.tar.gz
chopin_0.8.3.zip(r-4.5)chopin_0.8.3.zip(r-4.4)chopin_0.8.3.zip(r-4.3)
chopin_0.8.3.tgz(r-4.4-any)chopin_0.8.3.tgz(r-4.3-any)
chopin_0.8.3.tar.gz(r-4.5-noble)chopin_0.8.3.tar.gz(r-4.4-noble)
chopin_0.8.3.tgz(r-4.4-emscripten)chopin_0.8.3.tgz(r-4.3-emscripten)
chopin.pdf |chopin.html
chopin/json (API)
NEWS

# Install 'chopin' in R:
install.packages('chopin', repos = c('https://ropensci.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/ropensci/chopin/issues

Datasets:
  • ncpoints - Mildly clustered points in North Carolina, United States
  • prediction_grid - Regular grid points in the mainland United States at 1km spatial resolution

On CRAN:

12 exports 10 stars 6.04 score 49 dependencies 20 scripts

Last updated 4 days agofrom:77b5c659ce (on main). Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 12 2024
R-4.5-winOKOct 12 2024
R-4.5-linuxOKOct 12 2024
R-4.4-winOKOct 12 2024
R-4.4-macOKOct 12 2024
R-4.3-winOKOct 12 2024
R-4.3-macOKOct 12 2024

Exports:extract_atkernelfunctionpar_convert_fpar_gridpar_hierarchypar_merge_gridpar_multirasterspar_pad_balancedpar_pad_gridpar_split_listsummarize_awsummarize_sedc

Dependencies:abindanticlustclassclassIntclicodetoolscollapsecpp11DBIdigestdplyre1071exactextractrfansifuturefuture.applygenericsglobalsglueigraphKernSmoothlatticelifecyclelistenvlpSolvemagrittrMASSMatrixparallellypillarpkgconfigproxyR6RANNrasterRcpprlangs2sfspstarsterratibbletidyselectunitsutf8vctrswithrwk

Extracting Weather/Climate Geospatial Data with chopin

Rendered fromv04_climate_examples.Rmdusingknitr::rmarkdownon Oct 12 2024.

Last update: 2024-09-11
Started: 2024-08-09

Generate computational grids

Rendered fromv03_par_pad_grid.Rmdusingknitr::rmarkdownon Oct 12 2024.

Last update: 2024-09-08
Started: 2024-08-09

Getting started with chopin

Rendered fromv01_start.Rmdusingknitr::rmarkdownon Oct 12 2024.

Last update: 2024-10-12
Started: 2024-08-09

Good practice of using chopin

Rendered fromv02_good_practice.Rmdusingknitr::rmarkdownon Oct 12 2024.

Last update: 2024-09-08
Started: 2024-08-09

targets and grid objects

Rendered fromv05_targets.Rmdusingknitr::rmarkdownon Oct 12 2024.

Last update: 2024-08-09
Started: 2024-08-09

Readme and manuals

Help Manual

Help pageTopics
Extract raster values with point buffers or polygonsextract_at extract_at,character,character-method extract_at,character,sf-method extract_at,character,SpatVector-method extract_at,SpatRaster,character-method extract_at,SpatRaster,sf-method extract_at,SpatRaster,SpatVector-method
Mildly clustered points in North Carolina, United Statesncpoints
Map arguments to the desired namespar_convert_f
Parallelize spatial computation over the computational gridspar_grid
Parallelize spatial computation by hierarchy in input datapar_hierarchy
Merge adjacent grid polygons with given rulespar_merge_grid
Parallelize spatial computation over multiple raster filespar_multirasters
Extension of par_make_balanced for padded gridspar_pad_balanced
Get a set of computational gridspar_pad_grid
Split grid list to a nested list of row-wise data framespar_split_list
Regular grid points in the mainland United States at 1km spatial resolutionprediction_grid
Area weighted summary using two polygon objectssummarize_aw summarize_aw,character,character-method summarize_aw,sf,sf-method summarize_aw,SpatVector,SpatVector-method
Calculate Sum of Exponentially Decaying Contributions (SEDC) covariatessummarize_sedc