From bfeda58193fc8e338442c0fc339aaa40ffd8a7a3 Mon Sep 17 00:00:00 2001 From: "Jason T. Brown" Date: Mon, 27 Jul 2020 11:06:04 -0400 Subject: [PATCH 1/2] Named arg in raster_join in docs Signed-off-by: Jason T. Brown --- pyrasterframes/src/main/python/docs/raster-join.pymd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyrasterframes/src/main/python/docs/raster-join.pymd b/pyrasterframes/src/main/python/docs/raster-join.pymd index 994b283de..cf1728a21 100644 --- a/pyrasterframes/src/main/python/docs/raster-join.pymd +++ b/pyrasterframes/src/main/python/docs/raster-join.pymd @@ -36,7 +36,7 @@ landsat8 = spark.read.raster('https://landsat-pds.s3.us-west-2.amazonaws.com/c1/ spatial_index_partitions=True) \ .withColumnRenamed('proj_raster', 'landsat') -rj = landsat8.raster_join(modis, "cubic") +rj = landsat8.raster_join(modis, resampling_method="cubic") # Show some non-empty tiles rj.select('landsat', 'modis', 'crs', 'extent') \ From 3bd73c9ac2ff7974896c502b58fd582d5564659e Mon Sep 17 00:00:00 2001 From: "Jason T. Brown" Date: Mon, 27 Jul 2020 13:14:21 -0400 Subject: [PATCH 2/2] valid resampling method name Signed-off-by: Jason T. Brown --- pyrasterframes/src/main/python/docs/raster-join.pymd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyrasterframes/src/main/python/docs/raster-join.pymd b/pyrasterframes/src/main/python/docs/raster-join.pymd index cf1728a21..abc31809f 100644 --- a/pyrasterframes/src/main/python/docs/raster-join.pymd +++ b/pyrasterframes/src/main/python/docs/raster-join.pymd @@ -36,7 +36,7 @@ landsat8 = spark.read.raster('https://landsat-pds.s3.us-west-2.amazonaws.com/c1/ spatial_index_partitions=True) \ .withColumnRenamed('proj_raster', 'landsat') -rj = landsat8.raster_join(modis, resampling_method="cubic") +rj = landsat8.raster_join(modis, resampling_method="cubic_convolution") # Show some non-empty tiles rj.select('landsat', 'modis', 'crs', 'extent') \