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

Function test_open_dataset_gcp

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

Source from the content-addressed store, hash-verified

151
152@pytest.mark.parametrize("product_path,swath_pol", SENTINEL1_PRODUCTS)
153def test_open_dataset_gcp(
154 product_path: esa_safe.PathType,
155 swath_pol: str,
156) -> None:
157 res = xr.open_dataset(product_path, engine="sentinel-1", group=f"{swath_pol}/gcp")
158
159 assert isinstance(res, xr.Dataset)
160 assert set(res.sizes) == {"azimuth_time", "slant_range_time"}
161
162
163@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