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: leafmap/foliumap.py
+6-6
Original file line number
Diff line number
Diff line change
@@ -568,8 +568,8 @@ def add_raster(
568
568
defadd_remote_tile(
569
569
self,
570
570
source: str,
571
-
band: Optional[int] =None,
572
-
palette: Optional[str] =None,
571
+
indexes: Optional[int] =None,
572
+
colormap: Optional[str] =None,
573
573
vmin: Optional[float] =None,
574
574
vmax: Optional[float] =None,
575
575
nodata: Optional[float] =None,
@@ -581,8 +581,8 @@ def add_remote_tile(
581
581
582
582
Args:
583
583
source (str): The path to the remote Cloud Optimized GeoTIFF.
584
-
band (int, optional): The band to use. Band indexing starts at 1. Defaults to None.
585
-
palette (str, optional): The name of the color palette from `palettable` to use when plotting a single band. See https://jiffyclub.github.io/palettable. Default is greyscale
584
+
indexes (int, optional): The band(s) to use. Band indexing starts at 1. Defaults to None.
585
+
colormap (str, optional): The name of the colormap from `matplotlib` to use when plotting a single band. See https://matplotlib.org/stable/gallery/color/colormap_reference.html. Default is greyscale.
586
586
vmin (float, optional): The minimum value to use when colormapping the palette when plotting a single band. Defaults to None.
587
587
vmax (float, optional): The maximum value to use when colormapping the palette when plotting a single band. Defaults to None.
588
588
nodata (float, optional): The value from the band to use to interpret as not valid data. Defaults to None.
Copy file name to clipboardexpand all lines: leafmap/leafmap.py
+10-10
Original file line number
Diff line number
Diff line change
@@ -2170,8 +2170,8 @@ def toolbar_reset(self):
2170
2170
defadd_raster(
2171
2171
self,
2172
2172
source,
2173
-
band=None,
2174
-
palette=None,
2173
+
indexes=None,
2174
+
colormap=None,
2175
2175
vmin=None,
2176
2176
vmax=None,
2177
2177
nodata=None,
@@ -2191,8 +2191,8 @@ def add_raster(
2191
2191
2192
2192
Args:
2193
2193
source (str): The path to the GeoTIFF file or the URL of the Cloud Optimized GeoTIFF.
2194
-
band (int, optional): The band to use. Band indexing starts at 1. Defaults to None.
2195
-
palette (str, optional): The name of the color palette from `palettable` to use when plotting a single band. See https://jiffyclub.github.io/palettable. Default is greyscale
2194
+
indexes (int, optional): The band(s) to use. Band indexing starts at 1. Defaults to None.
2195
+
colormap (str, optional): The name of the colormap from `matplotlib` to use when plotting a single band. See https://matplotlib.org/stable/gallery/color/colormap_reference.html. Default is greyscale.
2196
2196
vmin (float, optional): The minimum value to use when colormapping the palette when plotting a single band. Defaults to None.
2197
2197
vmax (float, optional): The maximum value to use when colormapping the palette when plotting a single band. Defaults to None.
2198
2198
nodata (float, optional): The value from the band to use to interpret as not valid data. Defaults to None.
0 commit comments