Code Monkey home page Code Monkey logo

om10's Introduction

OM10

Tools for working with the Oguri & Marshall (2010) mock catalog of strong gravitational lenses

Installing OM10

pip install om10

Developing OM10

Fork the repo and clone it to your local machine. Then, do

python setup.py develop

Now when you import om10 you'll get the development version, linked to to your fork.

Make sure you have all the requirements with

conda install scipy>=0.18.1
pip install -r requirements.txt

A high version of scipy is needed for scikit-learn. We also use Tom Collett's lenspop package, currently in beta.

Example Use

Read in the master FITS catalog and look up one system:

db = om10.DB(catalog="data/qso_mock.fits")

id = 7176527
lens = db.get_lens(id)

Make a plot of it:

om10.plot_lens(lens)

Select a mock LSST sample:

db.select_random(maglim=23.3,area=20000.0,IQ=0.7)
print db.sample

See also the tutorial notebook.

License, Credits

This code is distributed under the MIT license, and is being developed sporadically by Marshall, Baumer and Kim (KIPAC), with contributions from Liao and Agnello (UCLA). If you'd like to help out, please send us an issue!

If you use the OM10 mock lens catalog in your research, please cite Oguri & Marshall (2010). Here's the bibtex for you!

@OM10,
   author = {{Oguri}, M. and {Marshall}, P.~J.},
    title = "{Gravitationally lensed quasars and supernovae in future wide-field optical imaging surveys}",
  journal = {\mnras},
archivePrefix = "arXiv",
   eprint = {1001.2037},
 primaryClass = "astro-ph.CO",
 keywords = {gravitational lensing: strong, cosmological parameters, cosmology: theory},
     year = 2010,
    month = jul,
   volume = 405,
    pages = {2579-2593},
      doi = {10.1111/j.1365-2966.2010.16639.x},
   adsurl = {http://adsabs.harvard.edu/abs/2010MNRAS.405.2579O},
  adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}

om10's People

Contributors

drphilmarshall avatar mbaumer avatar aagnello avatar davidfinley avatar jbkalmbach avatar rbiswas4 avatar dhroth 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.