Skip to main content

Code to generate full-sky ray-traced weak gravitational lensing maps from cosmological simulations.

Project description

▐▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▌
▐                                                               ▌
▐   ██████████                       ███                        ▌
▐  ░░███░░░░███                     ░░░                         ▌
▐   ░███   ░░███  ██████  ████████  ████   ██████   ████████    ▌
▐   ░███    ░███ ███░░███░░███░░███░░███  ░░░░░███ ░░███░░███   ▌
▐   ░███    ░███░███ ░███ ░███ ░░░  ░███   ███████  ░███ ░███   ▌
▐   ░███    ███ ░███ ░███ ░███      ░███  ███░░███  ░███ ░███   ▌
▐   ██████████  ░░██████  █████     █████░░████████ ████ █████  ▌
▐  ░░░░░░░░░░    ░░░░░░  ░░░░░     ░░░░░  ░░░░░░░░ ░░░░ ░░░░░   ▌
▐                                                               ▌
▐▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▌

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 dorian-astro

You will need the following dependencies:

News

The newest version (1.0.0) features:

  • function for obtaining the observed positions of galaxies given their true position and the rays position (image_search/search_galaxy_images)
  • function to convert snapshot to massmap (gadget/snapshot_to_massmap)
  • function for projecting the 3D inertia tensor on the celestial sphere (geometry/project_tensor_on_cel_sphere)
  • faster peak/minima finder for HEALPix maps (peaks/find_peaks_fullsky)
  • minor fixes

Usage

Using the code to perform a weak lensing simulation is as simple as calling the raytrace function. For instructions see the example notebook and the template script.

The code needs you to point to the simDir folder, where all the mass shells are arranged in the Gadget-4 format (based on hdf5) and directory structure, e.g.:

simDir
 |-mapsdir_001
 | |-maps_001.0.hdf5
 | |-maps_001.1.hdf5
 | `-maps_001.2.hdf5
 |-mapsdir_002
 | |-maps_002.0.hdf5
 | |-maps_002.1.hdf5
 | `-maps_002.2.hdf5
 `-mapsdir_003
   |-maps_003.0.hdf5
   |-maps_003.1.hdf5
   `-maps_003.2.hdf5

Where each mapsdir refers to a single mass-shell, and each mass-shell can be divided into multiple files (three in the example above). Note that the code supports mass-shells with variable thickness.

If your mass-shells are in another format (e.g. HEALPix maps stored into numpy arrays), you can use the write_massmap function to convert each of them in the compatible format.

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.

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_astro-1.0.0.tar.gz (37.2 kB view details)

Uploaded Source

Built Distribution

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

dorian_astro-1.0.0-py3-none-any.whl (39.7 kB view details)

Uploaded Python 3

File details

Details for the file dorian_astro-1.0.0.tar.gz.

File metadata

  • Download URL: dorian_astro-1.0.0.tar.gz
  • Upload date:
  • Size: 37.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.7

File hashes

Hashes for dorian_astro-1.0.0.tar.gz
Algorithm Hash digest
SHA256 1ca152c22366da9a243e2745a9f62a7d22129fa9f822a25b5b1d91110933d1b8
MD5 bac63510dac3f2e9624e80e0a1b0985a
BLAKE2b-256 6cc0a286bf579def42d0714d4b9a888f08d7cce357c0807dab20500dea66a07c

See more details on using hashes here.

File details

Details for the file dorian_astro-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: dorian_astro-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 39.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.7

File hashes

Hashes for dorian_astro-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fef159c712813b8291430af0af71aa41989dfa40b1c43ae3897e718924ce2919
MD5 bb97b9523d9deebe401b57755d56f44f
BLAKE2b-256 7d40efcbd2ebeb442b4e7c8903634063980a27ad9105855b6cc3028ac641972e

See more details on using hashes here.

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