From 21ae8ee01651a97311db296811b1a364e18e3249 Mon Sep 17 00:00:00 2001 From: Evgenii Chaikin Date: Thu, 21 Mar 2024 15:21:03 +0100 Subject: [PATCH] Add stellar-mass mask to dust depletion relations (#273) --- colibre/auto_plotter/depletion_relations.yml | 45 ++++++++++---------- colibre/registration.py | 19 ++++++++- 2 files changed, 40 insertions(+), 24 deletions(-) diff --git a/colibre/auto_plotter/depletion_relations.yml b/colibre/auto_plotter/depletion_relations.yml index 860aeae9..1effd591 100644 --- a/colibre/auto_plotter/depletion_relations.yml +++ b/colibre/auto_plotter/depletion_relations.yml @@ -1,15 +1,15 @@ oxygen_abundance_v_neutral_dust_to_gas: type: "scatter" legend_loc: "lower right" - selection_mask: "derived_quantities.is_active_50_kpc" + selection_mask: "derived_quantities.is_active_30_kpc" x: - quantity: "derived_quantities.gas_o_abundance_avglog_low_50_kpc" + quantity: "derived_quantities.gas_o_abundance_avglog_low_30_kpc" units: "dimensionless" start: 6.8 end: 9.7 log: false y: - quantity: "derived_quantities.neutral_dust_to_gas_ratio_50_kpc" + quantity: "derived_quantities.neutral_dust_to_gas_ratio_30_kpc" units: "dimensionless" start: 1e-7 end: 0.05 @@ -31,17 +31,17 @@ oxygen_abundance_v_neutral_dust_to_gas: value: 1 units: "dimensionless" metadata: - title: Oxygen abundance vs dust-to-gas ratio in Neutral Gas (50 kpc aperture) - caption: Dust-to-gas mass ratio as a function of oxygen number density abundance in Neutral gas. + title: Oxygen abundance vs dust-to-gas ratio in Neutral Gas (30 kpc aperture) + caption: Dust-to-gas mass ratio as a function of oxygen number density abundance in Neutral gas. Only active galaxies are selected. section: Dust Depletion Relations show_on_webpage: true observational_data: - filename: GalaxyMetallicityDusttoGasRatio/Konstantopoulou2023.hdf5 -oxygen_abundance_v_neutral_dust_to_gas: +oxygen_abundance_v_neutral_dust_to_gas_mstar_gtr_1e9: type: "scatter" legend_loc: "lower right" - selection_mask: "derived_quantities.is_active_30_kpc" + selection_mask: "derived_quantities.stellar_mass_is_bigger_than_1e9_msun_active_30_kpc" x: quantity: "derived_quantities.gas_o_abundance_avglog_low_30_kpc" units: "dimensionless" @@ -72,7 +72,7 @@ oxygen_abundance_v_neutral_dust_to_gas: units: "dimensionless" metadata: title: Oxygen abundance vs dust-to-gas ratio in Neutral Gas (30 kpc aperture) - caption: Dust-to-gas mass ratio as a function of oxygen number density abundance in Neutral gas. + caption: Dust-to-gas mass ratio as a function of oxygen number density abundance in Neutral gas. Only galaxies that are active and have $M_* > 10^9 \, \rm M_\odot$ are selected. section: Dust Depletion Relations show_on_webpage: true observational_data: @@ -112,14 +112,13 @@ oxygen_abundance_fromz_v_neutral_dust_to_gas: units: "dimensionless" metadata: title: Oxygen abundance (from Z) vs dust-to-gas ratio in Neutral Gas (30 kpc aperture) - caption: Dust-to-gas mass ratio as a function of metallicity represented as an oxygen number density abundance for compatibility with observations. + caption: Dust-to-gas mass ratio as a function of metallicity represented as an oxygen number density abundance for compatibility with observations. Only active galaxies are selected. section: Dust Depletion Relations show_on_webpage: true observational_data: - filename: GalaxyMetallicityDusttoGasRatio/Konstantopoulou2023.hdf5 - -oxygen_abundance_v_neutral_dust_to_gas: +oxygen_abundance_v_neutral_dust_to_metal: type: "scatter" legend_loc: "lower right" selection_mask: "derived_quantities.is_active_30_kpc" @@ -130,10 +129,11 @@ oxygen_abundance_v_neutral_dust_to_gas: end: 9.7 log: false y: - quantity: "derived_quantities.neutral_dust_to_gas_ratio_30_kpc" + quantity: "derived_quantities.cold_dense_dust_to_metal_ratio_30_kpc" units: "dimensionless" - start: 1e-7 - end: 0.05 + start: 1e-3 + end: 5 + log: true median: plot: true log: false @@ -152,17 +152,18 @@ oxygen_abundance_v_neutral_dust_to_gas: value: 1 units: "dimensionless" metadata: - title: Oxygen abundance vs dust-to-gas ratio in Neutral Gas (30 kpc aperture) - caption: Dust-to-gas mass ratio as a function of oxygen number density abundance in Neutral gas. + title: Oxygen abundance vs dust-to-metal ratio in Neutral Gas (30 kpc aperture) + caption: Dust-to-metal mass ratio as a function of oxygen number density abundance in Neutral gas. Only active galaxies are selected. section: Dust Depletion Relations show_on_webpage: true observational_data: - - filename: GalaxyMetallicityDusttoGasRatio/Konstantopoulou2023.hdf5 + - filename: GalaxyMetallicityDusttoMetalRatio/Peroux2020.hdf5 + - filename: GalaxyMetallicityDusttoMetalRatio/Konstantopoulou2023.hdf5 -oxygen_abundance_v_neutral_dust_to_metal: +oxygen_abundance_v_neutral_dust_to_metal_mstar_gtr_1e9: type: "scatter" legend_loc: "lower right" - selection_mask: "derived_quantities.is_active_30_kpc" + selection_mask: "derived_quantities.stellar_mass_is_bigger_than_1e9_msun_active_30_kpc" x: quantity: "derived_quantities.gas_o_abundance_avglog_low_30_kpc" units: "dimensionless" @@ -194,14 +195,14 @@ oxygen_abundance_v_neutral_dust_to_metal: units: "dimensionless" metadata: title: Oxygen abundance vs dust-to-metal ratio in Neutral Gas (30 kpc aperture) - caption: Dust-to-metal mass ratio as a function of oxygen number density abundance in Neutral gas. + caption: Dust-to-metal mass ratio as a function of oxygen number density abundance in Neutral gas. Only galaxies that are active and have $M_* > 10^9 \, \rm M_\odot$ are selected. section: Dust Depletion Relations show_on_webpage: true observational_data: - filename: GalaxyMetallicityDusttoMetalRatio/Peroux2020.hdf5 - filename: GalaxyMetallicityDusttoMetalRatio/Konstantopoulou2023.hdf5 -oxygen_abundance_Fromz_v_neutral_dust_to_metal: +oxygen_abundance_fromz_v_neutral_dust_to_metal: type: "scatter" legend_loc: "lower right" selection_mask: "derived_quantities.is_active_30_kpc" @@ -236,7 +237,7 @@ oxygen_abundance_Fromz_v_neutral_dust_to_metal: units: "dimensionless" metadata: title: Oxygen abundance (from Z) vs dust-to-metal ratio in Neutral Gas (30 kpc aperture) - caption: Dust-to-metal mass ratio as a function of metallicity, converted into an oxygen number density abundance for compatability with observations. + caption: Dust-to-metal mass ratio as a function of metallicity, converted into an oxygen number density abundance for compatability with observations. Only active galaxies are selected. section: Dust Depletion Relations show_on_webpage: true observational_data: diff --git a/colibre/registration.py b/colibre/registration.py index ab1aaf6e..01519b57 100644 --- a/colibre/registration.py +++ b/colibre/registration.py @@ -92,6 +92,16 @@ def register_specific_star_formation_rates(self, catalogue, aperture_sizes): ) is_active.name = "Active Fraction" + # Mask for active galaxies above 10^9 Msun + is_bigger_than_1e9_active = unyt.unyt_array( + ( + (stellar_mass > (1e9 * unyt.Msun).to(stellar_mass.units)) + & (ssfr > (1.01 * marginal_ssfr).to(ssfr.units)) + ).astype(float), + units="dimensionless", + ) + is_bigger_than_1e9_active.name = "Stellar mass larger than 10^9 Msun and active" + # Mask for galaxies above 10^10 Msun is_bigger_than_1e10 = unyt.unyt_array( (stellar_mass > unyt.unyt_quantity(1e10, units="Msun")).astype(float), @@ -99,7 +109,7 @@ def register_specific_star_formation_rates(self, catalogue, aperture_sizes): ) is_bigger_than_1e10.name = "Stellar mass larger than 10^10 Msun" - # Mask for galaxies above 10^10 Msun + # Mask for active galaxies above 10^10 Msun is_bigger_than_1e10_active = unyt.unyt_array( ( (stellar_mass > (1e10 * unyt.Msun).to(stellar_mass.units)) @@ -118,7 +128,7 @@ def register_specific_star_formation_rates(self, catalogue, aperture_sizes): ) is_bigger_than_5e10.name = "Stellar mass larger than 5 $\\times$ 10^10 Msun" - # Mask for galaxies above 5 * 10^10 Msun + # Mask for active galaxies above 5 * 10^10 Msun is_bigger_than_5e10_active = unyt.unyt_array( ( (stellar_mass > (5e10 * unyt.Msun).to(stellar_mass.units)) @@ -150,6 +160,11 @@ def register_specific_star_formation_rates(self, catalogue, aperture_sizes): f"stellar_mass_is_bigger_than_1e10_msun_{aperture_size}_kpc", is_bigger_than_1e10, ) + setattr( + self, + f"stellar_mass_is_bigger_than_1e9_msun_active_{aperture_size}_kpc", + is_bigger_than_1e9_active, + ) setattr( self, f"stellar_mass_is_bigger_than_1e10_msun_active_{aperture_size}_kpc",