Skip to content
/ OM10 Public
forked from drphilmarshall/OM10

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

License

Notifications You must be signed in to change notification settings

mbaumer/OM10

 
 

Repository files navigation

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, edit the following lines and add them to your .login file:

setenv OM10_DIR ${WORK_DIR}/OM10
setenv PYTHONPATH ${OM10_DIR}:${PYTHONPATH}

Now when you import om10 you'll get the development version, linked to to your fork. Make sure you have all the requirements with

pip install -r requirements.txt

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:

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

License, Credits

This code is distributed under the MIT license, and is being developed sporadically by Marshall and Baumer (KIPAC), Liao (UCLA) 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}
}

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 98.8%
  • Python 1.2%