Skip to content

something requires 3-character month names #274

Description

@painter1

I ran plot set 8 on variable T, NCEP obs, season ANN. I noticed that July was the coldest month in the Arctic, and the warmest in the Antarctic! After a bunch of messing around, I changed
month = cdutil.times.getMonthString(i)
in amwg8.py to
month = cdutil.times.getMonthString(i)[:3]

That fixed it.

Obviously, the bug isn't here; a string like "JANUARY" is a legitimate name for a month. Something somewhere assumes that a month or season name is three characters or less. Whatever it is, that function should be more flexible.

This is low priority because I have already worked around the problem.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions