Skip to content

Should there be thin wrappers like read_netcdf, read_zarr, etc? #146

@ahuang11

Description

@ahuang11

I was semi-surprised that there are only methods to read from tables:

Image

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions