API
petrofit.correction Module
Functions
|
This function generates corrections for Petrosian radii by simulating a galaxy image and measuring its properties. |
petrofit.modeling.fitting Module
Functions
|
Wrapper function to conveniently fit an image to an input model. |
|
Converts 2D models into images using |
|
Fit sigma clipped background image using a user provided model. |
|
Fit a 2D gaussian to a source in an image. |
|
Print the params and values of an AstroPy model |
|
Plot fitted model, its 1D fit profile and residuals. |
petrofit.modeling.models Module
Functions
|
Returns the default bounds of the Sersic profile. |
|
Function to make image sampling grid. |
|
|
|
|
|
Classes
|
Fittable model for converting `FittableModel`s and `CompoundModel`s into 2D images. This model takes the input sub-model and adds PSF convolution, as well as PSF convolution. |
petrofit.petrosian Module
Functions
|
Given photometric values, plots petrosian profile. |
|
Given a list of aperture areas and associated fluxes, computes the petrosian curve. |
|
Calculate petrosian radius from photometric values using interpolation. |
|
Calculate petrosian radius from photometric values by using the nearest value petrosian to eta. |
|
Given photometric values, calculate Petrosian |
|
Given photometric values and |
|
Given photometric values, calculate Petrosian |
|
Calculates Petrosian concentration index. |
|
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 |
|
Convert HST flux to AB Mag |
|
Sort a catalog by largest area and return the argsort |
|
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. |
|
Compute value between radii |
|
Make an array of radii of size n up to max_pix |
|
Core photometry function. |
|
Aperture photometry on a PhotUtils |
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 |
|
|
|
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. |
petrofit.utils Module
Functions
|
Wrapper for |
|
|
|
|
|
|
|
|
|
|
|
Return first index closes to value |
|
|
|
Subtract cutout from image |
|
Find the 2D FWHM of a background/continuum subtracted cutout image of a target. |