You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pyrasterframes/src/main/python/docs/raster-read.pymd
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,10 @@ import pandas as pd
7
7
from pyrasterframes.utils import create_rf_spark_session
8
8
from pyrasterframes.rasterfunctions import *
9
9
from pyspark.sql.functions import *
10
-
spark = create_rf_spark_session()
10
+
spark = create_rf_spark_session(**{
11
+
'spark.driver.memory': '4G',
12
+
'spark.ui.enabled': 'false'
13
+
})
11
14
```
12
15
13
16
RasterFrames registers a DataSource named `raster` that enables reading of GeoTIFFs (and other formats when @ref:[GDAL is installed](getting-started.md#installing-gdal)) from arbitrary URIs. The `raster` DataSource operates on either a single raster file location or another DataFrame, called a _catalog_, containing pointers to many raster file locations.
Copy file name to clipboardExpand all lines: pyrasterframes/src/main/python/docs/raster-write.pymd
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -69,7 +69,7 @@ If there are many _tile_ or projected raster columns in the DataFrame, the GeoTI
69
69
70
70
* `path`: the path local to the driver where the file will be written
71
71
* `crs`: the PROJ4 string of the CRS the GeoTIFF is to be written in
72
-
* `raster_dimensions`: optional, a tuple of two ints giving the size of the resulting file. If specified, RasterFrames will downsample the data in distributed fashion using bilinear resampling. If not specified, the default is to write the dataframe at full resolution, which can result in an `OutOfMemoryError`.
72
+
* `raster_dimensions`: optional, a tuple of two ints giving the size of the resulting file. If specified, RasterFrames will downsample the data in distributed fashion using bilinear resampling. If not specified, the default is to write the dataframe at full resolution, which can result in an out of memory error.
0 commit comments