home / github / issues

Menu
  • GraphQL API
  • Search all tables

issues: 435532136

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
435532136 MDU6SXNzdWU0MzU1MzIxMzY= 2911 Support from reading unformatted Fortran files 13205162 open 0     6 2019-04-21T17:50:52Z 2021-01-01T11:25:53Z   CONTRIBUTOR      

I was wondering if there is interest in developing support for reading unformatted binary files into DataArrays/Datasets.

I have been using a couple of models for a while that output unformatted Fortran binary files that I have to read into DataArrays and Datasets. I have developed my own custom functions to do this and they work quite well for my purposes, but I was wondering is the community thinks this is something that would be useful for more people. I know the syntax could be a bit cumbersome, but I was thinking it could be implemented like

da = xr.DataArray.from_binary(filename, access="direct", dtype=np.float64, coords=coords, dims=dims,)

From there we could figure out the counts to read, etc. If there's interest in this feature we could discuss it and I'd be happy to implement.

Cheers

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

Links from other tables

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