irfpy.mexop.imastatus

Calculate the IMA status from event file

The module provides states of MEX/IMA at a specified time. The states include on/off, eeprom section, mode, deflection, or PACC. These information are retrieved from so-called ASPERA event file. http://aspera-3.irf.se/archive/commanding/pors/EV_ASPERA.MEX This module is still alpha version, so that a big changes in API may change in the future version.

Usage:

>>> import datetime
>>> state = get_status(datetime.datetime(2006, 12, 5, 15, 0, 0))
>>> print(state)
<ON:True/PAC:4.0/EEPR:0/MOD:24.0/DEF:True>
>>> print(state.on)
True
>>> print(state.pacc)
4.0
>>> print(state.eeprom)
0
>>> print(state.mode)
24.0
>>> print(state.deflector)
True
>>> print(get_status(datetime.datetime(2004, 1, 24, 10, 0, 0)))
<ON:False/PAC:False/EEPR:False/MOD:False/DEF:False>
>>> print(get_status(datetime.datetime(2003, 1, 1, 0, 0, 0)))
<ON:None/PAC:None/EEPR:None/MOD:None/DEF:None>
irfpy.mexop.imastatus.parse_eventfile()[source]
class irfpy.mexop.imastatus.Status[source]

Bases: object

A status

on

ON/OFF/Unknown.

True for ON, False for OFF, None for Unknown.

hv

ON/OFF/Unknown.

True for ON, False for OFF, None for Unknown.

pacc

PACC used

None for unknown (or default). 0-7.

eeprom

EEPROM section to be booted.

None for unknown. 0 is booted from PROM. This is used in the first period of the mission. 1-16 is booted from EEPROM. The exact page number is to be decremented (0-15). For example, if the operation command states the boot of EEPROM=0, this attribute is set to 1. This is the same behaviour in the IMA telemetry’s standard header (see VE-ASP-MA-0009, section 7.5, 8th byte 4-0 bit.)

mode

Mode.

deflector

Deflector, True=On, Number=reference or None=unknown.

irfpy.mexop.imastatus.get_status(t)[source]

Return the Status for given time

irfpy.mexop.imastatus.isdb()[source]

Return if the event file is available or not

irfpy.mexop.imastatus.doctests()[source]