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.
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
Dependencies
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file lumfunc-0.2.3.tar.gz
.
File metadata
- Download URL: lumfunc-0.2.3.tar.gz
- Upload date:
- Size: 2.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7be3629af836c30cf9737615e1d22f8e1f51dafd3409565e9c1a2648ac15925 |
|
MD5 | 33ed634e1589d22f3473e8e6ab5228b3 |
|
BLAKE2b-256 | e30c20c85697f035487078f59ccc23bf48cfa8dcfe1f671d0763f15363fd0a29 |
File details
Details for the file lumfunc-0.2.3-py3-none-any.whl
.
File metadata
- Download URL: lumfunc-0.2.3-py3-none-any.whl
- Upload date:
- Size: 13.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35a1b26f74b26d515c8c5ea44ac86fe7d8b3a2ed31eae58954d4b36c1450c9ed |
|
MD5 | 21913c8c014f6f16a5d5ea3d936a6336 |
|
BLAKE2b-256 | 5f5b0a32165d9d5f3ddc6958f6c4f4a5019d1e87910ec970b9615edd91033a37 |