Skip to main content

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


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)

Uploaded Source

Built Distribution

space_phunk-0.1.1-py3-none-any.whl (10.5 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