API
petrofit.modeling Package
Functions
|
Converts the intensity at the 0 radius (I_0) to the Sersic intensity at the effective radius (I_e) based on the Sersic index (n). |
|
Converts the sersic intensity at the effective radius (I_e) to the intensity at the 0 radius (I_0) based on the sersic index (n) |
|
Fit sigma clipped background image using a user provided model. |
|
Fit a 2D gaussian to a source in an image. |
|
Wrapper function to conveniently fit an image to an input model. |
|
Returns the default bounds of a Generalized Sersic profile. |
|
Returns the default bounds of the Sersic profile. |
|
Function to make image sampling grid. |
|
Find the 2D FWHM of a background/continuum subtracted cutout image of a target. |
|
Converts 2D models into images using |
|
Ideal Sersic Petrosian profile evaluated at input radii. |
|
Plot fitted model, its 1D fit profile and residuals. |
|
Print the params and values of an AstroPy model |
|
Total Sersic flux enclosed within a radius. |
|
Radius that would enclose the input flux. |
Classes
|
Two dimensional Sersic surface brightness profile with Generalized Ellipses described in Peng et al. 2010. |
|
Fittable model for converting |
This class contains approximations of various Pertorisian and Sersic parameters. |
petrofit.petrosian Package
Functions
|
Calculates Petrosian concentration index. |
|
Given a list of aperture areas and associated fluxes, and their errors, computes the petrosian curve and its 1-sigma errors. |
|
Calculate petrosian radius from photometric values using interpolation. |
|
Given photometric values and |
|
Generate corrections for Petrosian profiles by simulating a galaxy image (single component sersic) and measuring its properties. |
Classes
|
Class that computes and plots Petrosian properties. |
|
This class computes corrections for Petrosian given default Petrosian measurements. |
petrofit.photometry Module
Functions
|
Plot apertures on image |
|
Helper function given a radius, elongation and theta, will make an elliptical aperture. |
|
Helper function given a radius, elongation and theta, will make an elliptical aperture. |
|
Core photometry function. |
petrofit.segmentation Module
Functions
|
Plot segmented areas over an image (2D array, if provided) |
|
Plot segment subtracted image (residual) |
|
Return max x, y value of a SourceCatalog or catalog row |
|
Return SourceCatalog elongation |
|
Return SourceCatalog ellipticity |
|
Return SourceCatalog orientation in rad |
|
Finds the amplitude at an isophotal radius |
|
Sort a catalog by largest area and return the argsort |
|
Given a segmentation and a target with an label, returns a mask with all other sources masked in the original image. |
|
Returns a masked image of the original image by masking out other sources |
|
Segment an image. |
|
Deblend overlapping sources labeled in a segmentation image. |
|
This function constructs a catalog using |
|
Aperture photometry on a PhotUtils |
petrofit.utils Module
Functions
|
Wrapper for |
|
|
|
|
|
|
|
|
|
|
|
Return first index closes to value |
|
Plot an image with a target marker. |
|
Subtract cutout from image |
|
Convert HST flux to AB Mag |
|
Make an array of radii of size n up to max_pix |
|
|
|
|
|
|
|