Skip to main content

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

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dorian_raytrace_mpi-0.2.1.tar.gz (38.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dorian_raytrace_mpi-0.2.1-py3-none-any.whl (40.4 kB view details)

Uploaded Python 3

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

Hashes for dorian_raytrace_mpi-0.2.1.tar.gz
Algorithm Hash digest
SHA256 14915495f27ce098df8050758a2069022d651bad4809667ad77b0c84f996a562
MD5 5acbdda15b3095c4c02a52ebca156169
BLAKE2b-256 d4553d236338c2a782130612a7ad6f2e6eb327cafec8bea97fa6687a4733552f

See more details on using hashes here.

Provenance

The following attestation bundles were made for dorian_raytrace_mpi-0.2.1.tar.gz:

Publisher: publish.yml on ASKabalan/Dorian

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dorian_raytrace_mpi-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for dorian_raytrace_mpi-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f15d8679ae6ca4ff508bf718689dbcd26be4cabccbf6ad9b8a10b088359467d9
MD5 a4d4af987123fd41bb3bbbf3e855da63
BLAKE2b-256 9ab6d8cbacbc73f42df031055ab48a766142b8795904cfabc8c0aedc04b9f3ea

See more details on using hashes here.

Provenance

The following attestation bundles were made for dorian_raytrace_mpi-0.2.1-py3-none-any.whl:

Publisher: publish.yml on ASKabalan/Dorian

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page