Skip to content

Wrong NaN check in satin/helper_functions.py #15

Description

@ch-k

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions