Skip to main content

A code to reproduce and fit a galaxy CO SLED

Project description

galaxySLED: a code to reproduce and fit a galaxy CO SLED

A new physically-motivated model for estimating the molecular line emission in active galaxies. The underlying model is described in Esposito et al. 2024, and it has been tested with the galaxies data presented in Esposito et al. 2022.

The model takes into account:

  • the internal density structure of giant molecular clouds (GMCs)
  • the heating associated both to stars and to the active galactic nuclei (AGN), respectively producing photodissociation regions (PDRs) and X-ray dominated regions (XDRs) within the GMCs
  • the mass distribution of GMCs within the galaxy volume

What you have to input to produce a CO SLED

To produce a synthetic CO SLED you need to feed the code with:

  • The molecular gas mass of your object
  • The optical radius
  • The intrinsic nuclear X-ray luminosity
  • The three Sersic parameters (Ie, Re, n) for the FUV flux

With these input data, the code will produce the expected CO SLED of your object: this is called the "Baseline model". This can be useful for your telescope proposals, or you can play with it by changing one of the input to see their impact on the CO distribution and emission.

Baseline CO SLED of NGC 7469

Fitting an observed CO SLED to derive alphaCO and NH

If you already have the luminosity of some CO lines, you can make the baseline model fit the observed data. Input the CO luminosities with their errors, it works with upper limits as well. The output will be:

  • The best-fit CO SLED, up to CO(30-29)
  • The best-fit CO-to-H2 conversion factor alphaCO
  • The best-fit X-ray attenuation column density NH
Best-fit CO SLED of NGC 7469

Download the code and set up the environment

You can download the zipped directory here or from github.

I suggest you to create a new environment on your machine. You can find a galaxysled_env.yml file in the main directory, which contains all the packages and versions you need to install. If you have conda, you can just type in a terminal conda env create -f galaxysled_env.yml: this will create an environment called galaxysled containing all the necessary packages. Once created, activate it with the command conda activate galaxysled.

Run the python notebook galaxySLED_notebook.ipynb to learn how to use the code

The notebook contains a walkthrough and a real-galaxy example for calculating the CO SLED (with plots)


What are the contents of the code directories

The data directory contains the PDR and XDR emission for different Giant Molecular Clouds (GMCs). At the moment there is only one model of 15 GMCs (which is the one described in Esposito et al., subm.). There is one file, GMC_e23.csv, which contains the description of each GMC (as their masses, radii, etc). The other files, 2 for each GMC, contain the PDR and XDR estimated emission: every column is a CO line, where CO4 means the CO(4-3) line, and every row is a different incident flux.

The modules directory contains the Python modules with the functions that run the different parts of the code. The gmcs.py module contains the definition of the GMC class and the list of the available built-in GMCs. The functions.py module contains all the useful functions.

The ngc7469 directory contains a single file, which can be reproduced by the notebook. Every row is a different galactocentric radius, and the columns are the radial profiles of mass, volume, number of GMCs, column density, etc.


Acknowledgements

The galaxySLED logo uses the following icon: Black hole icons created by Freepik - Flaticon

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

galaxysled-0.0.1-py3-none-any.whl (25.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: galaxysled-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 25.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.10

File hashes

Hashes for galaxysled-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9f12b88a5a9155c7f17df91a978c876b50418b15406a67c9770fd5e935909b3d
MD5 2d8a8af0ce9c605691e0b4c1c9a3460d
BLAKE2b-256 5743a8c525a517b48e9d00721917ed4b0de51139249bb16575667a49cf7b92fc

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