j'étais parti pour taper l'algo à la mano.
Version imprimable
j'étais parti pour taper l'algo à la mano.
un exemplaire du fichier : non car je n'en ai pas encore.
Par contre voici le format d'un mot Arinc reçu:
Bit No. Function Coding with LSB first (lowest bit number)
1–8 Label 1=LSB, 8=MSB
9–10 Control accept
11 Slave 0=normal (master), 1=slave
12–15 Weather alerts 0=normal, 1=alert
16 Anticlutter 0=clutter elimination off, 1=on
17 Sector scan 0=normal scan, 1=reduced scan
18 Stabilization limits 0=normal, 1=exceeding stab limits
19–25 System faults 0=normal, 1=fault
26 Stabilization 0=off, 1=on
27–29 Mode codes
30–36 Tilt From –16° to +15.75° in steps of 0.25°
37–42 Gain From 0 to –62 in steps of –1 (–63=calibrated gain)
43–48 Range From 5 nm to 320 nm in steps of 5 nm (0=320 nm)
49 Windshear external input fault 0=normal, 1=input fault detected
50–51 Data accept
52–63 Scan angle From 0° to 359.9121° in steps of 0.0879°
64 Windshear fail 0=normal, 1=windshear not available
65–67 Range bin #1 data 3-bit range bin field
0=Reflectivity below Z2
1=Reflectivity Z2 to Z3
2=Reflectivity Z3 to Z4
3=Reflectivity Z4 to Z5
4=Reflectivity above Z5
5=Reserved
6=Medium turbulence
7=Heavy turbulence
Color Code (Std./Opt.)
Black Black
Green Green
Yellow Yellow
Red Red
Red Magenta
Cyan Cyan
Magenta White
Magenta White
68–70 Range bin #2 data
71–73 Range bin #3 data
.
.
.
.
.
.
1598–1600 Range bin #512
Ça devient effectivement beaucoup plus clair avec ces indications. Chaque « mot » de 1600 représente donc les informations d'un « rayon », acquises lorsque l'antenne se trouve orientée dans une direction donnée. Tu disposes donc de 512 pixels par rayon.
L'avantage est que atan(1÷512) ≈ 0,112 ° et que le pas d'angle minimum de ton antenne est en dessous de cette valeur avec 0,0879 °. Tu peux donc te contenter d'inscrire ton cercle dans un carré de 1024×1024 pixels, l'image sera toujours complète même au bord du cercle (si tant est que l'équipement t'envoie réellement des données avec une telle précision d'arc, ce qui est peu probable).