Last active
February 6, 2020 10:54
-
-
Save parulnith/70ddab0c132b4a07dfe46e039cc324e6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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