space-phunk


Namespace-phunk JSON
Version 0.1.3 PyPI version JSON
download
home_pagehttps://phunk.readthedocs.io/en/latest/
SummaryFit photometric phase curves of asteroids.
upload_time2024-11-12 16:14:49
maintainerNone
docs_urlNone
authorMax Mahlke
requires_python>=3.8
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <p align="center">
  <img width="260" src="https://raw.githubusercontent.com/maxmahlke/phunk/main/docs/gfx/logo_phunk.svg">
</p>

<p align="center">
  <a href="https://github.com/maxmahlke/phunk#features"> Features </a> - <a href="https://github.com/maxmahlke/phunk#install"> Install </a> - <a href="https://github.com/maxmahlke/phunk#documentation"> Documentation </a>
</p>

<div align="center">
  <a href="https://img.shields.io/pypi/pyversions/space-phunk">
    <img src="https://img.shields.io/pypi/pyversions/space-phunk"/>
  </a>
  <a href="https://img.shields.io/pypi/v/space-phunk">
    <img src="https://img.shields.io/pypi/v/space-phunk"/>
  </a>
  <a href="https://readthedocs.org/projects/phunk/badge/?version=latest">
    <img src="https://readthedocs.org/projects/phunk/badge/?version=latest"/>
  </a>
</div>


## Features

Observe the phase curve of an asteroid, ...

``` python
>>> from phunk import PhaseCurve
>>> # Observations of (20) Massalia from Gehrels 1956
>>> phase = [0.57, 1.09, 3.20, 10.99, 14.69, 20.42]  # in degrees
>>> mag = [6.555, 6.646, 6.793, 7.130, 7.210, 7.414]
>>> epoch = [35193, 35194, 35198, 35214, 35223, 35242]  # in MJD
>>> pc = PhaseCurve(phase=phase, mag=mag, epoch=epoch, target='massalia')
```

..., fit it in one of multiple photometric models, ....

``` python
>>> pc.fit(["HG", "HG12", "HG12S", "HG1G2", "sHG1G2", "LinExp"])
```

..., and plot / process the results.

``` python
>>> pc.HG1G2.H
>>> pc.HG12.H
>>> pc.plot()
```

![Massalia](https://raw.githubusercontent.com/maxmahlke/phunk/main/docs/gfx/massalia_all_models_dark.png)

## 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](https://phunk.readthedocs.io/en/latest/).

## Acknowledgements

This package uses photometric model implementations provided by [sbpy](https://sbpy.readthedocs.io/en/stable) and [fink](https://fink-portal.org/).

            

Raw data

            {
    "_id": null,
    "home_page": "https://phunk.readthedocs.io/en/latest/",
    "name": "space-phunk",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": null,
    "author": "Max Mahlke",
    "author_email": "max.mahlke@oca.eu",
    "download_url": "https://files.pythonhosted.org/packages/47/5b/c32600f1ee08757f75327903ead90176dcc34dd3a37bf05ec956cb523e9c/space_phunk-0.1.3.tar.gz",
    "platform": null,
    "description": "<p align=\"center\">\n  <img width=\"260\" src=\"https://raw.githubusercontent.com/maxmahlke/phunk/main/docs/gfx/logo_phunk.svg\">\n</p>\n\n<p align=\"center\">\n  <a href=\"https://github.com/maxmahlke/phunk#features\"> Features </a> - <a href=\"https://github.com/maxmahlke/phunk#install\"> Install </a> - <a href=\"https://github.com/maxmahlke/phunk#documentation\"> Documentation </a>\n</p>\n\n<div align=\"center\">\n  <a href=\"https://img.shields.io/pypi/pyversions/space-phunk\">\n    <img src=\"https://img.shields.io/pypi/pyversions/space-phunk\"/>\n  </a>\n  <a href=\"https://img.shields.io/pypi/v/space-phunk\">\n    <img src=\"https://img.shields.io/pypi/v/space-phunk\"/>\n  </a>\n  <a href=\"https://readthedocs.org/projects/phunk/badge/?version=latest\">\n    <img src=\"https://readthedocs.org/projects/phunk/badge/?version=latest\"/>\n  </a>\n</div>\n\n\n## Features\n\nObserve the phase curve of an asteroid, ...\n\n``` python\n>>> from phunk import PhaseCurve\n>>> # Observations of (20) Massalia from Gehrels 1956\n>>> phase = [0.57, 1.09, 3.20, 10.99, 14.69, 20.42]  # in degrees\n>>> mag = [6.555, 6.646, 6.793, 7.130, 7.210, 7.414]\n>>> epoch = [35193, 35194, 35198, 35214, 35223, 35242]  # in MJD\n>>> pc = PhaseCurve(phase=phase, mag=mag, epoch=epoch, target='massalia')\n```\n\n..., fit it in one of multiple photometric models, ....\n\n``` python\n>>> pc.fit([\"HG\", \"HG12\", \"HG12S\", \"HG1G2\", \"sHG1G2\", \"LinExp\"])\n```\n\n..., and plot / process the results.\n\n``` python\n>>> pc.HG1G2.H\n>>> pc.HG12.H\n>>> pc.plot()\n```\n\n![Massalia](https://raw.githubusercontent.com/maxmahlke/phunk/main/docs/gfx/massalia_all_models_dark.png)\n\n## Install\n\nInstall from PyPi using `pip`:\n\n     $ pip install space-phunk\n\nThe minimum required `python` version is 3.8.\n\n\n## Documentation\n\nCheck out the documentation at [phunk.readthedocs.io](https://phunk.readthedocs.io/en/latest/).\n\n## Acknowledgements\n\nThis package uses photometric model implementations provided by [sbpy](https://sbpy.readthedocs.io/en/stable) and [fink](https://fink-portal.org/).\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Fit photometric phase curves of asteroids.",
    "version": "0.1.3",
    "project_urls": {
        "Documentation": "https://phunk.readthedocs.io/en/latest/",
        "Homepage": "https://phunk.readthedocs.io/en/latest/",
        "Repository": "https://github.com/maxmahlke/phunk.git"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "64fcd8d4865b2354705160323e76556c54bf95fc2ff1dcd304b78bcb1fba9556",
                "md5": "dcd8a5acac5244d631d44579fe5583c0",
                "sha256": "b647c4fbaf7d95e9b37da4832643c2304a8a3316f6bd470c1e57edf49941dc63"
            },
            "downloads": -1,
            "filename": "space_phunk-0.1.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "dcd8a5acac5244d631d44579fe5583c0",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 11260,
            "upload_time": "2024-11-12T16:14:47",
            "upload_time_iso_8601": "2024-11-12T16:14:47.433865Z",
            "url": "https://files.pythonhosted.org/packages/64/fc/d8d4865b2354705160323e76556c54bf95fc2ff1dcd304b78bcb1fba9556/space_phunk-0.1.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "475bc32600f1ee08757f75327903ead90176dcc34dd3a37bf05ec956cb523e9c",
                "md5": "3b393b063e5c0d46feed3bc1d5d70e37",
                "sha256": "b9e73dd2d688a39f00c48d25a534b7ffb4a6e58a62564d87a164c5d72a89c610"
            },
            "downloads": -1,
            "filename": "space_phunk-0.1.3.tar.gz",
            "has_sig": false,
            "md5_digest": "3b393b063e5c0d46feed3bc1d5d70e37",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 10635,
            "upload_time": "2024-11-12T16:14:49",
            "upload_time_iso_8601": "2024-11-12T16:14:49.233031Z",
            "url": "https://files.pythonhosted.org/packages/47/5b/c32600f1ee08757f75327903ead90176dcc34dd3a37bf05ec956cb523e9c/space_phunk-0.1.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-12 16:14:49",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "maxmahlke",
    "github_project": "phunk",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "space-phunk"
}
        
Elapsed time: 0.37243s