neclib.coordinates.paths.linear#

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)

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, **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]) –

  • ctx_kw (Any) –

tight: bool = True#
infinite: bool = False#
waypoint: bool = False#
property n_cmd: Union[int, float]#
property target_frame: Union[str, BaseCoordinateFrame, Type[BaseCoordinateFrame]]#
property lonlat_func: Callable[[Index], Tuple[Union[int, float, ndarray[Any, dtype[number]], Array[Union[int, float]], Quantity], Union[int, float, ndarray[Any, dtype[number]], Array[Union[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, **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]) –

  • ctx_kw (Any) –

tight: bool = False#
infinite: bool = False#
waypoint: bool = False#
property n_cmd: Union[int, float]#
property lonlat_func: Callable[[Index], Tuple[Union[int, float, ndarray[Any, dtype[number]], Array[Union[int, float]], Quantity], Union[int, float, ndarray[Any, dtype[number]], Array[Union[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, **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]) –

  • ctx_kw (Any) –

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