Skip to content

Commit 12f5cc8

Browse files
committed
Filter sample raster join DF to show non-empty tiles
Signed-off-by: Jason T. Brown <[email protected]>
1 parent db386a4 commit 12f5cc8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pyrasterframes/src/main/python/docs/raster-join.pymd

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,11 @@ landsat8 = spark.read.raster('https://landsat-pds.s3.us-west-2.amazonaws.com/c1/
3737
.withColumnRenamed('proj_raster', 'landsat')
3838

3939
rj = landsat8.raster_join(modis)
40-
rj.select('landsat', 'modis', 'crs', 'extent')
40+
41+
# Show some non-empty tiles
42+
rj.select('landsat', 'modis', 'crs', 'extent') \
43+
.filter(rf_data_cells('modis') > 0) \
44+
.filter(rf_tile_max('landsat') > 0)
4145
```
4246

4347
## Additional Options

0 commit comments

Comments
 (0)