If you have an idea how I would do this I'd appreciate it:
I have downloaded a dataset of 50 daily global t2m values. I can access the file just fine.
f = GribFile(filename)
works and
each m=Message(f) retrieves a new day's data.
m["longitudes"] gives me an array of longitudes data (length=88838)
however
m["values"] gives me:
ERROR: DimensionMismatch("new dimensions (2147483647, 256) must be consistent with array size 88838")
Stacktrace:
[1] (::Base.var"#throw_dmrsa#213")(::Tuple{Int64,Int64}, ::Int64) at ./reshapedarray.jl:41
[2] reshape at ./reshapedarray.jl:45 [inlined]
[3] reshape at ./reshapedarray.jl:116 [inlined]
[4] getindex(::Message, ::String) at /Users/jonnorberg/.julia/packages/GRIB/wj6Fn/src/message.jl:219
[5] top-level scope at REPL[41]:1
Would you know what I am doing wrong here?
Many thanks, Jon
If you have an idea how I would do this I'd appreciate it:
I have downloaded a dataset of 50 daily global t2m values. I can access the file just fine.
f = GribFile(filename)
works and
each m=Message(f) retrieves a new day's data.
m["longitudes"] gives me an array of longitudes data (length=88838)
however
m["values"] gives me:
ERROR: DimensionMismatch("new dimensions (2147483647, 256) must be consistent with array size 88838")
Stacktrace:
[1] (::Base.var"#throw_dmrsa#213")(::Tuple{Int64,Int64}, ::Int64) at ./reshapedarray.jl:41
[2] reshape at ./reshapedarray.jl:45 [inlined]
[3] reshape at ./reshapedarray.jl:116 [inlined]
[4] getindex(::Message, ::String) at /Users/jonnorberg/.julia/packages/GRIB/wj6Fn/src/message.jl:219
[5] top-level scope at REPL[41]:1
Would you know what I am doing wrong here?
Many thanks, Jon