Skip to content

Outstanding review issues from #3096 (gridcell rotations) #3114

@pp-mo

Description

@pp-mo

Premature merge.
Outstanding comments :


Missing test aspects : originally from #3103

CODE CHANGES

ANGLES TEST ASPECTS : testing of 'grid_angles'

  • THINK THIS IS ALL NOW COVERED BY Vector plots 2 #3120 (check when that is accepted)
  • (cube)
  • unrecognised inputs (no shapes)
  • missing y + x not cube
  • coords
    • not 2d : (support?)
    • different shapes : error (except 1d?)
    • different cube dims (2d : ok for 1d)
    • different cs : error
    • no cs, but not angles, i.e. plain X+Y coords : ??
    • X/Y = coord/not, and not/coord
    • cell_angle_boundpoints unrecognised

ROTATE TEST ASPECTS : testing of 'rotate_grid_vectors'

  • u+v
  • u+v with angles supplied
  • u+v with angles derived from u
  • angles method key
  • check that magnitudes remain unchanged
  • check actual angles-rotation calculation (known vector + angles)
  • check that non-2d cubes work (not supported now ?)
  • check masking of invalid points
  • check behaviour with 0-vectors ?
  • Exceptions:
    • angles not angular (bad unit)
    • u+v not same shape (implied by arithmetic)
    • angles not same dims as u+v (implied by arithmetic)
  • ?possibly~ : NaN angles handling ?

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