panoptes.pocs package¶
Subpackages¶
- panoptes.pocs.camera package
- Subpackages
- Submodules
- panoptes.pocs.camera.camera module
AbstractCamera
AbstractCamera.filter_type
AbstractCamera.focuser
AbstractCamera.filter_wheel
AbstractCamera.uid
AbstractCamera.is_primary
AbstractCamera.model
AbstractCamera.name
AbstractCamera.port
AbstractCamera.temperature
AbstractCamera.target_temperature
AbstractCamera.temperature_tolerance
AbstractCamera.cooling_enabled
AbstractCamera.cooling_power
AbstractCamera.egain
AbstractCamera.gain
AbstractCamera.bitdepth
AbstractCamera.image_type
AbstractCamera.timeout
AbstractCamera.readout_time
AbstractCamera.file_extension
AbstractCamera.library_path
AbstractCamera.properties
AbstractCamera.is_connected
AbstractCamera.is_cooled_camera
AbstractCamera.is_temperature_stable
AbstractCamera.is_exposing
AbstractCamera.is_ready
AbstractCamera.can_take_internal_darks
AbstractCamera.autofocus()
AbstractCamera.bit_depth
AbstractCamera.can_take_internal_darks
AbstractCamera.connect()
AbstractCamera.cooling_enabled
AbstractCamera.cooling_power
AbstractCamera.egain
AbstractCamera.exposure_error
AbstractCamera.file_extension
AbstractCamera.filter_type
AbstractCamera.get_cutout()
AbstractCamera.has_filterwheel
AbstractCamera.has_focuser
AbstractCamera.is_connected
AbstractCamera.is_cooled_camera
AbstractCamera.is_exposing
AbstractCamera.is_observing
AbstractCamera.is_ready
AbstractCamera.is_temperature_stable
AbstractCamera.process_exposure()
AbstractCamera.readiness
AbstractCamera.readout_time
AbstractCamera.take_exposure()
AbstractCamera.take_observation()
AbstractCamera.target_temperature
AbstractCamera.temperature
AbstractCamera.temperature_tolerance
AbstractCamera.uid
AbstractCamera.waiting_for_readout
AbstractCamera.write_fits()
- panoptes.pocs.camera.fli module
- panoptes.pocs.camera.libasi module
ASIDriver
ASIDriver.close_camera()
ASIDriver.disable_dark_subtract()
ASIDriver.enable_dark_subtract()
ASIDriver.get_ID()
ASIDriver.get_SDK_version()
ASIDriver.get_camera_mode()
ASIDriver.get_camera_property()
ASIDriver.get_camera_property_by_id()
ASIDriver.get_camera_supported_mode()
ASIDriver.get_control_caps()
ASIDriver.get_control_value()
ASIDriver.get_devices()
ASIDriver.get_dropped_frames()
ASIDriver.get_exposure_data()
ASIDriver.get_exposure_status()
ASIDriver.get_gain_offset()
ASIDriver.get_num_of_connected_cameras()
ASIDriver.get_num_of_controls()
ASIDriver.get_product_ids()
ASIDriver.get_roi_format()
ASIDriver.get_serial_number()
ASIDriver.get_start_position()
ASIDriver.get_trigger_output_io_conf()
ASIDriver.get_video_data()
ASIDriver.init_camera()
ASIDriver.open_camera()
ASIDriver.pulse_guide_off()
ASIDriver.pulse_guide_on()
ASIDriver.send_soft_trigger()
ASIDriver.set_ID()
ASIDriver.set_camera_mode()
ASIDriver.set_control_value()
ASIDriver.set_roi_format()
ASIDriver.set_start_position()
ASIDriver.set_trigger_ouput_io_conf()
ASIDriver.start_exposure()
ASIDriver.start_video_capture()
ASIDriver.stop_exposure()
ASIDriver.stop_video_capture()
BayerPattern
CameraInfo
CameraInfo.bayer_pattern
CameraInfo.bit_depth
CameraInfo.camera_ID
CameraInfo.e_per_adu
CameraInfo.has_ST4_port
CameraInfo.has_cooler
CameraInfo.has_mechanical_shutter
CameraInfo.is_USB3_camera
CameraInfo.is_USB3_host
CameraInfo.is_color_camera
CameraInfo.is_trigger_camera
CameraInfo.max_height
CameraInfo.max_width
CameraInfo.name
CameraInfo.pixel_size
CameraInfo.supported_bins
CameraInfo.supported_video_format
CameraInfo.unused
CameraMode
ControlCaps
ControlType
ControlType.ANTI_DEW_HEATER
ControlType.AUTO_MAX_BRIGHTNESS
ControlType.AUTO_MAX_EXP
ControlType.AUTO_MAX_GAIN
ControlType.AUTO_TARGET_BRIGHTNESS
ControlType.BANDWIDTHOVERLOAD
ControlType.BRIGHTNESS
ControlType.COOLER_ON
ControlType.COOLER_POWER_PERC
ControlType.EXPOSURE
ControlType.FAN_ON
ControlType.FLIP
ControlType.GAIN
ControlType.GAMMA
ControlType.HARDWARE_BIN
ControlType.HIGH_SPEED_MODE
ControlType.MONO_BIN
ControlType.OFFSET
ControlType.OVERCLOCK
ControlType.PATTERN_ADJUST
ControlType.TARGET_TEMP
ControlType.TEMPERATURE
ControlType.WB_B
ControlType.WB_R
ErrorCode
ErrorCode.BUFFER_TOO_SMALL
ErrorCode.CAMERA_CLOSED
ErrorCode.CAMERA_REMOVED
ErrorCode.END
ErrorCode.EXPOSURE_IN_PROGRESS
ErrorCode.GENERAL_ERROR
ErrorCode.INVALID_CONTROL_TYPE
ErrorCode.INVALID_FILEFORMAT
ErrorCode.INVALID_ID
ErrorCode.INVALID_IMGTYPE
ErrorCode.INVALID_INDEX
ErrorCode.INVALID_MODE
ErrorCode.INVALID_PATH
ErrorCode.INVALID_SEQUENCE
ErrorCode.INVALID_SIZE
ErrorCode.OUTOF_BOUNDARY
ErrorCode.SUCCESS
ErrorCode.TIMEOUT
ErrorCode.VIDEO_MODE_ACTIVE
ExposureStatus
FlipStatus
GuideDirection
ID
ImgType
SupportedMode
TrigOutput
- panoptes.pocs.camera.libfli module
FLIDriver
FLIDriver.FLIClose()
FLIDriver.FLIExposeFrame()
FLIDriver.FLIGetArrayArea()
FLIDriver.FLIGetCoolerPower()
FLIDriver.FLIGetExposureStatus()
FLIDriver.FLIGetFWRevision()
FLIDriver.FLIGetHWRevision()
FLIDriver.FLIGetModel()
FLIDriver.FLIGetPixelSize()
FLIDriver.FLIGetSerialString()
FLIDriver.FLIGetTemperature()
FLIDriver.FLIGetVisibleArea()
FLIDriver.FLIGrabFrame()
FLIDriver.FLIGrabRow()
FLIDriver.FLIList()
FLIDriver.FLIOpen()
FLIDriver.FLISetExposureTime()
FLIDriver.FLISetFrameType()
FLIDriver.FLISetHBin()
FLIDriver.FLISetImageArea()
FLIDriver.FLISetNFlushes()
FLIDriver.FLISetTemperature()
FLIDriver.FLISetVBin()
FLIDriver.get_SDK_version()
FLIDriver.get_devices()
- panoptes.pocs.camera.libfliconstants module
- panoptes.pocs.camera.sbig module
- panoptes.pocs.camera.sbigudrv module
CFWCommand
CFWError
CFWGetInfoSelect
CFWModelSelect
CFWModelSelect.AUTO
CFWModelSelect.CFW10
CFWModelSelect.CFW10_SERIAL
CFWModelSelect.CFW1603
CFWModelSelect.CFW2
CFWModelSelect.CFW402
CFWModelSelect.CFW5
CFWModelSelect.CFW6A
CFWModelSelect.CFW8
CFWModelSelect.CFW9
CFWModelSelect.CFWL
CFWModelSelect.CFWL8
CFWModelSelect.CFWL8G
CFWModelSelect.FW5_8300
CFWModelSelect.FW5_STF_DETENT
CFWModelSelect.FW5_STX
CFWModelSelect.FW7_STX
CFWModelSelect.FW8_8300
CFWModelSelect.FW8_STT
CFWModelSelect.UNKNOWN
CFWParams
CFWResults
CFWStatus
EndExposureParams
EndReadoutParams
EstablishLinkParams
EstablishLinkResults
GetCCDInfoParams
GetCCDInfoResults0
GetCCDInfoResults2
GetCCDInfoResults4
GetCCDInfoResults6
GetDriverControlParams
GetDriverControlResults
GetDriverHandleResults
GetDriverInfoParams
GetDriverInfoResults0
GetLinkStatusResults
OpenDeviceParams
QueryCommandStatusParams
QueryCommandStatusResults
QueryTemperatureStatusParams
QueryTemperatureStatusResults
QueryTemperatureStatusResults2
QueryTemperatureStatusResults2.ambientTemperature
QueryTemperatureStatusResults2.ccdSetpoint
QueryTemperatureStatusResults2.coolingEnabled
QueryTemperatureStatusResults2.externalTrackingCCDPower
QueryTemperatureStatusResults2.externalTrackingCCDTemperature
QueryTemperatureStatusResults2.fanEnabled
QueryTemperatureStatusResults2.fanPower
QueryTemperatureStatusResults2.fanSpeed
QueryTemperatureStatusResults2.heatsinkTemperature
QueryTemperatureStatusResults2.imagingCCDPower
QueryTemperatureStatusResults2.imagingCCDTemperature
QueryTemperatureStatusResults2.trackingCCDPower
QueryTemperatureStatusResults2.trackingCCDSetpoint
QueryTemperatureStatusResults2.trackingCCDTemperature
QueryUSBInfo
QueryUSBResults
QueryUSBResults2
QueryUSBResults3
ReadoutInfo
ReadoutLineParams
SBIGDriver
SBIGDriver.cfw_get_info()
SBIGDriver.cfw_goto()
SBIGDriver.cfw_init()
SBIGDriver.cfw_query()
SBIGDriver.disable_vdd_optimized()
SBIGDriver.establish_link()
SBIGDriver.get_SDK_version()
SBIGDriver.get_ccd_info()
SBIGDriver.get_devices()
SBIGDriver.get_driver_handle()
SBIGDriver.get_exposure_status()
SBIGDriver.get_link_status()
SBIGDriver.open_device()
SBIGDriver.open_driver()
SBIGDriver.query_temp_status()
SBIGDriver.readout()
SBIGDriver.retries
SBIGDriver.set_handle()
SBIGDriver.set_temp_regulation()
SBIGDriver.start_exposure()
SetDriverControlParams
SetDriverHandleParams
SetTemperatureRegulationParams
SetTemperatureRegulationParams2
StartExposureParams2
StartReadoutParams
- panoptes.pocs.camera.sdk module
- panoptes.pocs.camera.zwo module
- Module contents
- panoptes.pocs.dome package
- Submodules
- panoptes.pocs.dome.abstract_serial_dome module
- panoptes.pocs.dome.astrohaven module
AstrohavenDome
Dome
Protocol
Protocol.A_CLOSE_LIMIT
Protocol.A_IS_CLOSED
Protocol.A_OPEN_LIMIT
Protocol.BOTH_CLOSED
Protocol.BOTH_OPEN
Protocol.B_CLOSE_LIMIT
Protocol.B_IS_CLOSED
Protocol.B_OPEN_LIMIT
Protocol.CLOSE_A
Protocol.CLOSE_B
Protocol.CLOSE_BOTH
Protocol.OPEN_A
Protocol.OPEN_B
Protocol.OPEN_BOTH
Protocol.RESET
Protocol.STABLE_STATES
- panoptes.pocs.dome.bisque module
- panoptes.pocs.dome.protocol_astrohaven_simulator module
- panoptes.pocs.dome.simulator module
- Module contents
- panoptes.pocs.filterwheel package
- Submodules
- panoptes.pocs.filterwheel.filterwheel module
AbstractFilterWheel
AbstractFilterWheel.camera
AbstractFilterWheel.connect()
AbstractFilterWheel.current_filter
AbstractFilterWheel.filter_name()
AbstractFilterWheel.filter_names
AbstractFilterWheel.is_connected
AbstractFilterWheel.is_moving
AbstractFilterWheel.is_ready
AbstractFilterWheel.is_unidirectional
AbstractFilterWheel.model
AbstractFilterWheel.move_to()
AbstractFilterWheel.move_to_dark_position()
AbstractFilterWheel.move_to_light_position()
AbstractFilterWheel.n_positions
AbstractFilterWheel.name
AbstractFilterWheel.position
AbstractFilterWheel.uid
- panoptes.pocs.filterwheel.libefw module
EFWDriver
EFWDriver.calibrate()
EFWDriver.close()
EFWDriver.get_ID()
EFWDriver.get_SDK_version()
EFWDriver.get_devices()
EFWDriver.get_direction()
EFWDriver.get_num()
EFWDriver.get_position()
EFWDriver.get_product_ids()
EFWDriver.get_property()
EFWDriver.open()
EFWDriver.set_direction()
EFWDriver.set_position()
EFWInfo
ErrorCode
- panoptes.pocs.filterwheel.sbig module
- panoptes.pocs.filterwheel.simulator module
- panoptes.pocs.filterwheel.zwo module
- Module contents
- panoptes.pocs.focuser package
- Submodules
- panoptes.pocs.focuser.astromechanics module
- panoptes.pocs.focuser.birger module
- panoptes.pocs.focuser.focuser module
AbstractFocuser
AbstractFocuser.autofocus()
AbstractFocuser.autofocus_error
AbstractFocuser.camera
AbstractFocuser.is_connected
AbstractFocuser.is_moving()
AbstractFocuser.is_ready
AbstractFocuser.max_position()
AbstractFocuser.min_position()
AbstractFocuser.move_by()
AbstractFocuser.move_to()
AbstractFocuser.position
AbstractFocuser.uid
- panoptes.pocs.focuser.focuslynx module
- panoptes.pocs.focuser.serial module
- panoptes.pocs.focuser.simulator module
- Module contents
- panoptes.pocs.mount package
- Subpackages
- Submodules
- panoptes.pocs.mount.bisque module
Mount
Mount.at_mount_park
Mount.connect()
Mount.disconnect()
Mount.initialize()
Mount.is_home
Mount.is_parked
Mount.is_slewing
Mount.is_tracking
Mount.move_direction()
Mount.park()
Mount.query()
Mount.read()
Mount.set_park_position()
Mount.set_target_coordinates()
Mount.slew_to_home()
Mount.slew_to_target()
Mount.slew_to_zero()
Mount.unpark()
Mount.write()
- panoptes.pocs.mount.mount module
AbstractMount
AbstractMount.at_mount_park
AbstractMount.connect()
AbstractMount.correct_tracking()
AbstractMount.disconnect()
AbstractMount.distance_from_target()
AbstractMount.get_current_coordinates()
AbstractMount.get_ms_offset()
AbstractMount.get_target_coordinates()
AbstractMount.get_tracking_correction()
AbstractMount.has_target
AbstractMount.home_and_park()
AbstractMount.initialize()
AbstractMount.is_connected
AbstractMount.is_home
AbstractMount.is_initialized
AbstractMount.is_parked
AbstractMount.is_slewing
AbstractMount.is_tracking
AbstractMount.location
AbstractMount.move_direction()
AbstractMount.movement_speed
AbstractMount.park()
AbstractMount.query()
AbstractMount.read()
AbstractMount.search_for_home()
AbstractMount.set_target_coordinates()
AbstractMount.set_tracking_rate()
AbstractMount.slew_to_coordinates()
AbstractMount.slew_to_home()
AbstractMount.slew_to_target()
AbstractMount.slew_to_zero()
AbstractMount.state
AbstractMount.status
AbstractMount.tracking_rate
AbstractMount.unpark()
AbstractMount.update_status()
AbstractMount.write()
- panoptes.pocs.mount.serial module
- panoptes.pocs.mount.simulator module
- Module contents
- panoptes.pocs.scheduler package
- Subpackages
- Submodules
- panoptes.pocs.scheduler.constraint module
- panoptes.pocs.scheduler.dispatch module
- panoptes.pocs.scheduler.field module
- panoptes.pocs.scheduler.scheduler module
BaseScheduler
BaseScheduler.add_observation()
BaseScheduler.clear_available_observations()
BaseScheduler.current_observation
BaseScheduler.fields_file
BaseScheduler.fields_list
BaseScheduler.get_observation()
BaseScheduler.has_valid_observations
BaseScheduler.observation_available()
BaseScheduler.observations
BaseScheduler.read_field_list()
BaseScheduler.remove_observation()
BaseScheduler.reset_observed_list()
BaseScheduler.set_common_properties()
BaseScheduler.status
- Module contents
- panoptes.pocs.sensor package
- panoptes.pocs.state package
- Subpackages
- Submodules
- panoptes.pocs.state.machine module
PanStateMachine
PanStateMachine.after_state()
PanStateMachine.before_state()
PanStateMachine.check_safety()
PanStateMachine.goto_next_state()
PanStateMachine.load_state_table()
PanStateMachine.mount_is_initialized()
PanStateMachine.mount_is_tracking()
PanStateMachine.next_state
PanStateMachine.run()
PanStateMachine.stop_states()
- Module contents
- panoptes.pocs.utils package
- Subpackages
- panoptes.pocs.utils.cli package
- Submodules
- panoptes.pocs.utils.cli.camera module
- panoptes.pocs.utils.cli.config module
- panoptes.pocs.utils.cli.main module
- panoptes.pocs.utils.cli.mount module
- panoptes.pocs.utils.cli.network module
- panoptes.pocs.utils.cli.notebook module
- panoptes.pocs.utils.cli.power module
- panoptes.pocs.utils.cli.run module
- panoptes.pocs.utils.cli.sensor module
- panoptes.pocs.utils.cli.weather module
- Module contents
- panoptes.pocs.utils.service package
- panoptes.pocs.utils.cli package
- Submodules
- panoptes.pocs.utils.cloud module
- panoptes.pocs.utils.error module
- panoptes.pocs.utils.location module
- panoptes.pocs.utils.logger module
- panoptes.pocs.utils.plotting module
- panoptes.pocs.utils.theskyx module
- Module contents
- Subpackages
Submodules¶
panoptes.pocs.base module¶
- class panoptes.pocs.base.PanBase(config_host=None, config_port=None, *args, **kwargs)[source]¶
Bases:
object
Base class for other classes within the PANOPTES ecosystem
Defines common properties for each class (e.g. logger, config, db).
- get_config(*args, **kwargs)[source]¶
Thin-wrapper around client based get_config that sets default port.
See panoptes.utils.config.client.get_config for more information.
- Parameters:
*args – Passed to get_config
**kwargs – Passed to get_config
- set_config(key, new_value, *args, **kwargs)[source]¶
Thin-wrapper around client based set_config that sets default port.
See panoptes.utils.config.client.set_config for more information.
- Parameters:
key (str) – The key name to use, can be namespaced with dots.
new_value (any) – The value to store.
*args – Passed to set_config
**kwargs – Passed to set_config
panoptes.pocs.core module¶
panoptes.pocs.hardware module¶
Information about hardware supported by Panoptes.
- class panoptes.pocs.hardware.HardwareName(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]¶
Bases:
Enum
- camera = 'camera'¶
- dome = 'dome'¶
- mount = 'mount'¶
- night = 'night'¶
- power = 'power'¶
- sensors = 'sensors'¶
- theskyx = 'theskyx'¶
- weather = 'weather'¶
- panoptes.pocs.hardware.get_all_names(all_names=None, without=None)[source]¶
Returns the names of all the categories of hardware that POCS supports.
Note that this doesn’t extend to the Arduinos for the telemetry and camera boards, for which no simulation is supported at this time.
>>> from panoptes.pocs.hardware import get_all_names >>> get_all_names() ['camera', 'dome', 'mount', 'night', 'power', 'sensors', 'theskyx', 'weather'] >>> get_all_names(without='mount') # Single item ['camera', 'dome', 'night', 'power', 'sensors', 'theskyx', 'weather'] >>> get_all_names(without=['mount', 'power']) # List ['camera', 'dome', 'night', 'sensors', 'theskyx', 'weather']
>>> # You can alter available hardware if needed. >>> get_all_names(['foo', 'bar', 'power'], without=['power']) ['bar', 'foo']
- panoptes.pocs.hardware.get_simulator_names(simulator=None, kwargs=None)[source]¶
Returns the names of the simulators to be used in lieu of hardware drivers.
Note that returning a list containing ‘X’ doesn’t mean that the config calls for a driver of type ‘X’; that is up to the code working with the config to create drivers for real or simulated hardware.
This function is intended to be called from PanBase or similar, which receives kwargs that may include simulator, config or both. For example:
get_simulator_names(config=self.config, kwargs=kwargs) # Or: get_simulator_names(simulator=simulator, config=self.config)
The reason this function doesn’t just take **kwargs as its sole arg is that we need to allow for the case where the caller is passing in simulator (or config) twice, once on its own, and once in the kwargs (which won’t be examined). Python doesn’t permit a keyword argument to be passed in twice.
>>> from panoptes.pocs.hardware import get_simulator_names >>> get_simulator_names() [] >>> get_simulator_names('all') ['camera', 'dome', 'mount', 'night', 'power', 'sensors', 'theskyx', 'weather']
- Parameters:
simulator (list) – An explicit list of names of hardware to be simulated (i.e. hardware drivers to be replaced with simulators).
kwargs – The kwargs passed in to the caller, which is inspected for an arg called ‘simulator’.
- Returns:
List of names of the hardware to be simulated.
panoptes.pocs.images module¶
- class panoptes.pocs.images.Image(fits_file: Path, wcs_file=None, location=None, *args, **kwargs)[source]¶
Bases:
PanBase
- get_header_pointing()[source]¶
Get the pointing information from the header
The header should contain the RA-MNT and DEC-MNT keywords, from which the header pointing coordinates are built.
- get_wcs_pointing()[source]¶
Get the pointing information from the WCS
Builds the pointing coordinates from the plate-solved WCS. These will be compared with the coordinates stored in the header.
- property pointing_error¶
Pointing error namedtuple (delta_ra, delta_dec, magnitude)
Returns pointing error information. The first time this is accessed this will solve the field if not previously solved.
- Returns:
Pointing error information
- Return type:
namedtuple
- solve_field(radius=15, **kwargs)[source]¶
Solve field and populate WCS information.
- Parameters:
radius (scalar) – The radius (in degrees) to search near RA-Dec. Defaults to 15°.
**kwargs – Options to be passed to get_solve_field.
- property wcs_file¶
WCS file name
When setting the WCS file name, the WCS information will be read, setting the wcs property.