NetcdfIO.jl

Wrapper functions for NCDatasets.jl
Author Yujie-W
Popularity
1 Star
Updated Last
4 Months Ago
Started In
December 2021

NetcdfIO.jl

About

NetcdfIO contains a number of wrapper functions for NCDatasets.jl. The use of these functions significantly reduce the number of code to read/write data from/to a netcdf file (may not be efficient though). Note that the libnetcdf shipped with NCDatasets does not have HDF4 support; if you need to open HDF4 files, we have implemented a function switch_netcdf_lib! to allow the users to switch between libnetcdf library. What works on my case if I installed libnetcdf through Conda.jl (4.8.1 in my case, located at ~/.julia/conda/3/lib/libnetcdf.so), and double checked that HDF4 support is enabled. Then I ran switch_netcdf_lib!(use_default = false) to enable it. You can also run switch_netcdf_lib!() to switch back to the default library shipped with NCDatasets.

Documentation CI Status Compatibility Code Coverage

Installation

using Pkg;
Pkg.add("NetcdfIO");

API

See API for more detailed information about how to use NetcdfIO.jl.

Test local coverage

using Pkg
Pkg.test("NetcdfIO"; coverage=true);

using Coverage
coverage = process_folder();
LCOV.writefile("lcov.info", coverage);

Coverage.clean_folder(".");