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

Problem with TCU (Towering cumulus) in cloud layer #3

Open
Foxi352 opened this issue May 2, 2022 · 0 comments
Open

Problem with TCU (Towering cumulus) in cloud layer #3

Foxi352 opened this issue May 2, 2022 · 0 comments

Comments

@Foxi352
Copy link

Foxi352 commented May 2, 2022

Hi,

I wanted to use your library for a personal project. I am new in GO and these are my first steps.

Sadly it seems that the modules has a problem with the TCU (Towering cumulus) part of the cloud layer given the following METAR:

ELLX 021550Z 06008KT 9999 VCSH FEW051TCU 17/06 Q1015 NOSIG

panic: runtime error: index out of range [10] with length 10

goroutine 1 [running]:
github.com/eugecm/gometar/metar/parser.(*Parser).Parse(_, {_, _})
        /Users/swagener/go/pkg/mod/github.com/eugecm/gometar@v0.0.0-20191013165408-b5d7ae8fbd5e/metar/parser/parser.go:124 +0xeee
main.main()
        /Users/swagener/git/vatsim-companion/metar.go:45 +0x12b
exit status 2

If i remove TCU part from the FEW051TCU string it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant