Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions docs/src/leaderboard.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,10 @@ dictionaries must use the same short names as the keys so that the right simulat
observational data are compared.

!!! tip "Preprocessing"
Observational and simulational data should be preprocessed for dates and units. For
simulation data, monthly averages correspond to the first day following the month.
For instance, the monthly average corresponding to January 2010 is on the date
2/1/2010. Preprocessing is done to shift this date to 1/1/2010. When preprocessing
data, we follow the convention that the first day corresponds to the monthly average
for that month. For observational data, you should check the convention being followed
and preprocess the dates if necessary.
Observational and simulational data should be preprocessed for dates and units. When
preprocessing data, we follow the convention that the first day corresponds to the
monthly average for that month. For observational data, you should check the convention
being followed and preprocess the dates if necessary.

For `obs_var_dict`, the anonymous function must take in a start date. The start date is
used in `leaderboard.jl` to adjust the seconds in the `OutputVar` to match between start
Expand Down
2 changes: 1 addition & 1 deletion experiments/ClimaEarth/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ CUDA = "5"
ClimaAnalysis = "0.5.10"
ClimaAtmos = "0.27, 0.28, 0.29, 0.30, 0.31"
ClimaCalibrate = "0.1"
ClimaDiagnostics = "0.2.6"
ClimaDiagnostics = "0.3"
ClimaLand = "1.1"
ClimaOcean = "0.8.6"
ClimaParams = "1.0"
Expand Down
8 changes: 2 additions & 6 deletions experiments/ClimaEarth/leaderboard/data_sources.jl
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ To add a variable for the leaderboard, add a key-value pair to the dictionary
`sim_var_dict` whose key is the short name of the variable and the value is an
anonymous function that returns a `OutputVar`. For each variable, any
preprocessing should be done in the corresponding anonymous function which
includes unit conversion and shifting the dates.
includes unit conversion.

The variable should have only three dimensions: latitude, longitude, and time.
"""
Expand All @@ -101,7 +101,6 @@ function get_sim_var_dict(diagnostics_folder_path)
"mm/day",
conversion_function = x -> x .* Float32(-86400),
)
sim_var = ClimaAnalysis.shift_to_start_of_previous_month(sim_var)
return sim_var
end
)
Expand All @@ -116,7 +115,6 @@ function get_sim_var_dict(diagnostics_folder_path)
reduction = "average",
period = "1M",
)
sim_var = ClimaAnalysis.shift_to_start_of_previous_month(sim_var)
return sim_var
end
)
Expand Down Expand Up @@ -255,7 +253,7 @@ To add a variable for the leaderboard, add a key-value pair to the dictionary
`sim_var_dict` whose key is the short name of the variable and the value is an
anonymous function that returns a `OutputVar`. For each variable, any
preprocessing should be done in the corresponding anonymous function which
includes unit conversion and shifting the dates.
includes unit conversion.

The variable should have only four dimensions: latitude, longitude, time, and
pressure. The units of pressure should be in hPa.
Expand Down Expand Up @@ -305,8 +303,6 @@ function get_sim_var_in_pfull_dict(diagnostics_folder_path)
sim_var_windowed,
pfull_var_windowed,
)
sim_in_pfull_var =
ClimaAnalysis.shift_to_start_of_previous_month(sim_in_pfull_var)
sim_in_pfull_var = ClimaAnalysis.convert_dim_units(
sim_in_pfull_var,
"pfull",
Expand Down
Loading