VBMicrolensing is a tool for efficient computation in gravitational microlensing events using the advanced contour integration method, supporting single, binary and multiple lenses.
Project description
VBMicrolensing
VBMicrolensing
is a tool for efficient computation in gravitational
microlensing events using the advanced contour integration method, supporting single, binary and multiple lenses.
In particular, VBMicrolensing is designed for the following calculations:
- Magnification by single, binary and multiple lenses
- Centroid of the images generated by single and binary lenses
- Critical curves and caustics of binary and multiple lenses
- Complete light curves including several higher order effects: limb darkening of the source, binary source, parallax, xallarap, circular and elliptic orbital motion.
VBMicrolensing
is written as a C++ library and wrapped as a Python package, the user can call the code from either C++ or Python. This new code encompasses the well-known VBBinaryLensing code, which is at the basis of several platforms for microlensing modeling. VBBinaryLensing
will still be available as a legacy software, but will no longer be maintained.
VBMicrolensing
has been developed by Valerio Bozza, University of Salerno, with a substantial contribution by Vito Saggese, University of Naples. We also acknowledge a long list of collaborators who contributed to testing and development of particular aspects over the years: Etienne Bachelet, Fran Bartolic, Sebastiano Calchi Novati, Giovanni Covone, Giuseppe D'Ago, Tyler Heintz, Ava Hoag, Markus Hundertmark, Elahe Khalouei, Radek Poleski, Paolo Rota, Sedighe Sajadian, Rachel Street, Keto Zhang, Weicheng Zhang, Wei Zhu.
Attribution
Any use of this code for scientific publications should be acknowledged by a citation to the works relevant to your study:
- V. Bozza, MNRAS 408 (2010) 2188: general algorithm for binary lensing;
- V. Bozza et al., MNRAS 479 (2018) 5157: BinaryMag2 function, Extended-Source-Point-Lens methods;
- V. Bozza, E. Khalouei and E. Bachelet, MNRAS 505 (2021) 126: astrometry, generalized limb darkening, Keplerian orbital motion;
- V. Bozza, v. Saggese, G. Covone & P. Rota (2024), in preparation: multiple lenses.
If specifically relevant to your work, please also cite J. Skowron and A. Gould, arXiv:1203.1034.
Installation
Python
The easiest way to install VBMicrolensing
is through pip install VBMicrolensing
In alternative, in order to use the latest build, clone this GitHub repository on your computer, enter your local copy of the repository and run
pip install .
Currently, VBMicrolensing
works on Linux, Windows, MacOS and python >= 2.7. The package requires a C++ compiler supporting C++.
C++
If you just want to use the C++ library, clone this repository, all cpp files and the
VBMicrolensing.h
are located in in VBMicrolensing/lib
and should be added to your project.
The package also contains the following files:
VBMicrolensing/data/ESPL.tbl
- Pre-calculated table for Extended-source-point-lensVBMicrolensing/data/OB151212coords.txt
- Sample file with event coordinatesVBMicrolensing/data/satellite1.txt
- Sample table for satellite position (Spitzer)VBMicrolensing/data/satellite2.txt
- Sample table for satellite position (Kepler)
Documentation
Full documentation for the use of VBmicrolensing in python and documentation for the use of VBmicrolensing in C++ are available.
Furthermore, the vast majority of functions are documented with Python docstrings which can be accessed as, for example, ?VBBL.BinaryMag2()
in
a Jupyter notebook.
We also provide some examples showing the capabilities of the package. In particular, we reproduce some known triple-lense microlensing events.
License
VBMicrolensing is freely available to the community under the GNU Lesser General Public License Version 3 included in this repository.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file vbmicrolensing-4.0.0.tar.gz
.
File metadata
- Download URL: vbmicrolensing-4.0.0.tar.gz
- Upload date:
- Size: 521.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3af12e0923bc74c1a9939898046d78948d7c991b64b6a20e0e6b91aa6c812c7 |
|
MD5 | 0faec0991e0b7d974942447df76f22bb |
|
BLAKE2b-256 | 9ee3db7207e5af79c287126f340223139015baecaa81e66c8d4f9781a6650b35 |
File details
Details for the file VBMicrolensing-4.0.0-cp311-cp311-win_amd64.whl
.
File metadata
- Download URL: VBMicrolensing-4.0.0-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 719.8 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d9aef644d7ada95042c9b996139fcc113e4612201fd104b24bc83aaea2f9dde |
|
MD5 | f193bfc25cd5a8548eb0ce410c7dac6a |
|
BLAKE2b-256 | fd86786fb29b04b5a75f2e4a9f07bb896de4530fb43320426a733c26f878305d |