Open pjhartzell opened 7 months ago
In odc-stac version 0.3.9, odc.stac.load is overriding an anchor argument value of AnchorEnum.CENTER with the AnchorEnum.EDGE value.
odc-stac
odc.stac.load
anchor
AnchorEnum.CENTER
AnchorEnum.EDGE
This is illustrated in a Jupyter notebook accessing some simple STAC Items at https://github.com/pjhartzell/data-gap/blob/main/anchor.ipynb.
In looking through the output_geobox function, it looks like the incoming anchor argument is never used. Is it possible that L968 should be changed from:
output_geobox
anchor = _anchor
to something like this?
anchor = anchor if anchor else _anchor
odc-stac==0.3.9 odc-geo==0.4.3
Tested with Python 3.9 and 3.11.
Apple M1 (arm64)
Problem
In
odc-stac
version 0.3.9,odc.stac.load
is overriding ananchor
argument value ofAnchorEnum.CENTER
with theAnchorEnum.EDGE
value.Minimal Example
This is illustrated in a Jupyter notebook accessing some simple STAC Items at https://github.com/pjhartzell/data-gap/blob/main/anchor.ipynb.
Potential solution
In looking through the
output_geobox
function, it looks like the incoming anchor argument is never used. Is it possible that L968 should be changed from:anchor = _anchor
to something like this?
anchor = anchor if anchor else _anchor
Versions, hardware
odc-stac==0.3.9 odc-geo==0.4.3
Tested with Python 3.9 and 3.11.
Apple M1 (arm64)