Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions pygmt/datasets/tile_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def load_tile_map(
Frozen({'band': 3, 'y': 256, 'x': 512})
>>> raster.coords # doctest: +ELLIPSIS, +NORMALIZE_WHITESPACE
Coordinates:
* band (band) uint8 ... 0 1 2
* band (band) uint8 ... 1 2 3
* y (y) float64 ... -7.081e-10 -7.858e+04 ... -1.996e+07 -2.004e+07
* x (x) float64 ... -2.004e+07 -1.996e+07 ... 1.996e+07 2.004e+07
spatial_ref int64 ... 0
Expand All @@ -122,8 +122,7 @@ def load_tile_map(
raise ImportError(
"Package `contextily` is required to be installed to use this function. "
"Please use `python -m pip install contextily` or "
"`mamba install -c conda-forge contextily` "
"to install the package."
"`mamba install -c conda-forge contextily` to install the package."
)

contextily_kwargs = {}
Expand Down Expand Up @@ -158,7 +157,7 @@ def load_tile_map(
dataarray = xr.DataArray(
data=rgb_image,
coords={
"band": np.array(object=[0, 1, 2], dtype=np.uint8), # Red, Green, Blue
"band": np.array(object=[1, 2, 3], dtype=np.uint8), # Red, Green, Blue
"y": np.linspace(start=top, stop=bottom, num=rgb_image.shape[1]),
"x": np.linspace(start=left, stop=right, num=rgb_image.shape[2]),
},
Expand Down