Skip to main content

Set of analysis tools of MRS data

Project description

Documentation Status

AstroCabTools

Set of tools made in order to:

  • Integrate processing tools, algorithms, visualization and data analysis of images and 3D infrarred spectroscopy for the James Webb Espacial Telescope (JWST).
  • Integration of JWST calibrated data and advance products into astronomics data bases and astrophisics specialized packages.
  • Develop procedures to the JWST data combination and the joint analysis of large volumnes of data.
  • Simulation and study of observationes made from the MIRI tool of the JWST with the MIRISim simulator.

Tools

  • mrs_chan.py - To identify wich channels from the MRS range, an emitted wavelenth is (BETA version).
  • mrs_spec_chan.py - Visualization of relationship emitted wavelength and density flux associate (BETA version).
  • mrs_det_plot.py - Manipulation of astronomic images based of frame and integration values (BETA version).
  • fit_line.py - Representation of multiple gauss fitted models based on an spectrum.
  • cube_ans.py - Representation and analysis of miri cubes
  • mrs_subviz.py - Representation and analysis of all MRS subbands
  • quick_spec.py - Easy representation of spectra with specific format and from fit__line, cube_ans and mrs_subviz
  • all_tools - Interface that allows to load each tool without using command line.

Packages used

For each tool, this repo uses a number of libraries and packages on python:

  • PyQt - Binding of C++ GUI library
  • Numpy - Library that allow large data manipulation
  • Matplotlib - Graph visualization library.
  • Astropy - Collection of software packages used for astronomy
  • Seaborn - Statistical data visualization
  • Lmfit - Non-Linear Least-Squares Minimization and Curve-Fitting for Python
  • PyPuSub - A Python publish-subcribe library
  • Photutils - Package that provides tools for detecting and performing photometry of astronomical sources.
  • jwst - Package to structurize cube models and transform data from pixel to coordinates and vice versa

Tested with

  • Python (tested for 3.7.0)
  • Matplotlib (tested for 3.1.2)
  • Numpy (tested for 1.81.1)
  • PyQt5 (tested for 5.14.0)
  • Seaborn (tested for 0.9.0)
  • lmfit (tested for 1.0.0)
  • PyPubSub (tested for 4.0.3)
  • Photutils (tested for 1.1.0)
  • jwst (tested for 1.3.3)

We have detected a problem with older versions of Mac not working with newer versons of pip because it can not found any version of matplotlib avaliable, for this case it is recommended to create an enviroment with a pip version no more than 20.2.2.

How to install and execute

It is recommended to install and execute the tools in a clean enviroment with Anaconda or similar to prevent the conflict of package versions.

If you have plans to use Anaconda, simply follow this steps once you activate it:

  1. Create the environment with conda create --name myenv python=3.7 (replace myenv with the environment name)
  2. Activate the environment with conda activate myenv or source activate myenv if the previous one did not work (replace myenv with the environment name)
  3. Install and execute one of the tools from AstroCabTools following the instructions below

If you are already in your conda environment or you do not need to, follow the next steps to install and execute the tools from AstroCabTools:

  1. Open the terminal and write pip install AstroCabTools
  2. Once all the libraries had been updated and the package installed, to execute each program, the next commands need to be written on the terminal:
  • bandChan to execute mrs_chan.
  • specChan to execute mrs_spec_chan.
  • detPlot to execute mrs_det_plot.
  • fitLine to execute fit_line.
  • cubeAns to execute cube_ans.
  • subViz to execute mrs_subviz.
  • quick_spec to execute quick_spec.
  • allTools to execute all_tools.

Manually installation

If your plan is to download from this repository and install it manually, execute pip install . inside the folder. Rather than using the python install, this makes all the packages to be installed in the same folder where the libraries can not find any problem of not finding libraries where they should be.

Templates

Templates for different tools can be downloaded in the next links and in the documentation.

Mrs_spec_chan templates

The templates for this tool can be downloaded from this link.

Mrs_det_plot templates

The templates for this tool can be downloaded from this link.

Fit_line templates

The templates for this tool can be downloaded from this link.

Cube_ans and mrs_subviz templates

The templates for this tools can be downloaded from this link.

Development

To dos

New:

  • Online documentation

Done:

  • mrs_chan features:

    • Specific wavelength location inside mrsSpec channels
  • mrs_spec_chan features:

    • Representation and management of spectra on a range of wavelength values
  • Representation of specific observed wavelengths selected on the plot

  • Representation of specific lines of interest from a list on the plot

  • Management of different specification ranges where each plot is going to appear

  • mrs_det_plot features:

    • Visualization of multiple .fits images
    • Management of the scale, stretch and colour of all the images
    • Visualization of values selected on an specified image along each axis
  • fit_line features:

    • Make gauss, double gauss, lorentz, lorentz + gauss, line and quadratic fitting model based on five points from an spectrum
    • Represent all models
  • cube_ans features:

    • MIRI, MEGARA and MUSE cube representation
    • Possibility to make aperture from an area selected
    • Creation of annulus background for subtraction from the initial area selected
    • Representation of the initial spectrum or the resultant from the subtraction in the fit_line tool
    • Obtain image based on the sum of flux for each pixel along a range of wavelength values
  • mrs_subviz features:

    • Representation of all 12 subbands of the MRS channels in same interface
    • Possibility to make aperture operation on all subbands at the same time
    • Creation of annulus background for subtraction from the initial area selected from each cube
    • Representation of the initial spectrum or the resultant from the subtraction for each cube
  • quick_spec features:

    • Representation of spectra that follows the same pattern as the ones that fit_line, cube_ans and mrs_subViz generates in order to interact with it(zoom and pan)
  • all_tools features:

    • Execute each one of the four programs independently

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

AstroCabTools-1.5.1.tar.gz (71.1 MB view details)

Uploaded Source

Built Distribution

AstroCabTools-1.5.1-py3-none-any.whl (8.7 MB view details)

Uploaded Python 3

File details

Details for the file AstroCabTools-1.5.1.tar.gz.

File metadata

  • Download URL: AstroCabTools-1.5.1.tar.gz
  • Upload date:
  • Size: 71.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.6

File hashes

Hashes for AstroCabTools-1.5.1.tar.gz
Algorithm Hash digest
SHA256 8ea15720dbe37b7cc98367ca01c13a0b3f32d0bfac4589e162dcd4e9dcb3de6e
MD5 42326b85cf5d547c4cf6a5fa79f9c7cc
BLAKE2b-256 9f9d965b1c04a84f8797eb4b08ae920c037079581758e65acd1162b79619c665

See more details on using hashes here.

File details

Details for the file AstroCabTools-1.5.1-py3-none-any.whl.

File metadata

  • Download URL: AstroCabTools-1.5.1-py3-none-any.whl
  • Upload date:
  • Size: 8.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.6

File hashes

Hashes for AstroCabTools-1.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 67162341b7c4a9671265790fb7f3945bc6773802629c26fde99698d9d174851c
MD5 f1396dd5e39cf82f423e5b3826a5acc9
BLAKE2b-256 28fac0f7be0cf4d465c6b856cb6a85430bc31aa670c673c04f097fe18f6875b5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page