Giter Site home page Giter Site logo

sjaffa / q_plus Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 2.0 95.92 MB

Tool for astronomical data analysis, quantifying the structure of young star clusters using a fractal dimension.

Python 100.00%
astronomy astrophysics star-clusters star-formation fractals structure

q_plus's Introduction

Q_plus

Q+: an algorithm for statistically quantifying sub-structure in star clusters

INPUTS:

x,y: two-dimensional position of stars in parsecs

OUTPUTS

filename (Possbile Q warning if centrally concentrated) PC1 and PC2 values (Possibe edge of parameter space warning) [D,D_err],[L,L_err],[C,C_err]

Where D,L,C areestimated fractal dimension, number of levels, density scaling exponent and D_err,L_err,C_err are errors on these.

DOCUMENTATION

This algorithm: -builds the complete graph and minimum spanning tree of the points, -derives various statistics of structure from these, -compares these statistics to a set with known structure, and -estimates the most likely structure parameters and their error. See paper for a full explanation of the algorithm.

Usage:

In a terminal run: python gridrecon.py

Where is the path to the text file you want to run and is a list of the indices if the x and y positions. Example:

python gridrecon.py /home/sjaffa/Dropbox/Data/IC348.txt [0,1]

LICENSE

This work is shared under and MIT license, please see the LICENSE file

q_plus's People

Contributors

sjaffa avatar

Stargazers

 avatar

Watchers

 avatar  avatar

q_plus's Issues

Is G equivalent to L in the code?

Hi Sarah,

It's Becky Arnold, we've met a couple of times at conferences, I did my PhD at Sheffield with Simon Goodwin, I'm at Keele now. I'm looking at applying Q+ to compare some simulations and real clusters and I'm confused because your paper talks about the L parameter, put the code outputs a parameter called G (in addition to D and C).

Is G just another name for L, or is it something different?

Thanks,

Becky

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.