Skip to content

Commit df0de7a

Browse files
committed
Fixup xarray dataarray filter
When I combined these in to one statement, I didn't notice or test that it worked. `ndvi` is not defined at the stage the where clause is evaluated.
1 parent 0a7b44a commit df0de7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/06-geojupyter/demo.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@
224224
" \"time\",\n",
225225
" keep_attrs=True,\n",
226226
").where(\n",
227-
" ndvi < 1\n",
227+
" lambda ndvi: ndvi < 1\n",
228228
").compute()\n",
229229
"\n",
230230
"ndvi.plot.imshow()"

0 commit comments

Comments
 (0)