Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add White Christmas and Perfect Christmas indicators #2029

Open
2 tasks done
Zeitsperre opened this issue Dec 18, 2024 · 1 comment · May be fixed by #2030
Open
2 tasks done

Add White Christmas and Perfect Christmas indicators #2029

Zeitsperre opened this issue Dec 18, 2024 · 1 comment · May be fixed by #2030
Assignees
Labels
enhancement New feature or request

Comments

@Zeitsperre
Copy link
Collaborator

Zeitsperre commented Dec 18, 2024

Addressing a Problem?

This is more of an added extra based on a page I found on Environment Canada: https://www.canada.ca/en/environment-climate-change/services/weather-general-tools-resources/historical-christmas-snowfall-data.html

Two indicators are listed here:

  • "White Christmas": "Snow on the ground of 2 cm or more on Christmas morning at 7 a.m. EST"
  • "Perfect Christmas": "Snow on the ground of 2 cm or more on Christmas morning and snow in the air sometime Christmas day"

This could be a festive addition to the indicators list ❄

Potential Solution

Adding these indicators using the following variables:

  • snd > "2 cm" where date == "12-25"
  • (snd > "2 cm" && prsn > "1 cm") where date == "12-25"

Additional context

Adding these indicators for data with standard calendars is probably inconsequential, but some care might be needed when dealing with some non-standard calendars (360-day, specifically).

This would really only be useful for examining historical weather records, similar to what Environment Canada is presenting.

In order for this to be of value to projected climate data, broadening the windows of number of days around Dec 25th could be useful (±2 days?) if we want to establish statistical probability of the conditions.

Contribution

  • I would be willing/able to open a Pull Request to contribute this feature.

Code of Conduct

  • I agree to follow this project's Code of Conduct
@Zeitsperre Zeitsperre added the enhancement New feature or request label Dec 18, 2024
@Zeitsperre Zeitsperre self-assigned this Dec 18, 2024
@coxipi
Copy link
Contributor

coxipi commented Dec 18, 2024

"Perfect" Christmas is quite subjective ... hehe (I think I would invert the logical operator personally)

We had this indicator in PINS:

  christmas_snw_days:
    base: snw_season_length
    cf_attrs:
      long_name: Christmas days with snow
      description: Number of days with a snow cover in a 16 days window around Christmas time.
    parameters:
      thresh: 4 kg m-2
      freq: AS-JUL
      indexer:
        date_bounds:
          - 12-19
          - 01-03

so date_bounds can be used for your ±2 days.

@Zeitsperre Zeitsperre linked a pull request Dec 19, 2024 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants