GithubHelp home page GithubHelp logo

devries / analytic_infall Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 146 KB

Analytic 1-D radiative transfer model of blue-asymmetric spectral line profiles from infalling molecular clouds. The model is presented in the paper, "Molecular Line Profile Fitting with Analytic Radiative Transfer Models" by De Vries & Myers (2005).

Home Page: http://adsabs.harvard.edu/abs/2005ApJ...620..800D

C 94.02% Python 2.46% Dockerfile 0.08% Makefile 1.39% C++ 2.05%
radiative-transfer c star-formation interstellar-medium

analytic_infall's Introduction

Thank you for downloading the analytic infall models. These models are
discussed in detail in De Vries & Myers (2005). More documentation and updates
are available from http://cfa-www.harvard.edu/~cdevries/analytic_infall.html
. Although this paper includes all the analytic models discussed in the paper,
I would restrict myself to the HILL5 and TWOLAYER6 models, which were found to
be the best models. 

In order to fit a spectrum you need to place it in a two column text format
(the first column should be velocity in kilmeters per second, and the second
should be brightness temperature in Kelvins). Lines that begin with a hash mark
'#' will be ignored. Use the hybrid version of the model you want to run, this
will allow for some slow differential evolution minimization which will
(hopefully) find the global minimum well followed by Nelder-Mead simplex
minimization which will quickly find the bottom of that well. The hybrid
programs of interest are "hill5_hybrid" and "twolayer6_hybrid". The arguments
to both programs are:

1. input filename  --- the file with your spectrum
2. frequency --- to perform the J(T) conversion. A frequency of 0 will work in
		 units of J(T) instead of T.
3. vmin --- minimum velocity of the line profile.
4. vmax --- maximum velocity of the line profile. Be sure to get the entire
	    line full width as well as a little baseline. This is the region
	    over which chi-squared is calculated, so artifacts of the fit can
	    sometimes appear outside this region.
5. population in generation --- The number of solutions to calculate each
				generation of the differential evolution. I
				usually use about 200-300 here.
6. generations per check --- The number of generations to run before checking
			     for convergence in the differential evolution. I
			     usually pick 300 here.
7. checks to convergence --- The number of checks to make before deciding the
			     differential evolution algorithm has converged. I
			     usually pick 3 to 5 here. 
8. output file --- Where to place the fit and parameters.

The output file will have a header line the following (a HILL 5 example is
shown):

# Tau:   4.46394
# Vlsr:  0.000296732
# Vin:   0.0993918
# sigma: 0.0937655
# Tpeak: 10.5371
# Attained Chisq: 0.539567

giving the parameters of the fit and Chi Squared (not a reduced
chi-squared). Followed by the fit in a three column data file. The first two
columns are the two columns of the input file, while the third column is the
fit of the analytic model. Always check that the fit is good.

Please email me at [email protected] if you have any questions or
comments. 

analytic_infall's People

Contributors

devries avatar

Stargazers

 avatar

Watchers

 avatar  avatar  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.