8000 read and write sparse matrix with intersection weights using xarray · Issue #126 · pycomlink/pycomlink · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
read and write sparse matrix with intersection weights using xarray #126
Open
@cchwala

Description

@cchwala

The calculation of the sparse intersection weights via calc_intersect_weights is fairly slow (approx. 4 minutes for 4000 CMLs and the 900x900 RADOLAN grid) and the resulting weight matrix would be large in dense format. Hence, it is often required to write the sparse intersection weights to disk and read them back in later to reuse them. Writing sparse data to a file e.g. in COO format is possible, but we want to keep the linkage to the indices that we have in the xarray.DataArray of the sparse weights matrix.

What we need is a function to read and write a xarray.DataArray, containing a sparse matrix, to NetCDF or zarr.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0