GithubHelp home page GithubHelp logo

morse's Introduction

MORSE

MORSE is a post-processing code that transforms a posterior distribution on neutron star masses and radii to a posterior distribution on equation of state (EoS) parameters. Effectively there are two parts to the code:

  • The first part calculates a mass-radius curve given an EoS by solving the relativistic stellar structure equations (TOV- equations)
  • The second part transforms a joint posterior distribution on neutron star masses and radii to a posterior distribution on EoS parameters in a Bayesian framework.

In the "Example" Ipython Notebook we show how to use MORSE to calculate mass, radius and moment of inertia from a set of EoS parameters and how to create input joint posteriors on mass and radius.

To infer a posterior distribution on EoS parameters, the following codes have to be executed:

  • python Generate_Params_Par.py -n 20

The "-n 20" means that for each of the EoS parameters, 20 different values are calculated.

  • python Create_MRcurves_Par.py -f1 MRIcurves20 -f2 Parameters20

This will create the mass-radius curves and the corresponding parameters and saves them as "MRIcurves20.npy" and "Parameters20.npy" respectively.

  • python JacobianRho.py -f JacobianRho20 -i1 MRIcurves20.npy -i2 Parameters20.npy

This will calculate the Jacobian using the files "MRIcurves20.npy" and "Parameters20.npy". The Jacobian is saved as "JacobianRho20.npy".

  • python PosteriorProbRho.py -f ProbFPS -i1 MRIcurves20.npy -i2 JacobianRho20.npy -i3 auxfiles/ObservablesFPS.npy

This will calculate the posterior distribution on the EoS parameters and save it as "ProbFPS.npy". The input posterior on masses and radii is given by the file "ObservablesFPS.npy".

morse's People

Contributors

geert-raaijmakers avatar

Watchers

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