2.5.2 Level 0 Instrument Source Packet Description
Processing of raw data from Level 0 packets will
require extraction of the Instrument
Source Packets from the Level 0 Product.
The following sections describe the packet
structure and arrangement for five
types of ASAR Level0 products, the Image mode, Wide Swath mode, Wave mode, Global Monitoring mode,
and Alternating Polarisation
mode. A description of decompressing FBAQ-coded
data is given last.
Packet Structure
Level 0 Measurement Data Sets consist of
Annotation Packet and Instrument
Source Packets. The Annotation Packet
contains five fields: date code, length of
ISP packet, two error counters and a
spare word. The Annotations are
shown in detail in table 2.14 . The length word in this
packet is corrected with any
identified transmission errors (as
compared to the ISPs) and is more reliable.
|
Table 2.14 Annotation Packet
|
| Annotation |
Time Stamp |
12 bytes, MJD2000 |
| Length of ISP word |
Length - 6 - 1 |
| Count of CRC errors word |
Number of errored VCDUs |
| Count of RS errors word |
Number of errored VCDUs |
| spare word |
|
The Instrument Source Packets consist of a number
of 16-bit words arranged in a Header
which includes Identification,
Sequence Control and Length. The Packet Data
field follows the Header and
contains a Data Field (sub-)Header,
Source Data Field and optional Packet Error Control.
Bits are displayed left-to-right, numbering from
0, and with least significant byte
on the right, as for ordinary
numbers. The Packet header is shown in table 2.15 below.
| Packet Header |
Packet Identification word |
Version, Type, DataField,
Application ID |
| Packet Sequence Control word |
Segment counter (in the 14 LSB) |
| Packet Length word |
Length minus one |
| Packet Data |
Header Length word |
always 30 |
| Instrument mode word |
see table 2.17
|
| Time Code 5 bytes |
Free-running 65536 Hz |
| spare byte |
|
| Mode Packet Count 3 bytes |
|
| Antenna Beam Set number |
6bits, characterised prior to launch |
| Compression Ratio |
2bits coded |
| Echo Flag |
1bit, True if Echo data |
| Noise Flag |
1bit, True if Noise data |
| Cal Flag |
1bit, True if Calibration data |
| Cal Type |
1bit, True if Periodic Cal data |
| Cycle Packet Count |
12bits |
| Pulse Repetition Interval word |
PRI * RadarSamplingRate |
| Window Start Time word |
Windowtime * RadarSamplingRate |
| Window Length word |
Windowlength * RadarSamplingRate |
| Upconverter Level word |
4bits, 2*Gain (dB) |
| Downconverter Level word |
5bits, 1*Gain (dB) |
| TX Polarisation |
1bit, True if Vertical |
| RX Polarisation |
1bit, True if Vertical |
| Calibration Row number |
5bits, used during Periodic Cal |
| TX Pulse Length |
10bits, Pulselength * RadarSampling Rate |
| Beam Adjustment Delta |
6bits, delta*4096/360+32 |
| Chirp Pulse Bandwidth |
8bits, BW*255/16E6 |
| Auxiliary TX Monitor Level |
8bits, |
| Resampling Factor word |
values 1 to 64 are valid |
In the Identification word, Version, Type, and
DataField are constants, with
Application ID represented in 11 bits. These
vary by instrument mode as shown in table 2.16 . The Segment counter
represents data segment sequence
number and is reset to zero for ASAR mode
changes. The Length word represents data lengths
from 1 to 65536, except the
minimum length is actually 1008 due to
data transmission requirements.
The Packet Data entries in the table give details
of the settings of the radar during
operation. The code words for Pulse
Repetition Interval, Window Start-time, etc
are described in the third column
showing the calculation for the code
word. To obtain the actual value, manipulate
the algebraic expression, so that PRI =
codeword/RadarSamplingRate. For example,
codeword=10300,
RadarSamplingRate=1/19.2MHz, PRI =
10300/19.2E6=536 microseconds.
The compression ratio code is: 00 for 8/4
compression; 01 for 8/4 compression;
10 for 8/3 compression; 11 for 8/2
compression where 8/2 indicates 8 bits
compressed to two using FBAQ
flexible block-adaptive quantisation.
|
Table 2.16 Application ID Codes.
|
|
Application ID Code
|
ASAR Mode
|
| 578 |
Wave |
| 56B |
Global Monitoring Mode |
| 56D |
Module Stepping Mode |
| 614 |
Image Mode |
| 61B |
Wide Swath Mode |
| 607 |
Alternating Polarisation (co-polar) Mode |
| 608 |
Alternating Polarisation
(Cross-polar H) Mode |
| 60D |
Alternating Polarisation
(Cross-polar V) Mode |
The Application Identification codes
listed in table 2.16 appear in the first
word of the Packet Header as the
least significant 11 bits. The most
significant bits are the pattern 10001.
Therefore the first word of the
packet for Image Mode will be 8E14.
|
Table 2.17 Instrument Mode Words
|
| Mode Identifier Code |
Mode |
| 54 |
Image Mode |
| 5B |
Wide Swath |
| 98 |
Wave Mode |
| AB |
Global Monitoring Mode |
| 67 |
AP Co-Polar Mode |
| 68 |
AP Cross-Polar H |
| A4 |
AP Cross-Polar V |
Image Mode Packets
During Image mode a continuous series of pulses
and echoes are acquired. The initial
transmissions include a calibration
sequence, but this changes to interleaved
echo measurement and calibration pulses. Figure
1 shows the arrangement of
transmissions and echo receptions.
|
Table 2.18 Image mode Source Packets
|
|
Number of Source Packets
|
Source Packet Contents
|
|
8
|
noise |
|
97
|
initial calibration |
|
1023
|
echo |
|
1
|
periodic calibration |
|
1023
|
echo |
|
1
|
periodic calibration |
|
...
|
... |
|
1023
|
echo |
|
1
|
periodic calibration |
|
8
|
noise |
|
Table 2.19 Source Packet Format Echo Data (Averaging Mode)
|
| First Block |
64 bytes |
8bits |
Block ID code |
|
|
4bits |
I-channel codeword |
|
|
4bits |
Q-channel codeword |
|
|
4bits |
I-channel codeword |
|
|
4bits |
Q-channel codeword |
|
|
... |
... |
|
|
4bits |
I-channel codeword #63 |
|
|
4bits |
Q-channel codeword #63 |
| Second Block |
64 bytes |
8bits |
Block ID Code |
|
|
4bits |
I-channel codeword |
|
|
4bits |
Q-channel codeword |
|
|
|
|
| Last Block |
even number of bytes |
8bits |
Block ID Code |
|
|
4bits |
I-channel codeword |
|
|
4bits |
Q-channel codeword |
|
filler |
8bits |
to make 972 bytes minimum length and
to make length even |
Table 2.19 shows the Packet Format
for averaging mode (4-bit
quantisation). This format applies
to both Image Mode and Wide Swath Mode. The
filler bytes are added to ensure 972
bytes of source packet plus 6byte
packet header and 30 byte packet data header are
1008 bytes or longer. This data size
is the minimum transmitted in CCSDS
format used in the spacecraft downlink.
|
Table 2.20 Source Packet Format Calibration Data (8bit quantisation)
|
| Size |
8bits |
8bits |
8bits |
8bits |
...
|
8bits |
8bits |
|
I0 |
Q0 |
I1 |
Q1 |
...
|
Ilast |
Qlast |
Table 2.20 shows the format of the
Calibration data, which are
always quantised to 8 bits. The number
of samples in a sampling window is given in the
Window Length codeword in table 2.15 .
|
Table 2.21 Noise Data Packet Format
|
| Number of bits |
4 |
4 |
4 |
4 |
... |
4 |
4 |
e*8 |
|
I |
Q |
I |
Q |
I |
Q |
filler |
Table 2.21 shows the format of
Noise data. The data are padded to
972 bytes if necessary.
Wide Swath Mode Packets
|
Table 2.22 Wide Swath Mode Source Packets
|
|
Number of Packets
|
Source Packet
Contents
|
| 8 |
noise |
subswath 1 |
initial noise and
calibration sequence |
| 97 |
initial calibration |
| 8 |
noise |
subswath 2 |
| 97 |
initial calibration |
|
...
|
| 8 |
noise |
subswath Q |
| 97 |
initial calibration |
| R1-2 |
noise |
subswath 1 |
first cycle |
| M1 |
echo |
| 1 |
periodic cal |
| R2-2 |
noise |
subswath 2 |
| M2 |
echo |
| 1 |
periodic cal |
|
...
|
| Rp-2 |
noise |
subswath P |
| Mp |
echo |
| 1 |
periodic cal |
|
...
|
| R1-2 |
noise |
subswath 1 |
last cycle |
| M1 |
echo |
| 1 |
periodic cal |
| R2-2 |
noise |
subswath 2 |
| M2 |
echo |
| 1 |
periodic cal |
|
...
|
| Rp-2 |
noise |
subswath P |
| Mp |
echo |
| 1 |
periodic cal |
In Wide Swath Mode the radar is operated in
subswaths, Q <= 6, and within a
cycle a subswath may be sampled again,
up to P samples per cycle, where P<=12.
Each packet shown is comprised of
data samples described in table 2.19 Source Packet Format
Echo Data. Table 2.20 and Table 2.21 for calibration data,
periodic calibration data and noise
data also apply.
Wave Mode Packets
The Wave Mode packets consist of compressed echo
packets (compressed 8 to 2),
calibration packets and noise packets,
interleaved as shown in table 2.22 , below.
|
Table 2.23 Wave Mode Source Packets
|
| Number of Packets |
Source Packet Contents |
| 1 |
Calibration |
first subcycle |
first cycle |
| 1 |
noise |
| 1 |
Calibration sequence |
| M1/8 |
echo |
| 1 |
calibration |
second subcycle |
| 1 |
noise |
| 1 |
calibration sequence |
| M2/8 |
echo |
| 1 |
Calibration |
first subcycle |
second cycle |
| 1 |
noise |
| 1 |
Calibration sequence |
| M1/8 |
echo |
| 1 |
calibration |
second subcycle |
| 1 |
noise |
| 1 |
calibration sequence |
| M2/8 |
echo |
|
|
last cycle
(truncated)
|
In Wave Mode there are two calibration intervals,
a chirp calibration with 2 windows
(called simply
"Calibration" in the table), and
continuous wave (CW) calibration
with 97 windows ("Calibration
Sequence" in the table). The echo data is 8
windows and noise data is 8 windows.
|
Table 2.24 Source Packet Format Echo (8/2 compression mode)
|
| first
sampling window |
first block |
64 bytes |
8bits |
Block ID Code |
| 2bits |
I-channel codeword |
| 2bits |
Q-channel codeword |
| 2bits |
I-channel codeword |
| 2bits |
Q-channel codeword |
|
...
|
| 2bits |
I-channel codeword |
| 2bits |
Q-channel codeword |
| second block |
64 bytes |
8bits |
Block ID Code |
| 2bits |
I-channel codeword |
| 2bits |
Q-channel codeword |
|
...
|
|
...
|
| last block |
c+d bytes |
8bits |
Block ID Code |
| 2bits |
I-channel codeword |
| 2bits |
Q-channel codeword |
|
d
filler bytes
|
| second
sampling window |
first block |
64 bytes |
8bits |
Block ID Code |
| 2bits |
I-channel codeword |
| 2bits |
Q-channel codeword |
| 2bits |
I-channel codeword |
| 2bits |
Q-channel codeword |
|
...
|
|
|
|
...
|
|
...
|
| 8th sampling window |
... |
|
last block |
c+d bytes |
2bits |
Q-channel codeword |
|
|
|
d filler bytes |
In the wave mode data, each sampling window
contains blocks corresponding to
PRIs, and sample codewords with quantity
specified in the data header. The 2bit
codewords are uncompressed in
accordance with FBAQ decoding scheme. This
is explained in SECTION TBD. Filler bytes
are added when necessary to provide
1008 byte blocks when the packet header
(36 bytes) is included.
|
Table 2.25 Wave Mode Calibration Packets
|
|
first calibration window |
second window |
... |
last window |
| Number of bits |
8 |
8 |
8 |
8 |
... |
8 |
8 |
8 |
8 |
|
... |
8 |
8 |
|
I |
Q |
I |
Q |
I |
Q |
I |
Q |
I |
Q |
Calibration packets in Wave mode appear in either
3 windows or 97 windows depending on
the calibration pulse (chirp and CW
respectively). The data are quantised to 8 bits
not compressed.
|
Table 2.26 Wave Mode Noise Packet
|
|
first noise window |
second window |
... |
last window |
| Number of bits |
4 |
4 |
4 |
4 |
... |
4 |
4 |
e*8 |
4 |
4 |
|
... |
4 |
e*8 |
|
I |
Q |
I |
Q |
I |
Q |
filler |
I |
Q |
Q |
filler |
The Wave Mode noise packet is formatted to sign
and magnitude with fixed exponent.
The number of samples is defined in the
data header Window Length word, divided by
the Resampling factor.
Global Monitoring Mode
|
Table 2.27 GM Mode Source Packets
|
| Number of Source Packets |
Source Packet Contents |
| 8 |
noise |
subswath 1 |
initial
noise/calibration sequence |
| 1 |
initial cal (97) |
| 8 |
noise |
subswath 2 |
| 1 |
initial cal (97) |
|
...
|
| 8 |
noise |
subswath Q (Q<=6) |
| 1 |
initial cal (97) |
| 1 |
periodic calibration |
first subswath |
first subcycle |
first cycle (odd) |
| 1 |
echo (M1 PRI) |
| 1 |
periodic calibration |
second subswath |
| 1 |
echo (M2 PRI) |
|
...
|
| 1 |
periodic calibration |
p-th subswath |
| 1 |
echo (M2 PRI) |
| 1 |
echo (M1 PRI) |
first subswath |
second subcycle |
| 1 |
echo (M2 PRI) |
second subswath |
| ... |
| 1 |
echo (Mp PRI) |
p-th subswath |
|
noise |
first subswath |
S-th subcycle |
|
...
|
| 1 |
echo (M1 PRI) |
pth-subswath |
| 1 |
noise |
first subswath |
first subcycle |
second cycle (even) |
| 1 |
echo (M1 PRI) |
| 1 |
noise |
second subswath |
|
...
|
|
...
|
|
...
|
|
...
|
| 1 |
periodic cal/noise |
first subswath |
first subcycle |
Nth cycle (odd or even) |
| 1 |
echo (M1 PRI) |
|
...
|
|
...
|
|
GM Mode echo packets are as described in Table 2.19 , Averaging Mode.
GM Mode Calibration data are described in Table 2.20 .
GM Mode Noise data are described in Table 2.26 .
Alternating Polarisation Mode
In this mode each sampling window contains either
echo data, initial calibration,
periodic calibration or noise data. The
periodic calibration data is four sampling
windows. In table 2.28 following, the format
for VV-HH (co-polar) mode is shown.
Cross-polar modes VV and HH are
similar except VV becomes HV and HH becomes VH.
|
Table 2.28 Alternating Polarisation Mode Source Packets
|
| Number of source packets |
Source packet contents |
| 8 |
noise (VV) |
initial
noise/cal sequence |
| 8 |
noise (HH) |
| 97 |
initial calibration (VV) |
| 97 |
initial calibration (HH) |
| M-1 |
echo (VV) |
V-cal subcycle |
first cycle |
| 1 |
periodic cal (VV) |
| M |
echo (HH) |
| M |
echo (VV) |
| M |
echo (HH) |
| M |
echo (VV) |
H-cal subcycle |
| M-1 |
echo (HH) |
| 1 |
periodic cal (HH) |
| M |
echo (VV) |
| M |
echo (HH) |
|
...
|
| M-1 |
echo (VV) |
V-cal subcycle |
last cycle |
| 1 |
periodic cal (VV) |
| M |
echo (HH) |
| M |
echo (VV) |
| M |
echo (HH) |
| M |
echo (VV) |
H-cal subcycle |
| M-1 |
echo (HH) |
| 1 |
periodic cal (HH) |
| M |
echo (VV) |
| M |
echo (HH) |
| 8 |
noise (VV) |
|
|
| 8 |
noise (HH) |
|
|
Packet contents for the AP source packets have
been described earlier. Table 2.19 describes the echo data,
Table 7 calibration, Table 8 for noise.
Decompression of FBAQ-coded data
FBAQ compresses the raw SAR echo data from 8 bits
per sample to 4, 3 or 2 bits per
sample, abbreviated 8/4, 8/3, 8/2.
This is a lossy compression method, meaning
that distortion in the form of
"quantization noise" is
added. The distortion is proportional to the
degree of compression.
Decompression of FBAQ-coded data is accomplished
with the use of look-up-tables,
abbreviated LUTs. The LUTs map the
codewords to normalized floating-point
values. There is one LUT for
I-channel and one for the Q-channel when
corrections for the differences in
analog-to-digital (ADC) converters
are applied.
The LUTs are determined from the standard
deviation and mean of the SAR data.
The threshold values are not uniform but
are selected to produce results with minimum
least-square error, based on statistics of SAR
echoes. The reconstructed value is
based on the threshold values and
code words. The same tables may be used for
positive and negative values (the
reconstructed values are symmetric
about zero).
Table 2.29 , table 2.30 and table 2.31 show the threshold
values for 4-bit, 3-bit and 2-bit reconstruction.
|
Table 2.29 Constants for 4-bit BAQ
|
|
n
|
Cn
|
Dn
|
|
0
|
0
|
0.1284
|
|
1
|
0.2583
|
0.3882
|
|
2
|
0.5226
|
0.6569
|
|
3
|
0.7998
|
0.9426
|
|
4
|
1.0995
|
1.2565
|
|
5
|
1.4374
|
1.6183
|
|
6
|
1.8338
|
2.0693
|
|
7
|
2.4011
|
2.7328
|
|
Table 2.30 Constants for 3-bit BAQ
|
|
n
|
Cn
|
Dn
|
|
0
|
0
|
0.2451
|
|
1
|
0.5006
|
0.7561
|
|
2
|
1.0500
|
1.3440
|
|
3
|
1.7480
|
2.1520
|
|
Table 2.31 Constants for 2-bit BAQ
|
|
n
|
Cn
|
Dn
|
|
0
|
0
|
0.4528
|
|
1
|
0.9816
|
1.5104
|
The reconstruction thresholds are
| | eq 2.1 |
where Dn is given in the tables
above, and is the standard deviation and
is the mean. For SAR
data the mean is zero, and the standard
deviation is given in the BlockID.
The decompression algorithm is then
For each range line
For each block in the range line
read the BlockID
Select a LUT corresponding to
compression level
and BlockID
unpack FBAQ codewords
reconstruct data using codewords and
LUT entry
The LUT is an array which is 256 entries across
(corresponding to the 8-bit BlockID) and 16-rows
(for 4-bit), 8-rows (for 3-bit), and
4-rows (for 2-bit compression). The
values of the entries of the six different
LUTs (one each for I and Q, three different
quantisations) are provided in the
Instrument Characterisation File 6.5.2. .
|