GithubHelp home page GithubHelp logo

lauralwatkins / mgetools Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 1.0 123 KB

A collection of python functions to calculate various quantities and perform various tasks for Multi-Gaussian Expansions (MGEs).

License: Other

Python 8.02% Jupyter Notebook 91.98%

mgetools's Introduction

MGETOOLS

CONTENTS

  • license and referencing
  • code description
  • requirements

LICENSE AND REFERENCING

This code is released under a BSD 2-clause license.

If you find this code useful for your research, please mention it in your acknowledgements.


CODE DESCRIPTION

This is a collection of python functions for generating various quantities for Multi-Gaussian Expansions (MGEs). Please use/add to/modify them.

  • Cumulative2D : Cumulative profile from a 2-dimensional MGE.
  • Cumulative3D : Cumulative profile from a 3-dimensional MGE.
  • Deproject: De-project a 2-dimensional MGE.
  • Project : Project an 3-dimensional MGE.
  • SurfaceDensity : Surface density of 2-dimensional MGE.
  • VolumeDensity: Volume density of 3-dimensional MGE.

The MGEs themselves should be given as an astropy Table or QTable, with units for the components as necessary. The structure assumes:

  • "i" : central volume or surface density of the MGE component
  • "s" : width of the MGE component
  • "q" : flattening of the MGE component

Directory Example contains a datafile with an example MGE, and a jupyter notebook with some usage examples and tests for each function.

Emsellem, Monnet & Bacon (1994) and Cappellari (2002) are good references if you wish to learn more about MGEs and their uses.


REQUIREMENTS

This code assumes you are using Python3. It uses astropy and the standard python libraries numpy and scipy.

mgetools's People

Contributors

lauralwatkins avatar

Stargazers

Nikolay Kacharov avatar  avatar  avatar

Watchers

James Cloos avatar  avatar

Forkers

carlosrmelo

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.