I was semi-surprised that there are only methods to read from tables:
And to read gridded formats, I needed to open with xarray first, then convert to XarrayContext using from_dataset
import xarray as xr
from metpy.cbook import get_test_data
from xarray_sql import XarrayContext
ds = xr.open_dataset(get_test_data('irma_gfs_example.nc', False))
XarrayContext().from_dataset(ds)
Desired:
from metpy.cbook import get_test_data
from xarray_sql import XarrayContext
XarrayContext.read_netcdf(get_test_data('irma_gfs_example.nc', False))
If desired, I can help contribute a PR.
I was semi-surprised that there are only methods to read from tables:
And to read gridded formats, I needed to open with xarray first, then convert to XarrayContext using
from_datasetDesired:
If desired, I can help contribute a PR.