Skip to main content

Generate astronomical synthetic observations from the command-line

Project description

Generate synthetic observations from 3D numerical simulations

Synthesizer is a program to calculate synthetic ALMA/JVLA images from an SPH model directly from the command-line. It interpolates SPH particle positions into a rectangular grid and then uses RADMC3D to do the Monte-Carlo and raytracing. It can use CASA to generate a final synthetic observation. It can also include the effects of polarization either by scattering or grain alignment. Additionally, Synthesizer includes Dustmixer. This is a tool to generate dust opacity tables, including full scattering matrices, for a given dust composition (via optical constants) and allows to experiment with the mixing of different materials.

Installation

$ pip install astro-synthesizer

Run the code:

Synthesizer requires at least one of its five main options to run:

$ synthesizer
[synthesizer] Nothing to do. Main options: --grid, --opacity, --monte-carlo, --raytrace or --synobs
[synthesizer] Run synthesizer --help for details.

Example

Create a protoplanetary disk model, let radmc3d generate an image and then casa observe it.

$ synthesizer --grid --model ppdisk --show-grid-2d 
  --temperature --show-grid-3d --raytrace --synobs
  --opacity --show-rt --show-synobs

Given the --show-* flags, synthesizer will plot the results of every step. You can also read in snapshots from an SPH simulation:

$ synthesizer --grid --sphfile snapshot_001.h5 --source gizmo  
 --show-grid-2d --show-grid-3d --raytrace --synobs 
 --opacity --show-rt --show-synobs

Previous results can also be shown without having to re-run a full step, with commands like

$ synthesizer --show-rt --show-synobs --show-opac --show-grid-2d

For details, run:

$ synthesizer --help

Compatibility with hydrodynamical codes

Currently supported (M)HD codes:

- GIZMO
- AREPO
- GADGET
- ZeusTW

Synthesizer is very young and at the moment only snapshots from the above listed codes are supported. Creating interfaces to new codes is easy to implement but it takes time. For AMR codes, grid and density (and optionally temperature) information is needed to generate the input for RADMC3D. For SPH codes, all synthesizer needs are point coordinates x, y, z and density (and optionally temperature), all in cgs units. It does the gridding by interpolating point coordinates into a regular cartesian mesh. If you're interested in using synthesizer and your hydro code is not yet supported, feel free to get in contact. The implementation should be quite strightforward.

Requisites:

Software:   python3, CASA, RADMC3D, ParaView (optional)

Feedback

If you have any feedback, please reach out at jzamponi@mpe.mpg.de.

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

astro-synthesizer-0.0.8.tar.gz (102.8 kB view details)

Uploaded Source

Built Distribution

astro_synthesizer-0.0.8-py3-none-any.whl (104.8 kB view details)

Uploaded Python 3

File details

Details for the file astro-synthesizer-0.0.8.tar.gz.

File metadata

  • Download URL: astro-synthesizer-0.0.8.tar.gz
  • Upload date:
  • Size: 102.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for astro-synthesizer-0.0.8.tar.gz
Algorithm Hash digest
SHA256 67748d9f6d4fb4b614e5afdb9af3f43387b4a418085a97539e58604d5acc0f55
MD5 cb23233001f8c27ed5b65b0ccf555ab1
BLAKE2b-256 886f043a44eaf57c172641a28fe7c9ae4a7e6f58e71c1d0aeb5bb141c6a8adbf

See more details on using hashes here.

File details

Details for the file astro_synthesizer-0.0.8-py3-none-any.whl.

File metadata

File hashes

Hashes for astro_synthesizer-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 d75e6f8680911e124eceec55fca4a256f3a4340c5c34eefa7391fb565a5b63b0
MD5 0ec42fd70ff5200f82265b3a31f1a037
BLAKE2b-256 c9b1d20508582d11f7d640f4b0a8f54171c434f8bb21ee0c91204ffaf0e47b99

See more details on using hashes here.

Supported by

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