-
I am trying to compute means for every day across a couple of decades for a given climate model. My recipe looks like this : # ESMValTool
# recipe_test_daily_projections.yml
---
documentation:
description: |
Recipe that calculates daily means.
title: Recipe to calculate daily means.
authors:
- swaminathan_ranjini
maintainer:
- swaminathan_ranjini
projects:
- ukesm
preprocessors:
preproc_daily_data_means:
daily_statistics:
operator: mean
datasets:
- {dataset: UKESM1-0-LL, project: CMIP6, exp: [historical,ssp585], ensemble: r1i1p1f2, start_year: 2063, end_year: 2083, grid: gn}
diagnostics:
daily_means:
description: Daily mean calculations
themes:
- phys
realms:
- atmos
variables:
tas:
mip: day
preprocessor: preproc_daily_data_means
scripts: null
I want to get 360 values with the mean for |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
I think I can self-answer the above question now. The daily mean statistic aggregates by day and year so I need to have two datasets spanning the same years for averaging across them. |
Beta Was this translation helpful? Give feedback.
-
I'm not completely sure, but I think there may be confusion here. Daily statistics will aggregate sub-daily data to daily data, i.e. it will take, for example, 6-hourly data at hours 0, 6, 12, and 18 and calculate the mean as their sum divided by 4. This is in line with the other statistics preprocessors for time (hourly, monthly, seasonal, annual, and decadal). It sounds like what you are trying to do is take daily data across many years and turn this data into daily data that is representative of the data in the entire timespan, i.e. average all first of January across all the years etc. This is called a climatology and can be calculated with the |
Beta Was this translation helpful? Give feedback.
-
Thanks @zklaus , this is useful to know. I hadn't used this climate statistic before. Will this apply if I have 10 year periods with different start and end years for each data set? |
Beta Was this translation helpful? Give feedback.
I'm not completely sure, but I think there may be confusion here.
Daily statistics will aggregate sub-daily data to daily data, i.e. it will take, for example, 6-hourly data at hours 0, 6, 12, and 18 and calculate the mean as their sum divided by 4. This is in line with the other statistics preprocessors for time (hourly, monthly, seasonal, annual, and decadal).
It sounds like what you are trying to do is take daily data across many years and turn this data into daily data that is representative of the data in the entire timespan, i.e. average all first of January across all the years etc. This is called a climatology and can be calculated with the
climate_statistics
preprocessor.