Skip to content

Refactor read_routines functions to return xr.Dataset instead of Python dict #19

@MrHaikuSwan

Description

@MrHaikuSwan

Currently, the read_routines reading functions create an in-memory representation of a netCDF file using a Python dictionary; the read_blocked_netcdf_header and read_blocked_netcdf_file functions in particular use a custom DataArray subclass of np.ndarray to attach variable metadata to a numpy array.

This would be accomplished in an easier-to-understand way using xarray, whose Dataset class is designed to accomplish exactly this more cleanly. However, xarray requires the name change from PR#76 from AetherModel/aether to actually work; after that is completed, read_routines should be refactored to use xr.Dataset instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions