 key.WN = 1;         %  GPS Week Number
 key.TIME = 2;       %  GPS Time [Sec]
 key.CLKBIAS = 3;    %  Clock Offset [ms]
 key.RAIM = 4;       %  RAIM INFO
 key.SV = 5; % SV ID
 key.FDMA = 6; % FDMA Channel (GLONASS)
 key.channel = 7; % Receiver Channel
 key.SAT_TYPE = 8; % Satellite Type
 key.SV_FLAGS = 9; % Satellite Flags
 flag.dSV_FLAGS_DELETED = 1;
 flag.dSV_FLAGS_UNHEALTHY = 2;
 flag.dSV_FLAGS_RAIM_ERR = 4;
 flag.dSV_FLAGS_PHS_SMOOTH = 8;
 flag.dSV_FLAGS_CODE_SMOOTH = 16;
 flag.dSV_FLAGS_VAR_CODE_SMOOTH = 32;
 flag.dSV_FLAGS_FAULT_MM_RAIM = 64;
 flag.dSV_FLAGS_FAULT_WLS_RAIM = 128;
 flag.dSV_FLAGS_FAULT_KF_RAIM = 256;
 flag.dSV_FLAGS_FAULT_SBAS_MSG = 512;
 flag.dSV_FLAGS_FAULT_CNAV = 1024;
 flag.dSV_FLAGS_FAULT_FFT_CORR = 2048;
 flag.dSV_FLAGS_FAULT_RTX_POS = 4096;
 flag.dSV_FLAGS_FAULT_SYS_RAIM = 8192;
 flag.dSV_FLAGS_FAULT_ALERT = 16384;
 flag.dSV_FLAGS_FAULT_EPH = 32768;
 flag.dSV_FLAGS_FAULT_NMA = 65536;
 key.AZ = 10; % Azimuth [deg]
 key.EL = 11; % Elevation [deg]
 key.FREQ = 12; % blockType = Frequency Band
 key.TRACK = 13; % trackType = Track Type
 key.PHASE = 14; % Phase [Cycles]
 key.RANGE = 15; % Pseudorange [m]
 key.DOPP = 16; % Doppler [Hz]
 key.CNO = 17; % C/No [dBHz]
 key.SLIP_CNT = 18; % Cycle Slip Counter
 key.MEAS = 19; % Measurement Flags
 flag.dMEAS_PHASE_VALID = 1;
 flag.dMEAS_DOPP_VALID = 2;
 flag.dMEAS_RANGE_VALID = 4;
 flag.dMEAS_LOCK_POINT = 8;
 flag.dMEAS_POS_LOCK_POINT = 16;
 flag.dMEAS_XCORR_WAIT = 32;
 flag.dMEAS_UNHEALTHY = 64;
 flag.dMEAS_MULTIPATH = 128;
 flag.dMEAS_SLIP = 256;
 flag.dMEAS_MASTER_SUB = 512;
 flag.dMEAS_REC27 = 1024;
 flag.dMEAS_JAMMER = 2048;
 flag.dMEAS_CODE_PULLIN = 4096;
 flag.dMEAS_SCINT_LO = 8192;
 flag.dMEAS_SCINT_HI = 16384;
 key.ANTENNA = 20; % Antenna #
 key.CSTATE = 21; % CSTATE in rec35:19 - not st_iface*.h value
 key.SCINT_FLAGS = 22; % Scintillation Flags
%
