Skip to content

Direct read_geotiff_dask on VRT drops window band and max_pixels kwargs #1795

@brendancol

Description

@brendancol

Describe the bug

Calling read_geotiff_dask() directly on a .vrt path silently drops several kwargs. The defensive .vrt route forwards dtype, name, and chunks, but it drops window, band, and max_pixels.

Expected behavior

Direct read_geotiff_dask(vrt_path, ...) should either reject VRTs with a clear message or forward supported kwargs to read_vrt() so behavior matches open_geotiff(vrt_path, ...).

Screenshots

Not applicable.

Desktop

Not applicable.

Smartphone

Not applicable.

Additional context

This is a backend-dispatch parity issue in xrspatial/geotiff/__init__.py.

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiAPI design and consistencybackend-coverageAdding missing dask/cupy/dask+cupy backend supportbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions