Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QCEFF RTPS inflate #748

Open
hkershaw-brown opened this issue Oct 3, 2024 · 8 comments
Open

QCEFF RTPS inflate #748

hkershaw-brown opened this issue Oct 3, 2024 · 8 comments
Labels
Bug Something isn't working inflation QCEFF quantile conserving filters

Comments

@hkershaw-brown
Copy link
Member

In filter_ensemble_inflate inflation does transform to/from probit.

non-RTPS inflation:

transform_to_probit
inflate
transform_from_probit

! This is an initial test of doing inflation in probit space
! Note that this appears to work with adaptive inflation, but more research would be good
! Probably also shouldn't be used with groups for now although it is coded to do so
do j = 1, ens_handle%my_num_vars
call get_state_meta_data(ens_handle%my_vars(j), my_state_loc, my_state_kind)
! Need to specify what kind of prior to use for each
call probit_dist_info(my_state_kind, .true., .true., dist_type, &
bounded_below, bounded_above, lower_bound, upper_bound)
call transform_to_probit(grp_size, ens_handle%copies(grp_bot:grp_top, j), &
dist_type, dist_params, probit_ens(1:grp_size), .false., &
bounded_below, bounded_above, lower_bound, upper_bound)
! Compute the ensemble mean in transformed space
probit_ens_mean = sum(probit_ens(1:grp_size)) / grp_size
! Inflate in probit space
call inflate_ens(inflate, probit_ens(1:grp_size), probit_ens_mean, &
ens_handle%copies(inflate_copy, j))
! Transform back from probit space
call transform_from_probit(grp_size, probit_ens(1:grp_size), &
dist_params, ens_handle%copies(grp_bot:grp_top, j))
end do

RTPS inflation:

inflate

if ( do_rtps_inflate(inflate)) then
if ( present(SPARE_PRIOR_SPREAD) .and. present(ENS_SD_COPY)) then
write(msgstring, *) ' doing RTPS inflation'
call error_handler(E_MSG,'filter_ensemble_inflate:',msgstring,source)
!Reset the RTPS factor to the given input.nml value
ens_handle%copies(inflate_copy, 1:ens_handle%my_num_vars) = inf_initial(POSTERIOR_INF)
do j = 1, ens_handle%my_num_vars
call inflate_ens(inflate, ens_handle%copies(grp_bot:grp_top, j), &
ens_handle%copies(ENS_MEAN_COPY, j), ens_handle%copies(inflate_copy, j), 0.0_r8, &
ens_handle%copies(SPARE_PRIOR_SPREAD, j), ens_handle%copies(ENS_SD_COPY, j))
end do
else
write(msgstring, *) 'internal error: missing arguments for RTPS inflation, should not happen'
call error_handler(E_ERR,'filter_ensemble_inflate',msgstring,source)
endif
else

@hkershaw-brown hkershaw-brown added the QCEFF quantile conserving filters label Oct 3, 2024
@hkershaw-brown hkershaw-brown added Bug Something isn't working inflation labels Oct 31, 2024
@hkershaw-brown
Copy link
Member Author

Need to add RTPS to tests.
Unclear if it is intentionally not being probit transformed (incompatible?) or an oversight.

@hkershaw-brown
Copy link
Member Author

notes from conversation: RTPS is not compatible with QCEFF.

@jlaucar
Copy link
Contributor

jlaucar commented Dec 20, 2024 via email

@hkershaw-brown
Copy link
Member Author

Documented in the documentation and code corrected, right? The code is silently ignoring QCEFF at the moment. If someone selects RTPS inflation, should qceff be disabled?

I'm assuming the QCEFF patch is this branch: https://github.com/NCAR/DART/tree/qceff_inflation_fix ? So separate issue to RTPS?

@jlaucar
Copy link
Contributor

jlaucar commented Dec 20, 2024 via email

@hkershaw-brown
Copy link
Member Author

Yup, this RTPS issue is its own issue (#748) separate from the other QCEFF issues
https://github.com/NCAR/DART/issues?q=is%3Aopen+is%3Aissue+label%3AQCEFF

For the group filter combo with QCEFF - the best place to document an issue is to make a new issue in github. Label it QCEFF so someone can look at all the QCEFF issues if needed, and we can close the separate issues as they get fixed.

@jlaucar
Copy link
Contributor

jlaucar commented Dec 23, 2024 via email

@hkershaw-brown
Copy link
Member Author

thanks @jlaucar they look exactly the same to me, I'll change the title.

@hkershaw-brown hkershaw-brown changed the title QCEFF rpts inflate QCEFF RTPS inflate Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working inflation QCEFF quantile conserving filters
Projects
None yet
Development

No branches or pull requests

2 participants