Reputation: 31
I am trying to open a netcdf file but I'm getting the following error:
error compiling #Dataset#19: error compiling nc_open: could not load library "/Users/kanwal/.julia/conda/3/lib/libnetcdf.dylib"
dlopen(/Users/kanwal/.julia/conda/3/lib/libnetcdf.dylib, 1): image not found
Stacktrace:
[1] Type at /Users/kanwal/.julia/packages/NCDatasets/uW2kc/src/NCDatasets.jl:482 [inlined] (repeats 2 times)
[2] top-level scope at In[27]:1
Upvotes: 1
Views: 1425
Reputation: 31
There are a couple of a Julia packages (NCDatasets.jl & NetCDF.jl) which work extremely well for this purpose. I've been using NCDatasets.jl, and the documentation is quite detailed as to this packages' supported operations.
Upvotes: 2
Reputation: 42214
Try installing libnetcdf
to your Conda
environment manually:
using Pkg
pkg"add Conda"
Conda.runconda(`install -c anaconda libnetcdf`)
Upvotes: 0