Skip to content

rasterio.open; attrs remain empty #156

Open
@Manangka

Description

@Manangka

In GitLab by @tomvansteijn on Feb 11, 2021, 09:45

When opening an integer raster file (gtiff), the crs and nodata value are properly set in the DataArray attrs dict. However, when opening another raster file, a float raster, the attrs remain empty.

Not sure if the dtype makes the difference. When the attrs are not set, the "dmin" and "dmax" properties are not calculated correctly as the raster nodata value is not taken into account. This shows in the colormap in the iMOD viewer.

Attached a raster file for which the attrs remain empty when calling rasterio.open.

recharge_mmd.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghas attachmentAttachment was not transfered from GitLab

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions