Thanks to visit codestin.com
Credit goes to github.com

Skip to content

error retrieving values from era-20c #12

Description

@zahachtah

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions