Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

石神井川 #6

Closed
nbtk opened this issue Jun 3, 2023 · 2 comments
Closed

石神井川 #6

nbtk opened this issue Jun 3, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@nbtk
Copy link
Owner

nbtk commented Jun 3, 2023

  • 現象
    未定義の洪水予報区域コードを受け取り、例外を送出する。
An error occurred while decording a QZSS DCR message: Undefined JMA Flood Forecast Region: 830304003200 -> $QZQSM,54,9AADDB0A7B8000E0A8FCD240000000000000000000000000000000123529A50*03
  • 原因
    洪水予報区域コード 830304003200 (石神井川) の追加が反映されていなかった。
    https://www.data.jma.go.jp/suishin/oshirase/pdf/20230113b.pdf
    さらに、83NNNNNNNNNN*とのマッチが未実装で、たとえ未定義の洪水予報区域コードであっても関東地方の河川(コード番号:830304003200)と表示できたにもかかわらず、そのまま例外を送出した。

  • 修正方針

    1. 洪水予報区域コード 830304003200 (石神井川) の追加
    2. 洪水予報区域コードの上位 1 or 2 digits のマッチ(コード長が 11 or 12 digits で可変することに注意)
    3. 他のコードテーブルについても同様の対応が可能なものは例外を送出しない実装に修正
@nbtk
Copy link
Owner Author

nbtk commented Jun 22, 2023

定義済みの値と完全にマッチしない場合、接頭辞マッチングを行い、さらにマッチしない場合でもエラーとせず、レポートにコードをそのまま出力できるフレームワークを作った。

qzss_dcr_definitio.py

@nbtk nbtk self-assigned this Jun 23, 2023
@nbtk nbtk added the bug Something isn't working label Jun 23, 2023
@nbtk
Copy link
Owner Author

nbtk commented Jun 23, 2023

v0.7.4 で修正済み。

@nbtk nbtk closed this as completed Jun 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant