starepandas.read_geotiff#
- read_geotiff(file_path, bands=None, add_sids=False, add_pts=False, add_xy=False, add_coordinates=False, add_latlon=False, add_trixels=False, n_workers=1)#
Reads a geotiff into a STAREDataFrame
- Parameters
- file_path: str
location of geotiff
- bands: list
only read the specified bands. Default: Read all bands
- add_sids: bool
toggle adding spatial indices
- add_pts: bool
toggle adding shapely points to the dataframe
- add_xy: bool
toggle adding the x/y array coordinates
- add_coordinates: bool
toggle adding native coordinates
- add_latlon: bool
toggle adding the WGS84 latitudes and longitudes
- add_trixels: bool
toggle adding trixels
- n_workers: int
number of workers to use to make trixels (default: 1)
- Returns
- sdf: STAREDataFrame
the dataframe