Util#

Units Utility Functions#

QuantitySpline

Subclass of SciPy's UnivariateSpline, supporting AstroPy Quantity

angular_width

AstroPy units conversion equivalency for angular to linear distances

Data Utility Functions#

core_cluster_list

Return a list of cluster names, useable by gcfit.Observations

hdf_view

Write out a clean listing of a clusters contents.

get_std_cluster_name

Convert a given cluster name to a standardized version.

get_cluster_path

Based on a cluster name, return path to the corresponding cluster file.

bibcode2bibtex

Request the bibtex entry of this bibcode from the ADS.

doi2bibtex

Request the bibtex entry of this doi from crossref.

bibcode2cite

Request this bibcode from ADS and attempt to parse a cite from it.

Probability Utility Functions#

gaussian

Gaussian PDF, evaluated over x with mean mu and width sigma.

RV_transform

Transformation of a random variable over a function \(g=h^{-1}\).

gaussian_likelihood

Gaussian log-likelihood function.

hyperparam_likelihood

Gaussian log-likelihood function with marginalized hyperparameters.

hyperparam_effective

Compute the "effective" α_k scaling value for a given X_model.

div_error

Gaussian error propagation for division of two quantities with errors.

trim_peaks

Remove all "peaks" from distribution while maintaining normalization.

Mass Function Utilities#

Field

Representation of an observational photometric field.