🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

selectionfunctiontoolbox

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

selectionfunctiontoolbox

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

1.0.0
96

Supply Chain Security

100

Vulnerability

98

Quality

100

Maintenance

99

License

Unpopular package

Quality

This package is not very popular.

Found 1 instance in 1 package

Uses eval

Supply chain risk

Package uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.

Found 1 instance in 1 package

Maintainers
1

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).

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts