extract

Provides basic circular aperture photometry tools for GONet images.

This module includes functionality to extract statistical measurements from circular regions within 2D image arrays (e.g., total and mean counts, standard deviation, and pixel count).

Functions

  • extract_circle(): Compute statistics from a circular region of interest in an image.

Classes

Functions:

GONet_Wizard.GONet_utils.src.extract.extract_circle(data, x0, y0, radius)[source]

Perform circular aperture photometry on a 2D image array.

Parameters:
  • data (numpy.ndarray) – 2D array representing the image.

  • x0 (float) – X-coordinate of the circle center.

  • y0 (float) – Y-coordinate of the circle center.

  • radius (float) – Radius of the circular aperture.

Returns:

Statistical measurements of the pixel values inside the circular aperture.

Return type:

extraction_output

Classes:

class GONet_Wizard.GONet_utils.src.extract.extraction_output(total_counts, mean_counts, std, npixels)[source]

Bases: object

Container for the results of a circular aperture extraction.

total_counts

Sum of pixel values within the circular region.

Type:

float

mean_counts

Average of the pixel values within the circle.

Type:

float

std

Standard deviation of the pixel values.

Type:

float

npixels

Number of pixels within the circular region.

Type:

int