Methodology » History » Version 30

LANVIN, Jean-baptiste, 03/23/2016 11:04 AM

1 22 PASCHOS, Alexandros
{{toc}}
2 22 PASCHOS, Alexandros
3 23 PASCHOS, Alexandros
h1. *3.1 APT Demodulation & Decoding*
4 3 PASCHOS, Alexandros
5 6 PASCHOS, Alexandros
The FM signal is demodulated to a 2400Hz audio signal (in wave format). The receiver is responsible for the demodulation of the FM carrier and the output of an AM sub-carrier with the information signal within containing the image data. Every half a second, a row of the image is transmitted. 
6 1 PASCHOS, Alexandros
7 5 PASCHOS, Alexandros
p=. !{width: 50%}https://sourceforge.isae.fr/attachments/download/1829/apt_format_2.jpg(APT Format)!
8 4 PASCHOS, Alexandros
_Figure 3.1 APT Frame Format_
9 4 PASCHOS, Alexandros
10 1 PASCHOS, Alexandros
h2. *3.1.1 AM Demodulation*
11 1 PASCHOS, Alexandros
12 6 PASCHOS, Alexandros
It is important to determine when each row starts for decoding the image. As said before every half of a second a row of the image is transmitted. But in each transmitted row (see Figure above) there are two different images. The first image is the one using the AVHRR visible frequencies (optical) and the second image is coming from the IR. In order to determine the beginning of each row of data for each (visible or IR) image the transmitted message signal contains a distinct syncronization pulse (see Figure 2.2 APT Synchronization).
13 6 PASCHOS, Alexandros
The signal’s cross correlation with the synchronization square waveform gives us the frequency (number of maximums) of the repeated signal, and therefore the start of each row.
14 6 PASCHOS, Alexandros
15 6 PASCHOS, Alexandros
An illustration of the implementation followed is shown in the next Figure.
16 6 PASCHOS, Alexandros
17 14 PASCHOS, Alexandros
p=. !{width: 60%}https://sourceforge.isae.fr/attachments/download/1830/noaa_process_1.png(Process Diagram 1)!
18 6 PASCHOS, Alexandros
_Figure 3.2 Implementation Diagram 1_
19 4 PASCHOS, Alexandros
20 8 PASCHOS, Alexandros
The implementation was done in LabVIEW and the procedure wil be explained step by step. First a Sound File Read is used to read the .wav files and the output was plotted to verify the known 2400 Hz signal.
21 8 PASCHOS, Alexandros
22 21 LANVIN, Jean-baptiste
p=. !{width: 30%}https://sourceforge.isae.fr/attachments/download/1852/PSD.bmp(PSD)!
23 8 PASCHOS, Alexandros
_Figure 3.3 PSD_
24 8 PASCHOS, Alexandros
25 29 LANVIN, Jean-baptiste
By cross correlating the demodulated signal using MT Demodulate AM with the synchronization square wave we have obtained the following figure. The synchronization wave square wave signal is shown in Figure 3.5. It is important to state that when the square wave is ideal the decoded images are better aligned in terms of channel A and B, meaning that the maximums are found correctly and are placed/sorted in a better order.
26 8 PASCHOS, Alexandros
27 11 PASCHOS, Alexandros
p=. !{width: 60%}https://sourceforge.isae.fr/attachments/download/1833/cross_correlation.bmp(Cross Correlation)!
28 29 LANVIN, Jean-baptiste
_Figure 3.4 Cross Correlation obtained with Western Europe Short wav file_
29 1 PASCHOS, Alexandros
30 26 PASCHOS, Alexandros
p=. !{width: 60%}https://sourceforge.isae.fr/attachments/download/1911/CrossCorrelationFlorida.bmp(Noisy Cross Correlation)!
31 29 LANVIN, Jean-baptiste
_Figure 3.5 Cross Correlation with some Noise_
32 25 PASCHOS, Alexandros
33 26 PASCHOS, Alexandros
p=. !{width: 60%}https://sourceforge.isae.fr/attachments/download/1910/synchSquareWave.jpg(Synch)!
34 30 LANVIN, Jean-baptiste
_Figure 3.6 Synchronization Square Wave Signal_
35 25 PASCHOS, Alexandros
36 12 PASCHOS, Alexandros
Showing that the signal is repeated every half second and in between we have the repeated signal of the other channel. The choice of the synchronization wave determines which channel will be decoded and displayed first.
37 12 PASCHOS, Alexandros
This method gave rippled results in the display of the images and another walk-around needed to be thought.
38 12 PASCHOS, Alexandros
39 1 PASCHOS, Alexandros
40 14 PASCHOS, Alexandros
p=. !{width: 60%}https://sourceforge.isae.fr/attachments/download/1831/noaa_process.png(Process Diagram 2)!
41 27 PASCHOS, Alexandros
_Figure 3.7 Implementation Diagram 2_
42 4 PASCHOS, Alexandros
43 1 PASCHOS, Alexandros
h2. *3.1.2 Image Decoding and Display*
44 19 LANVIN, Jean-baptiste
45 19 LANVIN, Jean-baptiste
The image decoding process will be extracted by the matrix which contains the max indexes. A creation of a vector is implemented in LabVIEW with the indexes of maximum value, which will allow us to know when a new image row starts. The next step is to create a matrix using the maximum indexes in order to display the image correctly, this matrix is reffered as raw matrix.
46 19 LANVIN, Jean-baptiste
However, the previous method has bad performances if the signal is noisy. In this case, the maximums of the cross correlation are hardly detectable. Thus a synchronisation error is spreaded along all image's lines.
47 1 PASCHOS, Alexandros
In order to avoid this effect, we decided to synchronised the lines using only the first maximum of the cross correlation. As we know that a line is composed àf 2080 pixels we are able to build the entire image based on this maximum.
48 16 PASCHOS, Alexandros
49 18 PASCHOS, Alexandros
p=. !{width: 50%}https://sourceforge.isae.fr/attachments/download/1836/sorted_mixed_signal.bmp(Sorted Signal)!
50 27 PASCHOS, Alexandros
_Figure 3.8 Sorted Signal_
51 16 PASCHOS, Alexandros
52 16 PASCHOS, Alexandros
Lastly, a grayscle pattern is created to be used as an input for the Flatten Pixmap (0 for the minimum value and 255 for the maximum value) and this is inserted into the Draw Flatten Pixmap module.
53 16 PASCHOS, Alexandros
54 28 LANVIN, Jean-baptiste
Remark : We had some issues concerning full memory when decoding the biggest wav file. In fact, labview does not support arrays with sizes over a certain threshold. But this threshold is widely exceeded with our images. Thus, we had to compute the image in several pieces and get them together at the end of the process.
55 28 LANVIN, Jean-baptiste
56 28 LANVIN, Jean-baptiste
h2. *3.1.3 References*
57 24 PASCHOS, Alexandros
58 24 PASCHOS, Alexandros
[1] "Canary Satellite":http://www.canarysatellite.com/apt_format.html