I kind of expected this to work
import xarray as xr
import xarray_sql as xql
ds = xr.tutorial.open_dataset('air_temperature')
ctx = xql.XarrayContext()
ctx.from_dataset('air', ds, chunks=dict(time=100))
ctx["air"]
But instead, I needed to do:
import xarray as xr
import xarray_sql as xql
ds = xr.tutorial.open_dataset('air_temperature')
ctx = xql.XarrayContext()
ctx.from_dataset('air', ds, chunks=dict(time=100))
ctx.table("air")
I also expected .chunks to work.
ctx.table("air").chunks
I kind of expected this to work
But instead, I needed to do:
I also expected
.chunksto work.ctx.table("air").chunks