core.StarLocator

core.StarLocator(fovs, sources=None)

A class to locate sidereal objects (fixed RA/Dec) in a given Field of View.

This class uses kete’s fov_static_check to determine visibility of objects with fixed celestial coordinates (stars, galaxies, QSOs, etc.).

Parameters

fovs : FOVCollection, or iterable of kete.FOV

Field of View(s) to check against.

sources : pandas.DataFrame, default = None

DataFrame with columns “ra”, “dec” (in degrees, J2000) and optionally “desig” for source designations. Other columns (e.g., “vmag”) are preserved. If None, sources must be set later via set_sources(). Default is None.

Attributes

sources : pandas.DataFrame

The source catalog being checked.

fov_check_fov2objs : dict

Results from fov_static_check after calling fov_static_check(). Mapping of FOV designations to lists of visible source indices.

Notes

Future enhancement: Add proper motion support for epoch propagation.

Methods

Name Description
fov_static_check Check which static sources are visible in the FOVs.
get_visible_sources Get DataFrame of sources visible in at least one FOV.
set_sources Set the source catalog.

fov_static_check

Check which static sources are visible in the FOVs.

Uses kete.fov.fov_static_check() to determine visibility of fixed RA/Dec sources. Sources are converted to kete Vector objects and checked against each FOV.

Results are stored in:

  • self.fov_check_fov2objs: Dict mapping FOV desig -> list of source desigs
  • self.sources_infov_mask: Boolean mask of sources visible in any FOV

get_visible_sources

Get DataFrame of sources visible in at least one FOV.

Returns

: pandas.DataFrame

Subset of sources that are visible in any FOV.

set_sources

Set the source catalog.

Parameters

sources : pandas.DataFrame

DataFrame with columns “ra”, “dec” (degrees, J2000). Optional: “desig” for source designations.

Raises

: ValueError

If required columns are missing.