# Trying to read netCDF4 file with NetCDF.jl

**URL:** <https://discourse.julialang.org/t/trying-to-read-netcdf4-file-with-netcdf-jl/42497>\
**Category:** General Usage\
**Tags:** first-steps\
**Created:** [July 3, 2020, 9:25pm UTC](https://discourse.julialang.org/t/trying-to-read-netcdf4-file-with-netcdf-jl/42497 "2020-07-03T21:25:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![renato](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/renato/32/16126_2.png) [@renato](https://discourse.julialang.org/u/renato)\
**Post date:** [July 3, 2020, 9:25pm UTC](https://discourse.julialang.org/t/trying-to-read-netcdf4-file-with-netcdf-jl/42497/1 "2020-07-03T21:25:05Z")

</div>

Hello!  
Trying to read a NetCDF4 file, using _NetCDF.jl_, and although I can read it in Python with netCDF4 package (so I conclude the file is ok), in Julia I can’t even get general information with _ncinfo(filename)_, as my print shows. Any guess on the problem?

(any file from [here](https://portal.nersc.gov/project/ClimateNet/climatenet_data/) can be used for testing)

my environment:

- macOS Catalina (10.15.5)
- Julia v1.4.2
- Atom v0.12.15
- Juno v0.8.2
- NetCDF v0.10.2

 ![Screen Shot 2020-07-03 at 17.04.14](https://global.discourse-cdn.com/julialang/original/3X/1/d/1d13241aebdc4c989f9a35c04674abb7b140150b.png)

---

<div class="post-metadata">

**Author:** ![visr](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/visr/32/17204_2.png) [@visr](https://discourse.julialang.org/u/visr)\
**Post date:** [July 3, 2020, 9:36pm UTC](https://discourse.julialang.org/t/trying-to-read-netcdf4-file-with-netcdf-jl/42497/2 "2020-07-03T21:36:03Z")

</div>

Ha, I just answered your issue on [https://github.com/JuliaGeo/NetCDF.jl/issues/124](https://github.com/JuliaGeo/NetCDF.jl/issues/124). In short; groups don’t work in NetCDF.jl, but do work in NCDatasets.jl, so it’s best to use that.

On a side note, it’s probably best not to simulateously post the same question on GitHub and Discourse. Others that didn’t know about the GitHub issue could have put time into answering here, not knowing it was already answered.

---

<div class="post-metadata">

**Author:** ![renato](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/renato/32/16126_2.png) [@renato](https://discourse.julialang.org/u/renato)\
**Post date:** [July 3, 2020, 9:40pm UTC](https://discourse.julialang.org/t/trying-to-read-netcdf4-file-with-netcdf-jl/42497/3 "2020-07-03T21:40:30Z")

</div>

Hi @visr!  
I’ll check your reply, didn’t see you answered there. But as a general guideline, I will avoid simultaneous posting. Thanks!
