Skip to main content

Galaxian Luminosity Function Constructor package using the 1/Vmax estimator and Schechter model.

Project description

Luminosity Function Constructor and Modeller

This packag allows the user to construct and model Galaxian Luminosity Functions using the estimator and Schechter function.

PyPI PyPI - Python Version PyPI - Downloads GitHub issues GitHub stars GitHub forks GitHub license

Installation

Use the package manager pip to install lumfunc.

pip install lumfunc

Usage

import lumfunc as lf
import numpy as np

lf.get_maggy(np.array([10, 100, 20])) # returns maggy values
get_maggy( )

Converts magnitudes into maggies.

lf.get_maggy(np.array([10, 100, 20])) 
# returns array([1.e-04, 1.e-40, 1.e-08])

get_patches( )

Divides survey into equally distributed and equally sized patches. Returns labels for patches from RA, Dec, number of patches and patch center guesses.

lf.get_patches(np.array([20, 21, 22, 20, 21, 22]),
            np.array([20, 21, 22, 20, 21, 22]),
            3,
            np.array([[20, 21], [22, 20], [21, 22], [20, 21], [22, 20],
                      [21, 22]]),
            survey='kids',
            numba_installed=True,
            plot_savename='test_patches.png')
# Displays the plot

get_patches

Dependencies

PyPI PyPI PyPI PyPI

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

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

lumfunc-0.2.3.tar.gz (2.1 MB view hashes)

Uploaded Source

Built Distribution

lumfunc-0.2.3-py3-none-any.whl (13.3 kB view hashes)

Uploaded Python 3

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