Coder Social home page Coder Social logo

spvfly / gravpy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rirze/gravpy

0.0 1.0 0.0 946 KB

A python implementation of GravLens. This repository is for development, while the stable version will be at at Chuck Keeton's repository.

Home Page: https://github.com/chuckkeeton/gravpy

Python 27.34% Fortran 70.46% Makefile 0.17% C++ 1.55% C 0.48%

gravpy's Introduction

#Welcome!

This project is a Python implementation of the general lens solver GravLens.

To build and install the package, type python setup.py build install. If you are developing, use python setup.py develop instead.

At this current version, this project does the following:

  • Take the magnification function for given model(s) and compute the transformation of coordinates from the image plane to the source plane.
  • Given a point in the source plane, find the exact position(s) in the image plane.
  • Plot the results. (Sample images are given below!)

Supported Models

Fully Implemented:

  • Alpha = 1 (Singular Isothermal Ellipsoid)
  • Alpha = -1 (Plummer Model)
  • General Alpha case
  • NFW (Fortran Version)

Models that are not fully functional in this version:

  • NFW (C version)

Not yet Implemented:

  • NFW (Python Version)
  • Truncated Models

Dependencies:

Make sure to install these libraries before running!

  • SciPy
  • NumPy
  • matplotlib.pyplot
  • numexpr
  • pycallgraph (this library can be excluded if you are not interested in seeing runtimes in the demo, make sure to comment out the relevant lines in demos/example_run.py)

For the fortran files, you will need CUBPACK for the integrals. At this point of the project, this library is not bundled with this code. You must also compile the fortran files yourself, use the makecommand files in the folder for an example on how to compile the code.

#Images ##SIE SIE ##Plummer - Alpha = -1 Case Plummer

gravpy's People

Contributors

rirze avatar

Watchers

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