Skip to content

IRIS: site_coords southern-latitude fold uses lon instead of lat #391

Description

@aladinor

Summary

IrisStore.site_coords folds southern-hemisphere latitudes using lon instead of lat (iris.py, main, ~line 3737):

lon = lon if lon <= 180 else lon - 360
# todo: is this correct for southern latitudes?
lat = lat if lat <= 180 else lon - 360   # <-- lon, should be lat

Any Sigmet site with BIN4 latitude > 180 (southern hemisphere) reports latitude == longitude - 360. The adjacent # todo suggests the line was already under suspicion.

Expected

lat = lat if lat <= 180 else lat - 360

xradar 0.12.1.dev9+gd723857f2 (main).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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