--- header unit 0: primary ---
SIMPLE = T / image conforms to FITS standard
BITPIX = 16 / bits per data value
NAXIS = 2 / number of axes
NAXIS1 = 512
NAXIS2 = 512
EXTEND = T / file may contain extensions
BZERO = 32768 / Data is unsigned integer
BUNITS = 'A/D units' / Units of brightness
DATE = '2003-06-23' / Creation UTC (CCCC-MM-DD) date of FITS header
O_BZERO = 32768 / Original Data is Unsigned Integer
COMMENT FITS (Flexible Image Transport System) format is defined in 'Astronomy
COMMENT and Astrophysics', volume 376, page 359; bibcode 2001A&A...376..359H
COMM0000 = ''
CR_TIME = '    2003 Jun 23 04:36:13.267 Mon' / FITS file creation time (UTC)
CR_JS = 109658173.267 / FITS file creation time (UTC)
IMG_TYPE = 1 / Image type: 0=data, 1=dark, 2=backgrd, 3=gen
RUN_ID = 'run0130' / Run ID number
FILE = 'nac_f0_20030623_01835.fit' / FITS file name.
SEQ_NUM = '01835' / Sequence number
COMM0001 = 'Taking dark images while cooling down.'
COMM0002 = 'In chamber, at vacuum.  Chamber window capped.'
COMM0003 = '--------------------------------------------------------------------'
COMM0004 = '    MDIS Image Header    Ref: 7390-9041, SRI-03,   John R. Hayes'
COMM0005 = '    Table 13             January 9, 2003'
COMM0006 = '--------------------------------------------------------------------'
MET_EXP = 109658168 / Exposure time-tag (MET)
PIV_GOAL = 0 / Pivot goal (180º/2^15)
PIV_POS = 0 / Pivot position (180º/2^15)
PIV_READ = 20636 / Pivot reading (resolver counts)
PIV_CAL = -26758 / Pivot calibration offset (TBD)
FW_GOAL = 39309 / Filter wheel goal (resolver counts)
FW_POS = 39276 / Filter wheel pos. (resolver counts)
FW_READ = 39276 / Filter wheel reading (res. counts)
CCD_TEMP = 1151 / CCD temperature
CAM_T1 = 474 / Camera temperature #1
CAM_T2 = 502 / Camera temperature #2
EXPOSURE = 8 / Exposure time (1 ms units)
DPU_ID = 0 / DPU identifier: 0=DPU-A, 1=DPU-B
IMAGER = 1 / WAC or NAC imager: 0=WAC, 1=NAC
SOURCE = 0 / Image source: 0=CCD,1=Test patt,2=Inv
FPU_BIN = 1 / Image binning in FPU: 0=1x1, 1=2x2
COMP12_8 = 0 / Enable/disable 12 to 8 bit image comp
COMP_ALG = 0 / 12 to 8 bit compression algorithm
COMP_FST = 0 / Enable/disable Fast image compression
TIME_PLS = 1 / 1 Hz time pulse source:0=soft,1=MPA,2=MPB,3=Soft
LATCH_UP = 0 / FPU latchup indicator: 0=ok, 1=Latched
EXP_MODE = 0 / 0=Manual, 1=Automatic
PIV_STAT = 0 / Pivot control state:0=Lost,1=Search,2=Found,3=ok
PIV_MPEN = 0 / Pivot controlled by MP: 0=Disable,1=Enable
PIV_PV = 0 / Pivot position validity flag
PIV_RV = 1 / Pivot reading validity flag
FW_PV = 1 / Filter wheel position validity flag
FW_RV = 1 / Filter wheel reading validity flag
AEX_STAT = 256 / Mode of hist used for auto exp calc (0-4095)
AEX_STHR = 0 / Auto exp saturation thresh (pixels 0.1%)(0-1000)
AEX_TGTB = 0 / Automatic exposure target brightness (0-4095)
AEX_BACB = 240 / Automatic exposure background/noise brightness
AEX_MAXE = 989 / Maximum automatic exposure time (1 ms) (0-989)
AEX_MINE = 1 / Minimum automatic exposure time (1 ms) (0-989)
COMM0007 = '____________________________________________________________________'
COMM0008 = '    Values for items set manually.  Any special notes'
COMM0009 = '    are in the comment following item.'
COMM0010 = '____________________________________________________________________'
MC_SRC = '' / Monochromator light source
COMM0011 = ''
MC_SPWR = '' / Monochromator light source power
COMM0012 = ''
MC_GRNUM = '' / Monochromator grating number
COMM0013 = ''
MC_SI_L = '' / Monochromator entrance slit length (mm)
COMM0014 = ''
MC_SI_W = '' / Monochromator entrance slit width (microns)
COMM0015 = ''
MC_SO_L = '' / Monochromator exit slit length (mm)
COMM0016 = ''
MC_SO_W = '' / Monochromator exit slit width (microns)
COMM0017 = ''
MC_EXFIL = '' / Monochromator exit filter
COMM0018 = ''
MC_ENFIL = '' / Monochromator entrance filter
COMM0019 = ''
RMLT_OFF = '' / Room lights off
COMM0020 = ''
COMM0021 = '--------------------------------------------------------------------'
COMM0022 = '    MDIS Telemetry data   Ref: 7390-9041, SRI-03,  John R. Hayes'
COMM0023 = '    Table 6 (From Version down).          2003 Jan 09'
COMM0024 = '--------------------------------------------------------------------'
MET_GSE = 109658173 / Time tag (MET) from GSE.
VERSION = 0 / Designates a source packet (000)
TYPE = 0 / Designates a telemetry packet
SECONDRY = 1 / Secondary header is present
APP_ID = 389 / Application process ID 001 10X0 0010
GROUPING = 3 / Grouping flags (11 = None)
SEQ_CNT = 16335 / Seq count for each Application Process ID
LENGTH = 119 / Packet length (bytes)-1 (117)
MET_SPKT = 109658168 / Time tag (MET) of Status Packet.
COMM0025 = '--------------------------------------------------------------------'
COMM0026 = '  Analog: 23x16 bits   Table 7   Analog readings'
COMM0027 = '--------------------------------------------------------------------'
LVPS_00 = 2019 / DPU +5 voltage (-8192 - 8191)
LVPS_01 = -2003 / DPU -5 voltage (-8192 - 8191)
LVPS_02 = 4842 / Resolver +12 voltage (-8192 - 8191)
LVPS_03 = -4802 / Resolver -12 voltage (-8192 - 8191)
LVPS_09 = 2765 / DPU +5 current (-8192 - 8191)
LVPS_10 = 134 / DPU -5 current (-8192 - 8191)
LVPS_11 = 190 / Resolver +12 current (-8192 - 8191)
LVPS_12 = 116 / Resolver -12 current (-8192 - 8191)
LVPS_13 = 4811 / LVPS temperature (-8192 - 8191)
LVPS_14 = 1015 / LVPS primary current (-8192 - 8191)
IM_0 = 6023 / NAC voltage (-8192 - 8191)
IM_1 = 1024 / NAC current (-8192 - 8191)
IM_2 = 22 / WAC voltage (-8192 - 8191)
IM_3 = -1 / WAC current (-8192 - 8191)
IM_4 = 4899 / Imager power board temperature (-8192 - 8191)
IM_5 = 659 / Imager power board primary current(-8192-8191)
PIV_0 = 21 / Pivot motor primary current (-8192 - 8191)
PIV_1 = 25 / Pivot motor drive current (-8192 - 8191)
FW_0 = 211 / FW motor primary current (-8192 - 8191)
FW_1 = 238 / FW motor drive current (-8192 - 8191)
TEMP_0 = 1149 / CCD temperature (0 - 4095)
TEMP_1 = 474 / Camera temperature #1 (0 - 4095)
TEMP_2 = 502 / Camera temperature #2 (0 - 4095)
COMM0028 = '--------------------------------------------------------------------'
COMM0029 = '  Digital: 11x16 bits   Table 8   Digital configuration and feedback'
COMM0030 = '  1 bit values: (0=Off, 1=On), or (0=Inactive, 1=Active), or'
COMM0031 = '    (0=Normal, 1=Inverted), or (0=Disable, 1=Enable)'
COMM0032 = '--------------------------------------------------------------------'
RES_PWR = 1 / Pivot platform and filter wheel resolver power
DPUPULSE = 0 / DPU selector pulse (to latching relay)
IM_PRMRY = 1 / Imager board primary power
WAC_SEL = 0 / WAC imager select
NAC_SEL = 1 / NAC imager select
IM_POWER = 1 / Imager focal plane power
PIV_PRM = 0 / Pivot platform motor board primary power
PIV_RCLK = 1 / Pivot platform resolver clock
PIV_HPEN = 0 / Pivot platform high power enable.
PIV_MCLK = 2 / Pivot platform modulator clock select
FW_PRM = 1 / FW motor board primary power
FW_RCLK = 1 / FW resolver clock
FW_HPEN = 1 / FW high power enable.
FW_MCLK = 1 / FW modulator clock select (TBD)
PIV_LVL = 6 / Pivot platform motor power level
PIVMCBEN = 0 / Pivot platform motor current phase B enable
PIVMCAEN = 0 / Pivot platform motor current phase A enable
PIV_PHS = 0 / Pivot platform motor phase drive
FW_LVL = 8 / FW motor power level
FW_MCBEN = 0 / FW motor current phase B enable
FW_MCAEN = 0 / FW motor current phase A enable
FW_PHS = 0 / FW motor phase drive
PIVREAD = 20636 / Pivot reading (resolver counts)
FWREAD = 39276 / Filter wheel reading (res. counts)
EXPOSUR2 = 8 / Exposure time (1 ms) (0 - 9990)
TEST_INV = 0 / Invert test pattern
TEST_EN1 = 0 / Enable/disable test pattern
TEST_EN2 = 0 / Enable/disable test pattern
FPU_BIN2 = 1 / Select image binning in FPU (0=1x1, 1=2x2)
FPU_BIN1 = 1 / Select image binning in FPU (0=1x1, 1=2x2)
STRT_TRN = 1 / Start transfer to MP
FPU_ENB = 1 / FPU drive enable
CMP12_8 = 0 / Enable/disable 12->8 bit image compress.
CMP_ALG = 0 / 12 to 8 bit compression algorithm
CMP_FST = 0 / Enable/disable Fast image compression
TIMEPLS = 1 / 1Hz time pulse src (0=Soft,1=MPA,2=MPB,3=Soft)
DEST = 1 / Destination of img (0=None,1-MPA,2=MPB,3=Both)
ENDTRANS = 1 / Complete transfer to MP
LATCHUP = 0 / FPU latchup indicator (0=Ok, 1=Latched)
AEXSTAT = 256 / Mode of hist used for autoexpos calc (0-4095)
COMM0033 = '--------------------------------------------------------------------'
COMM0034 = '  Software: 24x16 bits  Table 9   Software configuration and status'
COMM0035 = '--------------------------------------------------------------------'
STAT_INT = 1 / Status interval (seconds) 1-65535 (0=Off)
MAC_BLKS = 1758 / Number of macro blocks free
TLM_VOL = 4389 / Telemetry volume produced (KB)
WTCH_ADD = 3630 / Memory watch address
WTCH_MEM = 0 / Memory watch id (page no.)
WTCH_DAT = 0 / Watched memory
SW_VERS = 5 / Software version number
ALARM_ID = 0 / Latest alarm Id (See Table 17)
ALRM_TYP = 0 / Latest alarm type (0=Persistent, 1=Transient)
ALRM_CNT = 0 / Count of alarms
CMD_EXEC = 60 / Commands executed
CMD_REJ = 4 / Commands rejected
MAC_EXEC = 0 / Macro commands executed
MAC_REJ = 0 / Macro commands rejected
MAC_ID = 0 / ID of most recent macro executed
MAC_LRN = 0 / Macro learn mode (0=Not learning, 1=Learning)
MON_RESP = 0 / Monitor response (0=Disable,1=Enable)
WR_ENB = 0 / Memory write enable (0=Disable,1=Enable)
IMG_TIME = 65535 / Img downlnk time remaining (sec) 65535:Forever
IMG_INT = 1 / Interval between downlink images (sec)
PIV_MAN = 0 / Pivot manually commanded goal (180º/215)
PIV_MP = 0 / Pivot MP commanded goal (180º/215)
PIVMPOFF = 0 / Pivot MP offset (180º/215)
PIVGOAL = 0 / Pivot goal (180º/215)
PIVPOS = 0 / Pivot position (180º/215)
FWGOAL = 39309 / Filter wheel goal (resolver counts)
FWPOS = 39276 / Filter wheel pos. (resolver counts)
AEXTGTB = 0 / Automatic exposure target brightness (0-4095)
NAC_TIME = 8 / NAC manual exp. time (1 ms) (0-9990)
WAC_TIME = 8 / WAC manual exp. time (1 ms) (0-9990)
PIVMPENB = 0 / Pivot controlled by MP (0=Disable, 1=Enable)
EXPMODE = 0 / Exposure mode (0=Manual,1=Automatic)
PIVPV = 0 / Pivot position validity flag(1=Valid)
PIVRV = 1 / Pivot reading validity flag (1=Valid)
FWPV = 1 / Filter wheel position validity flag (1=Valid)
FWRV = 1 / Filter wheel reading validity flag (1=Valid)
PIVREN = 0 / Pivot platform resolver reading enable
FWREN = 1 / FW resolver reading enable
FILTER = 7 / Commanded filter number (1-12)
PIVSTAT = 0 / Piv control state 0=Lost,1=Search,2=Found,3=Ok
MESI_HRT = 0 / MESI heartbeat health (0=Dead, 1=Alive)
MLA_HRT = 0 / MLA heartbeat health (0=Dead, 1=Alive)
MASCSHRT = 0 / MASCS heartbeat health (0=Dead, 1=Alive)
XRS_HRT = 0 / XRS heartbeat health (0=Dead, 1=Alive)
MAG_HRT = 0 / MAG heartbeat health (0=Dead, 1=Alive)
NS_HRT = 0 / NS heartbeat health (0=Dead, 1=Alive)
GRS_HRT = 0 / GRS heartbeat health (0=Dead, 1=Alive)
EPPS_HRT = 0 / EPPS heartbeat health (0=Dead, 1=Alive)
MESI_MD = 0 / MESI mode (0=Boot, 1=Application)
MLA_MD = 0 / MLA mode (0=Boot, 1=Application)
MASCSMD = 1 / MASCS mode (0=Boot, 1=Application)
XRS_MD = 1 / XRS mode (0=Boot, 1=Application)
MAG_MD = 1 / MAG mode (0=Boot, 1=Application)
NS_MD = 0 / NS mode (0=Boot, 1=Application)
GRS_MD = 1 / GRS mode (0=Boot, 1=Application)
EPPS_MD = 0 / EPPS mode (0=Boot, 1=Application)
COMM0036 = '--------------------------------------------------------------------'
COMM0037 = '    OCF Global Values from Opticalab'
COMM0038 = '--------------------------------------------------------------------'
GVR_TIME = 109658160 / Time when GV requested.
GV_TIME = 109658160 / Time embedded in GV.
FW1_CON = 0 / Front entr filter wheel 1 connected? (GPIB 12)
FW1_POS = 0 / Front entr filter wheel 1 position.
FW2_CON = 0 / Front entr filter wheel 2 connected? (GPIB 13)
FW2_POS = 0 / Front entr filter wheel 2 position.
MONO_CON = 1 / Monochromator connected?
WAVELEN = 0 / Monochromator wavelength (Angstroms).
FW3_POS = 0 / Side exit filter wheel position. (FW A)
FW4_POS = 0 / Front exit filter wheel position. (FW B)
DIV_MIR = 1 / Diverter mirror position.
STG_CON = 1 / Motion stage connected?
MTR_POW = 0 / Motion stage motor on?
AX1_POS = 0.406000 / Motion stage axis 1 position.
AX2_POS = -0.270000 / Motion stage axis 2 position.
AX3_POS = 105.000 / Motion stage axis 3 position.
AX4_POS = 0.00000 / Motion stage axis 4 position.
AX_MOVE = 0 / Any axes moving?
TC_CON = 1 / Thermocouple reader connected?
TC_VAL01 = -28.1000 / top of NAC
TC_VAL02 = -29.0000 / composite plate
TC_VAL03 = -28.5000 / top of WAC
TC_VAL04 = -4.00000 / liner 12 o'clock
TC_VAL05 = -43.9000 / endbell shroud
TC_VAL06 = -56.3000 / sliding table front edge
TC_VAL07 = -57.3000 / liner 3 o'clock
TC_VAL08 = -56.2000 / liner 9 o'clock
TC_VAL09 = -58.1000 / end bell shroud
TC_VAL10 = 999999. / Not in use
TC_VAL11 = 21.4000 / Outside of integ. sphere
TC_VAL12 = -49.7000 / Coolant to chiller (return)
TC_VAL13 = -54.0000 / Coolant from chiller (supply)
TC_VAL14 = 5.20339E-07 / Target Chamber Vacuum
TC_VAL15 = 2.68246E-06 / Collimator Vacuum
TC_VAL16 = 8.00000E-13 / Monochromator Vacuum
COMM0039 = '--------------------------------------------------------------------'
COMM0040 = '    OCF Sphere values from ocfsphere'
COMM0041 = '--------------------------------------------------------------------'
SVR_TIME = 109658160 / Time when sphere data resquested.
V1 = 2476 / Volts 1 (microvolts).
V2 = 4863 / Volts 2 (microvolts).
V3 = 28838 / Volts 3 (microvolts).
NAVE = 1000 / Samples averaged.
VMAX = 10000 / A/D Max V in millivolts.
LT_BITS = 0 / Sphere lights status bits.
LT_STAT = ' 0 = 0 lights on.'
--- header unit 1: image ---
XTENSION = 'IMAGE' / extension type
BITPIX = 8 / bits per data value
NAXIS = 1 / number of axes
NAXIS1 = 403328
PCOUNT = 0
GCOUNT = 1
EXTNAME = 'raw_image'