API Documentation¶
edge_pydb Package¶
Classes¶
|
Definition of the EdgeTable class. |
edge_pydb.beam_sample Module¶
Functions¶
|
Process one or more galaxies from an allpix HDF5 file and output central surface brightness after convolution to a user-specified Gaussian beam. |
edge_pydb.conversion Module¶
Functions¶
|
|
|
Calculate the hydrostatic (dynamical equilibrium) pressure from Sigma_mol and Sigma_*, following Sun+20 (2020ApJ...892..148S) |
|
Adds gas-phase metallicity from Marino+13 calibration to flux_elines table. |
|
Calculate the probability that a measurement with uncertainty is in a particular region of the BPT diagram, as specified by the parameter bpt_type. |
|
Determine BPT classification based on [NII]/Ha and [OIII]/Hb. |
|
Adds BPT classification to the flux_elines table. |
|
|
|
|
|
Returns galactocentric polar coordinates (radius in arcsec, azimuthal angle in degrees from receding major axis). |
|
Returns Halpha extinction in magnitudes given flux_ha and flux_hb. |
|
Corrects a set of columns in a table for extinction. |
|
|
|
|
|
Convert CO intensity to H_2 (+ He) mass surface density. |
|
Convert Halpha intensity to SFR surface density, optionally with extinction estimates and corrections (if flux_hb is provided). |
|
Convert units for stellar surface density to Msol/pc2, optionally applying dezonification image. |
|
Break array of uncertainties values into 2 separate arrays. |
edge_pydb.fitsextract Module¶
Functions¶
|
Sample data from an image into an AstroPy table indexed by coordinates. |
|
|
|
a wrapper function to generate the hex grid and then interpolate and output the sampled data in Astropy Table precision = 0 -> full precision hexgrid_output -> output file to check |
edge_pydb.hexgrid Module¶
Functions¶
|
Returns galactocentric polar coordinates (radius in arcsec, azimuthal angle in degrees from receding major axis). |
|
|
|
|
|
a wrapper function to generate the hex grid and then interpolate and output the sampled data in Astropy Table precision = 0 -> full precision hexgrid_output -> output file to check |
|
|
|
find the adjacent pixels of the point to interpolate from if the point is directly on one of the pixel, we take that value directly |
|
|
|
|
|
|
|
|
|
Decorator factory to apply update_wrapper() to a wrapper function |
|
going along y dir |
edge_pydb.plotting Module¶
Functions¶
|
Generate and plot a patch collection for a dot plot. |
|
Plot one column for multiple galaxies or multiple columns for one galaxy on a grid. |
|
Plot a pixel image from a data column. |
|
|
|
parameters xval_n, yval_u : list of nominal values of coordinates (pixels) xval_s, yval_s : list of standard deviation of coordinates (pixels) indices : indices of the list of coordinates to plot with save_to: file to save the plot to, optional |
|
Prepare binned averages from a scatterplot. |
|
Prepare a 2D density histogram from a scatterplot. |
edge_pydb.util Module¶
Functions¶
|
This function copy files from a src directory to dest directory, if dest is empty, then it creates a directory just under the edge_pydb package directory. |
|
Add hyperlinks to the index_csv.md file |
|
|
|
Download and install a file from a www location |
|
get the hdf5 path |
|
List the current available files in the package data directory. |
|
Read the config from a file |
|
Generate markdown file for csv and txt for hdf5 |
|
Make multi-page gridplots for all galaxies in all available HDF5 files. |
|
This function will write _config back to a file. |
|
Generate index files index_csv.md and index_hdf.txt |
|
Update the files and rewrite json file |