intake / intake/intake-xarray

set automatically coerce_shape for xarray_image

Open
#104 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
76
Forks
36
PR merge metrics
No merged PRs in 30d

Description

I have a local directory with GeoTIFF files with different shapes. I've explored the `coerce_shape` parameter to define manually a certain shape. I'm wondered if there's a workaround to coerce all images according to the largest shape in the directory instead of defining it manually. The following lines show how I define the catalog:

```
[...]
sources:
test1:
driver: xarray_image
args:
urlpath: '{{ CATALOG_DIR }}/data/*.tif'
coerce_shape: [400,400]
[...]
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.