home / github / issues

Menu
  • GraphQL API
  • Search all tables

issues: 252541192

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
252541192 MDU6SXNzdWUyNTI1NDExOTI= 1520 Rasterio CRS-attribute can be None 25015426 closed 0     1 2017-08-24T09:29:04Z 2017-09-01T17:58:42Z 2017-09-01T17:58:42Z CONTRIBUTOR      

open_rasterio does not work when rasterio crs is None. It is also clearly visible from the code that this is the case: Here's the code from line 144 onward python attrs = {}` if hasattr(riods, 'crs'): # CRS is a dict-like object specific to rasterio # We convert it back to a PROJ4 string using rasterio itself attrs['crs'] = riods.crs.to_string() if hasattr(riods, 'res'): # (width, height) tuple of pixels in units of CRS attrs['res'] = riods.res if hasattr(riods, 'is_tiled'): # Is the TIF tiled? (bool) # We cast it to an int for netCDF compatibility attrs['is_tiled'] = np.uint8(riods.is_tiled) if hasattr(riods, 'transform'): # Affine transformation matrix (tuple of floats) # Describes coefficients mapping pixel coordinates to CRS attrs['transform'] = tuple(riods.transform)`

I have version 1.0a9 for rasterio and 0.9.6 for xarray. For what I looked, the issue #1466 is related, but not same issue.

CRS is None when I read ENVI-dataset that has no georeferencing with rasterio.

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/1520/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  completed 13221727 issue

Links from other tables

  • 2 rows from issues_id in issues_labels
  • 1 row from issue in issue_comments
Powered by Datasette · Queries took 0.575ms · About: xarray-datasette