File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ def test_subset_to_bb():
161161 """
162162 Not a complete test by any means, but the basics are there.
163163
164- NOTE: it doesn't test if the variables got subset corectly ...
164+ NOTE: it doesn't test if the variables got subset correctly ...
165165
166166 """
167167 ds = xr .open_dataset (EXAMPLE_DATA / "2D-rectangular_grid_wind.nc" )
@@ -249,7 +249,7 @@ def test_subset_polygon():
249249 """
250250 Not a complete test by any means, but the basics are there.
251251
252- NOTE: it doesn't test if the variables got subset corectly ...
252+ NOTE: it doesn't test if the variables got subset correctly ...
253253
254254 """
255255 ds = xr .open_dataset (EXAMPLE_DATA / "2D-rectangular_grid_wind.nc" )
Original file line number Diff line number Diff line change 2121
2222# class RegularGridPolygonSelector(Selector):
2323# """Polygon Selector for regular lat/lon grids."""
24- # # with a regular grid, you have to select the full boudning box anyway
24+ # # with a regular grid, you have to select the full bounding box anyway
2525# # this this simply computes the bounding box, and used that
2626
2727# polygon: list[tuple[float, float]] | np.ndarray
@@ -63,13 +63,13 @@ def select(self, ds: xr.Dataset) -> xr.Dataset:
6363 lat = ds [ds .cf .coordinates .get ("latitude" )[0 ]]
6464 lon = ds [ds .cf .coordinates .get ("longitude" )[0 ]]
6565 if np .all (np .diff (lat ) < 0 ):
66- # swap the slice if the latitudes are decending
66+ # swap the slice if the latitudes are descending
6767 self ._latitude_selection = slice (
6868 self ._latitude_selection .stop , self ._latitude_selection .start
6969 )
7070 # and np.all(np.diff(lon) > 0):
7171 if np .all (np .diff (lon ) < 0 ):
72- # swap the slice if the longitudes are decending
72+ # swap the slice if the longitudes are descending
7373 self ._longitude_selection = slice (
7474 self ._longitude_selection .stop , self ._longitude_selection .start
7575 )
You can’t perform that action at this time.
0 commit comments