Package: cooltools 2.12

cooltools: Practical Tools for Scientific Computations and Visualizations

Collection of routines for efficient scientific computations in physics and astrophysics. These routines include utility functions, numerical computation tools, as well as visualisation tools. They can be used, for example, for generating random numbers from spherical and custom distributions, information and entropy analysis, special Fourier transforms, two-point correlation estimation (e.g. as in Landy & Szalay (1993) <doi:10.1086/172900>), binning & gridding of point sets, 2D interpolation, Monte Carlo integration, vector arithmetic and coordinate transformations. Also included is a non-exhaustive list of important constants and cosmological conversion functions. The graphics routines can be used to produce and export publication-ready scientific plots and movies, e.g. as used in Obreschkow et al. (2020, MNRAS Vol 493, Issue 3, Pages 4551–4569). These routines include special color scales, projection functions, and bitmap handling routines.

Authors:Danail Obreschkow [aut, cre]

cooltools_2.12.tar.gz
cooltools_2.12.zip(r-4.5)cooltools_2.12.zip(r-4.4)cooltools_2.12.zip(r-4.3)
cooltools_2.12.tgz(r-4.4-x86_64)cooltools_2.12.tgz(r-4.4-arm64)cooltools_2.12.tgz(r-4.3-x86_64)cooltools_2.12.tgz(r-4.3-arm64)
cooltools_2.12.tar.gz(r-4.5-noble)cooltools_2.12.tar.gz(r-4.4-noble)
cooltools_2.12.tgz(r-4.4-emscripten)cooltools_2.12.tgz(r-4.3-emscripten)
cooltools.pdf |cooltools.html
cooltools/json (API)

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

Peer review:

Bug tracker:https://github.com/obreschkow/cooltools/issues

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:

On CRAN:

3.10 score 1 stars 21 scripts 330 downloads 81 exports 22 dependencies

Last updated 3 days agofrom:71c2c7a39a. Checks:OK: 8 ERROR: 1. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 15 2024
R-4.5-win-x86_64OKNov 15 2024
R-4.5-linux-x86_64OKNov 15 2024
R-4.4-win-x86_64OKNov 15 2024
R-4.4-mac-x86_64OKNov 15 2024
R-4.4-mac-aarch64OKNov 15 2024
R-4.3-win-x86_64OKNov 15 2024
R-4.3-mac-x86_64OKNov 15 2024
R-4.3-mac-aarch64ERRORNov 15 2024

Exports:.cooltools.envalpapproxfun2bindatacar2polcar2sphcmplx2colcolorbarcontourlevelcosmofctcshiftcstcubehelixdftdftgriddpqrentropyerrlinesfibonaccispheregradientgrfgriddatahistcoordinertiainvertis.equaljackknifekde2landyszalaylastlightnesslimlinuxspacesloadbinmakeframemakemoviemcintegralmidseqmollweidemomentsmutualndftngonnplotpaircountpdf2jpgplanckcolorspol2carquadrupolequietrasterflipreadhdf5rebindensityrngrotation2rotation3runif2runif3scalarproductsigmoidsmartroundsmoothcontoursmoothfunsortlistspectrumcolorssph2carsphereplotsphericalharmonicsstretchsubplotticktocktransparenttranszoomuniquedoubleunitvectoruserattributesvectornormvectorproductwavelength2colwritehdf5

Dependencies:bitbit64celestialcubaturedata.tableFNNhdf5rjpeglatticeMASSNISTunitsplotrixpngpracmaR6randtoolboxRANNrasterRcpprngWELLspterra

Readme and manuals

Help Manual

Help pageTopics
Practical Tools for Scientific Computations and Visualizationscooltools-package cooltools
Package environment.cooltools.env
Associated Legendre Polynomialsalp
Bilinear interpolation function of data on a regular gridapproxfun2
Bin two-dimensional data in one dimensionbindata
Cartesian to polar/cylindrical coordinate conversioncar2pol
Cartesian to spherical coordinate conversioncar2sph
Convert complex numbers to colorcmplx2col
Vertical color barcolorbar
Find contour levels of a d-dimensional density fieldcontourlevel
Fast cosmology conversion functionscosmofct
Circularly shift each dimension of an arraycshift
Scientific constantscst
Cube Helix colour palettecubehelix
Discrete Fourier Transformdft
Produce coordinates for Discrete Fourier Transformdftgrid
d/p/q/r-family for a custom distributiondpqr
Information entropyentropy
Draw a line with uncertainty regionserrlines
Evenly distributed n points on a spherefibonaccisphere
Compute gradientgradient
Gaussian Random Field generatorgrf
Distribute a point set onto a regular gridgriddata
Generate histogram coordinates from mid pointshistcoord
Inertia tensorinertia
Invert and shift colors of an imageinvert
Numerical equality checkis.equal
Jackknife Estimationjackknife
Multi-dimensional adaptive kernel density estimationkde2
Two-point correlation estimationlandyszalay
Last element of a vectorlast
Change lightness of a colorlightness
Crop values to a custom rangelim
Handle spaces in Linux filenameslinuxspaces
Read binary data into arrayloadbin
Display a single movie framemakeframe
Produce a movie from frame-drawing functionmakemovie
Monte Carlo and Quasi-Monte Carlo integration in any dimensionmcintegral
Mid-points of regular gridmidseq
Mollweide projectionmollweide
Second moment tensormoments
Mutual information of two random variablesmutual
Non-uniform Discrete Fourier Transformndft
Draw a regular n-gonngon
Make empty plot areanplot
Count the number of point-pairs in distance binspaircount
Convert pdf to jpgpdf2jpg
Planck CMB colour paletteplanckcolors
Polar/cylindrical to Cartesian coordinate conversionpol2car
Quadrupole tensorquadrupole
Suppress console outputquiet
Flip array to be displayed with rasterImage()rasterflip
Read data from an HDF5 filereadhdf5
Re-bin density histogramsrebindensity
Random number generator for a custom d-dimensional distributionrng
2D rotation matrixrotation2
3D rotation matrixrotation3
Generate randomly oriented vectors in 2Drunif2
Generate randomly oriented vectors in 3Drunif3
Scalar productscalarproduct
Sigmoid functionsigmoid
Round a vector of floating-point values while preserving their sumsmartround
Draw smoothed contourssmoothcontour
Smoothed Functionsmoothfun
Sort List Entries Alphabeticallysortlist
Spectrum colour palettespectrumcolors
Spherical to Cartesian coordinate conversionsph2car
Plot a spherical function or point setsphereplot
Spherical Harmonicssphericalharmonics
Stretch values to a custom rangestretch
Insert a sub-panel into plotsubplot
Start timertick
Stop timertock
Add transparency to a colortransparent
Zoom, translate and rotate array imagetranszoom
Map positive 64-bit integers onto unique doublesuniquedouble
Normalize vectors to unit lengthunitvector
Retrieve Custom Object Attributesuserattributes
Vector normvectornorm
Vector productvectorproduct
Convert wavelength to RGBwavelength2col
Write structured list to an HDF5 filewritehdf5
Yin-Yang-Yong imageyinyangyong