Skip to content

How do I open datasets with nested groups using xr.open_mfdatasets? #1284

@mccabete

Description

@mccabete

Description

I am working with precipitation data. I was delighted that some precip products, like the daily IMERG '10.5067/GPM/IMERGDF/DAY/07' work out-of-the-box using the provided cloud-access documentation example.

Other products are more complicated. For example, I figured out that I needed to include more parameters in xr.open_mfdataset() for half-hourly ('10.5067/GPM/IMERG/3B-HH/07'), because it sotred within the group "grid".

ds = xr.open_mfdataset(fn, group="Grid", concat_dim="time", combine="nested", coords="all", data_vars="all")

But I am still struggling with how to open files with a more complicated nesting structure, like the GPROF data ('10.5067/GPM/GMI/GPM/GPROF/2A/07'), which is nested at multiple levels. Is there a standard protocol?

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: experience reportA report of the user's personal subjective experience using this software

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions