kopia lustrzana https://github.com/cyoung/stratux
fixed up some alignment stuff, and TAG -> TAF
rodzic
40239bcaf5
commit
88af801fb5
|
@ -390,20 +390,28 @@ func parseInput(buf string) ([]byte, uint16) {
|
||||||
}
|
}
|
||||||
|
|
||||||
var product_name_map = map[int]string{
|
var product_name_map = map[int]string{
|
||||||
0: "METAR", 20: "METAR", //"METAR and SPECI";
|
0: "METAR",
|
||||||
1: "TAG", 21: "TAF", //"TAF and Amended TAF";
|
1: "TAF",
|
||||||
2: "SIGMET", 22: "SIGMET", //"SIGMET";
|
2: "SIGMET",
|
||||||
3: "Conv SIGMET", 23: "Conv SIGMET", //"Convective SIGMET";
|
3: "Conv SIGMET",
|
||||||
4: "AIRMET", 24: "AIRMET", //"AIRMET";
|
4: "AIRMET",
|
||||||
5: "PIREP", 25: "PIREP", //"PIREP";
|
5: "PIREP",
|
||||||
6: "Severe Wx", 26: "Severe Wx", //"AWW";
|
6: "Severe Wx",
|
||||||
7: "Winds Aloft", 27: "Winds Aloft", //"Winds and Temperatures Aloft";
|
7: "Winds Aloft",
|
||||||
8: "NOTAM", //"NOTAM (Including TFRs) and Service Status";
|
8: "NOTAM", //"NOTAM (Including TFRs) and Service Status";
|
||||||
9: "D-ATIS", //"Aerodrome and Airspace – D-ATIS";
|
9: "D-ATIS", //"Aerodrome and Airspace – D-ATIS";
|
||||||
10: "Terminal Wx", //"Aerodrome and Airspace - TWIP";
|
10: "Terminal Wx", //"Aerodrome and Airspace - TWIP";
|
||||||
11: "AIRMET", //"Aerodrome and Airspace - AIRMET";
|
11: "AIRMET", //"Aerodrome and Airspace - AIRMET";
|
||||||
12: "SIGMET", //"Aerodrome and Airspace - SIGMET/Convective SIGMET";
|
12: "SIGMET", //"Aerodrome and Airspace - SIGMET/Convective SIGMET";
|
||||||
13: "SUA", //"Aerodrome and Airspace - SUA Status";
|
13: "SUA", //"Aerodrome and Airspace - SUA Status";
|
||||||
|
20: "METAR", //"METAR and SPECI";
|
||||||
|
21: "TAF", //"TAF and Amended TAF";
|
||||||
|
22: "SIGMET", //"SIGMET";
|
||||||
|
23: "Conv SIGMET", //"Convective SIGMET";
|
||||||
|
24: "AIRMET", //"AIRMET";
|
||||||
|
25: "PIREP", //"PIREP";
|
||||||
|
26: "Severe Wx", //"AWW";
|
||||||
|
27: "Winds Aloft", //"Winds and Temperatures Aloft";
|
||||||
51: "NEXRAD", //"National NEXRAD, Type 0 - 4 level";
|
51: "NEXRAD", //"National NEXRAD, Type 0 - 4 level";
|
||||||
52: "NEXRAD", //"National NEXRAD, Type 1 - 8 level (quasi 6-level VIP)";
|
52: "NEXRAD", //"National NEXRAD, Type 1 - 8 level (quasi 6-level VIP)";
|
||||||
53: "NEXRAD", //"National NEXRAD, Type 2 - 8 level";
|
53: "NEXRAD", //"National NEXRAD, Type 2 - 8 level";
|
||||||
|
@ -431,10 +439,13 @@ var product_name_map = map[int]string{
|
||||||
352: "Status", //"Operational Status";
|
352: "Status", //"Operational Status";
|
||||||
353: "Status", //"Ground Station Status";
|
353: "Status", //"Ground Station Status";
|
||||||
401: "Imagery", //"Generic Raster Scan Data Product APDU Payload Format Type 1";
|
401: "Imagery", //"Generic Raster Scan Data Product APDU Payload Format Type 1";
|
||||||
402: "Text", 411: "Text", //"Generic Textual Data Product APDU Payload Format Type 1";
|
402: "Text",
|
||||||
403: "Vector Imagery", //"Generic Vector Data Product APDU Payload Format Type 1";
|
403: "Vector Imagery", //"Generic Vector Data Product APDU Payload Format Type 1";
|
||||||
404: "Symbols", 412: "Symbols", //"Generic Symbolic Product APDU Payload Format Type 1";
|
404: "Symbols",
|
||||||
405: "Text", 413: "Text", //"Generic Textual Data Product APDU Payload Format Type 2";
|
405: "Text",
|
||||||
|
411: "Text", //"Generic Textual Data Product APDU Payload Format Type 1";
|
||||||
|
412: "Symbols", //"Generic Symbolic Product APDU Payload Format Type 1";
|
||||||
|
413: "Text", //"Generic Textual Data Product APDU Payload Format Type 2";
|
||||||
}
|
}
|
||||||
|
|
||||||
func getProductNameFromId(product_id int) string {
|
func getProductNameFromId(product_id int) string {
|
||||||
|
|
Ładowanie…
Reference in New Issue