Skip to content

Commit

Permalink
RGB imshow example can use u8 array now
Browse files Browse the repository at this point in the history
  • Loading branch information
Zac-HD committed Feb 9, 2018
1 parent 182f563 commit 6f97143
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions doc/gallery/plot_rasterio_rgb.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,9 @@
# Read the data
da = xr.open_rasterio('RGB.byte.tif')

# Normalize the image
da = da / 255

# The data is in UTM projection. We have to set it manually until
# https://github.com/SciTools/cartopy/issues/813 is implemented
# https://github.com/SciTools/cartopy/issues/813 is implemented, so that
# the coastlines are drawn in the same coordinate system as the image.
crs = ccrs.UTM('18N')

# Plot on a map
Expand Down

0 comments on commit 6f97143

Please sign in to comment.