Code Monkey home page Code Monkey logo

drp_ga1d_abund's Introduction

drp_ga1d_abund

A data analysis pipeline for the Galactic Archaeology science

September 16, 2021

Now includes basic elements of PFS GA 1D abundance pipeline, adapted from the spectral synthesis method of Escala et al. 2019. Measures T_eff, [Fe/H], and [alpha/Fe] from spectroscopy, including an optional flag (fit_logg=True) to measure surface gravity as a free parameter (currently in development).

  • pfs_io.py

Generates a PFS object dictionary initialized with inputs and outputs of the abundance pipeline.

Inputs: pfsObject*, pfsConfig* FITS files containing spectral information, targetting information, and user-specified resolution mode and site-specific object identifier.

Outputs: pfsAbund* FITS file containing information from PFS object dictionary.

  • pfs_1d_abund.py

Inputs: PFSObject dictionary with necessary information to perform abundance measurement Outputs: Modified PFSObject dictionary with updated keywords corresponding to the output of the PFS 1d abundance pipeline.

  • pfs_utilities.py, pfs_phot.py, and pfs_read_synth.py provide helper functions for pfs_1d_abund.py

NOTE: In order to use this pipeline, you MUST have access to a continuum-normalized grids of synthethic spectra over the appropriate wavelength range, such as the grids of Escala et al. 2019 and Kirby et al. 2008.

You also must use the wavelength masks constructed for each arm of PFS contained in the specregion folders (generated by I. Escala, 2018).

Dependencies: ASTROPY (http://www.astropy.org/), astroquery (https://pypi.org/project/astroquery/) F2PY3 (https://numpy.org/doc/stable/f2py/)

Installations: Run "make all" to compile the pfsabund/smooth_gauss.f Fortran code. f2py3 is a prerequisite.

Usage: See Jupyter iPython notebook for an example.

drp_ga1d_abund's People

Contributors

iaescala avatar enkirby avatar mihoishigaki avatar hartwigtilman avatar

Watchers

James Cloos avatar Ying Zu avatar  avatar Kiyoto Yabe avatar  avatar  avatar Masayuki Tanaka avatar Subaru PFS Project Office avatar

drp_ga1d_abund's Issues

Dependencies of pre-compiled smooth_gauss.so library

The file pfsabund/smooth_gauss.so is a pre-compiled library, which is not portable to other systems. Possible solutions:

  • Provide instructions how to compile and use it locally
  • Provide Makefile to compile it when needed
  • Rewrite the Fortran code to python

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.