reddutils


Namereddutils JSON
Version 1.0.7 PyPI version JSON
download
home_page
SummarySmall package for personal use
upload_time2023-08-09 19:35:25
maintainer
docs_urlNone
authorReddTea
requires_python>=3.6
license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Reddutils

This is ReddTea's small package compiling useful self-made functions for an astrophysical context.

# Overview
Reddutils contains many functions and classes for personal use.
Some of them may be of use for the community.

# Dependencies

This code makes use of:
  - Numpy
  - pandas
  - Scipy
  - PyAstronomy (http://www.hs.uni-hamburg.de/DE/Ins/Per/Czesla/PyA/PyA/index.html)
  - tqdm (https://pypi.python.org/pypi/tqdm)
  - tabulate
  - matplotlib.pyplot
  - ipywidgets
  - IPython.display
  
Most of them come with conda, if some are missing they can be easily installed with pip.

# Installation

In the console type in your work folder
```sh
pip install reddutils
```

# Usage

## Correlator
For a pandas dataframe or three-column table:
```sh
from reddutils import correlator as rc
import pandas as pd

df = pd.read_csv('data.csv')

cor = rc.correlator()
cor.display(df)
```
![correlator](https://user-images.githubusercontent.com/14165443/185804943-5011ccb0-2dff-4d20-a443-8407518b96e5.png)


## Exodus
Use for visualising the NASA Exoplanet Archive:

```sh
from reddutils import exodus

#exopop = exodus.Exoplanet_Archive()
exopop = exodus.Exoplanet_Archive('NasaExoplanetArchive')
#exopop = exodus.Exoplanet_Archive('ExoplanetEU2')
#exopop = exodus.Exoplanet_Archive('ExoplanetsOrg')

exopop.display()
```
![exodus](https://user-images.githubusercontent.com/14165443/185804945-e6753a05-5750-4d00-96fe-657825c39fa1.png)

Try out the histogram mode:

```sh
exopop.display_hist()
```

## Fourier Transform Visualiser
For visualising fourier transforms and the nyquist limit.

```sh
from reddutils import fourier

fou = fourier.fourier()
fou.display()
```
![fourier](https://user-images.githubusercontent.com/14165443/185804946-50b5661a-3a1e-46b7-92a6-a2dcf0d489cd.png)


## Periodogram
For a pandas dataframe:
```sh
from reddutils import periodogram as rp
import pandas as pd

df = pd.read_csv('data.csv')

per = rp.LSP()
per.display(df)
```
![periodogram](https://user-images.githubusercontent.com/14165443/185804947-ce3b2e0e-2019-424d-9f17-bcb3a3ad144d.png)



            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "reddutils",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "",
    "author": "ReddTea",
    "author_email": "redd@tea.com",
    "download_url": "https://files.pythonhosted.org/packages/16/60/42fdcf76ec5d2915323e7bafebb4ac014e9a86b466cc74fa760f8610f483/reddutils-1.0.7.tar.gz",
    "platform": null,
    "description": "# Reddutils\n\nThis is ReddTea's small package compiling useful self-made functions for an astrophysical context.\n\n# Overview\nReddutils contains many functions and classes for personal use.\nSome of them may be of use for the community.\n\n# Dependencies\n\nThis code makes use of:\n  - Numpy\n  - pandas\n  - Scipy\n  - PyAstronomy (http://www.hs.uni-hamburg.de/DE/Ins/Per/Czesla/PyA/PyA/index.html)\n  - tqdm (https://pypi.python.org/pypi/tqdm)\n  - tabulate\n  - matplotlib.pyplot\n  - ipywidgets\n  - IPython.display\n  \nMost of them come with conda, if some are missing they can be easily installed with pip.\n\n# Installation\n\nIn the console type in your work folder\n```sh\npip install reddutils\n```\n\n# Usage\n\n## Correlator\nFor a pandas dataframe or three-column table:\n```sh\nfrom reddutils import correlator as rc\nimport pandas as pd\n\ndf = pd.read_csv('data.csv')\n\ncor = rc.correlator()\ncor.display(df)\n```\n![correlator](https://user-images.githubusercontent.com/14165443/185804943-5011ccb0-2dff-4d20-a443-8407518b96e5.png)\n\n\n## Exodus\nUse for visualising the NASA Exoplanet Archive:\n\n```sh\nfrom reddutils import exodus\n\n#exopop = exodus.Exoplanet_Archive()\nexopop = exodus.Exoplanet_Archive('NasaExoplanetArchive')\n#exopop = exodus.Exoplanet_Archive('ExoplanetEU2')\n#exopop = exodus.Exoplanet_Archive('ExoplanetsOrg')\n\nexopop.display()\n```\n![exodus](https://user-images.githubusercontent.com/14165443/185804945-e6753a05-5750-4d00-96fe-657825c39fa1.png)\n\nTry out the histogram mode:\n\n```sh\nexopop.display_hist()\n```\n\n## Fourier Transform Visualiser\nFor visualising fourier transforms and the nyquist limit.\n\n```sh\nfrom reddutils import fourier\n\nfou = fourier.fourier()\nfou.display()\n```\n![fourier](https://user-images.githubusercontent.com/14165443/185804946-50b5661a-3a1e-46b7-92a6-a2dcf0d489cd.png)\n\n\n## Periodogram\nFor a pandas dataframe:\n```sh\nfrom reddutils import periodogram as rp\nimport pandas as pd\n\ndf = pd.read_csv('data.csv')\n\nper = rp.LSP()\nper.display(df)\n```\n![periodogram](https://user-images.githubusercontent.com/14165443/185804947-ce3b2e0e-2019-424d-9f17-bcb3a3ad144d.png)\n\n\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Small package for personal use",
    "version": "1.0.7",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "698c4c85e458e2c35f0807ae7687acf85f919eda0dd7003eedd4faa409741447",
                "md5": "efabcb663a61ba3f56b4793961f4bf70",
                "sha256": "fa174b077e37fb601319a9d0b2998fc81752d0c42121382c58b94a4b737d75be"
            },
            "downloads": -1,
            "filename": "reddutils-1.0.7-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "efabcb663a61ba3f56b4793961f4bf70",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 422705,
            "upload_time": "2023-08-09T19:35:23",
            "upload_time_iso_8601": "2023-08-09T19:35:23.927512Z",
            "url": "https://files.pythonhosted.org/packages/69/8c/4c85e458e2c35f0807ae7687acf85f919eda0dd7003eedd4faa409741447/reddutils-1.0.7-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "166042fdcf76ec5d2915323e7bafebb4ac014e9a86b466cc74fa760f8610f483",
                "md5": "96f653354c4d6c5bf5dd8c119fb884e7",
                "sha256": "16d2d260b7ca361a56e5572a6e3e97a6430599b1ccb9f886ac1d0fbec594b53f"
            },
            "downloads": -1,
            "filename": "reddutils-1.0.7.tar.gz",
            "has_sig": false,
            "md5_digest": "96f653354c4d6c5bf5dd8c119fb884e7",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 409574,
            "upload_time": "2023-08-09T19:35:25",
            "upload_time_iso_8601": "2023-08-09T19:35:25.623974Z",
            "url": "https://files.pythonhosted.org/packages/16/60/42fdcf76ec5d2915323e7bafebb4ac014e9a86b466cc74fa760f8610f483/reddutils-1.0.7.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-08-09 19:35:25",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "reddutils"
}
        
Elapsed time: 0.35035s