@@ -118,7 +118,7 @@ def load_tile_map(
118118 Frozen({'band': 3, 'y': 256, 'x': 512})
119119 >>> raster.coords # doctest: +ELLIPSIS, +NORMALIZE_WHITESPACE
120120 Coordinates:
121- * band (band) uint8 ... 0 1 2
121+ * band (band) uint8 ... 1 2 3
122122 * y (y) float64 ... -7.081e-10 -7.858e+04 ... -1.996e+07 -2.004e+07
123123 * x (x) float64 ... -2.004e+07 -1.996e+07 ... 1.996e+07 2.004e+07
124124 spatial_ref int64 ... 0
@@ -131,8 +131,7 @@ def load_tile_map(
131131 raise ImportError (
132132 "Package `contextily` is required to be installed to use this function. "
133133 "Please use `python -m pip install contextily` or "
134- "`mamba install -c conda-forge contextily` "
135- "to install the package."
134+ "`mamba install -c conda-forge contextily` to install the package."
136135 )
137136
138137 contextily_kwargs = {}
@@ -167,7 +166,7 @@ def load_tile_map(
167166 dataarray = xr .DataArray (
168167 data = rgb_image ,
169168 coords = {
170- "band" : np .array (object = [0 , 1 , 2 ], dtype = np .uint8 ), # Red, Green, Blue
169+ "band" : np .array (object = [1 , 2 , 3 ], dtype = np .uint8 ), # Red, Green, Blue
171170 "y" : np .linspace (start = top , stop = bottom , num = rgb_image .shape [1 ]),
172171 "x" : np .linspace (start = left , stop = right , num = rgb_image .shape [2 ]),
173172 },
0 commit comments