Skip to content

cespinosa/pyHIIexplorerV2

Repository files navigation

pyHIIexplorerV2

pyHIIexplorer is a package for extracting the integrated spectra of HII regions from integral field spectroscopy (IFS) datacubes. This version is based on HIIexplorer perl edition.

Quick Description

The detection of HII regions performed by pyHIIexplorer es bases on two assumptions: 1) \HII\ regions have strong emission lines that are clearly above the continuum emission and the average ionized gas emission across each galaxy. 2) the typical size of \HII\ regions is about a few hundreds of parsecs, which corresponds to a usual projected size of a few arcsec at the distance of our galaxies. These assumptions will define clumpy structures with a high Ha emission line contrast in comparison to the continuum.

Input Parameters

  1. Emission map (like Ha emission line map)
  2. a minimum flux intensity threshold for the peak emission
  3. a minimum relative fraction with respect to the peak emission to keep aggregating nearby pixels
  4. a maximum distance to the ionized region peak emission to stop the aggregation
  5. a minimum absolute intensity threshold in the adjacent pixels to continue the aggregation

For further information, check Espinosa-Ponce, C. et al 2020 and Sánchez, S. F. et al 2012

Requeriments

  • python 3.x
  • os package
  • csv package
  • numpy package
  • pandas package
  • astropy package
  • argparse package

If you do not get any error or warning message you have suscessfully installed pyHII_explorer. There are two example python scripts to run the segregation and extraction subscripts run_pyHIIexp.py and run_pyHIIexp_mp.py. If you find any problem, please send an email to C. Espinosa Ponce (cespinosa@astro.unam.mx).

How to use it?*

In the example files: run_pyHIIexp.py and run_pyHIIexp_mp.py coudl find a implementation of full code. However, each script could be run it as standalone script.

pyHIIexplorer.py

Script that perform the segretation of the clumpy regions from emission map

USAGE: pyHIIexplorer.py emission_map max_dist frac_peak f_max dist min_flux output_path -XC -YC --index --verbose --PSF

extract flux elines tables.py

Script that perform the extraction of flux emission lines based on segmentation map.

USAGE: extract_flux_elines_tables.py seg_map fe_file output_path --verbose

extract_SFH_table.py

Script that perform the extraction of SSP weights based on segmentation map.

USAGE: extract_SFH_table.py seg_map sfh_file output_path --verbose

extract_SFH_table.py

Script that perform the extraction of SSP properties based on segmentation map.

USAGE: extract_SFH_table.py seg_map SSP_file output_path --verbose

* extract_X_table scripts are optimized to CALIFA data.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages