Giter Club home page Giter Club logo

fitaltogether's Introduction

Exoplanet Mapping with SAMURAI

Surface Albedo Mapping Using RotAtional Inversion (SAMURAI)

Running the code

Directly fitting the lightcurve

A1. Set the simulation parameters in: fitlc_params.py

B1. Run the mcmc code:

python main_fitlc_mcmc_EPOXI_NEW.py

This will create a directory for this unique run (labeled by timestamp). The output HDF5 file containing the mcmc chains and data can be found there.

Fitting with the map

A2. Set the simulation parameters in: map_EPOXI_params.py

B2. Run the mcmc code:

python main_map_EPOXI_mcmc.py

Essentially the same output as the lightcurve fitting method.

Analyzing the output

C. Analyze mcmc output:

python mcmc_analysis.py -d <run_directory> trace

This creates 'trace' plots for the trajectories of all mcmc chains through each parameter's space (with trace keyword). It is helpful to inspect the trace plots to determine the 'burn-in' by eye.

D. Perform physical analysis:

python mcmc_physical.py -d <run_directory> -b <burn-in index> posterior area-alb model-data

This will generate histograms of the posterior distrubution for each parameter (with posterior keyword), a plot showing the retrieved area and albedos (with area-alb keyword), and a plot showing the model fit to the data (with model-data keyword).

fitaltogether's People

Contributors

jlustigy avatar yukafujii-astro avatar gyonshojaah avatar

Watchers

James Cloos 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.