Skip to main content

A set of tools for estimating the selection function of a scientific sample drawn from an astronomical catalogue.

Project description

selectionfunctiontoolbox

The selectionfunctiontoolbox package provides general tools to estimate the selection functions of subsets of astronomical catalogues. The selectionfunctions package is a product of the Completeness of the Gaia-verse (CoG) collaboration.

Tools in the toolbox

Large catalogues are ubiquitous throughout astronomy, but most scientific analyses are carried out on smaller samples selected from these catalogues by carefully chosen cuts on catalogued quantities. The selection function of that scientific sample - the probability that a star in the catalogue will satisfy these cuts and so make it into the sample - is thus unique to each scientific analysis. We have created a general framework that can flexibly estimate the selection function of a sample drawn from a catalogue as a function of position, magnitude and colour. Our method is unique in using the binomial likelihood and accounting for correlations in the selection function across position, magnitude and colour using Gaussian processes and one of three different bases in the spatial dimension.

The tools we provide only differ in the basis they use to capture correlations in the selection function in the spatial dimension.

  1. Hammer - uses spherical harmonics
  2. Chisel - uses spherical wavelets
  3. Wrench - assumes no correlation

If you have any difficulties using any of these tools, file an issue on GitHub.

Installation

Download the repository from GitHub and then run:

python setup.py install

Alternatively, you can use the Python package manager pip:

pip install selectionfunctiontoolbox

Examples

There are two papers associated with the selectionfunctiontoolbox package.

Boubert & Everall (2021, submitted) introduce the methodology and apply it to deduce the selection function of the APOGEE DR16 red giant sample as a subset of 2MASS. All of the code needed to reproduce the plots in that paper can be found in the Examples folder.

Everall & Boubert (2021, submitted) apply the methodology to deduce the selection functions of the astrometric and spectroscopic subsets of Gaia EDR3.

Citation

If you make use of this software in a publication, please cite Boubert & Everall (2021, submitted) and Everall & Boubert (2021, submitted).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

selectionfunctiontoolbox-1.0.0.tar.gz (17.3 kB view details)

Uploaded Source

File details

Details for the file selectionfunctiontoolbox-1.0.0.tar.gz.

File metadata

  • Download URL: selectionfunctiontoolbox-1.0.0.tar.gz
  • Upload date:
  • Size: 17.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for selectionfunctiontoolbox-1.0.0.tar.gz
Algorithm Hash digest
SHA256 df8cd891715db43e7b5317a225d067adcb736c104075e3e12e64a676ad3370ac
MD5 af4dad35f1c139bca17ee0d9a81fb6c5
BLAKE2b-256 6500e4a0d871a480c2da4cf76388a1e721ab9a784524eeaff1282db2b82ee3cb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page