Fit photometric phase curves of asteroids.
Project description
Features - Install - Documentation
Features
Observe the phase curve of an asteroid, ...
>>> from phunk import PhaseCurve
>>> # Observations of (20) Massalia from Gehrels 1956
>>> phase = [0.57, 1.09, 3.20, 10.99, 14.69, 20.42]
>>> mag = [6.555, 6.646, 6.793, 7.130, 7.210, 7.414]
>>> pc = PhaseCurve(phase=phase, mag=mag)
..., fit it in one of multiple photometric models, ....
>>> pc.fit(["HG", "HG1G2", "sHG1G2"])
..., and plot / process the results.
>>> pc.HG1G2.H
>>> pc.HG12.H
>>> pc.plot()
Provide a target to PhaseCurve
to have phunk
compute the required ephemerides for you.
>>> epoch = [35193, 35194, 35198, 35214, 35223, 35242] # in MJD
>>> pc = PhaseCurve(epoch=epoch, mag=mag, target='massalia')
>>> pc.fit(['sHG1G2']) # phunk computes required RA, Dec, and phase at epoch of observation
>>> pc.sHG1G2.H
Install
Install from PyPi using pip
:
$ pip install space-phunk
The minimum required python
version is 3.8.
Documentation
Check out the documentation at phunk.readthedocs.io.
Acknowledgements
This package uses the photometric model implementations provided by sbpy.
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
space_phunk-0.1.1.tar.gz
(10.7 kB
view hashes)
Built Distribution
Close
Hashes for space_phunk-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d81b7e43737c53255c670a4786538d0884963f412aa2d17edad5eae7b29bcff9 |
|
MD5 | 78bb8334833d3f8577f80bcd13b305e5 |
|
BLAKE2b-256 | f1c9ecd154087626f3d8f03adef507ae6985bac617701d0edeac18ee5a4a7450 |