{"id":18937869,"url":"https://github.com/amoeba/netcdf-wasm","last_synced_at":"2025-06-12T22:07:35.119Z","repository":{"id":66554486,"uuid":"241838298","full_name":"amoeba/netcdf-wasm","owner":"amoeba","description":null,"archived":false,"fork":false,"pushed_at":"2021-10-04T04:35:04.000Z","size":8,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-06-12T04:09:55.137Z","etag":null,"topics":["netcdf","netcdf4","wasm"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amoeba.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-02-20T09:04:26.000Z","updated_at":"2021-10-04T04:29:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"4aa35223-ef97-4931-b458-632523522677","html_url":"https://github.com/amoeba/netcdf-wasm","commit_stats":{"total_commits":8,"total_committers":1,"mean_commits":8.0,"dds":0.0,"last_synced_commit":"14b4762c27ac5d1ddc66fb7eb8e6337de2666df1"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/amoeba/netcdf-wasm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amoeba%2Fnetcdf-wasm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amoeba%2Fnetcdf-wasm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amoeba%2Fnetcdf-wasm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amoeba%2Fnetcdf-wasm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amoeba","download_url":"https://codeload.github.com/amoeba/netcdf-wasm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amoeba%2Fnetcdf-wasm/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259539131,"owners_count":22873341,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["netcdf","netcdf4","wasm"],"created_at":"2024-11-08T12:12:43.320Z","updated_at":"2025-06-12T22:07:35.079Z","avatar_url":"https://github.com/amoeba.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `netcdf-wasm`\n\n**Currently not working** project to work with [NetCDF](https://www.unidata.ucar.edu/software/netcdf/) files in the browser with [WASM](https://webassembly.org/).\nNothing usable at this point.\nThe ultimate goal is to get a native way to parse metadata out of NetCDF files for use in scientific metadata editors.\nThis is mostly for my education.\n\n## Pre-requisites\n\n- emscripten\n- libnetcdf\n- libhdf5\n- libzlib\n\n## Building\n\nNote: This is what _I_ run and probably won't work for you. Edit the `-I` flags to point to the right locations.\n\n```\nemcc -O3 -s WASM=1 -I /usr/local/Cellar/curl/*/include -I /usr/local/Cellar/hdf5/*/include -I /usr/local/Cellar/netcdf/*/include src/main.c\n```\n\n## Status\n\nThe build current fails. I'm not sure why:\n\n```\n; emcc -O3 -s WASM=1 -I /usr/local/Cellar/curl/*/include -I /usr/local/Cellar/hdf5/*/include -I /usr/local/Cellar/netcdf/*/include src/main.c\nerror: undefined symbol: nc_create (referenced by top-level compiled C/C++ code)\nwarning: Link with `-s LLD_REPORT_UNDEFINED` to get more information on undefined symbols\nwarning: To disable errors for undefined symbols use `-s ERROR_ON_UNDEFINED_SYMBOLS=0`\nwarning: _nc_create may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library\nError: Aborting compilation due to previous errors\nemcc: error: '/usr/local/bin/node /usr/local/Cellar/emscripten/2.0.31/libexec/src/compiler.js /var/folders/jy/zkmn3bgj13710pnytbgh27800000gn/T/tmp4xz2wm2w.txt' failed (returned 1)\n```\n\n## TODO\n\n- Figure out how to pass WASM a user-supplied NetCDF file. WASM is heavily sandboxed and I don't want to (1) precompile the NetCDF file in or (2) have to read the entire file. (2) may be unavoidable which sucks.\n  - If (2) is the case, it may be possible to only read in _enough_ of the file to get the metadata we need out.\n- Get this reading the attribute names from a NetCDF file the user chooses\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famoeba%2Fnetcdf-wasm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famoeba%2Fnetcdf-wasm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famoeba%2Fnetcdf-wasm/lists"}