Skip to content

Commit d3dab28

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent eec817b commit d3dab28

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

doc/geometry.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ kernelspec:
1313

1414
# Geometries
1515

16-
See
16+
See
1717

18-
1. {py:func}`cf_xarray.shapely_to_cf`
19-
1. {py:func}`cf_xarray.cf_to_shapely`
18+
1. {py:func}`cf_xarray.shapely_to_cf`
19+
1. {py:func}`cf_xarray.cf_to_shapely`
2020

2121
In order to support vectors as well as arrays `cf_xarray` can convert between shapely objects
2222
and CF-compliant representations of those geometries.
@@ -37,7 +37,7 @@ da = xr.DataArray(
3737
Point(3.0, 4.0),
3838
Point(4.0, 5.0),
3939
Point(3.0, 4.0),
40-
],
40+
],
4141
dims=("index",),
4242
name="geometry"
4343
)
@@ -49,7 +49,7 @@ da = xr.DataArray(
4949
geometries of the same type.
5050
```
5151

52-
Now we can take that `xr.DataArray` containing shapely geometries and convert it to cf:
52+
Now we can take that `xr.DataArray` containing shapely geometries and convert it to cf:
5353

5454
```{code-cell}
5555
ds_cf = cfxr.shapely_to_cf(da)
@@ -61,12 +61,12 @@ geometries. In particular there are:
6161

6262
- 'x', 'y' : the node coordinates
6363
- 'crd_x', 'crd_y' : the feature coordinates (might have different names if `grid_mapping` is available).
64-
- 'node_count' : The number of nodes per feature. Always present for Lines and Polygons. For
65-
Points: only present if there are multipart geometries.
66-
- part_node_count : The number of nodes per individual geometry. Only for Lines with multipart
67-
geometries and for Polygons with multipart geometries or holes.
64+
- 'node_count' : The number of nodes per feature. Always present for Lines and Polygons. For
65+
Points: only present if there are multipart geometries.
66+
- part_node_count : The number of nodes per individual geometry. Only for Lines with multipart
67+
geometries and for Polygons with multipart geometries or holes.
6868
- interior_ring : Integer boolean indicating whether ring is interior or exterior. Only for
69-
Polygons with holes.
69+
Polygons with holes.
7070
- 'geometry_container' : Empty variable with attributes describing the geometry type.
7171

7272
Here are the attributes on `geometry_container`. This pattern mimics the convention of
@@ -93,6 +93,6 @@ By default these are called `crd_x` and `crd_y` unless `grid_mapping` is specifi
9393

9494
For MultiPolygons with holes the CF notation is slightly ambiguous on which hole is associated
9595
with which polygon. This is problematic because shapely stores holes within the polygon
96-
object that they are associated with. `cf_xarray` assumes that the the shapes are interleaved
97-
such that the holes (interior rings) are associated with the exteriors (exterior rings) that
96+
object that they are associated with. `cf_xarray` assumes that the the shapes are interleaved
97+
such that the holes (interior rings) are associated with the exteriors (exterior rings) that
9898
immediately precede them.

0 commit comments

Comments
 (0)