Passthrough — any public bucket¶
An unregistered dataset is an inline spec dict with the same fields a catalog row uses, so the call is identical to a registered dataset. Here we just plan the keys (no network).
In [ ]:
Copied!
from earthlens import EarthLens
src = EarthLens(
data_source="amazon-s3",
start='2024-01-01',
end='2024-01-01',
aoi=[0, 0, 1, 1],
dataset={
'bucket': 'my-open-bucket',
'format': 'cog',
'layout': 'deterministic_tiles',
'params': {'key_template': '{year}/tile_{variable}.tif'},
},
variables=['band1'],
)
for p in src._search():
print(p.metadata['bucket'], '->', p.href)
from earthlens import EarthLens
src = EarthLens(
data_source="amazon-s3",
start='2024-01-01',
end='2024-01-01',
aoi=[0, 0, 1, 1],
dataset={
'bucket': 'my-open-bucket',
'format': 'cog',
'layout': 'deterministic_tiles',
'params': {'key_template': '{year}/tile_{variable}.tif'},
},
variables=['band1'],
)
for p in src._search():
print(p.metadata['bucket'], '->', p.href)