Giter Site home page Giter Site logo

lucadimascolo / mbproj2d Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jeremysanders/mbproj2d

0.0 0.0 0.0 10.71 MB

Multiband projection code for fitting images of galaxy clusters in 2D

License: GNU Lesser General Public License v3.0

C++ 10.04% Python 73.96% C 13.43% Cython 2.56%

mbproj2d's Introduction

MBProj2D

2D forward-fitting projection code for fitting images of clusters of galaxies. This work builds upon the ideas in MBProj2 (see https://github.com/jeremysanders/mbproj2 and https://ui.adsabs.harvard.edu/abs/2018MNRAS.474.1065S). It differs from MBProj2 in that it fits images, rather than profiles, and allows multiple cluster and background components to be simultaneously fitted.

This code is in development, so please be aware that the interface can be unstable. More documentation can be found at https://mbproj2d.readthedocs.io/en/latest/

Copyright Jeremy Sanders (2020)

License: LGPLv3

Requirements:

Installation instructions using pip:

python3 -m pip install astropy cython emcee h5py numpy pyfftw scipy
python3 -m pip install git+https://github.com/jeremysanders/mbproj2d

If using conda, the following package is also required for Linux:

conda install -c conda-forge gxx_linux-64

Usage notes:

  • If using a PSF model, I suggest fitting a larger region of the sky than necessary, but masking out the edges. Do not zero the exposure map in these regions. The PSF modelling uses a FFT convolution, so the model will wrap around at the edges. Please note that the pad=N option in Image() or imageLoad will automatically zero-pad images with N masked-out pixels.

  • Input images must have even numbers of pixels on each axis if optimal_size not set

mbproj2d's People

Contributors

jeremysanders avatar lucadimascolo avatar jacobic avatar nicoclerc 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.