Skip to content

Instantly share code, notes, and snippets.

@parulnith
Last active February 6, 2020 10:54
Show Gist options
  • Select an option

  • Save parulnith/70ddab0c132b4a07dfe46e039cc324e6 to your computer and use it in GitHub Desktop.

Select an option

Save parulnith/70ddab0c132b4a07dfe46e039cc324e6 to your computer and use it in GitHub Desktop.
df = spark.read.raster(catalog,
catalog_col_names=['B01', 'B02'],
) \
.withColumnRenamed('B01', 'red') \
.withColumnRenamed('B02', 'nir')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment