Spectrum Scope File Format
--------------------------

The spectrum scope file starts with a header, followed by data blocks ("chunks"):

Header
Chunk 1
Chunk 2
Chunk 3
etc.

The 44-byte header has the following format:

32 bytes    ASCII string "WiNRADiO RF Spectrum Sweep File" followed by character 26
4 bytes     Start frequency in Hz
4 bytes     End frequency in Hz
4 bytes     Step size (sampling interval) in Hz

Each chunk has the following header of 8 bytes:
4 bytes     Chunk ID of four ASCII characters
4 bytes     Length of entire chunk rounded up to a multiple of 4 bytes
            not including chunk header itself)

"SSWP" (50575353 hex) chunk format:

This chunk contains data for a single sweep (multiple sweeps can be included in a file).

4 bytes     Start date of sweep (integer number of days from 1/1/0001)
4 bytes     Start time of sweep (integer number of seconds from midnight)
4 bytes     End date of sweep 
4 bytes     End time of sweep 
4 bytes     Number of samples in sweep
2 bytes     Color code of sweep (one of 33 predefined colors), -1=invisible
2 bytes     Number of bytes between this field and the sweep data following
            (provided for expansion reasons)
n bytes     Data samples. Each sample is one byte representing the signal strength at the
            appropriate frequency (start + n * stepsize)

(The rest is zero padded to make the chunk a multiple of four bytes long.)

"MRKR" (524B524D hex) chunk format:

This chunk contains marker information that is used in Series 3100:
4 bytes     The frequency of the marker
4 bytes     The color of the marker (one of 33 predefined colors)

No other chunk types are defined at this time.

Table of 33 predefined colors (index 0 to 32):

0     Black
1     White
2     Pale Red
3     Pale Orange
4     Pale Yellow
5     Pale Green
6     Pale Aqua
7     Pale Blue
8     Pale Purple
9     Lt Grey
10    Lt Red
11    Lt Orange
12    Lt Yellow
13    Lt Green
14    Lt Aqua
15    Lt Blue
16    Lt Purple
17    Grey
18    Red
19    Orange
20    Yellow
21    Green
22    Aqua
23    Blue
24    Purple
25    Dk Grey
26    Dk Red
27    Dk Orange
28    Dk Yellow
29    Dk Green
30    Dk Aqua
31    Dk Blue
32    Dk Purple

Note: The above format must be adhered to. Unexpected effects may occur if a non-compliant file 
created by a third-party application program is loaded. However, this can not damage the receiver.

