Because Github can not open and view large file, you can click here to view jupyter notebook online (or clone to your local device):
We follow Hwang et al. (2018) to calculate the metallicity deviation, which is defined as . 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 , 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.
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
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.
Here, we interpolate each spaxel to get its expected metallcity. | Distribution of metallicity deviation. The criteria of ALM spaxel. |
---|---|
This is a example galaxy showing the spatial distribution of metallicity deviation. It is consistent with Hwang et al. (2018)
Thirdly, we want to connect the ALM and HI.
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.
ALM/sf spaxles vs. HI mass of ALFALFA and HI-MaNGA with Poisson error.
Complete error of ALM/sf vs. HI mass in ALFALFA matching MaNGA.
Divide data with different stellar mass bin, and use several colors. Unfortunately, it seems no good relation.
Use Monte Carlo method to get the error of correlation coefficient.
According to the fitting formula from Zu (2018), we get the expected HI gas.
ALM/sf vs. HI excess
Error bar | Correlation coefficient |
---|---|
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
Due to some incidents of the server, this file is broken, so it is useless any more.
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
Use interpolation and extrapolation to get the expected metallicity of each spaxel.
This is the complete code of ALM calculation following Hwang et al. (2018). Because of the multiprocessing, it is much faster.
Calculate the error of correlation coefficient of ALM/sf and HI mass
- calculate the error of HI mass in HI-MaNGA
- use Monte Carlo method to calculate the error of correlation coefficient (ALFALFA&MaNGA or HI-MaNGA)
Calculate HI excess following Zu (2018)
- read g-r from NYU-vagc, stellar mass from NASA-Sloan Atlas (NSA)
- calculate HI excess
- ALM in MaNGA (Hwang et al. 2019) HI excess (Zu 2020) NYU-Vagc (Blanton et al. 2005) ALFALFA (Haynes et al. 2018)
- SDSS website SDSS data
- MaNGA website MaNGA Firefly datamodel manga-firefly-v2_4_3-STELLARPOP.fits
- HI-MaNGA intro HI-MaNGA datamodel mangaHIall.fits
- Marvin website Marvin docs: Mass-Metallicity Relation
- NASA-Sloan Atlas (NSA) NSA datamodel
- Nair 2010 Visual Morphology of Galaxies NYU-vagc MPA-JHU ALFALFA Mappings pyqz