强大的镜头造型包。
lenstronom的Python项目详细描述
lenstronomy是模拟强引力透镜的多用途软件包。软件包在 Birrer & Amara 2018基于Birrer et al 2015。 lenstronomy在例如Birrer et al 2016和 Birrer et al 2018用于延迟宇宙学和测量 宇宙的膨胀率和 量化透镜子结构以推断暗物质性质。
发展是在GitHub上协调的,欢迎作出贡献。 lenstronomy的文档可在readthedocs.org和 这个包是通过PyPI分发的。
安装
$ pip install lenstronomy --user
要求
要运行具有椭圆质量分布的透镜模型,Fastell4py软件包最初来自Barkana(Fastell)。 也是必需的,可以从以下位置克隆:https://github.com/sibirrer/fastell4py(需要Fortran编译器)
其他python库:
- CosmoHammer(通过pypi)
- astropy
- dynesty
- pymultinest
- pypolychord
- nestcheck
- 标准python库(numpy,scipy)
建模功能
- 在任意叠加中使用的各种透镜模型
- 透镜方程解算器
- 多平面光线跟踪
- 基于基集(shapelets)和解析光剖面的扩展光源重建
- 点源
- 子网格光线跟踪和子像素卷积的数值选项
- 非线性视线描述
- 迭代点扩散函数重建
- 线性和非线性优化模块
- 预定义的绘图和图解程序
- 参数拟合的粒子群算法
- 用于参数推断的MCMC(CosmoHammer的主持人)
- 用于证据计算和参数推断的嵌套采样(多重嵌套、动态短脉冲或动态短脉冲)
- 运动学建模
- 宇宙学推理工具
开始
那starting guide jupyter notebook 介绍lenstronomy的主要模块和设计特点。lenstronomy的模块化设计允许 用户可以直接访问很多工具,每个模块也可以作为独立的包使用。
笔记本示例
我们在http://github.com/sibirrer/lenstronomy_extensions提供了一个扩展模块。 您可以在各种情况下找到简单的Examle笔记本。最新版本的笔记本电脑应该与最新的pip版本的lenstronomy兼容。
- Units, coordiante system and parameter definitions in lenstronomy
- Quadrupoly lensed quasar modelling
- Double lensed quasar modelling
- Time-delay cosmography
- Source reconstruction and deconvolution with Shapelets
- Solving the lens equation
- Measuring cosmic shear with Einstein rings
- Fitting of galaxy light profiles, like e.g. GALFIT
- Quasar-host galaxy decomposition
- Hiding and seeking a single subclump
- Mock generation of realistic images with substructure in the lens
- Mock simulation API with multi color models
- Catalogue data modeling of image positions, flux ratios and time delays
- Example of numerical ray-tracing and convolution options
邮件列表
您可以通过在 google groups page。
电子邮件列表旨在提供用户和开发人员之间的通信平台。你可以问问题, 并建议新功能。新版本将通过此邮件列表发布。
如果您在lenstronomy中遇到错误或问题,请通知我们!
Shapelet重建演示影片
我们提供了一些例子,其中一个真正的星系被透镜化,然后由shapelet基集重建。
归因
lenstronomy的设计概念在 Birrer & Amara 2018。无论何时发表,请引用这篇论文 使用lenstronomy的结果。也请引用Birrer et al 2015 使用lenstronomy工作流或shapelet源重构时。请务必同时引用 在lenstronomy中实现的相关工作,如发布文件中所述。