issues: 428300345
This data as json
id | node_id | number | title | user | state | locked | assignee | milestone | comments | created_at | updated_at | closed_at | author_association | active_lock_reason | draft | pull_request | body | reactions | performed_via_github_app | state_reason | repo | type |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
428300345 | MDU6SXNzdWU0MjgzMDAzNDU= | 2864 | Bug in WarpedVRT support of open_rasterio() | 10595679 | closed | 0 | 3 | 2019-04-02T15:37:08Z | 2019-04-11T16:24:13Z | 2019-04-11T16:24:13Z | CONTRIBUTOR | Code Sample, a copy-pastable example if possibleUsing the following data: https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/blob/develop/Data/Input/QB_Toulouse_Ortho_XS.tif ```python import rasterio as rio from rasterio.crs import CRS from rasterio.warp import calculate_default_transform,aligned_target from rasterio.enums import Resampling from rasterio.vrt import WarpedVRT import xarray as xr path = 'QB_Toulouse_Ortho_XS.tif' Read input metadata with rasteriowith rio.open(path) as src:
print('Input file CRS is {}'.format(src.crs))
print('Input file shape is {}'.format(src.shape))
print('Input file transform is {}'.format(src.transform))
# Create a different CRS Problem descriptionIn the above example, Expected OutputCorrect output should be:
Which is fairly easy to obtain by modifying the following lines in With the following:
Output of
|
{ "url": "https://api.github.com/repos/pydata/xarray/issues/2864/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |