home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 510693104

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/issues/2042#issuecomment-510693104 https://api.github.com/repos/pydata/xarray/issues/2042 510693104 MDEyOklzc3VlQ29tbWVudDUxMDY5MzEwNA== 8699967 2019-07-11T23:46:38Z 2019-07-11T23:46:38Z CONTRIBUTOR

A new project called rioxarray has a to_raster method with the default driver of GTiff.

You can use it like so:

``` import rioxarray import xarray

xds = xarray.open_rasterio("myfile.tif") wgs84_xds = xds.rio.reproject("EPSG:4326") wgs84_xds.rio.to_raster("myfile_wgs84.tif") `` It currently only supports 2d/3dDataArrays. So, you would have to iterate over your variables to export each one to a raster if you have aDataset`.

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