avnav
avnav copied to clipboard
Grib file overlay
Hello Andreas,
Is there a plan to allow grib files to be integrated or overlaid in avnav. For instance files from xygrib.
Currently we run xygrib on the client nav computer and display avnav in a browser.
Cheers
There already have been questions on that. It would be relatively easy if there would be a java script library to show the grib files. But until now I did not find any. Another option would be to render them on the server - but this is much more effort.
Does this help: https://github.com/spidru/JGribX ? JGribX was originally designed to be a Java library, meaning that it did not have any useful functionality when run as a standalone app. However, a command-line interface is currently being developed which allows JGribX to be used as a standalone app via command-line.
Not really a lot. It's just java - not java script.
Ah, Ok.
I already thought it wouldn't be so easy :)
Thanks!
Op do 20 jul. 2023 14:50 schreef Andreas Vogel @.***>:
Not really a lot. It's just java - not java script.
— Reply to this email directly, view it on GitHub https://github.com/wellenvogel/avnav/issues/296#issuecomment-1643869604, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQ335YWJNGXAECR5JEFKUV3XRESS3ANCNFSM6AAAAAA2KE2YHU . You are receiving this because you commented.Message ID: @.***>
Is it possible to use the opencpn grib plugin as base for this? I am not a coder so not sure.
Right now we use Xygrib and run that on the nav computer. But really trying to consolidate devices as much as possible. As the RPI4 AvNav server is headless not sure how to get gribs on the server side. I guess it would be something core to the avnav server.
https://opengribs.org/en/gribs
https://www.ucc.ie/en/eel/posts/grib-command-line-tools-from-ecmwf.html#:~:text=ECMWF%20supplies%20some%20useful%20command,version%20of%20the%20GRIB%20API.
https://pysselilivet.blogspot.com/2022/09/grib-files-extracting-data-in-linux.html
The last one looks like you can request a grib from the command line. I guess the challenge will be overlaying it and switching the sequence as time moves on.
Basically there would be 2 options: (1) Render the gribs on the server an send the rendered data as a picture to the browser (2) Extract gribs on the server and add some js based overlay. This would require some js based code for the rendering.
I would prefer (2) - but did not find a promising js lib.
The OpenCPN plugin would be more (1) - but its a huge effort to integrate this (did something similar for o-charts) - nothing I will do again.