jgrss / geowombat

GeoWombat: Utilities for geospatial data
https://geowombat.readthedocs.io
MIT License
184 stars 10 forks source link

[] in open trigger stacking #309

Closed mmann1123 closed 5 months ago

mmann1123 commented 5 months ago

I just noticed that passing a list to open triggers stacking even if it only has one element. Assuming this isn't intentional.

from geowombat.data import l8_224078_20200518

with gw.open(l8_224078_20200518) as src:
    print(src)
<xarray.DataArray (band: 3, y: 1860, x: 2041)> Size: 23MB
with gw.open([l8_224078_20200518]) as src:
    print(src)

<xarray.DataArray (time: 1, band: 3, y: 1860, x: 2041)> Size: 23MB