Practical Tools for Scientific Computations and Visualizations
Associated Legendre Polynomials
Bilinear interpolation function of data on a regular grid
Bin two-dimensional data in one dimension
Cartesian to polar/cylindrical coordinate conversion
Cartesian to spherical coordinate conversion
Convert complex numbers to color
Vertical color bar
Find contour levels of a d-dimensional density field
Practical Tools for Scientific Computations and Visualizations
Fast cosmology conversion functions
Circularly shift each dimension of an array
Scientific constants
Cube Helix colour palette
Discrete Fourier Transform
Produce coordinates for Discrete Fourier Transform
Package environment
d/p/q/r-family for a custom distribution
Information entropy
Draw a line with uncertainty regions
Stop code and produce an error message
Evenly distributed n points on a sphere
Compute gradient
Gaussian Random Field generator
Distribute a point set onto a regular grid
Generate histogram coordinates from mid points
Inertia tensor
Invert and shift colors of an image
Numerical equality check
Jackknife Estimation
Multi-dimensional adaptive kernel density estimation
Two-point correlation estimation
Last element of a vector
Change lightness of a color
Crop values to a custom range
Handle spaces in Linux filenames
Read binary data into array
Display a single movie frame
Produce a movie from frame-drawing function
Monte Carlo and Quasi-Monte Carlo integration in any dimension
Mid-points of regular grid
Mollweide projection
Second moment tensor
Mutual information of two random variables
Non-uniform Discrete Fourier Transform
Draw a regular n-gon
Make empty plot area
Count the number of point-pairs in distance bins
Convert pdf to jpg
Planck CMB colour palette
Polar/cylindrical to Cartesian coordinate conversion
Show progress while timer in running
Quadrupole tensor
Suppress console output
Flip array to be displayed with rasterImage()
Read data from an HDF5 file
Re-bin density histograms
Random number generator for a custom d-dimensional distribution
2D rotation matrix
3D rotation matrix
Generate randomly oriented vectors in 2D
Generate randomly oriented vectors in 3D
Scalar product
Sigmoid function
Round a vector of floating-point values while preserving their sum
Draw smoothed contours
Smoothed Function
Sort List Entries Alphabetically
Spectrum colour palette
Spherical to Cartesian coordinate conversion
Plot a spherical function or point set
Spherical Harmonics
Stretch values to a custom range
Insert a sub-panel into plot
Start timer
Stop timer
Add transparency to a color
Zoom, translate and rotate array image
Map positive 64-bit integers onto unique doubles
Normalize vectors to unit length
Retrieve Custom Object Attributes
Vector norm
Vector product
Convert wavelength to RGB
Write structured list to an HDF5 file
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.