PyNOT-redux


NamePyNOT-redux JSON
Version 2.1.2 PyPI version JSON
download
home_pagehttps://github.com/jkrogager/PyNOT
SummaryData Reduction Pipeline for NOT/ALFOSC
upload_time2024-11-11 10:59:49
maintainerNone
docs_urlNone
authorJens-Kristian Krogager
requires_python>3.7
licenseMIT
keywords spectroscopy astronomy longslit data processing pipeline
VCS
bugtrack_url
requirements matplotlib numpy scipy PyQt5 lmfit astropy astroscrappy spectres PyYAML sep astroalign astroquery beautifulsoup4
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # PyNOT-redux
 A Data Processing Pipeline for ALFOSC at the Nordic Optical Telescope


PyNOT handles long-slit spectroscopic data (an extension for imaging data is currently being developed). The pipeline is implemented entirely in Python and can be run directly from the terminal. The main workflow is mostly automated (and can in fact be run fully automated) and includes a graphical user interface for certain tasks (such as line identification for wavelength calibration and spectral 1D extraction).

A special thank you goes out to Prof. Johan Fynbo for helpful discussions and feedback, and for introducing me to the Nordic Optical Telescope in the first place (back in 2012).

```diff
- The pipeline is currently in a testing stage!
  Feel free to test it on your own data and let me know if you find any issues.
  I'll respond as fast as possible.
```

## Installation
Before installing the pipeline, it is recommended to setup a virtual environment to avoid contaminating your local python environment. You can create a `pynot` environment using `python -m venv pynot` (or similar in `conda`). The activate the environment before installing and when running PyNOT: `source /path_to_venv/pynot/bin/activate`. Remember to `deactivate` the environment when you're done.

The pipeline can be installed using [pip](https://www.pypi.org):

    ]% pip install PyNOT-redux

and requires the following packages : `astroalign`, `astropy`, `astroquery`, `astroscrappy`, `lmfit`, `matplotlib`, `numpy`, `PyQt5`, `PyYAML`, `scipy`, `sep`, and `spectres`. I want to give a huge shout out to all the developers of these packages. Thanks for sharing your work!

Alternatively, clone the repository and install it using:

```
git clone git@github.com:jkrogager/PyNOT.git
cd PyNOT
python -m venv venv-pynot
source venv-pynot/bin/activate
python -m pip -r requirements.txt

```

Then run the installer:
`python -m pip install .` or `python setup.py install`.



## Basic Usage
The pipeline is implemented as a series of modules or "tasks" that can either be executed individually or as a fully assembled pipeline. The available tasks can be shown by running:

    ]% pynot -h

and the input parameters for each task can be inspected by running:

    ]% pynot  task-name  -h

Three of the tasks have slightly special behavior:

 - **`init`** : classifies the data in the given input directory (or directories) and creates a default parameter file in YAML format.

 - **`spex`** : runs the full spectroscopic pipeline using the parameter file generated by `pynot init spex`. The full pipeline performs bias and flat field correction, wavelength calibration and rectifies the 2D spectrum, subtracts the sky background, corrects cosmic ray hits, flux calibrates the 2D spectrum and performs an automated optimal extraction of all objects identified in the slit (see more details below).

 The extracted 1D spectra are saved as a multi-extension FITS file where each object identified in the slit has its own extension:

    No.    Name      Ver    Type      Cards   Dimensions   Format
      0  PRIMARY       1 PrimaryHDU       4   ()      
      1  OBJ1          1 BinTableHDU    158   1026R x 3C   [D, D, D]
      2  OBJ2          1 BinTableHDU    158   1026R x 3C   [D, D, D]
      :    :           :     :           :         :           :    
      :    :           :     :           :         :           :    


 Each spectrum is saved as a Binary Table with three columns 'WAVE', 'FLUX', and 'ERR'. The header of each extension contains the information about the original image such as exposure time and instrument settings.

 - **`phot`** : runs the full spectroscopic pipeline using the parameter file generated by `pynot init phot`. The photometric pipeline performs bias and flat field correction, correction of cosmis ray hits, fringe correction, image registration and combination, source extraction and WCS calibration (using Gaia as reference). The final combined images are in units of counts per second (see more details below).
 If the observed frames are covered by the SDSS imaging foot print, PyNOT will perform an automatic self-calibration using SDSS photometry of sources in the field.



## Documentation

You can see the documentation on the [PyNOT Website](https://jkrogager.github.io/pynot/).
The full documentation is currently being compiled... stay tuned.



## Example: Spectroscopy
A standard example would be the reduction of the data from one night of observations. All the raw data would be located in a single folder - let's call it `raw_data/`. This folder will contain the necessary raw data: bias frames, flux standard star spectra, arc line frames, spectroscopic flat fields, and the object spectra. Any other data in the folder (imaging files, sky flats, acquisition images, slit images etc.) will be ignored in the pipeline.

A default reduction would require the following steps:


1. **Create a parameter file and classify the data:**
    `pynot init spex  raw_data  --pars night1.yml`

  This step creates the PyNOT File Classification (dataset.pfc) table which looks something like:

        # PyNOT File Classification Table

        # ARC_HeNe:
        #FILENAME             TYPE      OBJECT     EXPTIME  GRISM     SLIT      FILTER
         raw/ALzh010234.fits  ARC_HeNe  HeNe           3.0  Grism_#4  Slit_1.3  Open
         raw/ALzh010235.fits  ARC_HeNe  HeNe           3.0  Grism_#4  Slit_1.3  Open
         raw/ALzh010247.fits  ARC_HeNe  HeNe           3.0  Grism_#4  Slit_1.0  Open
         raw/ALzh010250.fits  ARC_HeNe  HeNe           3.0  Grism_#4  Slit_1.0  Open

        # BIAS:
        #FILENAME             TYPE  OBJECT     EXPTIME  GRISM        SLIT      FILTER
         raw/ALzh010001.fits  BIAS  bias-full  0.0  Open_(Lyot)  Open      Open
         raw/ALzh010002.fits  BIAS  bias-full  0.0  Open_(Lyot)  Open      Open
         raw/ALzh010003.fits  BIAS  bias-full  0.0  Open_(Lyot)  Open      Open

        ...

  If there are any bad frames (that you know of) you can delete or comment out (using #) the corresponding line to ignore the file in the pipeline.

  This step will also initiate a new parameter file with default values (default filename: 'options_spex.yml'). All available parameters of the steps of the pipeline are laid out in this file. Open the file with your favorite text editor and edit any other values as you see fit. A short description of the parameters is given in the file. For more detail, see the full documentation (coming soon).

  For now we will just focus on the interactive parameters: There are three tasks that can be used in interactive mode, which will start a graphical interface to allow the user more flexibility. These are: line identification (for wavelength calibration), extraction of the 1-dimensional spectra, and calculation of the response function. By default, these are all turned on. Note that the line identification can be defined in two ways:
  (i)  once for all grisms in the given dataset, this line identification information will then automatically be used for all objects observed with the given grism;
  or (ii) for each object in the dataset based on the arc file observed closest in time to the science frame. This provides more accurate rectification of the image, but the difference in low-resolution data is usually negligible.


2. **Run the pipeline:**
    `pynot spex night1.yml`

  This will start the full pipeline reduction of *all* objects identified in the dataset (with file classification `SPEC_OBJECT`). If you only want to reduce a few targets, you can specify these as: `pynot spex night1.yml --object TARGET1 TARGET2 ...` where the target names must match the value of the `OBJECT` keyword in the FITS headers.

  By default the pipeline creates separate output directories for each target where a detailed log file is saved. This file summarizes the steps of the pipeline and shows any warnings and output generated by the pipeline. By default, the pipeline also generates diagnostic plots of the 2D rectification, response function, sky subtraction and 1D extraction.

  The log is also printed to the terminal as the pipeline progresses. If you want to turn this off, you can run the pipeline with the `-s` (or `--silent`) option.


3. **Verify the steps** of the data products and make sure that everything terminated successfully. You should pay special attention to the automated sky subtraction. This can be adjusted during the interactive extraction step, if necessary.


4. Now it's time to do your scientific analysis on your newly calibrated 1D and 2D spectra. Enjoy!



## Example: Imaging

A standard example would be the reduction of the data from one night of observations. All the raw data would be located in a single folder - let's call it `raw_night1/`. This folder will contain the necessary raw data: bias frames, flat field frames in all filters, flux standard star fields (if available), and the raw science images. Any other data in the folder (spectroscopic files, focus images etc.) will be ignored by the pipeline.
A basic automated reduction would require the following steps:

1. **Create a parameter file and classify the data:**
    `pynot init phot  raw_night1  --pars pars1.yml`

  This step will classify all the data in `raw_night1/` and create the PyNOT classification table (dataset.pfc). This step will also initiate a new parameter file with default values (the filename 'options_phot.yml' is used by default unless the `--pars` option is used). All available parameters of the steps of the pipeline are laid out in this file. Open the file with your favorite text editor and edit any other values as you see fit. A short description for each parameter is given in the file. For more detail, see the full documentation (coming soon).

2. **Run the pipeline:**
    `pynot phot pars1.yml`

  This will start the full pipeline reduction of *all* objects in *all* filters identified in the dataset (with file classification `IMG_OBJECT`). If you only want to reduce a subset of objects or filters, you can ignore files by editing the 'dataset.pfc' file. Deleting or commenting out (using #) a given line in the .pfc file will tell the pipeline to ignore the file on that line.
  The processed files are structured in sub-directories from the main working directory:

    working_dir/
         |- imaging/
               |- OBJECT_1/
               |     |- B_band/
               |     |- R_band/
               |     |- combined_B.fits
               |     |- combined_R.fits
               |     |...
               |
               |- OBJECT_2/
                     |- B_band/
                     |- R_band/
                     |- V_band/
                     |- combined_B.fits
                     |- combined_R.fits
                     |- combined_V.fits
                     |...

  The individual images for each filter of each target are kept in the desginated folders under each object, and are automatically combined. The combined image is in the folder of the given object. The last step of the pipeline as of now is to run a source extraction algorithm (SEP/SExtractor) to provide a final source table with aperture fluxes, a segmentation map as well as a figure showing the identified sources in the field.
  In each designated filter folder, the pipeline also produces a file log showing which files are combined into the final image as well as some basic image statistics: an estimate of the seeing, the PSF ellipticity, and the exposure time. This file can be used as input for further refined image combinations using the task `pynot imcombine  filelist_OBJECT_1.txt  new_combined_R.fits`. Individual frames can be commented out in the file log in order to exclude them in subsequent combinations. The combined images are given in units of counts per second.


3. **Verify the steps** of the data products and make sure that everything terminated successfully.

4. Now it's time to do your scientific analysis on your newly calibrated images. Enjoy!


### Identify Transients

PyNOT comes with a task for identifying bright, new transient objects from SWIFT. This is achieved by cross-matching with the Gaia all-sky catalog. Sources in the field without a match in Gaia are flagged according to three classes: (**red**) if the source is not consistent with the SWIFT localisation, (**orange**) if the source is consistent with the broad BAT error circle, and (**green**) if the source is consistent with the X-ray error circle.

The task can be run as:

    pynot  findnew  reduced_image_wcs.fits  reduced_image_phot.fits  [--bat ra dec radius  --xrt ra dec radius  -z ZP  --limit  20.1]

Note: Coordinates (ra and dec) are given in degrees! The radius for --bat is given in arcmin, the radius for --xrt is given in arcsec! Both --bat and --xrt are optional.
If the source catalog from PyNOT (_phot.fits) has not been flux calibrated (outside SDSS footprint), you can provide a zero point manually by giving the `-z ZP` option, where ZP denotes the magnitude zero point. The default magnitude limit is 20.1 mag in order to match the depth of Gaia. Sources fainter than this will not be considered.

The task creates a figure showing the field together with the localization estimates given by --bat and --xrt. The task also prints the identified sources to the terminal and to a text file (new_sources_*.txt), which looks something like:

      ra         dec     mag_auto    a      b    theta  flux_auto  flux_err_auto  class
      (deg)      (deg)      (AB)    (pix)  (pix)  (rad)  (count/s)    (count/s)         
    54.51772  -26.98964     19.64    2.4    2.2  -1.28   1.27e+03       1.97e+01      0
    54.50497  -26.94632     16.92    3.8    3.8  -0.53   1.56e+04       2.62e+01      0
    54.54830  -26.93043     19.63    2.5    2.4   0.11   1.29e+03       1.97e+01      0

where `class` refers to the classes defined above:

  0: not consistent with BAT nor XRT  (red)

  1: consistent with BAT  (orange)

  2: consistent with BAT and XRT  (green)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/jkrogager/PyNOT",
    "name": "PyNOT-redux",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">3.7",
    "maintainer_email": null,
    "keywords": "spectroscopy astronomy longslit data processing pipeline",
    "author": "Jens-Kristian Krogager",
    "author_email": "krogager.jk@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/e1/c5/daff7d3afcc9214fe4df474ce77217283460813e436f1aa17e930f546b74/pynot_redux-2.1.2.tar.gz",
    "platform": null,
    "description": "# PyNOT-redux\n A Data Processing Pipeline for ALFOSC at the Nordic Optical Telescope\n\n\nPyNOT handles long-slit spectroscopic data (an extension for imaging data is currently being developed). The pipeline is implemented entirely in Python and can be run directly from the terminal. The main workflow is mostly automated (and can in fact be run fully automated) and includes a graphical user interface for certain tasks (such as line identification for wavelength calibration and spectral 1D extraction).\n\nA special thank you goes out to Prof. Johan Fynbo for helpful discussions and feedback, and for introducing me to the Nordic Optical Telescope in the first place (back in 2012).\n\n```diff\n- The pipeline is currently in a testing stage!\n  Feel free to test it on your own data and let me know if you find any issues.\n  I'll respond as fast as possible.\n```\n\n## Installation\nBefore installing the pipeline, it is recommended to setup a virtual environment to avoid contaminating your local python environment. You can create a `pynot` environment using `python -m venv pynot` (or similar in `conda`). The activate the environment before installing and when running PyNOT: `source /path_to_venv/pynot/bin/activate`. Remember to `deactivate` the environment when you're done.\n\nThe pipeline can be installed using [pip](https://www.pypi.org):\n\n    ]% pip install PyNOT-redux\n\nand requires the following packages : `astroalign`, `astropy`, `astroquery`, `astroscrappy`, `lmfit`, `matplotlib`, `numpy`, `PyQt5`, `PyYAML`, `scipy`, `sep`, and `spectres`. I want to give a huge shout out to all the developers of these packages. Thanks for sharing your work!\n\nAlternatively, clone the repository and install it using:\n\n```\ngit clone git@github.com:jkrogager/PyNOT.git\ncd PyNOT\npython -m venv venv-pynot\nsource venv-pynot/bin/activate\npython -m pip -r requirements.txt\n\n```\n\nThen run the installer:\n`python -m pip install .` or `python setup.py install`.\n\n\n\n## Basic Usage\nThe pipeline is implemented as a series of modules or \"tasks\" that can either be executed individually or as a fully assembled pipeline. The available tasks can be shown by running:\n\n    ]% pynot -h\n\nand the input parameters for each task can be inspected by running:\n\n    ]% pynot  task-name  -h\n\nThree of the tasks have slightly special behavior:\n\n - **`init`** : classifies the data in the given input directory (or directories) and creates a default parameter file in YAML format.\n\n - **`spex`** : runs the full spectroscopic pipeline using the parameter file generated by `pynot init spex`. The full pipeline performs bias and flat field correction, wavelength calibration and rectifies the 2D spectrum, subtracts the sky background, corrects cosmic ray hits, flux calibrates the 2D spectrum and performs an automated optimal extraction of all objects identified in the slit (see more details below).\n\n The extracted 1D spectra are saved as a multi-extension FITS file where each object identified in the slit has its own extension:\n\n    No.    Name      Ver    Type      Cards   Dimensions   Format\n      0  PRIMARY       1 PrimaryHDU       4   ()      \n      1  OBJ1          1 BinTableHDU    158   1026R x 3C   [D, D, D]\n      2  OBJ2          1 BinTableHDU    158   1026R x 3C   [D, D, D]\n      :    :           :     :           :         :           :    \n      :    :           :     :           :         :           :    \n\n\n Each spectrum is saved as a Binary Table with three columns 'WAVE', 'FLUX', and 'ERR'. The header of each extension contains the information about the original image such as exposure time and instrument settings.\n\n - **`phot`** : runs the full spectroscopic pipeline using the parameter file generated by `pynot init phot`. The photometric pipeline performs bias and flat field correction, correction of cosmis ray hits, fringe correction, image registration and combination, source extraction and WCS calibration (using Gaia as reference). The final combined images are in units of counts per second (see more details below).\n If the observed frames are covered by the SDSS imaging foot print, PyNOT will perform an automatic self-calibration using SDSS photometry of sources in the field.\n\n\n\n## Documentation\n\nYou can see the documentation on the [PyNOT Website](https://jkrogager.github.io/pynot/).\nThe full documentation is currently being compiled... stay tuned.\n\n\n\n## Example: Spectroscopy\nA standard example would be the reduction of the data from one night of observations. All the raw data would be located in a single folder - let's call it `raw_data/`. This folder will contain the necessary raw data: bias frames, flux standard star spectra, arc line frames, spectroscopic flat fields, and the object spectra. Any other data in the folder (imaging files, sky flats, acquisition images, slit images etc.) will be ignored in the pipeline.\n\nA default reduction would require the following steps:\n\n\n1. **Create a parameter file and classify the data:**\n    `pynot init spex  raw_data  --pars night1.yml`\n\n  This step creates the PyNOT File Classification (dataset.pfc) table which looks something like:\n\n        # PyNOT File Classification Table\n\n        # ARC_HeNe:\n        #FILENAME             TYPE      OBJECT     EXPTIME  GRISM     SLIT      FILTER\n         raw/ALzh010234.fits  ARC_HeNe  HeNe           3.0  Grism_#4  Slit_1.3  Open\n         raw/ALzh010235.fits  ARC_HeNe  HeNe           3.0  Grism_#4  Slit_1.3  Open\n         raw/ALzh010247.fits  ARC_HeNe  HeNe           3.0  Grism_#4  Slit_1.0  Open\n         raw/ALzh010250.fits  ARC_HeNe  HeNe           3.0  Grism_#4  Slit_1.0  Open\n\n        # BIAS:\n        #FILENAME             TYPE  OBJECT     EXPTIME  GRISM        SLIT      FILTER\n         raw/ALzh010001.fits  BIAS  bias-full  0.0  Open_(Lyot)  Open      Open\n         raw/ALzh010002.fits  BIAS  bias-full  0.0  Open_(Lyot)  Open      Open\n         raw/ALzh010003.fits  BIAS  bias-full  0.0  Open_(Lyot)  Open      Open\n\n        ...\n\n  If there are any bad frames (that you know of) you can delete or comment out (using #) the corresponding line to ignore the file in the pipeline.\n\n  This step will also initiate a new parameter file with default values (default filename: 'options_spex.yml'). All available parameters of the steps of the pipeline are laid out in this file. Open the file with your favorite text editor and edit any other values as you see fit. A short description of the parameters is given in the file. For more detail, see the full documentation (coming soon).\n\n  For now we will just focus on the interactive parameters: There are three tasks that can be used in interactive mode, which will start a graphical interface to allow the user more flexibility. These are: line identification (for wavelength calibration), extraction of the 1-dimensional spectra, and calculation of the response function. By default, these are all turned on. Note that the line identification can be defined in two ways:\n  (i)  once for all grisms in the given dataset, this line identification information will then automatically be used for all objects observed with the given grism;\n  or (ii) for each object in the dataset based on the arc file observed closest in time to the science frame. This provides more accurate rectification of the image, but the difference in low-resolution data is usually negligible.\n\n\n2. **Run the pipeline:**\n    `pynot spex night1.yml`\n\n  This will start the full pipeline reduction of *all* objects identified in the dataset (with file classification `SPEC_OBJECT`). If you only want to reduce a few targets, you can specify these as: `pynot spex night1.yml --object TARGET1 TARGET2 ...` where the target names must match the value of the `OBJECT` keyword in the FITS headers.\n\n  By default the pipeline creates separate output directories for each target where a detailed log file is saved. This file summarizes the steps of the pipeline and shows any warnings and output generated by the pipeline. By default, the pipeline also generates diagnostic plots of the 2D rectification, response function, sky subtraction and 1D extraction.\n\n  The log is also printed to the terminal as the pipeline progresses. If you want to turn this off, you can run the pipeline with the `-s` (or `--silent`) option.\n\n\n3. **Verify the steps** of the data products and make sure that everything terminated successfully. You should pay special attention to the automated sky subtraction. This can be adjusted during the interactive extraction step, if necessary.\n\n\n4. Now it's time to do your scientific analysis on your newly calibrated 1D and 2D spectra. Enjoy!\n\n\n\n## Example: Imaging\n\nA standard example would be the reduction of the data from one night of observations. All the raw data would be located in a single folder - let's call it `raw_night1/`. This folder will contain the necessary raw data: bias frames, flat field frames in all filters, flux standard star fields (if available), and the raw science images. Any other data in the folder (spectroscopic files, focus images etc.) will be ignored by the pipeline.\nA basic automated reduction would require the following steps:\n\n1. **Create a parameter file and classify the data:**\n    `pynot init phot  raw_night1  --pars pars1.yml`\n\n  This step will classify all the data in `raw_night1/` and create the PyNOT classification table (dataset.pfc). This step will also initiate a new parameter file with default values (the filename 'options_phot.yml' is used by default unless the `--pars` option is used). All available parameters of the steps of the pipeline are laid out in this file. Open the file with your favorite text editor and edit any other values as you see fit. A short description for each parameter is given in the file. For more detail, see the full documentation (coming soon).\n\n2. **Run the pipeline:**\n    `pynot phot pars1.yml`\n\n  This will start the full pipeline reduction of *all* objects in *all* filters identified in the dataset (with file classification `IMG_OBJECT`). If you only want to reduce a subset of objects or filters, you can ignore files by editing the 'dataset.pfc' file. Deleting or commenting out (using #) a given line in the .pfc file will tell the pipeline to ignore the file on that line.\n  The processed files are structured in sub-directories from the main working directory:\n\n    working_dir/\n         |- imaging/\n               |- OBJECT_1/\n               |     |- B_band/\n               |     |- R_band/\n               |     |- combined_B.fits\n               |     |- combined_R.fits\n               |     |...\n               |\n               |- OBJECT_2/\n                     |- B_band/\n                     |- R_band/\n                     |- V_band/\n                     |- combined_B.fits\n                     |- combined_R.fits\n                     |- combined_V.fits\n                     |...\n\n  The individual images for each filter of each target are kept in the desginated folders under each object, and are automatically combined. The combined image is in the folder of the given object. The last step of the pipeline as of now is to run a source extraction algorithm (SEP/SExtractor) to provide a final source table with aperture fluxes, a segmentation map as well as a figure showing the identified sources in the field.\n  In each designated filter folder, the pipeline also produces a file log showing which files are combined into the final image as well as some basic image statistics: an estimate of the seeing, the PSF ellipticity, and the exposure time. This file can be used as input for further refined image combinations using the task `pynot imcombine  filelist_OBJECT_1.txt  new_combined_R.fits`. Individual frames can be commented out in the file log in order to exclude them in subsequent combinations. The combined images are given in units of counts per second.\n\n\n3. **Verify the steps** of the data products and make sure that everything terminated successfully.\n\n4. Now it's time to do your scientific analysis on your newly calibrated images. Enjoy!\n\n\n### Identify Transients\n\nPyNOT comes with a task for identifying bright, new transient objects from SWIFT. This is achieved by cross-matching with the Gaia all-sky catalog. Sources in the field without a match in Gaia are flagged according to three classes: (**red**) if the source is not consistent with the SWIFT localisation, (**orange**) if the source is consistent with the broad BAT error circle, and (**green**) if the source is consistent with the X-ray error circle.\n\nThe task can be run as:\n\n    pynot  findnew  reduced_image_wcs.fits  reduced_image_phot.fits  [--bat ra dec radius  --xrt ra dec radius  -z ZP  --limit  20.1]\n\nNote: Coordinates (ra and dec) are given in degrees! The radius for --bat is given in arcmin, the radius for --xrt is given in arcsec! Both --bat and --xrt are optional.\nIf the source catalog from PyNOT (_phot.fits) has not been flux calibrated (outside SDSS footprint), you can provide a zero point manually by giving the `-z ZP` option, where ZP denotes the magnitude zero point. The default magnitude limit is 20.1 mag in order to match the depth of Gaia. Sources fainter than this will not be considered.\n\nThe task creates a figure showing the field together with the localization estimates given by --bat and --xrt. The task also prints the identified sources to the terminal and to a text file (new_sources_*.txt), which looks something like:\n\n      ra         dec     mag_auto    a      b    theta  flux_auto  flux_err_auto  class\n      (deg)      (deg)      (AB)    (pix)  (pix)  (rad)  (count/s)    (count/s)         \n    54.51772  -26.98964     19.64    2.4    2.2  -1.28   1.27e+03       1.97e+01      0\n    54.50497  -26.94632     16.92    3.8    3.8  -0.53   1.56e+04       2.62e+01      0\n    54.54830  -26.93043     19.63    2.5    2.4   0.11   1.29e+03       1.97e+01      0\n\nwhere `class` refers to the classes defined above:\n\n  0: not consistent with BAT nor XRT  (red)\n\n  1: consistent with BAT  (orange)\n\n  2: consistent with BAT and XRT  (green)\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Data Reduction Pipeline for NOT/ALFOSC",
    "version": "2.1.2",
    "project_urls": {
        "Homepage": "https://github.com/jkrogager/PyNOT"
    },
    "split_keywords": [
        "spectroscopy",
        "astronomy",
        "longslit",
        "data",
        "processing",
        "pipeline"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3772a90c5d3b9711b7f8db8f54c14e6cd615e89f049b47a47582ecd27a8d8054",
                "md5": "9518f4be7e7f69685efbaa25f98cd3e1",
                "sha256": "4f56ed28e37d29d77750c572eeb65ac284a35e9d856ffab51a249fc1daa9ace0"
            },
            "downloads": -1,
            "filename": "PyNOT_redux-2.1.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9518f4be7e7f69685efbaa25f98cd3e1",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">3.7",
            "size": 224909,
            "upload_time": "2024-11-11T10:59:47",
            "upload_time_iso_8601": "2024-11-11T10:59:47.856649Z",
            "url": "https://files.pythonhosted.org/packages/37/72/a90c5d3b9711b7f8db8f54c14e6cd615e89f049b47a47582ecd27a8d8054/PyNOT_redux-2.1.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e1c5daff7d3afcc9214fe4df474ce77217283460813e436f1aa17e930f546b74",
                "md5": "335bcb06e957f8f8cc262abb5794d448",
                "sha256": "7bdf3e2bc947af264f66b36c14de431da592a315c322f930795c4fc6f14dcee8"
            },
            "downloads": -1,
            "filename": "pynot_redux-2.1.2.tar.gz",
            "has_sig": false,
            "md5_digest": "335bcb06e957f8f8cc262abb5794d448",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">3.7",
            "size": 207410,
            "upload_time": "2024-11-11T10:59:49",
            "upload_time_iso_8601": "2024-11-11T10:59:49.301723Z",
            "url": "https://files.pythonhosted.org/packages/e1/c5/daff7d3afcc9214fe4df474ce77217283460813e436f1aa17e930f546b74/pynot_redux-2.1.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-11 10:59:49",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "jkrogager",
    "github_project": "PyNOT",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "matplotlib",
            "specs": []
        },
        {
            "name": "numpy",
            "specs": []
        },
        {
            "name": "scipy",
            "specs": []
        },
        {
            "name": "PyQt5",
            "specs": []
        },
        {
            "name": "lmfit",
            "specs": []
        },
        {
            "name": "astropy",
            "specs": []
        },
        {
            "name": "astroscrappy",
            "specs": []
        },
        {
            "name": "spectres",
            "specs": []
        },
        {
            "name": "PyYAML",
            "specs": []
        },
        {
            "name": "sep",
            "specs": []
        },
        {
            "name": "astroalign",
            "specs": []
        },
        {
            "name": "astroquery",
            "specs": []
        },
        {
            "name": "beautifulsoup4",
            "specs": []
        }
    ],
    "lcname": "pynot-redux"
}
        
Elapsed time: 0.39157s