ATCalSys#
- class lsst.ts.observatory.control.auxtel.ATCalSys(electrometer_index=1, fiber_spectrograph_index=-1, domain=None, log=None, intended_usage=None)#
Bases:
RemoteGroupImplement high level ATCalSys functionality.
- Parameters:
domain (
salobj.Domain) – Domain to use of the Remotes. IfNone, create a new domain.electrometer_index (
int) – Electrometer index.fiber_spectrograph_index (
int) – FiberSpectrograph index.log (
logging.Logger) – Optional logging class to be used for logging operations. IfNone, creates a new logger. Useful to use in salobj.BaseScript and allow logging in the class use the script logging.intended_usage (
int) – Optional integer that maps to a list of intended operations. This is used to limit the resources allocated by the class by gathering some knowledge about the usage intention. By default allocates all resources.
Attributes Summary
Methods Summary
electrometer_scan(duration)Perform an electrometer scan for the specified duration and return a large file object topic.
setup_monochromator(wavelength, ...)Setup Monochromator.
take_fiber_spectrum_after(delay, image_type, ...)Wait, then start an acquisition with the fiber spectrograph.
Attributes Documentation
- electrometer#
- fiberspectrograph#
Methods Documentation
- async electrometer_scan(duration)#
Perform an electrometer scan for the specified duration and return a large file object topic.
- Parameters:
duration (
float) – Total duration of scan.- Returns:
lfo – Large File Object Available event message.
- Return type:
self.electrometer.evt_largeFileObjectAvailable.DataType
- async setup_monochromator(wavelength, entrance_slit, exit_slit, grating)#
Setup Monochromator.
- async take_fiber_spectrum_after(delay, image_type, integration_time, lamp, wait_for=None)#
Wait, then start an acquisition with the fiber spectrograph.
By default, this method will wait for
delayseconds then start an acquisition with the fiber spectrograph. Optionally the user may provide a coroutine that will be awaited before the delay starts.- Parameters:
delay (
float) – Seconds to wait before starting fiber spectrograph acquisition.image_type (
str) – Type of each image.integration_time (
float) – Integration time for the fiber spectrum (seconds).lamp (
str) – Name of lamp for each image.wait_for (
coro) – An awaitable that will be waited before delay and processing. If None, ignored.
- Returns:
file_data – Large file object available event data.
- Return type:
fiberspectrograph.evt_largeFileObjectAvailable.DataType