Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ dependencies:
- sphinx-copybutton
- sphinx-book-theme>=1.0
- wradlib
- xarray >=2024.10.0
- xarray >=2026.4.0
- xradar >=0.12.0
- pip:
- wradlib_data
4 changes: 2 additions & 2 deletions notebooks/classify/clutter_cloud.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ display(pvol)
pvol1 = pvol.match("sweep*")
display(pvol1)
vol = []
for sweep in pvol1.values():
vol.append(sweep.to_dataset().pipe(wrl.georef.georeference))
for sweep in pvol1:
vol.append(pvol[sweep].to_dataset(inherit="all_coords").pipe(wrl.georef.georeference))
vol = xr.concat(vol, dim="tilt")
vol = vol.assign_coords(sweep_mode=vol.sweep_mode)
display(vol)
Expand Down
2 changes: 1 addition & 1 deletion notebooks/fileio/backends/cfradial1_backend.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ display(vol["sweep_0"])
``sweep_mode`` is assigned coordinate, as we need it available on the DataArray.

```{code-cell} python
swp = vol["sweep_0"].ds
swp = vol["sweep_0"].to_dataset(inherit="all_coords")
swp = swp.assign_coords(sweep_mode=swp.sweep_mode)
swp = swp.wrl.georef.georeference()
display(swp)
Expand Down
4 changes: 2 additions & 2 deletions notebooks/fileio/backends/furuno_backend.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ display(vol["sweep_0"])
### Georeferencing scn

```{code-cell} python
swp = vol["sweep_0"].ds.copy()
swp = vol["sweep_0"].to_dataset(inherit="all_coords")
swp = swp.assign_coords(sweep_mode=swp.sweep_mode)
swp = swp.wrl.georef.georeference()
```
Expand Down Expand Up @@ -131,7 +131,7 @@ display(vol["sweep_0"])
### Georeferencing scnx

```{code-cell} python
swp = vol["sweep_0"].ds.copy()
swp = vol["sweep_0"].to_dataset(inherit="all_coords")
swp = swp.assign_coords(sweep_mode=swp.sweep_mode)
swp = swp.wrl.georef.georeference()
```
Expand Down
2 changes: 1 addition & 1 deletion notebooks/fileio/backends/gamic_backend.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ display(vol["sweep_0"])
## Georeferencing

```{code-cell} python
swp = vol["sweep_0"].ds.copy()
swp = vol["sweep_0"].to_dataset(inherit="all_coords")
swp = swp.assign_coords(sweep_mode=swp.sweep_mode)
```

Expand Down
2 changes: 1 addition & 1 deletion notebooks/fileio/backends/iris_backend.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ display(vol["sweep_0"])
## Georeferencing

```{code-cell} python
swp = vol["sweep_0"].ds.copy()
swp = vol["sweep_0"].to_dataset(inherit="all_coords")
swp = swp.assign_coords(sweep_mode=swp.sweep_mode)
swp = swp.wrl.georef.georeference()
```
Expand Down
2 changes: 1 addition & 1 deletion notebooks/fileio/backends/odim_backend.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ display(vol["sweep_0"])
## Georeferencing

```{code-cell} python
swp = vol["sweep_0"].ds
swp = vol["sweep_0"].to_dataset(inherit="all_coords")
swp = swp.assign_coords(sweep_mode=swp.sweep_mode)
swp = swp.wrl.georef.georeference()
```
Expand Down
2 changes: 1 addition & 1 deletion notebooks/fileio/backends/rainbow_backend.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ display(vol["sweep_0"])
## Georeferencing

```{code-cell} python
swp = vol["sweep_0"].ds.copy()
swp = vol["sweep_0"].to_dataset(inherit="all_coords")
swp = swp.assign_coords(sweep_mode=swp.sweep_mode)
swp = swp.wrl.georef.georeference()
```
Expand Down
2 changes: 1 addition & 1 deletion notebooks/georeferencing/coords.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ display(pvol)
```{code-cell} python
for key in list(pvol.children):
if "sweep" in key:
pvol[key].ds = pvol[key].ds.wrl.georef.georeference()
pvol[key].ds = pvol[key].to_dataset(inherit="all_coords").wrl.georef.georeference()
```

```{code-cell} python
Expand Down
2 changes: 1 addition & 1 deletion notebooks/workflow/recipe2.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ proj = osr.SpatialReference()
proj.ImportFromEPSG(32632)
for key in list(raw_dt.children):
if "sweep" in key:
raw_dt[key].ds = raw_dt[key].ds.wrl.georef.georeference(crs=proj)
raw_dt[key].ds = raw_dt[key].to_dataset(inherit="all_coords").wrl.georef.georeference(crs=proj)
```

```{code-cell} python
Expand Down
2 changes: 1 addition & 1 deletion notebooks/workflow/recipe3.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ display(gr_data)
#### Extract relevant GR data and meta-data

```{code-cell} python
swp = gr_data[f"sweep_{ee}"].ds
swp = gr_data[f"sweep_{ee}"].to_dataset(inherit="all_coords")
swp = swp.set_coords("sweep_mode")
display(swp)
print(swp.sweep_fixed_angle.values)
Expand Down
2 changes: 1 addition & 1 deletion notebooks/workflow/recipe4.md
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ fig.delaxes(gs.flat[-1])

```{code-cell} python
vol0 = vol.isel(volume_time=0)
swp = vol0["sweep_9"].ds
swp = vol0["sweep_9"].to_dataset(inherit="all_coords")
```

```{code-cell} python
Expand Down
Loading