Adding MID codes for ground stations, by continent.
This commit is contained in:
parent
4eba6d87e5
commit
9e8e55eb4f
|
|
@ -1,4 +1,4 @@
|
|||
from csdr.chain.demodulator import ServiceDemodulator, DialFrequencyReceiver, FixedIfSampleRateChain
|
||||
from csdr.chain.demodulator import ServiceDemodulator, DialFrequencyReceiver
|
||||
from csdr.module.toolbox import Rtl433Module, MultimonModule, DumpHfdlModule, DumpVdl2Module, Dump1090Module, AcarsDecModule, RedseaModule, SatDumpModule
|
||||
from pycsdr.modules import FmDemod, AudioResampler, Convert, Agc, Squelch
|
||||
from pycsdr.types import Format
|
||||
|
|
|
|||
|
|
@ -204,6 +204,11 @@ Utils.mmsi2country = function(mmsi) {
|
|||
return mid in this.MID2COUNTRY? this.MID2COUNTRY[mid] : '';
|
||||
};
|
||||
|
||||
// Check if a MID corresponds to a ground station.
|
||||
Utils.mmsiIsGround = function(mmsi) {
|
||||
return mmsi.substring(0, 2) === '00';
|
||||
};
|
||||
|
||||
//
|
||||
// Local Storage Access
|
||||
//
|
||||
|
|
@ -1015,6 +1020,12 @@ Utils.CALL2COUNTRY = {
|
|||
//
|
||||
|
||||
Utils.MID2COUNTRY = {
|
||||
"002" : "Ground Station (Europe)",
|
||||
"003" : "Ground Station (North America)",
|
||||
"004" : "Ground Station (Asia)",
|
||||
"005" : "Ground Station (Oceania)",
|
||||
"006" : "Ground Station (Africa)",
|
||||
"007" : "Ground Station (South America)",
|
||||
"501" : "Adelie Land (France)",
|
||||
"401" : "Afghanistan",
|
||||
"303" : "Alaska (USA)",
|
||||
|
|
|
|||
Loading…
Reference in New Issue