How to use the pyrasterframes.RasterFrame function in pyrasterframes

To help you get started, we’ve selected a few pyrasterframes examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github locationtech-labs / geopyspark / geopyspark / geotrellis / View on Github external
            num_bands (int): The number of bands the ``TiledRasterLayer`` has.


            from pyrasterframes import RasterFrame
        except ImportError:
            raise ImportError("pyrasterframes must be installed in order to use the to_rasterframe method")

        rf_context = get_spark_context()._rf_context

        if rf_context:
            return RasterFrame(rf_context._jrfctx.asRF(self.srdd.rdd(), num_bands), rf_context._spark_session)
            raise AttributeError("RasterFrames has not been enabled in the active SparkSession")


Access and process geospatial raster data in PySpark DataFrames

Latest version published 6 months ago

Package Health Score

72 / 100
Full package analysis

Popular pyrasterframes functions

Similar packages