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

Implement climatological anomalies #16

Closed
aazuspan opened this issue Sep 8, 2021 · 0 comments
Closed

Implement climatological anomalies #16

aazuspan opened this issue Sep 8, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@aazuspan
Copy link
Owner

aazuspan commented Sep 8, 2021

  • Create a wxee.TimeSeries.climatology_anomaly method
  • Include args for frequency and whether or not to standardize
  • Implementation:
    • To calculate anomalies, mean climatological normals will be required. Climatological standard deviations will be required for standardized anomalies.
    • For flexibility, this should probably be implemented with required arguments for climatological mean and standard deviation TimeSeries objects. Users would run wxee.TimeSeries.climatology_mean and wxee.TimeSeries.climatology_std to generate those inputs and then pass those and another TimeSeries to calculate anomalies from.

Something like:

ts = wxee.TimeSeries("IDAHO_EPSCOR/GRIDMET").filterDate("1981", "2011").select("pr")
mean = ts.climatology_mean("month")
std = ts.climatology_std("month")
anom = ts.climatology_anomaly("month", mean, std, standardize=True) 

Reference

@aazuspan aazuspan added the enhancement New feature or request label Sep 8, 2021
@aazuspan aazuspan self-assigned this Sep 8, 2021
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

No branches or pull requests

1 participant