Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when getting attribute #53

Closed
jannefiluren opened this issue Jan 12, 2018 · 0 comments
Closed

Error when getting attribute #53

jannefiluren opened this issue Jan 12, 2018 · 0 comments

Comments

@jannefiluren
Copy link
Contributor

I get the following error when trying to load an attribute of a netcdf that I haven´t read anything from before:

julia> ncgetatt("tair_1km.nc", "dim_space", "id")
ERROR: MethodError: no method matching open(::String, ::UInt16)
Closest candidates are:
  open(::AbstractString; mode, readdimvar) at /home/jmg/.julia/v0.6/NetCDF/src/NetCDF.jl:654
  open(::AbstractString, ::AbstractString; mode, readdimvar) at /home/jmg/.julia/v0.6/NetCDF/src/NetCDF.jl:638
Stacktrace:
 [1] ncgetatt(::String, ::String, ::String) at /home/jmg/.julia/v0.6/NetCDF/src/NetCDF.jl:792

If I have read some information (for example done an ncinfo) from the netcdf before I try to load the attribute, everything works fine.

visr pushed a commit that referenced this issue Jun 18, 2018
@visr visr closed this as completed Jun 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants