{"id":60421,"library":"netcdf-c","title":"NetCDF-C","description":"A set of self-describing, machine-independent data formats that support the creation, access, and sharing of array-oriented scientific data.","status":"active","version":"4.9.3","language":"cpp","source_language":null,"source_url":null,"tags":["netcdf","scientific","data","array","self-describing"],"install":[{"cmd":"vcpkg install netcdf-c","lang":"bash","label":"vcpkg"},{"cmd":"# CMakeLists.txt\nfind_package(netcdf_c CONFIG REQUIRED)\ntarget_link_libraries(main PRIVATE netCDF::netcdf)","lang":"cmake","label":"CMake"}],"dependencies":[],"imports":[{"symbol":"netcdf.h","correct":"#include <netcdf.h>"}],"quickstart":{"code":"#include <netcdf.h>\n#include <stdio.h>\n\nint main() {\n    int ncid;\n    int ret = nc_open(\"example.nc\", NC_NOWRITE, &ncid);\n    if (ret != NC_NOERR) {\n        printf(\"Error: %s\\n\", nc_strerror(ret));\n        return 1;\n    }\n    nc_close(ncid);\n    return 0;\n}","lang":"cpp","description":"Open a NetCDF file for reading."},"warnings":[{"fix":"Use netcdf-cxx4 for C++ API, or include netcdf.h for C API.","message":"NetCDF-C is a C library; C++ bindings are separate (netcdf-cxx4).","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'access':19 'array':24,31 'array-ori':23 'c':3 'creation':18 'data':13,27,30 'describ':9,34 'format':14 'independ':12 'machin':11 'machine-independ':10 'netcdf':2,28 'netcdf-c':1 'orient':25 'scientif':26,29 'self':8,33 'self-describ':7,32 'set':5 'share':21 'support':16","created_at":"2026-06-16T19:30:26.254150+00:00","updated_at":"2026-06-16T19:30:26.254150+00:00","problems":[],"ecosystem":"vcpkg","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["serialization"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}