home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 501014979

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/3013#issuecomment-501014979 https://api.github.com/repos/pydata/xarray/issues/3013 501014979 MDEyOklzc3VlQ29tbWVudDUwMTAxNDk3OQ== 191850 2019-06-11T20:42:37Z 2019-06-11T20:42:37Z CONTRIBUTOR

Does rasterio define a set of valid attributes or can you assign arbitrary attributes? If so, should we read and assign all attributes as we do for netCDF files?

@dcherian the attributes are pre-defined. Looking at the source code[1] of rasterio I found this list:

property nodatavals # Nodata values for each band property nodata # The dataset's single nodata value property mask_flag_enums # Sets of flags describing the sources of band masks. property crs # The dataset's coordinate reference system property descriptions # Descriptions for each dataset band property transform # The dataset's georeferencing transformation matrix property offsets # Raster offset for each dataset band property scales # Raster scale for each dataset band property units # A list of str: one units string for each dataset band property bounds # Returns the lower left and upper right bounds of the dataset property res # Returns the (width, height) of pixels in the units of its

I belive that the attributes not handled yet by xarray are: scales, offsets and units.

[1] - https://github.com/mapbox/rasterio/blob/1.0.24/rasterio/_base.pyx

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