-
Notifications
You must be signed in to change notification settings - Fork 14
Description
Not really an issue, but I wasn't sure who to reach out to. I have been working on a hobby project over the past week to try to wrap the g2clib and compile it as a webassembly module and now have it working to be able to run directly in the browser and called via JavaScript. Thought you all might be interested, since it allows some interesting new uses of the library and allows running it directly inside the browser on mobile devices, etc.
The actual wrapping consists of just a small C program, a CMakeLists.txt and a build script.
Wrapper source code:
https://github.com/coliveir-aer/g2c-wasm/tree/master/work/g2c-wasm
The repo contains a bunch of environment setup stuff and a few example websites with one being deployed to demo how this can read snippets of grib2 files from the GFS open data S3 bucket.
Example Site:
https://coliveir-aer.github.io/g2c-wasm/
Cheers,
Craig