-
Notifications
You must be signed in to change notification settings - Fork 94
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
Negative pixel size if area is flipped #433
Comments
Any idea if this ever worked? I think I changed something recently about this so I want to double check that I didn't break this. |
I noticed it in the past, but then forgot to file an issue. Just tried with an old env that has pyresample-1.18.0, same issue. |
I've always thought that is as expected... |
If we think of |
Good point. Although I think of it as resolution. The documentation also describes it as width and height of the pixel. We could keep the current behavior in a |
Also geotiffs show the pixel size as negative for example for y-direction of |
I've used the idea of a negative pixel size in the past in Polar2Grid, but don't use it anymore and assume it will be positive. I'm not against forcing it to be positive if it makes everyone happy, but I don't think we need to retain the +/- value in a |
Oh, obviously I forgot about this issue... Now that I read your arguments again, I agree to keep the current behaviour. Maybe I'll just add a note the documentation that pixel size can be negative in certain situations. |
Code Sample, a minimal, complete, and verifiable piece of code
Problem description
The
pixel_size_x/y
attribute of a flipped area is negative.Expected Output
1.0
Actual Result, Traceback if applicable
-1.0
Versions of Python, package at hand and relevant dependencies
pyresample-1.22.3
The text was updated successfully, but these errors were encountered: