Deflection Of Rays In Astrophysical Numerical simulations - Full-sky ray-traced weak gravitational lensing maps from cosmological simulations
Project description
▐▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▌
▐ ▌
▐ ██████████ ███ ▌
▐ ░░███░░░░███ ░░░ ▌
▐ ░███ ░░███ ██████ ████████ ████ ██████ ████████ ▌
▐ ░███ ░███ ███░░███░░███░░███░░███ ░░░░░███ ░░███░░███ ▌
▐ ░███ ░███░███ ░███ ░███ ░░░ ░███ ███████ ░███ ░███ ▌
▐ ░███ ███ ░███ ░███ ░███ ░███ ███░░███ ░███ ░███ ▌
▐ ██████████ ░░██████ █████ █████░░████████ ████ █████ ▌
▐ ░░░░░░░░░░ ░░░░░░ ░░░░░ ░░░░░ ░░░░░░░░ ░░░░ ░░░░░ ▌
▐ ▌
▐▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▌
This repo is a fork of https://gitlab.mpcdf.mpg.de/fferlito/dorian The goal of this repo is simplify the usage and make it usuable on raw lightcone arrays rather than read file from disk
Deflection Of Rays In Astrophysical Numerical simulations
Dorian is a Python package to compute full-sky ray-traced weak gravitational lensing maps starting from cosmological simulations.
For technical details, see the related paper.
Installation
The package can be installed with:
pip install -e .
You will need the following dependencies:
Usage
This fork simplifies the workflow significantly. You can now pass density maps (as numpy arrays) directly to the raytracer without needing to format files on disk.
import numpy as np
from dorian.lensing import raytrace_from_density
# 1. Prepare your data
# density_maps: shape (n_shells, npix)
# redshifts: shape (n_shells,)
# ...
# 2. Run raytracing
results = raytrace_from_density(
density_maps=density_maps,
redshifts=redshifts,
z_source=1.0,
box_size=2000.0,
n_particles=1024**3,
omega_m=0.3,
h=0.7,
omega_l=0.7,
nside=512,
interp='bilinear'
)
kappa_map = results['convergence_raytraced']
For a complete working example, check examples/raytracing_demo.ipynb.
Examples
- examples/raytracing_demo.ipynb: The recommended starting point. Demonstrates loading a sample lightcone and running the raytracer.
Authors
This package has been developed by Fulvio Ferlito, with contributions from: Christopher Davies, Alessandro Greco, Martin Reinecke and Volker Springel.
Contact
If you have any question, suggestion, or need help with the code, don't hesitate to contact the author.
If you have questions regarding this fork please create a github issue
Citation
If you use this code for you work, please cite the related paper.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dorian_raytrace_mpi-0.2.1.tar.gz.
File metadata
- Download URL: dorian_raytrace_mpi-0.2.1.tar.gz
- Upload date:
- Size: 38.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14915495f27ce098df8050758a2069022d651bad4809667ad77b0c84f996a562
|
|
| MD5 |
5acbdda15b3095c4c02a52ebca156169
|
|
| BLAKE2b-256 |
d4553d236338c2a782130612a7ad6f2e6eb327cafec8bea97fa6687a4733552f
|
Provenance
The following attestation bundles were made for dorian_raytrace_mpi-0.2.1.tar.gz:
Publisher:
publish.yml on ASKabalan/Dorian
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dorian_raytrace_mpi-0.2.1.tar.gz -
Subject digest:
14915495f27ce098df8050758a2069022d651bad4809667ad77b0c84f996a562 - Sigstore transparency entry: 1339664620
- Sigstore integration time:
-
Permalink:
ASKabalan/Dorian@9d0b1d33c56b44b1fcb351f33a3cd72f4daac093 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/ASKabalan
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9d0b1d33c56b44b1fcb351f33a3cd72f4daac093 -
Trigger Event:
push
-
Statement type:
File details
Details for the file dorian_raytrace_mpi-0.2.1-py3-none-any.whl.
File metadata
- Download URL: dorian_raytrace_mpi-0.2.1-py3-none-any.whl
- Upload date:
- Size: 40.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f15d8679ae6ca4ff508bf718689dbcd26be4cabccbf6ad9b8a10b088359467d9
|
|
| MD5 |
a4d4af987123fd41bb3bbbf3e855da63
|
|
| BLAKE2b-256 |
9ab6d8cbacbc73f42df031055ab48a766142b8795904cfabc8c0aedc04b9f3ea
|
Provenance
The following attestation bundles were made for dorian_raytrace_mpi-0.2.1-py3-none-any.whl:
Publisher:
publish.yml on ASKabalan/Dorian
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dorian_raytrace_mpi-0.2.1-py3-none-any.whl -
Subject digest:
f15d8679ae6ca4ff508bf718689dbcd26be4cabccbf6ad9b8a10b088359467d9 - Sigstore transparency entry: 1339664623
- Sigstore integration time:
-
Permalink:
ASKabalan/Dorian@9d0b1d33c56b44b1fcb351f33a3cd72f4daac093 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/ASKabalan
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9d0b1d33c56b44b1fcb351f33a3cd72f4daac093 -
Trigger Event:
push
-
Statement type: