aeharding / aeharding/metar-taf-parser

Weather conditions are not showing up in remarks

Đang mở
#78 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
65
Fork
15
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

I've tried [demo](https://aeharding.github.io/metar-taf-parser/metar?input=KTTN+051853Z+04011KT+1+1%2F2SM+VCTS+SN+FZFG+BKN003+OVC010+M02%2FM02+A3006+RMK+AO2+TSB40+SLP176+P0002+T10171017%3D) example on website:

```ts
weatherConditions: [
{
"intensity": "VC",
"descriptive": "TS",
"phenomenons": []
},
{
"phenomenons": [
"SN"
]
},
{
"descriptive": "FZ",
"phenomenons": [
"FG"
]
}
]
```

```ts
remarks: [
{
"type": "AO2",
"description": "automated station with a precipitation discriminator",
"raw": "AO2"
},
{
"type": "PrecipitationBeg",
"description": "thunderstorm beginning at :40",
"raw": "TSB40",
"phenomenon": "TS",
"startMin": 40
},
{
"type": "SeaLevelPressure",
"description": "sea level pressure of 1017.6 HPa",
"raw": "SLP176",
"pressure": 1017.6
},
{
"type": "HourlyPrecipitationAmount",
"description": "2/100 of an inch of precipitation fell in the last hour",
"raw": "P0002",
"amount": 0.02
},
{
"type": "HourlyTemperatureDewPoint",
"description": "hourly temperature of -1.7°C and dew point of -1.7°C",
"raw": "T10171017",
"temperature": -1.7,
"dewPoint": -1.7
}
]
```

Unfortunatelly `remarks` don't really contain any weather information, while there are some mappings in [en locale](https://github.com/aeharding/metar-taf-parser/blob/main/src/locale/en.ts) to describe that. Is this a bug & is it fixable?

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.