pyampp.gxbox.box
Attributes
Classes
Shared geometric helpers for model and observer-aligned FOV boxes. |
|
Represents a 3D box in solar or observer coordinates defined by its origin, center, dimensions, and resolution. |
Module Contents
- class pyampp.gxbox.box.BoxGeometryMixin[source]
Shared geometric helpers for model and observer-aligned FOV boxes.
- model_box_corners_projected(observer=None, obstime=None) astropy.coordinates.SkyCoord | None[source]
Project the physical red-box corners into a target observer’s sky plane.
- Parameters:
observer (optional) – Observer accepted by SunPy’s
Helioprojectiveframe, typically aSkyCoordin a solar frame. If omitted, the current box observer is used.obstime (optional) – Observation time for the target frame. If omitted, the current box frame time is used.
- Returns:
The 8 model-box corners transformed into the target
Helioprojectiveframe.- Return type:
astropy.coordinates.SkyCoord or None
- model_box_corners_observer_heliocentric(observer=None, obstime=None) astropy.coordinates.SkyCoord | None[source]
Transform the physical red-box corners into an observer-centric heliocentric frame where
zis aligned with the line of sight.
- model_box_inscribing_fov(observer=None, obstime=None, pad_arcsec: float = 0.0) dict | None[source]
Compute the inscribing sky-plane rectangle for the physical red box.
The returned rectangle is the smallest axis-aligned HPC rectangle that contains the projected 8 red-box corners for the given observer.
- model_box_inscribing_fov_box(observer=None, obstime=None, pad_xy_arcsec: float = 0.0, pad_z_frac: float = 0.1) dict | None[source]
Compute the full observer-aligned 3D FOV box that inscribes the red box.
The x/y footprint is the smallest axis-aligned rectangle on the target observer’s sky plane that contains the projected red-box corners. The z extent is derived from the red-box corners in the observer-centric heliocentric frame, with an optional fractional padding.
- class pyampp.gxbox.box.Box(frame_obs, box_origin, box_center, box_dims, box_res)[source]
Bases:
BoxGeometryMixinRepresents a 3D box in solar or observer coordinates defined by its origin, center, dimensions, and resolution.
This class calculates and stores the coordinates of the box’s edges, differentiating between bottom edges and other edges. It is designed to integrate with solar physics data analysis frameworks such as SunPy and Astropy.