{ "info": { "author": "Jason Neal", "author_email": "jason.neal@astro.up.pt", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Scientific/Engineering :: Astronomy", "Topic :: Scientific/Engineering :: Physics" ], "description": "# spectrum_overload\n[![Say Thanks!](https://img.shields.io/badge/Say%20Thanks-!-1EAEDB.svg)](https://saythanks.io/to/jason-neal)\n[![PyPI version](https://badge.fury.io/py/spectrum-overload.svg)](https://badge.fury.io/py/spectrum-overload)[![Updates](https://pyup.io/repos/github/jason-neal/spectrum_overload/shield.svg)](https://pyup.io/repos/github/jason-neal/spectrum_overload/)[![Python 3](https://pyup.io/repos/github/jason-neal/spectrum_overload/python-3-shield.svg)](https://pyup.io/repos/github/jason-neal/spectrum_overload/)\n\n[![Documentation Status](https://readthedocs.org/projects/spectrum-overload/badge/?version=latest)](http://spectrum-overload.readthedocs.io/en/latest/?badge=latest) [![Build Status](https://travis-ci.org/jason-neal/spectrum_overload.svg?branch=master)](https://travis-ci.org/jason-neal/spectrum_overload) [![Coverage Status](https://coveralls.io/repos/github/jason-neal/spectrum_overload/badge.svg?branch=master)](https://coveralls.io/github/jason-neal/spectrum_overload?branch=master) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/3e9a2cf4ad914e0ebc24b6b2b83059db)](https://www.codacy.com/app/jason-neal/spectrum_overload?utm_source=github.com&utm_medium=referral&utm_content=jason-neal/spectrum_overload&utm_campaign=badger)[![Test Coverage](https://codeclimate.com/github/jason-neal/spectrum_overload/badges/coverage.svg)](https://codeclimate.com/github/jason-neal/spectrum_overload/coverage) [![Code Climate](https://codeclimate.com/github/jason-neal/spectrum_overload/badges/gpa.svg)](https://codeclimate.com/github/jason-neal/spectrum_overload)[![Issue Count](https://codeclimate.com/github/jason-neal/spectrum_overload/badges/issue_count.svg)](https://codeclimate.com/github/jason-neal/spectrum_overload) \n\n\n## Overview\nThe purpose of this was project was to learn how to use and create Classes, and to create a Spectrum object to use within my Phd work.\n\nThe main goals of this project are basically complete.\n\n- create a class to contain spectrum\n- automatic interpolation\n- overloaded operators\nespecially\n- Spectral division (spectrum_A / spectrum_B )\n- Spectral subtraction (spectrum_A - spectrum_B)\n- Powers/exponents (spectrum ** x)\n\nFurther documentation can be found on [read the docs](https://spectrum-overload.readthedocs.io/en/latest/).\n\n##### Note:\n When the spectra have different wavelength vectors spectrum_overload interpolates\n to the wavelength of the first spectrum. This may not suit your requirements.\n\n\n## Installation\n### Pip\n\n pip install spectrum-overload\n\n### git / manual\nCurrently to install and use Spectrum class for your own projects.\n\nclone the git repository where you want it then type:\n\n git clone https://github.com/jason-neal/spectrum_overload.git\n cd spectrum_overload\n python setup.py install\n\nor `python setup.py develop` if you want to make changes.\n\n\n## Usage\nTo use import the class using :\n\n from spectrum_overload import Spectrum\n ...\n my_spectrum = Spectrum(flux, xaxis)\n\nor :\n\n from spectrum_overload.spectrum import Spectrum as spec\n ...\n my_spectrum = spec(flux, xaxis)\n\nor however else you would like to name it.\n\nA tutorial is provided [here](Notebooks/Tutorial.ipynb) to show an example of how to use this class.\n\n\n## Contributions\nContributions are very welcome.\n\nI would really appreciate user feedback or suggested improvements if you have any.\n\nFeel free to submit issues or create pull requests.\n\n\n## Python 2.7\nPython 2.7 is only supported in versions <0.2.1 (also available on pip) to make use of useful python3 features.\n\n\n## Other Spectrum Classes\n\nThere are many other spectrum classes around but I didn't see any that overload the operators. (I could be blind).\n\nOne of these may better suit your needs\n\n- https://github.com/crawfordsm/specreduce\n- https://github.com/crawfordsm/pyspectrograph/tree/master/PySpectrograph/Spectra\n- http://pyspeckit.bitbucket.org/html/sphinx/spectrum.html#pyspeckit.spectrum.classes.Spectrum\n- https://github.com/cokelaer/spectrum\n- https://github.com/astropy/specutils\n\nWow A lot. I probably should not reinvent the wheel too much then...\n\nIt turns out that astropy/specutils is very similar to what I have created but its direction is uncertain at the moment and they do not use overloaded operators and will not implement in the foreseeable future.\n\n## TO DO\nSome tasks still to do:\n- Improve Documentation\n- Generate Calibration solution (outside spectrum class)?\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "https://github.com/jason-neal/spectrum_overload", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/jason-neal/spectrum_overload", "keywords": "astronomy,spectra,spectroscopy,CRIRES", "license": "MIT Licence", "maintainer": "", "maintainer_email": "", "name": "spectrum-overload", "package_url": "https://pypi.org/project/spectrum-overload/", "platform": "", "project_url": "https://pypi.org/project/spectrum-overload/", "project_urls": { "Download": "https://github.com/jason-neal/spectrum_overload", "Homepage": "https://github.com/jason-neal/spectrum_overload" }, "release_url": "https://pypi.org/project/spectrum-overload/0.3/", "requires_dist": [ "numpy", "scipy", "astropy", "pyastronomy", "matplotlib", "check-manifest; extra == 'dev'", "sphinx (>=1.4); extra == 'docs'", "sphinx-rtd-theme; extra == 'docs'", "pyastronomy; extra == 'docs'", "coverage; extra == 'test'", "pytest; extra == 'test'", "pytest-cov; extra == 'test'", "python-coveralls; extra == 'test'", "hypothesis; extra == 'test'" ], "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4", "summary": "Spectrum class that overloads operators.", "version": "0.3" }, "last_serial": 4221985, "releases": { "0.2.0": [ { "comment_text": "", "digests": { "md5": "ae43b508986301a7ae4e2ccae963788a", "sha256": "b692f191c4dee6d692738a4ca836a255e3aacc7e66b43a9143abb74456cffbc8" }, "downloads": -1, "filename": "spectrum_overload-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "ae43b508986301a7ae4e2ccae963788a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4", "size": 288659, "upload_time": "2018-01-14T15:41:38", "url": "https://files.pythonhosted.org/packages/5d/4f/86709878a6fa13cf54b811e7630ebde932ce28a889b4341b09376bf39c77/spectrum_overload-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c00e7d8eb283e994744ee5bc2ac20e07", "sha256": "d48f0717bc1969494ff6c4bee012b87598ab3d96b0c2f88aba1bd5515cf50eda" }, "downloads": -1, "filename": "spectrum_overload-0.2.0.tar.gz", "has_sig": false, "md5_digest": "c00e7d8eb283e994744ee5bc2ac20e07", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4", "size": 344448, "upload_time": "2018-01-14T15:41:41", "url": "https://files.pythonhosted.org/packages/be/f6/893710d009e205373cdee1a43b926487177e101564b633bb42658a80f6cf/spectrum_overload-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "b26ea8e6eed9720921158e918f218d7d", "sha256": "4e846e6acaad94ebfedb58d6fc20b5e255a545a0fdccacde90b56ab897172ec9" }, "downloads": -1, "filename": "spectrum_overload-0.2.1-py3-none-any.whl", "has_sig": false, "md5_digest": "b26ea8e6eed9720921158e918f218d7d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4", "size": 288661, "upload_time": "2018-01-14T19:09:26", "url": "https://files.pythonhosted.org/packages/9d/1b/325f2c0f5d2c9b7a91dd29f03fc4011e3fb60649fbdd478ced3f32b5b869/spectrum_overload-0.2.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "65bcb4bdd6036bca4e22c07a0d240d4d", "sha256": "f0176bc5b2124d7ba0a7ec14fd68a0346b772ad6d6998b52fbc2b98e466d732e" }, "downloads": -1, "filename": "spectrum_overload-0.2.1.tar.gz", "has_sig": false, "md5_digest": "65bcb4bdd6036bca4e22c07a0d240d4d", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4", "size": 344471, "upload_time": "2018-01-14T19:09:30", "url": "https://files.pythonhosted.org/packages/29/e1/addcffb5493efe300917f632d926b4a2045d147a42067a633a950058ea02/spectrum_overload-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "5cf7effae008fe5cd4898ae4b8ad7ab7", "sha256": "a71a4befba8275aff55c6b2ff017931b2eda7c5ddc0079412d9abec3b328d50d" }, "downloads": -1, "filename": "spectrum_overload-0.2.2-py3-none-any.whl", "has_sig": false, "md5_digest": "5cf7effae008fe5cd4898ae4b8ad7ab7", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4", "size": 285884, "upload_time": "2018-08-28T10:05:07", "url": "https://files.pythonhosted.org/packages/e1/d5/ccf4e682ba539923d602694568a6c09bf6b6ece53d1ec4e97b7c629f4e59/spectrum_overload-0.2.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "bd77cf45d8e73e814da7fc279d9ae19c", "sha256": "5200f2b1c194c335692573a83064cf4debdaaec503bdeae71fd33d79f573ea73" }, "downloads": -1, "filename": "spectrum_overload-0.2.2.tar.gz", "has_sig": false, "md5_digest": "bd77cf45d8e73e814da7fc279d9ae19c", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4", "size": 517408, "upload_time": "2018-08-28T10:05:09", "url": "https://files.pythonhosted.org/packages/bb/be/80b48f578edf2124ea1f25e38b02b466bbc80d0add1676e97a3ae458fcc5/spectrum_overload-0.2.2.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "b33962adaeb4e2864f99aa583e5218e5", "sha256": "fbe115eb9d3c31446eb74edcc961d22691a99d6c1596657637e2a772c6d37d0b" }, "downloads": -1, "filename": "spectrum_overload-0.2.3-py3-none-any.whl", "has_sig": false, "md5_digest": "b33962adaeb4e2864f99aa583e5218e5", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4", "size": 285957, "upload_time": "2018-08-29T10:08:33", "url": "https://files.pythonhosted.org/packages/89/88/8552980a9bce311362b00bd2d25d8f2517b3cdf5a9a2e7b440a508dbbfb2/spectrum_overload-0.2.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d1a6149339d16b86cea8a87c79f8f599", "sha256": "20491bf6cd850736ae28d84feca999c70536cd1866fc715408f28048aaa6d9d0" }, "downloads": -1, "filename": "spectrum_overload-0.2.3.tar.gz", "has_sig": false, "md5_digest": "d1a6149339d16b86cea8a87c79f8f599", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4", "size": 860925, "upload_time": "2018-08-29T10:08:36", "url": "https://files.pythonhosted.org/packages/2b/70/e05352acc2c948284e1fd23a120e28d8764be32997bed0ea2d28431f8df7/spectrum_overload-0.2.3.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "66dd675c5fd345c2a7ac3c1286305a02", "sha256": "06c14bd397e200c5ff5e093a78f8a51ae6b484e846d66583301824ac84ddb7a4" }, "downloads": -1, "filename": "spectrum_overload-0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "66dd675c5fd345c2a7ac3c1286305a02", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4", "size": 286110, "upload_time": "2018-08-30T09:55:56", "url": "https://files.pythonhosted.org/packages/a9/34/474a016a6c1e81470c8ebb2ce2a21ff3f79a02e15f6d0e29f8d15cae0ce1/spectrum_overload-0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0832554b429e93b9c5b881966bc4fdca", "sha256": "04f9ab396fb0dae662be7b38f86f101ef9eb9e1ecc5a5faff91494ab9df5cb68" }, "downloads": -1, "filename": "spectrum_overload-0.3.tar.gz", "has_sig": false, "md5_digest": "0832554b429e93b9c5b881966bc4fdca", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4", "size": 858013, "upload_time": "2018-08-30T09:56:00", "url": "https://files.pythonhosted.org/packages/ba/9a/b7b911c3e1e5374aad50c89213972e4e5f76f19893eb95df49c421679772/spectrum_overload-0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "66dd675c5fd345c2a7ac3c1286305a02", "sha256": "06c14bd397e200c5ff5e093a78f8a51ae6b484e846d66583301824ac84ddb7a4" }, "downloads": -1, "filename": "spectrum_overload-0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "66dd675c5fd345c2a7ac3c1286305a02", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4", "size": 286110, "upload_time": "2018-08-30T09:55:56", "url": "https://files.pythonhosted.org/packages/a9/34/474a016a6c1e81470c8ebb2ce2a21ff3f79a02e15f6d0e29f8d15cae0ce1/spectrum_overload-0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0832554b429e93b9c5b881966bc4fdca", "sha256": "04f9ab396fb0dae662be7b38f86f101ef9eb9e1ecc5a5faff91494ab9df5cb68" }, "downloads": -1, "filename": "spectrum_overload-0.3.tar.gz", "has_sig": false, "md5_digest": "0832554b429e93b9c5b881966bc4fdca", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4", "size": 858013, "upload_time": "2018-08-30T09:56:00", "url": "https://files.pythonhosted.org/packages/ba/9a/b7b911c3e1e5374aad50c89213972e4e5f76f19893eb95df49c421679772/spectrum_overload-0.3.tar.gz" } ] }