Skip to content

More calendars than just 'standard', '360-day' and '365-day' #5378

Closed as not planned
@HoWol76

Description

@HoWol76

if calendar == cf_units.CALENDAR_STANDARD:

My code just fails as it tries to read in a file with a calendar type 'proleptic_gregorian'

cf_units has several calendars:

CALENDAR_STANDARD = "standard"
CALENDAR_GREGORIAN = "gregorian"
CALENDAR_PROLEPTIC_GREGORIAN = "proleptic_gregorian"
CALENDAR_NO_LEAP = "noleap"
CALENDAR_JULIAN = "julian"
CALENDAR_ALL_LEAP = "all_leap"
CALENDAR_365_DAY = "365_day"
CALENDAR_366_DAY = "366_day"
CALENDAR_360_DAY = "360_day"

I just have this issue when I try to load an orography file, which has set the year to 0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    StaleA stale issue/pull-request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions