neclib.coordinates.paths.linear module#

Aliases#

ControlContext

ControlContext(tight: ‘Optional[bool]’ = None, start: ‘Optional[float]’ = None, stop: ‘Optional[float]’ = None, duration: ‘Optional[float]’ = None, infinite: ‘bool’ = False, waypoint: ‘bool’ = False, kind: ‘str’ = ‘’, label: ‘str’ = ‘’, line_index: ‘int’ = -1, section_plan_index: ‘int’ = -1, section_sequence_index: ‘int’ = -1, section_uid: ‘str’ = ‘’, geometry_valid: ‘bool’ = False, section_frame: ‘str’ = ‘’, section_unit: ‘str’ = ‘’, section_start_lon_deg: ‘float’ = nan, section_start_lat_deg: ‘float’ = nan, section_stop_lon_deg: ‘float’ = nan, section_stop_lat_deg: ‘float’ = nan, section_speed_deg_per_sec: ‘float’ = nan)

Index

Index(time: ‘NPArrayValidator’, index: ‘NPArrayValidator’)

Path

None

get_quantity

Convert a value to astropy Quantity.

class Linear(calc, *target, unit=None, start, stop, scan_frame, speed, offset=None, margin=None, cos_correction=False, **ctx_kw)[source]#

Bases: Path

Parameters:
  • calc (CoordCalculator)

  • target (Union[str, DimensionLess, u.Quantity, CoordFrameType])

  • unit (Optional[UnitType])

  • start (Tuple[T, T])

  • stop (Tuple[T, T])

  • scan_frame (CoordFrameType)

  • speed (T)

  • offset (Optional[Tuple[T, T, CoordFrameType]])

  • margin (Optional[T])

  • cos_correction (bool)

  • ctx_kw (Any)

tight: bool = True#
infinite: bool = False#
waypoint: bool = False#
property n_cmd: int#
property target_frame: str | BaseCoordinateFrame | Type[BaseCoordinateFrame]#
property lonlat_func: Callable[[Index], Tuple[int | float | ndarray[Any, dtype[number]] | Array[int | float] | Quantity, int | float | ndarray[Any, dtype[number]] | Array[int | float] | Quantity]]#
property arguments: Tuple[Tuple[Any, ...], Dict[str, Any]]#
class Accelerate(calc, *target, unit=None, start, stop, scan_frame, speed, offset=None, margin=None, cos_correction=False, **ctx_kw)[source]#

Bases: Linear

Parameters:
  • calc (CoordCalculator)

  • target (Union[str, DimensionLess, u.Quantity, CoordFrameType])

  • unit (Optional[UnitType])

  • start (Tuple[T, T])

  • stop (Tuple[T, T])

  • scan_frame (CoordFrameType)

  • speed (T)

  • offset (Optional[Tuple[T, T, CoordFrameType]])

  • margin (Optional[T])

  • cos_correction (bool)

  • ctx_kw (Any)

tight: bool = False#
infinite: bool = False#
waypoint: bool = False#
property n_cmd: int#
property lonlat_func: Callable[[Index], Tuple[int | float | ndarray[Any, dtype[number]] | Array[int | float] | Quantity, int | float | ndarray[Any, dtype[number]] | Array[int | float] | Quantity]]#
property arguments: Tuple[Tuple[Any, ...], Dict[str, Any]]#
class Standby(calc, *target, unit=None, start, stop, scan_frame, speed, offset=None, margin=None, cos_correction=False, **ctx_kw)[source]#

Bases: Linear

Parameters:
  • calc (CoordCalculator)

  • target (Union[str, DimensionLess, u.Quantity, CoordFrameType])

  • unit (Optional[UnitType])

  • start (Tuple[T, T])

  • stop (Tuple[T, T])

  • scan_frame (CoordFrameType)

  • speed (T)

  • offset (Optional[Tuple[T, T, CoordFrameType]])

  • margin (Optional[T])

  • cos_correction (bool)

  • ctx_kw (Any)

tight: bool = True#
infinite: bool = True#
waypoint: bool = True#
property n_cmd: int#
property lonlat_func: Callable[[Index], Tuple[int | float | ndarray[Any, dtype[number]] | Array[int | float] | Quantity, int | float | ndarray[Any, dtype[number]] | Array[int | float] | Quantity]]#
property arguments: Tuple[Tuple[Any, ...], Dict[str, Any]]#