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

Order of data values #35

Open
tomaszpolska opened this issue Feb 14, 2019 · 4 comments
Open

Order of data values #35

tomaszpolska opened this issue Feb 14, 2019 · 4 comments

Comments

@tomaszpolska
Copy link

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

@noalternative
Copy link

Yes, that is correct.

@tomaszpolska
Copy link
Author

tomaszpolska commented Mar 5, 2019

@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.

@noalternative
Copy link

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
Copy link

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

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