pyreduce

A Python port of the popular IDL data reduction package REDUCE.

https://github.com/ivh/pyreduce

Science Score: 39.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 6 DOI reference(s) in README
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (18.0%) to scientific vocabulary

Keywords

astronomy data-reduction
Last synced: 6 months ago · JSON representation

Repository

A Python port of the popular IDL data reduction package REDUCE.

Basic Info
  • Host: GitHub
  • Owner: ivh
  • License: gpl-3.0
  • Language: Python
  • Default Branch: master
  • Homepage:
  • Size: 8.22 MB
Statistics
  • Stars: 5
  • Watchers: 2
  • Forks: 20
  • Open Issues: 13
  • Releases: 2
Topics
astronomy data-reduction
Created almost 10 years ago · Last pushed 12 months ago
Metadata Files
Readme License Codemeta

README.md

Python application Documentation Status Updates

PyReduce

PyReduce is a port of the REDUCE package to Python. It is a complete data reduction pipeline for the echelle spectrographs, e.g. HARPS or UVES.

The methods are descibed in the papers * Original REDUCE: Piskunov & Valenti (2001) doi:10.1051/0004-6361:20020175 * Updates to curved slit extraction and PyReduce: Piskunov, Wehrhahn & Marquart (2021) 10.1051/0004-6361/202038293

Some documentation on how to use PyReduce is available at ReadTheDocs.

Installation

The latest version can be installed using pip install git+https://github.com/ivh/PyReduce.

The version that is available from PyPI is slightly outdated, but functional and installable via pip install pyreduce-astro.

If you foresee making changes to PyReduce itself, feel free to (fork and) clone this repository, and install the requirements and your local copy into a fresh environment, e.g.

conda create -n pyreduce conda activate pyreduce git clone <your fork url> cd PyReduce/ pip install -r requirements.txt pip install -e .

PyReduce uses CFFI to link to the C code, on non-linux platforms you might have to install libffi. See also https://cffi.readthedocs.io/en/latest/installation.html#platform-specific-instructions for details.

Output Format

PyReduce will create .ech files when run. Despite the name those are just regular .fits files and can be opened with any programm that can read .fits. The data is contained in a table extension. The header contains all the keywords of the input science file, plus some extra PyReduce specific keyword, all of which start with e_.

How To

PyReduce is designed to be easy to use, but still be flexible. examples/uves_example.py is a good starting point, to understand how it works. First we define the instrument, target, night, and instrument mode (if applicable) of our reduction. Then we tell PyReduce where to find the data, and lastly we define all the specific settings of the reduction (e.g. polynomial degrees of various fits) in a json configuration file. We also define which steps of the reduction to perform. Steps that are not specified, but are still required, will be loaded from previous runs if possible, or executed otherwise. All of this is then passed to pyreduce.reduce.main to start the reduction.

In this example, PyReduce will plot all intermediary results, and also plot the progres during some of the steps. Close them to continue calculations, if it seems nothing is happening. Once you are statisified with the results you can disable them in settings_UVES.json (with "plot":false in each step) to speed up the computation.

Owner

  • Name: Thomas Marquart
  • Login: ivh
  • Kind: user
  • Location: Uppsala, Sweden

CodeMeta (codemeta.json)

{
  "@context": [
    "https://w3id.org/codemeta/2.0",
    "http://schema.org"
  ],
  "@type": "SoftwareSourceCode",
  "identifier": "pyreduce-astro",
  "name": "pyreduce-astro",
  "version": "0.6-dev",
  "description": "A data reduction package for echelle spectrographs",
  "license": "GPL-3.0",
  "author": [
    {
      "@type": "Person",
      "givenName": "Thomas",
      "familyName": "Marquart",
      "email": "thomas.marquart@astro.uu.se"
    },
    {
      "@type": "Person",
      "givenName": "Ansgar",
      "familyName": "Wehrhahn",
      "email": "ansgar.wehrhahn@physics.uu.se"
    },
    {
      "@type": "Person",
      "givenName": "Nikolai",
      "familyName": "Piskunov",
      "email": "nikolai.piskunov@physics.uu.se"
    }
  ],
  "provider": {
    "@id": "https://pypi.org",
    "@type": "Organization",
    "name": "The Python Package Index",
    "url": "https://pypi.org"
  },
  "runtimePlatform": "Python 3",
  "url": "https://github.com/ivh/PyReduce",
  "codeRepository": "https://github.com/ivh/PyReduce",
  "programmingLanguage": {
    "@type": "ComputerLanguage",
    "name": "Python",
    "version": "3"
  },
  "operatingSystem": "POSIX :: Linux",
  "interfaceType": "library",
  "developmentStatus": "active",
  "dateCreated": "2019-01-01",
  "dateModified": "2025-02-19",
  "keywords": [
    "astronomy",
    "spectroscopy",
    "data reduction",
    "echelle"
  ],
  "contIntegration": "https://github.com/ivh/PyReduce/actions",
  "issueTracker": "https://github.com/ivh/PyReduce/issues"
}

GitHub Events

Total
  • Issues event: 1
  • Watch event: 2
  • Delete event: 1
  • Issue comment event: 5
  • Push event: 10
  • Pull request event: 12
  • Fork event: 3
Last Year
  • Issues event: 1
  • Watch event: 2
  • Delete event: 1
  • Issue comment event: 5
  • Push event: 10
  • Pull request event: 12
  • Fork event: 3

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 1
  • Total pull requests: 8
  • Average time to close issues: N/A
  • Average time to close pull requests: 10 months
  • Total issue authors: 1
  • Total pull request authors: 3
  • Average comments per issue: 0.0
  • Average comments per pull request: 0.13
  • Merged pull requests: 4
  • Bot issues: 0
  • Bot pull requests: 1
Past Year
  • Issues: 1
  • Pull requests: 6
  • Average time to close issues: N/A
  • Average time to close pull requests: 5 days
  • Issue authors: 1
  • Pull request authors: 1
  • Average comments per issue: 0.0
  • Average comments per pull request: 0.17
  • Merged pull requests: 4
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • ivh (10)
  • tronsgaard (1)
Pull Request Authors
  • tronsgaard (5)
  • dependabot[bot] (1)
  • TrellixVulnTeam (1)
Top Labels
Issue Labels
Pull Request Labels
dependencies (1)

Dependencies

requirements.txt pypi
  • Pillow ==6.1.0
  • astropy ==3.2.1
  • cffi ==1.12.3
  • joblib ==0.13.2
  • jsonschema ==3.0.1
  • matplotlib ==3.1.1
  • numpy ==1.17.0
  • pytest ==5.0.1
  • python-dateutil ==2.8.0
  • scikit-image ==0.15.0
  • scipy ==1.3.0
  • wget ==3.2
setup.py pypi
  • astropy *
  • cffi >=1.0.0
  • joblib *
  • jsonschema >=3.0.1
  • matplotlib *
  • numpy *
  • python-dateutil *
  • scikit-image *
  • scipy *
  • wget *
.github/workflows/python-publish.yml actions
  • actions/checkout v2 composite
  • actions/create-release v1 composite
  • actions/setup-python v2 composite
  • actions/upload-release-asset v1 composite
  • mathieudutour/github-tag-action v5 composite
  • pypa/gh-action-pypi-publish master composite
docs/requirements.txt pypi
  • astropy ==5.1.1
  • cffi ==1.15.1
  • colorlog ==6.7.0
  • corner ==2.2.1
  • emcee ==3.1.3
  • joblib ==1.2.0
  • jsonschema ==4.16.0
  • matplotlib ==3.6.1
  • numpy ==1.23.4
  • pre-commit ==2.20.0
  • pytest ==7.2.0
  • pytest-cov ==4.0.0
  • python-dateutil ==2.8.2
  • scikit-image ==0.19.3
  • scipy ==1.10.0
  • sphinx ==5.3.0
  • tqdm ==4.64.1
  • wget ==3.2
environment.yml pypi
pyproject.toml pypi