MCPcopy Create free account
hub / github.com/bopen/xarray-sentinel / test_open_dataset_orbit

Function test_open_dataset_orbit

tests/test_30_xarray_backends.py:114–122  ·  view source on GitHub ↗
(
    product_path: esa_safe.PathType,
    swath_pol: str,
)

Source from the content-addressed store, hash-verified

112
113@pytest.mark.parametrize("product_path,swath_pol", SENTINEL1_PRODUCTS)
114def test_open_dataset_orbit(
115 product_path: esa_safe.PathType,
116 swath_pol: str,
117) -> None:
118 res = xr.open_dataset(product_path, engine="sentinel-1", group=f"{swath_pol}/orbit")
119
120 assert isinstance(res, xr.Dataset)
121 assert set(res.sizes) == {"axis", "azimuth_time"}
122 assert set(res.variables) == {"azimuth_time", "axis", "velocity", "position"}
123
124
125@pytest.mark.parametrize("product_path,swath_pol", SENTINEL1_PRODUCTS)

Callers

nothing calls this directly

Calls 1

open_datasetMethod · 0.80

Tested by

no test coverage detected