Practical Tools for Scientific Computation and Visualisation
Overview
Provides utilities for scientific computation and visualisation, with an emphasis on applications in physics and astrophysics. Functionality includes random sampling from spherical and custom distributions, information and entropy analysis, Fourier transforms, two-point correlation estimation, binning and gridding of point sets, two-dimensional interpolation, Monte Carlo integration, vector operations, coordinate transformations, physical constants, and cosmological conversions. Graphics tools support the creation and export of publication-quality plots, animations, colour scales, map projections, and bitmap images. Several of these tools were used by Obreschkow et al. (2020) doi:10.1093/mnras/staa445.
Install
Health
ERRORexamplesr-oldrel-macos-arm64
Running examples in ‘cooltools-Ex.R’ failed The error most likely occurred in: > ### Name: kde2 > ### Title: Multi-dimensional adaptive kernel density estimation > ### Aliases: kde2 > > ### ** Examples > > # make a mock sample of n d-dimensional points from > # three different components (1D line, 2D square, d-D normal distr) > d = 3 # number of dimensions of mock point set; try to choose different values 2, 3, 4, ... > n = 1e4 # number of particles per component > set.seed(1) > x = rbind(cbind(array(rep(runif(n,-1,1),2),c(n,2)),array(0,c(n,d-2))), + cbind(array(runif(2*n),c(n,2)),array(0,c(n,d-2))), + array(rnorm(d*n),c(n,d))) > > # grid total projected probability density > npixels = 500 # number of pixels along a grid side > q = midseq(-3,3,npixels) > f1 = outer(dnorm(q),dnorm(q),'*')/3+outer(dunif(q),dunif(q),'*')/3 > q = seq(round(npixels/3),round(npixels*2/3)) > f1[q+npixels*(q-1)] = f1[q+npixels*(q-1)]+(npixels/6)^2/length(q)/3 > > # recover 2D projected pdf from 3D point sample using different methods > f2 = kde2(x, n=npixels, xlim=c(-3,3), ylim=c(-3,3), algorithm='basic', probability=TRUE)$field > f3 = kde2(x, n=npixels, xlim=c(-3,3), ylim=c(-3,3), algorithm='kdefast', probability=TRUE)$field > f4 = kde2(x, n=npixels, xlim=c(-3,3), ylim=c(-3,3), algorithm='kdenn', probability=TRUE)$field Error in kde2(x, n = npixels, xlim = c(-3, 3), ylim = c(-3, 3), algorithm = "kdenn", : Package EBImage is needed to run kde2 in with kdenn or manual algorithm. Execution halted
- ERROR12 OK, 1 ERROR2026-08-13
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-04-22
- ERROR13 OK, 1 ERROR2026-04-18
Show 1 earlier changeHide 1 earlier change
- OK14 OK2026-03-10
Documentation
- Help pages
- 92includes a package overview page
- Examples that run
- 98%51 run in a plain check · 1 never run
- Exported functions with examples
- 57%
- Documented parameters
- 94%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 50%
- Median days to close, 50 most recently updated closed issues
- not measured
- Median days to close, 50 most recently updated closed PRs
- 140
1 development-tooling and community-health practice detected across 1 family in the upstream repository
Checks run against github.com/obreschkow/cooltools on 2026-10-11.
Dependencies
Installing cooltools adds 20 packages (16 with compiled code, 24 MB of source tarballs). Heaviest: data.table 5.7 MB, sp 4.3 MB, pak 3.8 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- 2.33Latest2026-09-11 · current release · diff ↗ ·
added 7 exports
angularmomentum, blur, distradius, getgit, kappacorotation, linfun, streamlines - RR 4.6.0 released · 2026-04-24
- 2.182025-07-24 · diff ↗ ·
added 7 exports
error, progress, readhdf5, sigmoid, sortlist, userattributes, writehdf5 - RR 4.5.0 released · 2025-04-11
- unarchivedReturned to CRAN2024-07-19
- 2.4
- RR 4.4.0 released · 2024-04-24
- archivedRemoved from CRAN2024-01-12issues were not corrected despite reminders
- 2.1.27
- RR 4.3.0 released · 2023-04-21
- 2.0
- 1.82022-08-19 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 1.7
- 1.62022-02-07
- RR 4.1.0 released · 2021-05-18
Package metadata
- First published
- 2022-02-07
- Total releases
- 8 / 4 yrs
- License
- GPL-3 OSI
- Bundled data
- 178 KB / 1 file
- Download size
- 293 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("cooltools")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.