Skip to content
This repository has been archived by the owner on Aug 2, 2021. It is now read-only.

Calculate Anomalously Low Metallicity (ALM) spaxels and galaxies using MaNGA data. Find the relation between HI gas and ALM.

Notifications You must be signed in to change notification settings

lalalabox/Metallicity-deviation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Anomalously Low Metallicity & HⅠ gas

Because Github can not open and view large file, you can click here to view jupyter notebook online (or clone to your local device):

NBviewer official website

Summary

map

We follow Hwang et al. (2018) to calculate the metallicity deviation, which is defined as eqauation. Because the distribution of metallicity deviation is a kind of skew normal distribution, we think some parts of spaxels are anomalously low. Then we define the criteria of ALM is equa, and we can find that the ALM/sf fraction and HI gas mass have a correlation coefficient 0.4. Therefore, it seems that there exist some relation between HI gas accretion and metallicity. However, we follow Zu (2018) to get the HI excess, we do not find good relation between HI excess and ALM/sf fraction. In order to explain the existence of ALM spaxels of galaxy, as mentioned in above figure, we think perhaps ALM is the proof of the difference between stars and spiral arms, which is consistent with density wave theory.

Anomalously Low Metallicity (ALM)

Data processing

Firstly, we need to select data and get rid of some bad data from MaNGA. Use BPT diagram to select the star forming region.

Galaxies distribution of MaNGA

MaNGA_l_b

Metallicity (metal abundance)

Secondly, we need to calculate observed metallicity of each spaxel using Mappings and pyqz. Then use skew normal distribution to fit each bin and interpolate the data, so that we can get the expected metallicity. At last, we get the anomalously low metallicity (ALM) spaxel and ALM galaxy.

We use O3N2 estimator of metallicity, the following is all of the spaxels from star-forming galaxies of MaNGA. Use interpolation and extrapolation of HⅡ grid, we get the observed metallicity of each pixel. This is a pretty beautiful picture (distinction correct and then undo it).
MaNGA_O3N2_number MaNGA_O3N2_metallicity MaNGA_O3N2_metallicity_art
Here, we interpolate each spaxel to get its expected metallcity. Distribution of metallicity deviation. The criteria of ALM spaxel.
expected_metallicity ALM_criteria

This is a example galaxy showing the spatial distribution of metallicity deviation. It is consistent with Hwang et al. (2018)

MaNGA_eg_sf_deltaZ

HI gas

Thirdly, we want to connect the ALM and HI.

ALM/sf vs. HI mass

For MaNGA, MaNGA-HI and MaNGA&ALFALFA, ALM galaxies proportion of star forming galaxies. This indicates that ALM galaxy is a kind of common phenomenon.

sf_ALM_proportion

ALM/sf spaxles vs. HI mass of ALFALFA and HI-MaNGA with Poisson error.

ALFALFA_HI-MaNGA_ALMsf_HI_error

Complete error of ALM/sf vs. HI mass in ALFALFA matching MaNGA.

ALFALFA_ALMsf_HI_error

Divide data with different stellar mass bin, and use several colors. Unfortunately, it seems no good relation.

ALFALFA_ALMsf_HI_bins

Use Monte Carlo method to get the error of correlation coefficient.

correlation_coefficient_error

HI excess

According to the fitting formula from Zu (2018), we get the expected HI gas.

ALFALFA_expected_Z_check

ALM/sf vs. HI excess

Error bar Correlation coefficient
ALFALFA_HI_excess ALFALFA_HI_excess_coeff

Description

read_data_metallicity_mass_density.ipynb

This code is primary, low efficiency, almost useless.

calculate metallicity calculate mask using Marvin select galaxies which are late-type, non-inclined and star-forming

  • late-type: fracDeV<0.7
  • non-inclined: b/a>=0.3
  • star forming spaxels>=20 per galaxy

distribution of metallicity in different global mass bin

export data to TXT format file export data to CSV format file read data from a CSV format file

ALFALFA_MaNGA_match.ipynb

Due to some incidents of the server, this file is broken, so it is useless any more.

down_marvin_fits.sh

This shell script is used to download the fits file that Marvin tools need when you cannot run Marvin remotely, due to Marvin python package has two modes, local and remote. If you can use Marvin python package remotely, you do not need to download these files.

Before running this script, you need to change the value of these variables: plate_file, ifu_file and num_galaxy

  • plate_file: Path of the plate file [array, size=[4675,1]]
  • ifu_file: Path of the ifu file [array, size=[4675,1]]
  • num_galaxy: Total number of the galaxies which need to be downloaded
  • by the way, if you wanna change VOR10 to HYB10, you need to change the URL

use command such as

chmod +x down_marvin_fits.sh&&./down_marvin_fits.sh 2>error_down.log

after downloading the files, confirm whether they are complete

ls *gz  |  wc

you can also read the log file to look for which one missed

PS. data of HYB10 is not complete, such as 8481-6103

new_expected_Metallicity.ipynb

Use interpolation and extrapolation to get the expected metallicity of each spaxel.

ALM_multiprocessing.ipynb

This is the complete code of ALM calculation following Hwang et al. (2018). Because of the multiprocessing, it is much faster.

  1. read data
  2. select galaxy, intrinsic extinction correction etc.
  3. calculate observed and expected metallicity eqauation
  4. ALM criteria equa
  5. ALM region of each galaxy (image)
  6. MaNGA & ALFALFA, ssfr vs. metallicity deviation,
  7. error of correlation coefficient (incomplete)

./ALM.2.0/ALMsf_HI_errorbar.ipynb

Calculate the error of correlation coefficient of ALM/sf and HI mass

  1. calculate the error of HI mass in HI-MaNGA
  2. use Monte Carlo method to calculate the error of correlation coefficient (ALFALFA&MaNGA or HI-MaNGA)

./ALM.2.0/HI_excess.ipynb

Calculate HI excess following Zu (2018)

  1. read g-r from NYU-vagc, stellar mass from NASA-Sloan Atlas (NSA)
  2. calculate HI excess equa


References