Skip to content

Commit

Permalink
Fix indentation on rasterio AttributeError check
Browse files Browse the repository at this point in the history
  • Loading branch information
djhoese committed Jan 28, 2019
1 parent 586513c commit 7ceaa1c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions xarray/backends/rasterio_.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,10 +282,10 @@ def open_rasterio(filename, parse_coordinates=None, chunks=None, cache=None,
# CRS is a dict-like object specific to rasterio
# If CRS is not None, we convert it back to a PROJ4 string using
# rasterio itself
try:
attrs['crs'] = riods.crs.to_proj4()
except AttributeError:
attrs['crs'] = riods.crs.to_string()
try:
attrs['crs'] = riods.crs.to_proj4()
except AttributeError:
attrs['crs'] = riods.crs.to_string()
if hasattr(riods, 'res'):
# (width, height) tuple of pixels in units of CRS
attrs['res'] = riods.res
Expand Down

0 comments on commit 7ceaa1c

Please sign in to comment.