aces.misc.image_stats¶
Module Contents¶
Functions¶
|
|
|
|
|
|
|
Estimates and returns the mode of those input data that lie within the limits set by the parameters. |
|
|
|
|
|
|
|
Compute some statistic over square cells in an image |
Attributes¶
- aces.misc.image_stats.fit_g(x, y, p0, fkey='gau')[source]¶
- Parameters:
x – independent coordinate (bin centres)
y – histogram frequencies
p0 – initial guess fit params
fkey – Selects function to fit
- aces.misc.image_stats.find_mode(data, parameters, diag_plot=False)[source]¶
Estimates and returns the mode of those input data that lie within the limits set by the parameters. The mode is determined by fitting a guassian function to the peak of the histogram of the logarithms of the values.
- Parameters:
data – np.array of real values
parameters – dictionary giving the data value bounds
diag_plot – used for debugging histogram analysis
- Returns:
- aces.misc.image_stats.do_statistics(y, incr, do_mask=True)[source]¶
- Parameters:
y – image masked array
incr – pixel increment in radians
do_mask – if True, expand mask (shrink unmasked area)
- aces.misc.image_stats.image_cell_statistic(in_file, out_dir, cellsize=100, statistic='rms', do_mask=True, replace_old=True)[source]¶
Compute some statistic over square cells in an image :param in_file: input image as fits file :param cellsize: cell size in pixels :param statistic: what statistic to compute. :param do_mask: Modify masked portion image to eliminate annoying edge effects, particularly in rms. :param replace_old: If True, replace previous statistics image. :return: