Package: cooltools 2.4

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.4.tar.gz
cooltools_2.4.zip(r-4.5)cooltools_2.4.zip(r-4.4)cooltools_2.4.zip(r-4.3)
cooltools_2.4.tgz(r-4.4-x86_64)cooltools_2.4.tgz(r-4.4-arm64)cooltools_2.4.tgz(r-4.3-x86_64)cooltools_2.4.tgz(r-4.3-arm64)
cooltools_2.4.tar.gz(r-4.5-noble)cooltools_2.4.tar.gz(r-4.4-noble)
cooltools_2.4.tgz(r-4.4-emscripten)cooltools_2.4.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:

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

On CRAN:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

76 exports 0.09 score 20 dependencies 21 scripts 351 downloads

Last updated 2 months agofrom:73d62b6ab3. Checks:OK: 9. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 17 2024
R-4.5-win-x86_64OKSep 17 2024
R-4.5-linux-x86_64OKSep 17 2024
R-4.4-win-x86_64OKSep 17 2024
R-4.4-mac-x86_64OKSep 17 2024
R-4.4-mac-aarch64OKSep 17 2024
R-4.3-win-x86_64OKSep 17 2024
R-4.3-mac-x86_64OKSep 17 2024
R-4.3-mac-aarch64OKSep 17 2024

Exports:.cooltools.envalpapproxfun2bindatacar2polcar2sphcmplx2colcolorbarcontourlevelcosmofctcshiftcstcubehelixdftdftgriddpqrentropyerrlinesfibonaccispheregradientgrfgriddatahistcoordinertiainvertis.equaljackknifekde2landyszalaylastlightnesslimlinuxspacesloadbinmakeframemakemoviemcintegralmidseqmollweidemomentsmutualndftngonnplotpaircountpdf2jpgplanckcolorspol2carquadrupolequietrasterfliprebindensityrngrotation2rotation3runif2runif3scalarproductsmartroundsmoothcontoursmoothfunspectrumcolorssph2carsphereplotsphericalharmonicsstretchsubplotticktocktransparenttranszoomuniquedoubleunitvectorvectornormvectorproductwavelength2col

Dependencies:bitbit64celestialcubaturedata.tableFNNjpeglatticeMASSNISTunitsplotrixpngpracmarandtoolboxRANNrasterRcpprngWELLspterra

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 in-routine outputquiet
Flip array to be displayed with rasterImage()rasterflip
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
Round a vector of floating-point values while preserving their sumsmartround
Draw smoothed contourssmoothcontour
Smoothed Functionsmoothfun
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
Turn a 64-bit integer into a unique double valueuniquedouble
Normalize vectors to unit lengthunitvector
Vector normvectornorm
Vector productvectorproduct
Convert wavelength to RGBwavelength2col
Yin-Yang-Yong imageyinyangyong