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:

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-0.0.1.tar.gz (31.6 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-0.0.1-py3-none-any.whl (33.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for dorian_astro-0.0.1.tar.gz
Algorithm Hash digest
SHA256 a9ab413617492317340029a110f7693233d603d10d54b7a5ee58d835944e52e3
MD5 d173ca47dc6b7923452a49e7ed69a94c
BLAKE2b-256 3b0ea2928a5eca513021875335c74858936fb2d3725ad6464735fd3bacb48386

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dorian_astro-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 33.4 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-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 058e9bebf8ab6f4f59d226f754d1178af76b8df5a219ce4f49ce52393714af8b
MD5 003cae912936736ec06be18bf99798bf
BLAKE2b-256 c3cede8442b98ab81b91355c35085ecb3279e82ae5f93b5b6c23adf27c55288f

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