Skip to content

Commit

Permalink
Add stellar-mass mask to dust depletion relations (#273)
Browse files Browse the repository at this point in the history
  • Loading branch information
EvgeniiChaikin authored Mar 21, 2024
1 parent 723fe58 commit 21ae8ee
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 24 deletions.
45 changes: 23 additions & 22 deletions colibre/auto_plotter/depletion_relations.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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"
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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"
Expand All @@ -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
Expand All @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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:
Expand Down
19 changes: 17 additions & 2 deletions colibre/registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,24 @@ 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),
units="dimensionless",
)
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))
Expand All @@ -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))
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 21ae8ee

Please sign in to comment.