Skip to content

Success of arithmetic between 2 fields sometimes depends on which field is on the LHS #16

@davidhassell

Description

@davidhassell
>>> f
<CF Field: long_name=SURFACE TILE FRACTIONS(time(136), long_name=pseudolevel(29), latitude(144), longitude(192))>
>>> g
<CF Field: long_name=FRACTION OF LAND(time(136), latitude(144), longitude(192))>
>>> f * g
<CF Field: long_name=SURFACE TILE FRACTIONS(time(136), long_name=pseudolevel(29), latitude(144), longitude(192))>
>>> g * f
ValueError: Can't set <CF DimensionCoordinate: long_name=pseudolevel(29) 1>: Data shape of (29,) does not match the shape required by domain axes (): ()

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions