Skip to content

Conversation

@RubenImhoff
Copy link
Contributor

This PR fixes #481.

I have added a first, draft, approach to move to full NWP weights at the end of timesteps, if requested by the user. The method adds an additional input parameter for the steps.blending.forecast function:
timestep_start_full_nwp_weight: int, optional:
The timestep, which should be smaller than timesteps, at which a linear
transition takes place from the calculated weights to full NWP weight
(and zero extrapolation and noise weight) to ensure the blending
procedure becomes equal to the NWP forecast(s) at the last timestep
of the blending procedure. If not provided, the blending stick to the
theoretical weights provided by the chosen weights_method for a given
lead time and skill of each blending component.

If a value is set for timestep_start_full_nwp_weight, the blending weights will linearly move from the weights at timestep timestep_start_full_nwp_weight to full weight (1.0) for the NWP component and zero (0.0) weight for the extrapolation and noise cascade components at the final timestep of the blending procedure.

I have given it a first test with the gallery example data from Australia. We only have three hours of NWP sample data here, so timestep_start_full_nwp_weight is set at 12 (2 hour lead time) and timesteps is set at 18 (3 hours in total).

Testing this with the BPS weights, give the following weights with (a) indicating the current setup and (b) indicating the setup where timestep_start_full_nwp_weight is applied:
Blending_weights_BPS

The forecast will then change from:
[original]
Forecast_example_bps_weights_original

to:
[adjusted]
Forecast_example_bps_weights_adjusted

Forecast_BPS_adjusted

@RubenImhoff RubenImhoff self-assigned this Jan 27, 2026
@RubenImhoff RubenImhoff added the enhancement New feature or request label Jan 27, 2026
@RubenImhoff
Copy link
Contributor Author

For the SPN weights, the same setup results in:

Blending_weights_SPN

[Original test]
Forecast_example_spn_weights_original

[Adjusted setup]
Forecast_example_spn_weights_adjusted

@RubenImhoff
Copy link
Contributor Author

Tests fail on the T-dating functionality, for some reason, but locally all tests do succeed. I am not sure why..

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 this pull request may close these issues.

Allow for possibility to end with full NWP weight at end of blending

2 participants