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/pyrasterframes/__init__.py
+11-10Lines changed: 11 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -117,19 +117,20 @@ def _raster_reader(
117
117
lazy_tiles=True,
118
118
**options):
119
119
"""
120
-
Returns a Spark DataFrame from raster data files specified by URI pointers
121
-
The returned DataFrame will have a column of (CRS, Extent, Tile) for each URI read
122
-
Multiple bands from the same raster file are spread across rows of the DataFrame. See band_indexes param.
123
-
If bands from a scene are stored in separate files, provide a DataFrame to the `source` parameter. Each row in the returned DataFrame will contain one (CRS, Extent, Tile) for each item in `catalog_col_names`
120
+
Returns a Spark DataFrame from raster data files specified by URIs.
121
+
Each row in the returned DataFrame will contain a column with struct of (CRS, Extent, Tile) for each item in
122
+
`catalog_col_names`.
123
+
Multiple bands from the same raster file are spread across rows of the DataFrame. See `band_indexes` param.
124
+
If bands from a scene are stored in separate files, provide a DataFrame to the `source` parameter.
124
125
125
126
For more details and example usage, consult https://rasterframes.io/raster-read.html
126
127
127
-
:param source: a string, list of strings, list of lists of strings, a pandas DataFrame or a Spark DataFrame giving URIs to the raster data to read
128
-
:param catalog_col_names: required if source is a DataFrame or CSV string. It is a list of strings giving the names of columns containing URIs to read
129
-
:param band_indexes: list of integers indicating which bands, zero-based, to read from the raster files specified; default is to read only the first band
130
-
:param tile_dimensions: tuple or list of two indicating the default tile dimension as (columns, rows)
131
-
:param lazy_tiles: If true (default) only generate minimal references to tile contents; if false, fetch tile cell values
132
-
:param options: Additional keyword arguments to pass to the spark DataSource
128
+
:param source: a string, list of strings, list of lists of strings, a Pandas DataFrame or a Spark DataFrame giving URIs to the raster data to read.
129
+
:param catalog_col_names: required if `source` is a DataFrame or CSV string. It is a list of strings giving the names of columns containing URIs to read.
130
+
:param band_indexes: list of integers indicating which bands, zero-based, to read from the raster files specified; default is to read only the first band.
131
+
:param tile_dimensions: tuple or list of two indicating the default tile dimension as (columns, rows).
132
+
:param lazy_tiles: If true (default) only generate minimal references to tile contents; if false, fetch tile cell values.
133
+
:param options: Additional keyword arguments to pass to the Spark DataSource.
0 commit comments