Skip to content

Subsetting not reducing memory consumption with mfdataset on Windows #1559

Closed
@jorgsk

Description

@jorgsk

On Windows, with the following code I run out of memory:

d = xr.open_mfdataset(filepath)
sed = d.sediment_mass_per_unit_area.isel(time=-1)
sed.load()
d.close()

but when using "open_dataset" I load the data instantly:

d = xr.open_dataset(filepath)
sed = d.sediment_mass_per_unit_area.isel(time=-1)
sed.load()
d.close()

On linux both methods use minimal memory. The target file is 1.5 GB, and the target variable is 1460x862x900 floats. Filepath is a single file, not multiple files. Xarray 0.9.6 used on both systems, installed with conda.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions