Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

FFT based evaluation of finite source magnification of microlensing.

License

NotificationsYou must be signed in to change notification settings

git-sunao/fft-extended-source

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Public package of FFT based evaluation of gravitational lensing magnification in the presence of extended (finite) source effect,fastlens, which is named afterfast microlensing.Please citeSugiyama 2022.

FFT based method of extended source magnification is implemented infastlens/mag_fft.py.FFT based method of time-averaged magnification is implemented infastlens/timeave.py.

Please cite my paper if you use my code if you use this package:arxiv andApJ.

FFT based method uses public FFTLog code by Xiao Fang, available atFFTLog-and-beyond, and developed inFang et al (2019); arXiv:1911.11947.

fastlens is open source and distributed withMIT license.

Installation

This package is installable with both of pip and conda. Just install by running below on your shell

pip install fastlens

for pip user, or

conda install -c ssunao fastlens

for conda user.

If you prefer to download the repo and install the package from source, run

python setup.py install

Contents: notebooks and a script

All the ipython notebooks are saved inipynb direcotry. Tutorials are available in

  • howtouse.ipynb shows how to use module inmagnification.
  • howtouse-previous-methods.ipynb shows how to use modeles for methods developed in the previous studies.Validation and comparison to previous methods are performed in
  • timeave.ipynb validate the accuracy of implementation of time averaging effect with FFT.
  • comparison.ipynb makes a plot of comparison of residuals by various evaluation methods of extended source magnification.
  • timeit_methods.ipynb measures computational time of various methods.
  • paperfig.ipynb can reproduce figures shown in the paper.
  • testdata.py is a module to generate reference magnification usingscipy.integrate.quad, which will be used for validation of the FFT based method.

About

FFT based evaluation of finite source magnification of microlensing.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp