home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 362674117

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions performed_via_github_app issue
https://github.com/pydata/xarray/pull/1881#issuecomment-362674117 https://api.github.com/repos/pydata/xarray/issues/1881 362674117 MDEyOklzc3VlQ29tbWVudDM2MjY3NDExNw== 1217238 2018-02-02T18:58:24Z 2018-02-02T18:58:24Z MEMBER

OK, LGTM

On Fri, Feb 2, 2018 at 10:57 AM Fabien Maussion notifications@github.com wrote:

@fmaussion commented on this pull request.

In doc/gallery/plot_rasterio_rgb.py https://github.com/pydata/xarray/pull/1881#discussion_r165728954:

+ +import os +import urllib.request +import xarray as xr +import cartopy.crs as ccrs +import matplotlib.pyplot as plt + +# Download the file from rasterio's repository +url = 'https://github.com/mapbox/rasterio/raw/master/tests/data/RGB.byte.tif' +urllib.request.urlretrieve(url, 'RGB.byte.tif') + +# Read the data +da = xr.open_rasterio('RGB.byte.tif') + +# Normalize the image +da = da / 255

That's unfortunately necessary, see #1880 https://github.com/pydata/xarray/issues/1880

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pydata/xarray/pull/1881#discussion_r165728954, or mute the thread https://github.com/notifications/unsubscribe-auth/ABKS1nkIbFX5Fez6jbcpsykDaC6_s1ZJks5tQ1pDgaJpZM4R3GRI .

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  293869118
Powered by Datasette · Queries took 0.893ms · About: xarray-datasette