beam_sample¶
- edge_pydb.beam_sample.beam_sample(edgetab, gallist=None, columnlist=None, beam_orig=7, beam_final=20, outfile=None, doplots=False, pdfprefix='beamsample', nx=5, ny=4)[source]¶
Process one or more galaxies from an allpix HDF5 file and output central surface brightness after convolution to a user-specified Gaussian beam. The pixel with the smallest value of rad_arc is used as the center; this should be recalculated using gc_polr (conversion.py) beforehand if the default central pixel is not desired.
- Parameters:
- edgetabEdgeTable
Table, extracted from an allpix HDF5 file
- galliststring or list of strings
List of galaxy names to process. Default is to process all galaxies.
- columnliststring or list of strings
List of columns in the table to process. Default is to process all columns, excluding the initial coordinate columns. NOTE: Use caution when convolving non-flux columns.
- beam_origfloat
The FWHM of the original beam in arcsec. Default 7”.
- beam_finalfloat
The FWHM of the target beam (to convolve to) in arcsec. Default 20”.
- outfilestring
The name of the output table. Default is not to write the table.
- doplotsboolean
Whether to output plots for debugging purposes
- pdfprefixstring
Prefix for plots if doplots=True. The galaxy name is appended to the prefix.
- nxint
number of sub-panels in x direction
- nyint
number of sub-panels in y direction
- Returns:
- taboutTable
Astropy table with the results