@@ -113,7 +113,7 @@ def load_tile_map(
113
113
Frozen({'band': 3, 'y': 256, 'x': 512})
114
114
>>> raster.coords # doctest: +ELLIPSIS, +NORMALIZE_WHITESPACE
115
115
Coordinates:
116
- * band (band) uint8 ... 0 1 2
116
+ * band (band) uint8 ... 1 2 3
117
117
* y (y) float64 ... -7.081e-10 -7.858e+04 ... -1.996e+07 -2.004e+07
118
118
* x (x) float64 ... -2.004e+07 -1.996e+07 ... 1.996e+07 2.004e+07
119
119
spatial_ref int64 ... 0
@@ -122,8 +122,7 @@ def load_tile_map(
122
122
raise ImportError (
123
123
"Package `contextily` is required to be installed to use this function. "
124
124
"Please use `python -m pip install contextily` or "
125
- "`mamba install -c conda-forge contextily` "
126
- "to install the package."
125
+ "`mamba install -c conda-forge contextily` to install the package."
127
126
)
128
127
129
128
contextily_kwargs = {}
@@ -158,7 +157,7 @@ def load_tile_map(
158
157
dataarray = xr .DataArray (
159
158
data = rgb_image ,
160
159
coords = {
161
- "band" : np .array (object = [0 , 1 , 2 ], dtype = np .uint8 ), # Red, Green, Blue
160
+ "band" : np .array (object = [1 , 2 , 3 ], dtype = np .uint8 ), # Red, Green, Blue
162
161
"y" : np .linspace (start = top , stop = bottom , num = rgb_image .shape [1 ]),
163
162
"x" : np .linspace (start = left , stop = right , num = rgb_image .shape [2 ]),
164
163
},
0 commit comments