Skip to content

Commit 029f8d7

Browse files
committed
a
Signed-off-by: Jason T. Brown <[email protected]>
1 parent bfa379b commit 029f8d7

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

pyrasterframes/src/main/python/docs/time-series.pymd

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,10 @@ We then [reproject](https://gis.stackexchange.com/questions/247770/understanding
9797
```python read_catalog
9898
raster_cols = ['B01', 'B02',] # red and near-infrared respectively
9999
park_rf = spark.read.raster(
100-
catalog=park_cat.select(['acquisition_date', 'granule_id', 'geo_simp'] + raster_cols),
101-
catalog_col_names=raster_cols
102-
) \
103-
.withColumn('park_native', st_reproject('geo_simp', lit('EPSG:4326'), rf_crs('B01'))) \
104-
.filter(st_intersects('park_native', rf_geometry('B01'))) \
100+
catalog=park_cat.select(['acquisition_date', 'granule_id', 'geo_simp'] + raster_cols),
101+
catalog_col_names=raster_cols) \
102+
.withColumn('park_native', st_reproject('geo_simp', lit('EPSG:4326'), rf_crs('B01'))) \
103+
.filter(st_intersects('park_native', rf_geometry('B01')))
105104

106105
park_rf.printSchema()
107106
```

0 commit comments

Comments
 (0)