astro-sedpy


Nameastro-sedpy JSON
Version 0.4.1 PyPI version JSON
download
home_pageNone
SummarySimple tools for astronomical spectral energy distributions, particularly filter projections.
upload_time2025-09-05 20:16:53
maintainerNone
docs_urlNone
authorNone
requires_python>=3.9
licenseMIT License
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            sedpy
=====


Modules for storing and operating on astronomical source spectral energy distributions.

.. image:: https://github.com/bd-j/sedpy/workflows/Tests/badge.svg
  :target: https://github.com/bd-j/sedpy/actions?query=workflow%3ATests

.. image:: https://readthedocs.org/projects/sedpy/badge/?version=latest
    :target: https://sedpy.readthedocs.io/en/latest/?badge=latest
    :alt: Documentation Status

Installation & setup:
---------------------
``sedpy`` is pip installable:

.. code-block:: shell

		python -m pip install astro-sedpy

Or you can install the latest version from github:

.. code-block:: shell

		git clone https://github.com/bd-j/sedpy
		cd sedpy
		pip install .

Then in python, e.g.,

.. code-block:: python

		from sedpy import observate
		# get magnitude from a spectrum:
		filt = observate.Filter("sdss_r0")
		mag = filt.ab_mag(angstroms, f_lambda_cgs)
		# or get several magnitudes at once
		filterlist = observate.load_filters(["galex_NUV", "sdss_r0"])
		mags = observate.getSED(angstroms, f_lambda_cgs, filterlist=filters)

For the filters available by default see the `filter_list`_.
For adding transmission curves, see these `docs`_.

.. _filter_list: sedpy/data/filters/README.md
.. _docs: docs/transmissions.rst

This code can be referenced as:

.. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.4582723.svg
   :target: https://doi.org/10.5281/zenodo.4582723

Description:
------------

* ``observate`` has methods for generating synthetic photometry through any filters,
  and classes for dealing with filters generally. There is some functionality for spectra
  (vaccum to air conversions).
  With a huge debt to Mike Blanton's `kcorrect <https://github.com/blanton144/kcorrect>`_ code .

* ``attenuation`` contains simple dust attenuation methods.

* ``smoothing`` methods for smoothing well-sampled spectra.

* ``extinction`` (Deprecated) classes for a detailed modeling of extinction curves,
  following the Fitzpatrick & Massa parameterizations.
  See `dust_extinction <https://dust-extinction.readthedocs.io/en/stable/>`_ instead.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "astro-sedpy",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": null,
    "author": null,
    "author_email": "Benjamin Johnson <benjamin.johnson@cfa.harvard.edu>",
    "download_url": "https://files.pythonhosted.org/packages/50/5f/12768bfbe3bb5d779b48739e426d5ff41651dcfb8922810b8e4ef2948900/astro_sedpy-0.4.1.tar.gz",
    "platform": null,
    "description": "sedpy\n=====\n\n\nModules for storing and operating on astronomical source spectral energy distributions.\n\n.. image:: https://github.com/bd-j/sedpy/workflows/Tests/badge.svg\n  :target: https://github.com/bd-j/sedpy/actions?query=workflow%3ATests\n\n.. image:: https://readthedocs.org/projects/sedpy/badge/?version=latest\n    :target: https://sedpy.readthedocs.io/en/latest/?badge=latest\n    :alt: Documentation Status\n\nInstallation & setup:\n---------------------\n``sedpy`` is pip installable:\n\n.. code-block:: shell\n\n\t\tpython -m pip install astro-sedpy\n\nOr you can install the latest version from github:\n\n.. code-block:: shell\n\n\t\tgit clone https://github.com/bd-j/sedpy\n\t\tcd sedpy\n\t\tpip install .\n\nThen in python, e.g.,\n\n.. code-block:: python\n\n\t\tfrom sedpy import observate\n\t\t# get magnitude from a spectrum:\n\t\tfilt = observate.Filter(\"sdss_r0\")\n\t\tmag = filt.ab_mag(angstroms, f_lambda_cgs)\n\t\t# or get several magnitudes at once\n\t\tfilterlist = observate.load_filters([\"galex_NUV\", \"sdss_r0\"])\n\t\tmags = observate.getSED(angstroms, f_lambda_cgs, filterlist=filters)\n\nFor the filters available by default see the `filter_list`_.\nFor adding transmission curves, see these `docs`_.\n\n.. _filter_list: sedpy/data/filters/README.md\n.. _docs: docs/transmissions.rst\n\nThis code can be referenced as:\n\n.. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.4582723.svg\n   :target: https://doi.org/10.5281/zenodo.4582723\n\nDescription:\n------------\n\n* ``observate`` has methods for generating synthetic photometry through any filters,\n  and classes for dealing with filters generally. There is some functionality for spectra\n  (vaccum to air conversions).\n  With a huge debt to Mike Blanton's `kcorrect <https://github.com/blanton144/kcorrect>`_ code .\n\n* ``attenuation`` contains simple dust attenuation methods.\n\n* ``smoothing`` methods for smoothing well-sampled spectra.\n\n* ``extinction`` (Deprecated) classes for a detailed modeling of extinction curves,\n  following the Fitzpatrick & Massa parameterizations.\n  See `dust_extinction <https://dust-extinction.readthedocs.io/en/stable/>`_ instead.\n",
    "bugtrack_url": null,
    "license": "MIT License",
    "summary": "Simple tools for astronomical spectral energy distributions, particularly filter projections.",
    "version": "0.4.1",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "fd50eb818a9e185fcb2e158513a5f7e99f56ec40d0c9761a6ed0f07ffce71dbb",
                "md5": "48d26f939108dd941058dd94ea639d77",
                "sha256": "162e9d5604cc324597be7c5a7c586fbd57ae9fdd55d22957e2c8bce908cd72d1"
            },
            "downloads": -1,
            "filename": "astro_sedpy-0.4.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "48d26f939108dd941058dd94ea639d77",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 3714933,
            "upload_time": "2025-09-05T20:16:52",
            "upload_time_iso_8601": "2025-09-05T20:16:52.109112Z",
            "url": "https://files.pythonhosted.org/packages/fd/50/eb818a9e185fcb2e158513a5f7e99f56ec40d0c9761a6ed0f07ffce71dbb/astro_sedpy-0.4.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "505f12768bfbe3bb5d779b48739e426d5ff41651dcfb8922810b8e4ef2948900",
                "md5": "1d4ea3db357e31a658a0fa908b015d4f",
                "sha256": "4326963296dd5c7952b4e36056f333d97922870350fd1ad7472844ce1a43911a"
            },
            "downloads": -1,
            "filename": "astro_sedpy-0.4.1.tar.gz",
            "has_sig": false,
            "md5_digest": "1d4ea3db357e31a658a0fa908b015d4f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 3662825,
            "upload_time": "2025-09-05T20:16:53",
            "upload_time_iso_8601": "2025-09-05T20:16:53.509972Z",
            "url": "https://files.pythonhosted.org/packages/50/5f/12768bfbe3bb5d779b48739e426d5ff41651dcfb8922810b8e4ef2948900/astro_sedpy-0.4.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-09-05 20:16:53",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "astro-sedpy"
}
        
Elapsed time: 1.12781s