calculate_petrosian
- petrofit.petrosian.calculate_petrosian(area_list, flux_list, area_err=None, flux_err=None)[source]
Given a list of aperture areas and associated fluxes, and their errors, computes the petrosian curve and its 1-sigma errors.
- Parameters:
- area_listnumpy.array
Array of aperture areas.
- flux_listnumpy.array
Array of photometric flux values.
- area_errnumpy.array
Array of errors in the aperture areas. If None and
flux_erris provided, errors are calculated witharea_erris set to zero.- flux_errnumpy.array
Array of errors in the flux values. If None and
area_erris provided, errors are calculated withflux_erris set to zero.
- Returns:
- petrosian_listnumpy.array
Array of petrosian values at each value of
area_list- petrosian_errnumpy.array
Array of 1-sigma errors in the Petrosian values.