Skip to content

Coordinate variables don't get units via pint-xarray #23

@lsterzinger

Description

@lsterzinger

Noticed this when doing ds.rams.lwp, the returned variables has units kilogram / meter**3 when the correct unit should be kilogram / meter**2. The unit of ds.zis not applied during ds.pint.quantify() so the .integrate('z') part of the LWP calculation does not affect the units.

This is a known issue with xarray and pint-xarray, as noted here https://pint-xarray.readthedocs.io/en/latest/generated/xarray.Dataset.pint.quantify.html#xarray-dataset-pint-quantify

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions