Skip to content

Conversation

@drdunmire1417
Copy link
Collaborator

Fixed bug with the implementation of the multiplicative observation error for the ensemble kalman filter

std(g) = obsstd(g)*value1(g)
if(std(g).eq.0) std(g) = 0.1

if(std(g).eq.0) then ! if observation std = 0, calculate std of model ensembles
Copy link
Collaborator

@gdelannoy gdelannoy Oct 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a good fix for snow DA, and for our specific application. However, (1) I can imagine objections about passing information on the obs_predictions into the generation of observation specs, but do not have an efficient alternative right away. Maybe it needs to be a separate 'post'-observation routine, that kicks in for specific observation types, but I am not sure. (2) If this is done in the enkf, do we need something similar in the other DA tools? Both concerns are just to keep in mind - I am not saying that we need to do it now.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On (1): We could consider including in the pert_attrbs a user-defined parameter that defines a minimum obs error in the case of the multiplicative obs error option. This would make it obsolete to pass the obs_predictions. This would also solve the problem that an obs value slightly above 0 would cause a switch to the else statement which results in an abrupt change of the error from one time step to the other. This could be avoided by using this minimum obs error for low values in the observations.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I think that Michel's suggestion is a good solution. We would probably need to pass in 2 parameters: #1 - the minimum value, below which a constant error is set, #2 - the constant error for these near-0 values

@gdelannoy gdelannoy self-requested a review October 22, 2024 13:59
@mbechtold mbechtold changed the title fixed bug with multiplicative observation error BUG: fixed bug with multiplicative observation error Oct 22, 2024
Copy link
Collaborator

@mbechtold mbechtold left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great this option becomes usable with that bug fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants