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

Function test_burst_id_attribute

tests/test_30_xarray_backends.py:199–214  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

197
198
199def test_burst_id_attribute() -> None:
200 product_path = (
201 DATA_FOLDER
202 / "S1A_IW_SLC__1SDH_20220414T102209_20220414T102236_042768_051AA4_E677.SAFE"
203 )
204
205 res = xr.open_dataset(product_path, engine="sentinel-1", group="IW1/HH")
206 assert "burst_ids" in res.attrs
207 assert len(res.attrs["burst_ids"]) == res.attrs["number_of_bursts"]
208
209 product_path = (
210 DATA_FOLDER
211 / "S1B_IW_SLC__1SDV_20210401T052622_20210401T052650_026269_032297_EFA4.SAFE"
212 )
213 res = xr.open_dataset(product_path, engine="sentinel-1", group="IW1/VV")
214 assert "burst_ids" not in res.attrs
215
216
217def test_open_calibration_dataset() -> None:

Callers

nothing calls this directly

Calls 1

open_datasetMethod · 0.80

Tested by

no test coverage detected