Coder Social home page Coder Social logo

fit_fir_sed's Introduction

fit_fir_sed

Fit far-IR powderday SED with emcee. Originally developed by Justin Spilker c. 2015-2016. Retro-fitted to use data from cosmological simulations

Install prereqs:

  1. emcee: https://github.com/dfm/emcee
  2. corner: https://github.com/dfm/corner.py
  3. h5py: conda install h5py
  4. tqdm: conda install -c conda-forge tqdm (just for timing for loops)

This code takes a powderday SED (luminosity in erg/s) and fits a modified blackbody spectrum to it
We infer the amplitude of the blackbody fit (mostly to deal with weird units issues), dust temp, and beta
From these model fits, we get the distribution of inferred dust masses and total IR luminosities
The fit_seds.py script takes 1 command line argument, which specifies which galaxy we are fitting. Run it by doing
$ python fit_seds.py 10

The actual fitting process doesn't take too long, but feel free to adjust the steps parameter below. Increasing the # of workers or the # of iterations canimprove the fit if it's failing to converge
output.py has a simple plotting routine where you can plot the posteriors in a corner plot and the best fit SED

fit_fir_sed's People

Contributors

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