Skip to main content Accessibility help
×
Hostname: page-component-7479d7b7d-q6k6v Total loading time: 0 Render date: 2024-07-12T20:23:42.869Z Has data issue: false hasContentIssue false

8 - Tutorial on inverse ray shooting

Published online by Cambridge University Press:  05 September 2016

Jorge Jiménez-Vicente
Affiliation:
Universidad de Granada, Spain
Evencio Mediavilla
Affiliation:
Instituto de Astrofísica de Canarias, Tenerife
Jose A. Muñoz
Affiliation:
University of Valencia
Francisco Garzón
Affiliation:
Instituto de Astrofísica de Canarias, Tenerife
Terence J. Mahoney
Affiliation:
Instituto de Astrofísica de Canarias, Tenerife
Get access

Summary

Magnification maps are an essential tool in microlensing studies. Their calculation is based on very simple principles and it is therefore quite straightforward to implement. This tutorial is intended to show how these calculations are done by using a basic rayshooting procedure. The tutorial assumes some basic knowledge of any programming language, but no previous knowledge of the specific language used here or experience with gravitational lensing computations is needed. The very basics of gravitational lensing are also implicitly assumed at some points. From the computational point of view, the tutorial covers topics ranging from the simplest ray-shooting program for generating images of an object through a simple lens system to the production of magnification maps for quasar microlensing. Source size effects and how to deal with them are also briefly discussed. We finish by also briefly discussing the main improvements that have been introduced into this technique to make calculations faster.

Introductory remarks

It is particularly difficult to put into writing what was intended as a couple of practical sessions on inverse ray-shooting techniques during the Winter School. Unfortunately, there is not much choice but to illustrate the ideas with some code. At this point, a choice has to be made whether to use pseudocode or to choose a given programming language. I have chosen the latter option here in the hope that the reader may actually use the code snippets presented here straight away and be able to produce some useful programs from it. During the lectures, the Python programming language was used for the tutorial. I chose it for a couple of reasons that are enumerated below. I have therefore also used Python here for presenting the techniques introduced in this tutorial. Nevertheless, the reader is not expected to know any Python in advance as I shall introduce all the required information on Python syntax in Section 8.2. Readers should therefore find no problem in following the explanations and/or in translating the code to their favourite programming language. Finally, these lectures were intended as practical sessions and, as such, the focus is on producing some useful code and on understanding the key steps in that process. Performance will be dealt with at some point in order introduce the necessary Python ingredients to make the programs fast enough to produce results in a reasonable time.

Type
Chapter
Information
Publisher: Cambridge University Press
Print publication year: 2016

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

References

Alcock, C. et al. 2000, ApJ, 541, 270
Barnes, J. & Hut, P. 1986, Nature, 324, 446
Bate, N. F., Fluke, C. J., Barsdell, B. R., Garsden, H. & Lewis, G. F. 2010, New Astron., 15, 726
Chang, K. & Refsdal, S. 1979, Nature, 282, 561
Chang, K. & Refsdal, S. 1984, A&A, 132, 168
Jiménez-Vicente, J., Mediavilla, E., Muñoz, J. A. & Kochanek, C. S. 2012, ApJ, 751, 106
Katz, N., Balbus, S. & Paczynski, B. 1986, A&A, 306, 2
Kayser, R., Refsdal, S. & Stabell, R. 1986, A&A, 166, 36
Kochanek, C. S. 2004, ApJ, 605, 58
Mediavilla, E., Muñoz, J. A., López, P., Mediavilla, T., Abajas, C., Gonzalez-Morcillo, C. & Gil-Merino, R. 2006, ApJ, 653, 942
Mediavilla, E., Muñoz, J. A., Falco, E., Motta, V., Guerras, E., Canovas, H., Jean, C., Oscoz, A. & Mosquera, A. 2009, ApJ, 706, 1451
Mediavilla, E., Mediavilla, T., Muñoz, J. A., Ariza, O., López, P., González-Morcillo, C. & Jiménez-Vicente, J. 2011, ApJ, 741, 42
Mortonson, M. J., Schechter, P. L. & Wambsganss, J. 2005, ApJ, 628, 594
Muñoz, J. A., Mediavilla, E., Kochanek, C. S., Falco, E. E. & Mosquera, A. M. 2011, ApJ, 742, 67
Schneider, P., Ehlers, J. & Falco, E. E. 1999, Astronomy and Astrophysics Library, Gravitational Lenses (Berlin: Springer-Verlag)
Schneider, P., Kochanek, C. & Wambsganss, J. 2006, Saas-Fee Advanced Course 33, Gravitational Lensing: Strong, Weak and Micro (Berlin: Springer-Verlag)
Schneider, P. & Weiss, A. 1986, A&A, 164, 237
Schneider, P. & Weiss, A. 1987, A&A, 171, 49
Shakura, N. I. & Sunyaev, R. A. 1973, A&A, 24, 337
Shipman, J. W. 2011, A Python programming tutorial, http://infohost.nmt.edu/tcc/help/pubs/ lang/pytut1/
Wambsganss, J. 1990, PhD Thesis, Munich, available as MPA Report 550
Wambsganss, J. 1999, J. Comp. App. Math., 199, 353

Save book to Kindle

To save this book to your Kindle, first ensure coreplatform@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

Available formats
×

Save book to Dropbox

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.

Available formats
×

Save book to Google Drive

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.

Available formats
×