grib2json icon indicating copy to clipboard operation
grib2json copied to clipboard

Order of data values

Open tomaszpolska opened this issue 6 years ago • 4 comments

Supposing there is a data set (small sub-region) as shown below:

{
  "header": {
    "numberPoints": 25,
    "nx": 5,
    "ny": 5,
    "lo1": 20.0,
    "la1": 52.0,
    "lo2": 21.0,
    "la2": 53.0,
    "dx": 0.25,
    "dy": 0.25
  },
  "data": [
    1,    2,    3,    4,    5,    60,    70,    80,    90,    100,    
45,    46,    47,    48,    49,    50,    70,    70,    70,    
70,    70,    70,    70,    70,    70  ]
}

Am I getting right the order of values presented on the attached figure? That is from West to East and from North to South?

grib2json-grid

tomaszpolska avatar Feb 14 '19 13:02 tomaszpolska

Yes, that is correct.

noalternative avatar Feb 15 '19 07:02 noalternative

@noalternative I'm afraid this is wrong. Y values should be from 52.00 to 53.00, I mean Y (lat) should be in ascending order the same way X (lon) is ascending.

tomaszpolska avatar Mar 05 '19 18:03 tomaszpolska

O I am sorry, I didn't notice that. I got confused because you said from north to south and the arrow was also pointing that way. I thought you meant smallest value in the north and biggest in the south.

Sorry I put you on the wrong path

noalternative avatar Mar 05 '19 18:03 noalternative

I use panoplywin to open grib files, and there you can see the values in a table with degrees on the sides

noalternative avatar Mar 05 '19 19:03 noalternative