Giter Club home page Giter Club logo

slit's Introduction

When using this algorithm for publications, please acknowledge the work presented in: http://arxiv.org/abs/17soon

======================================================== INSTALLATION:

  • Download and unzip the SLIT.zip file
  • In command line, open the SLIT folder with "cd SLIT"
  • Install the python package: "python setup.py install"

======================================================== TESTS: In SLIT, open the "Examples" folder and execute either of the examples: "python Test_SLIT.py" to test the reconstruction of a deblended lensed source. "python Test_SLIT_HR.py" to test the reconstruction of a deblended lensed source at higher resolution. "python Test_SLIT_MCA.py" to test the joint separation of lens and source light profiles and reconstruction of the source. "python Test_sparsity.py" to reproduce the non-linear approximation error plot from the paper to show the sparsity of lensed and unlensed galaxies.

Inputs provided in the "Files" folder: "source.fits": the source used to generate simulations in Test_SLIT.py and Test_SLIT_MCA.py. "Source_HR.fits": the source used to generate simulations in Test_SLIT_HR.py. "Galaxy.fits": the lens galaxy light profile used in Test_SLIT_MCA.py. "kappa.fits": the lens mass density profile used in all simulations. "PSF.fits": the TinyTim PSF used in all simulations. "Noise_levels_SLIT_HR.fits": noise levels used in "Test_SLIT_HR" saved as a fits cube. They are usually computed in the algorithm, but we provide them as inputs to save time. "Noise_levels_SLIT_MCA.fits": noise levels used in "Test_SLIT_MCA" saved as a fits cube. They are usually computed in the algorithm, but we provide them as inputs to save time. "Noise_levels_SLIT.fits": noise levels used in "Test_SLIT_HR" saved as a fits cube. They are usually computed in the algorithm, but we provide them as inputs to save time.

Results are displayed in pyplot windows.

Users may change the input parameters via the same files and are encouraged to use them for further applications.

======================================================== HOW TO USE: We provide a Test_for_user.py file, that users may fill in with their own inputs and where the commands are a bit more detailed than in the other Test files.

SLIT needs very little amount of inputs. It requires the input image along with lens mass profile and a PSF. The user then has to chose a maximum number of iterations after which the algorithm will stop if not converged and a image size ratio to the input image to set the resolution of the reconstructed source.

Please do not hesitate emailing me for support via github, or at: [email protected].

Contact GitHub API Training Shop Blog About

© 2017 GitHub, Inc. Terms Privacy Security Status Help

slit's People

Contributors

aymgal avatar herjy avatar

Watchers

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