Skip to content

Potential bug with zero length variables? #323

@bryan-harter

Description

@bryan-harter

(This was written on behalf of an IMAP user)

I am running into an issue with cdflib cdf_to_xarray and wanted to ask about a specific check. I have a circumstance where I am producing a CDF with two independent time variables, each has an associated set of variables that set DEPEND_0 to point to the one they are associated with. It is possible that one of the sets will have zero entries. When I load such a file, I believe that the second check on the linked line is causing the xarray.Dataset to not have the correct coordinates for the set of zero length variables. Do you know why the and len(var_data) != 0 is added? https://github.com/MAVENSDC/cdflib/blob/main/cdflib/xarray/cdf_to_xarray.py#L388

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions