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

Wrong NaN check in satin/helper_functions.py #15

Open
ch-k opened this issue Feb 23, 2015 · 0 comments
Open

Wrong NaN check in satin/helper_functions.py #15

ch-k opened this issue Feb 23, 2015 · 0 comments

Comments

@ch-k
Copy link
Contributor

ch-k commented Feb 23, 2015

Hi Martin,
I've experienced some trouble when reading HRIT in conjunction with trollduction and area definitions of different extent.. I think in helper_functions.py the NaN-check in function boundaries_to_extent should be fixed.

for i in range(4):
    if extent[i] is np.nan:
        extent[i] = default_extent[i]

should be replaced with

for i in range(4):
    if np.isnan(extent[i]):
        extent[i] = default_extent[i]

Best regards,
Christian

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