Metadata-Version: 1.1
Name: pyspeclines
Version: 0.1.4
Summary: Package to compute integrated line fluxes and equivalent widths from galaxy spectra
Home-page: https://github.com/jacopo-chevallard/PySpecLines
Author: Jacopo Chevallard
Author-email: jacopo.chevallard@mailfence.com
License: MIT
Description: # PySpecLines
        
        Some useful scripts to compute integrated line fluxes and equivalent widths from galaxy spectra using 3 different methods:
        
        - numerical (trapezoidal) integration
        - Gaussian fit using a "standard" Levenberg-Marquardt algorithm
        - Gaussian fit using an MCMC algorithm
        
        ## Installing the package
        
        To install ``PySpecLines`` you can use ``pip``, which will take catre of installing the required dependencies as well
        ```
        pip install pyspeclines
        ```
        
        To upgrade to the latest available version you can run
        ```
        pip install pyspeclines --upgrade
        ```
        
        ## Examples
        
        You can see the different available options running
        ```
        pyspeclines --help
        ```
        
        The script **requires** one or more input FITS files containing the calibrated spectra and the following columns:
        - ``wl``, wavelength array in ``ang``
        - ``flux``, flux array in ``erg s^-1 cm^-2 ang^-1``
        - ``err``, error array in  ``erg s^-1 cm^-2 ang^-1``
        
        If the spectrum is provided in the observed frame, then you must provide a ``REDSHIFT`` keyword in the FITS header containing the object redshift.
        
        - Compute the fluxes and EWs using numerical integration
          ```
          pyspeclines --file my_spectrum.fits --json-file  emission_lines_EWs_config.json
          ```
        
        - Compute the fluxes and EWs using Gaussian fit (Levenberg-Marquardt)
          ```
          pyspeclines --file my_spectrum.fits --json-file  emission_lines_EWs_config.json --gaussian-fit
          ```
        
        - Compute the fluxes and EWs using Gaussian fit (MCMC)
          ```
          pyspeclines --file my_spectrum.fits --json-file  emission_lines_EWs_config.json --gaussian-fit --use-PyMC --MCMC-samples 5000
          ```
        
Keywords: astronomy galaxies statistics visualization
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Science/Research
Classifier: Topic :: Scientific/Engineering :: Astronomy
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 2.7
