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

navigation parameters erroneous for polar projections #26

Open
gerritholl opened this issue Oct 1, 2021 · 1 comment
Open

navigation parameters erroneous for polar projections #26

gerritholl opened this issue Oct 1, 2021 · 1 comment

Comments

@gerritholl
Copy link
Collaborator

For projections including a pole, the navigation parameters "meridian_east" and "meridian_west" as calculated by ninjotiff.ninjo_nav_parameters are erroneous.

I don't know if this has any implication for the NinJo client.

Example:

from pyresample import create_area_def
from pyninjotiff.ninjotiff import ninjo_nav_parameters
test_area = create_area_def(
    "test-area",
    {"proj": "stere", "lat_0": 75.0, "lon_0": 0.0, "lat_ts": 60.0,
        "ellps": "WGS84", "units": "m", "type": "crs"},
    units="m",
    shape=(1000, 1000),
    resolution=1000,
    center=(0.0, 1500000.0))
opts = {}
ninjo_nav_parameters(opts, test_area)
print(opts["meridian_east"], opts["meridian_west"])

Expected: The easternmost/westernmost meridians of this projection are 0/360 or undefined.

Actual:

36.4205936965211 -122.50013916204914
@gerritholl
Copy link
Collaborator Author

I think it's also wrong for other projections defined in metres.

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

1 participant