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.
- Hammer - uses spherical harmonics
- Chisel - uses spherical wavelets
- 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).
Metadata
Release files for selectionfunctiontoolbox 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| selectionfunctiontoolbox-1.0.0.tar.gz | 17.3 kB | Without provenance | Details for selectionfunctiontoolbox-1.0.0.tar.gz |
Release files / selectionfunctiontoolbox-1.0.0.tar.gz
| Download URL | selectionfunctiontoolbox-1.0.0.tar.gz |
|---|---|
| Size | 17.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
df8cd891715db43e7b5317a225d067adcb736c104075e3e12e64a676ad3370ac
|
|
BLAKE2b-256 checksum How to use checksums |
6500e4a0d871a480c2da4cf76388a1e721ab9a784524eeaff1282db2b82ee3cb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for selectionfunctiontoolbox 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.