|
174 | 174 | _DEFAULT_VARIABLES,
|
175 | 175 | help='Comma delimited list of variables to select from weather.',
|
176 | 176 | )
|
| 177 | +AUX_VARIABLES = flags.DEFINE_list( |
| 178 | + 'aux_variables', |
| 179 | + None, |
| 180 | + help='Comma delimited list of auxiliary variables for metric evaluation.', |
| 181 | +) |
177 | 182 | DERIVED_VARIABLES = flags.DEFINE_list(
|
178 | 183 | 'derived_variables',
|
179 | 184 | [],
|
@@ -268,6 +273,7 @@ def main(argv: list[str]) -> None:
|
268 | 273 | """Run all WB2 metrics."""
|
269 | 274 | selection = config.Selection(
|
270 | 275 | variables=VARIABLES.value,
|
| 276 | + aux_variables=AUX_VARIABLES.value, |
271 | 277 | levels=[int(level) for level in LEVELS.value],
|
272 | 278 | time_slice=slice(TIME_START.value, TIME_STOP.value),
|
273 | 279 | )
|
@@ -521,6 +527,15 @@ def main(argv: list[str]) -> None:
|
521 | 527 | probabilistic_climatology_hour_interval=PROBABILISTIC_CLIMATOLOGY_HOUR_INTERVAL.value,
|
522 | 528 | output_format='zarr',
|
523 | 529 | ),
|
| 530 | + 'gaussian': config.Eval( |
| 531 | + metrics={ |
| 532 | + 'crps': metrics.GaussianCRPS(), |
| 533 | + 'ensemble_variance': metrics.GaussianVariance(), |
| 534 | + }, |
| 535 | + against_analysis=False, |
| 536 | + regions=regions, |
| 537 | + derived_variables=derived_variables, |
| 538 | + ), |
524 | 539 | }
|
525 | 540 | if not set(EVAL_CONFIGS.value.split(',')).issubset(eval_configs):
|
526 | 541 | raise flags.UnrecognizedFlagError(
|
|
0 commit comments