Giter Site home page Giter Site logo

dl07_fitter's Introduction

This directory contains a package for turning the Draine & Li (2007)
text file models into a grid of IDL structures. The area routines to
read the text files provided by B. Draine's website, to interpolate
between models and to define a grid of interpolated model values
spanning a range of radiation field formulations and PAH
fraction. There are also routines to compare measurements to a grid of
models to identify the best fit model.

The models include the IRAS, IRAC (Spitzer), MIPS (Spitzer), PACS
(Herschel), SPIRE (Herschel), and DIRBE (COBE) bandpasses.

EXAMPLE USE:

(1) Download
(2) Run "prep_models"
(3) Use "find_best_draine_model" to fit your data

Note that you may (probably do, in fact) want to modify prep_models to
turn off the /nospec option. Having this on only computes the model
grid for the various bands. Turning it off allows the grid to be
calculated for the full spectrum (and then convolved with an arbitrary
bandpass later).

PROGRAMS FOR USERS:

- prep models : read in the models for the Milky Way, LMC, and SMC;
  save them to disk; and then build them into model grids.

- mm09_dust : implement's Juan-Carlos Munoz-Mateos's fits to the
  Draine model grid. These give simple good enough estimates without
  requiring fitting using the Spitzer MIPS bands. See Munoz-Mateos+
  (2009).

SUPPORT PROGRAMS:

- grid_models: grid a set of models into a cube appropriate for
  fitting. The cube has axes of PAH fraction, PDR fraction (fPDR), and
  minimum radiation field.

- merge_draine_models : mostly a support program, but potentially of
  general use. Takes two Draine model structures and linearly averages
  them according to the provided weights. Used under the hood for
  building a model grid but could in general be used to mix any pair
  of models.

- read_one_model : reads on DL07 text file into a structure created by
  "new_draine_model".

- new_draine_model : makes an empty structure to contain a DL07 model.

TO DO:

- the fitter needs the most work

- a monte carlo tool to kick back realistic error estimates

dl07_fitter's People

Contributors

akleroy avatar

Stargazers

 avatar

Watchers

 avatar James Cloos avatar

dl07_fitter's Issues

Band Indices Bug Lines 232+

Hi Adam, The range of the for-loop in line 233 does not match the range of band_inds[i] and/or data_bands[i] in line 234. Some indexing is wrong here. Cheers, Andreas

improvements

From Kim:

(1) right now there is an uneeded stop in the fitter

(2) disp should ship with the fitter if it's going to be called

(3) skip -> skipline in the readcol calls

(4) reduced chisq -> chisq (option) in the fitting to make error bars more rigorous

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.