Skip to content

sel_season_area.py removal of months bugged #1

Open

Description

@jhardenberg

This part of sel_season does not remove correctly the first months in many cases (eg for the NDJFM season):

    if (12 in m) or (1 in m):
        #REMOVING THE FIRST MONTHS (for the first year) because there is no previuos december
        start=int(np.where(dates_season==datetime(dates_pdh.year[0], m[0], dates_pdh.day[0], dates_pdh.hour[0], dates_pdh.minute[0]))[0])
        #REMOVING THE LAST MONTHS (for the last year) because there is no following january
        end=int(np.where(dates_season==datetime(dates_pdh.year[-1], m[0], dates_pdh.day[0], dates_pdh.hour[0], dates_pdh.minute[0]))[0])
              
        var_season=var_season[start:end,:,:]
        dates_season=dates_season[start:end]

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions