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_err
is provided, errors are calculated witharea_err
is set to zero.- flux_errnumpy.array
Array of errors in the flux values. If None and
area_err
is provided, errors are calculated withflux_err
is 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.