(
product_path: esa_safe.PathType,
swath_pol: str,
)
| 124 | |
| 125 | @pytest.mark.parametrize("product_path,swath_pol", SENTINEL1_PRODUCTS) |
| 126 | def test_open_dataset_attitude( |
| 127 | product_path: esa_safe.PathType, |
| 128 | swath_pol: str, |
| 129 | ) -> None: |
| 130 | res = xr.open_dataset( |
| 131 | product_path, engine="sentinel-1", group=f"{swath_pol}/attitude" |
| 132 | ) |
| 133 | |
| 134 | assert isinstance(res, xr.Dataset) |
| 135 | assert set(res.sizes) == {"azimuth_time"} |
| 136 | expected = { |
| 137 | "azimuth_time", |
| 138 | "roll", |
| 139 | "pitch", |
| 140 | "yaw", |
| 141 | "q0", |
| 142 | "q1", |
| 143 | "q2", |
| 144 | "q3", |
| 145 | "wx", |
| 146 | "wy", |
| 147 | "wz", |
| 148 | } |
| 149 | assert set(res.variables) == expected |
| 150 | |
| 151 | |
| 152 | @pytest.mark.parametrize("product_path,swath_pol", SENTINEL1_PRODUCTS) |
nothing calls this directly
no test coverage detected