junzis / pyModeS

Python decoder for Mode S and ADS-B signals
GNU General Public License v3.0
527 stars 151 forks source link

The postition out of range #102

Closed Sharonmy closed 2 years ago

Sharonmy commented 3 years ago

Hi~I have transformed my data as the same format as 'sample_data_adsb.csv',and I run the progress 'sample_run_adsb.py' successfully,but why i got much wrong location ? image image

wrobell commented 3 years ago

The script implements very simple algorithm to calculate these positions. If you look into ICAO document, you will see that much more checks are required to filter out invalid data.

Also see discussion in #60.

junzis commented 3 years ago

@Sharonmy, this script is simply a quick and dirty way to check the decoding functions. You can take a look at the following script to see how the entire decoding flow works: https://github.com/junzis/pyModeS/blob/master/pyModeS/streamer/decode.py