GithubHelp home page GithubHelp logo

smirngreg / gofish Goto Github PK

View Code? Open in Web Editor NEW

This project forked from richteague/gofish

0.0 1.0 0.0 2.62 MB

๐ŸŽฃ Fish for line detections by exploiting the known velocity structure of the disk.

License: GNU General Public License v3.0

Python 97.84% TeX 2.16%

gofish's Introduction

GoFish





Fishing for molecular line detections in protoplanetary disks.
For more information, read the documentation.

Documentation Status DOI



Installation

The quickest way to install is using PyPI:

> pip install gofish

which will install all the necessary dependancies.

Example Usage

For a thorough introduction on how to use GoFish, see the extensive documentation.

In brief, the user will attach an image cube to GoFish which will read the necessary header information:

# Attach an image cube.
from gofish import imagecube
cube = imagecube('path/to/cube.fits')

Once attached averaged spectrum over a user-specified region can be extracted using the known geometrical properties of the disk:

# Return the averaged spectrum between 0.0" and 1.0".
x, y, dy = cube.average_spectrum(r_min=0.0, r_max=1.0, inc=5.0,
                                 PA=152., mstar=0.88, dist=59.5)

where x is the velocity axis, y is the spectrum and dy is the uncertainty. Alternatively the integrated spectrum can be extracted in a similar manner,

# Return the integrated spectrum between 0.0" and 1.0".
x, y, dy = cube.integrated_spectrum(r_min=0.0, r_max=1.0, inc=5.0,
                                    PA=152., mstar=0.88, dist=59.5)

where y is now the integrated flux in units of Jy.

Citation

If you use GoFish as part of your research, please cite the JOSS article:

@article{GoFish,
    doi = {10.21105/joss.01632},
    url = {https://doi.org/10.21105/joss.01632},
    year = {2019},
    month = {sep},
    publisher = {The Open Journal},
    volume = {4},
    number = {41},
    pages = {1632},
    author = {Richard Teague},
    title = {GoFish: Fishing for Line Observations in Protoplanetary Disks},
    journal = {The Journal of Open Source Software}
}

gofish's People

Contributors

arfon avatar labarba avatar richteague avatar

Watchers

 avatar

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.