Skip to content

shape parameter smaller than -1 in modified gamma distribution #22

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

Open
markuskarrer opened this issue Jan 28, 2020 · 1 comment
Open

Comments

@markuskarrer
Copy link
Collaborator

Some paper report negative values for the shape parameter ("mu"; down to -2) in the normalized gamma distribution (e.g. Tiira et al., 2016). I am trying to use pamtra with a wide range of shape parameters (including these negative values with the assumptions in the Seifert-Beheng scheme. The Seifert-Beheng scheme assumes a modified gamma distribution. As I understand this requires the shape parameter to be greater than -1. This fact causes errors in make_dist_params.f90 if the shape parameter is below (or even close to -1). Is there a workaround for lower values of the shape parameters or would we need to implement another distribution type?

@DaveOri
Copy link
Collaborator

DaveOri commented Jan 28, 2020

I have the feeling that this is due to the fact we are assuming infinite distributions in PAMTRA. For infinite distributions the moment formulations is like
M_k = N0 * gammafunc(x)/(gamma*lambda**x)
where x = (mu + k + 1)/gamma

The complete gammafunc is indefinite for x==0 or x==any negative integer value.
This condition is met for k==0 already with mu==-1

I have the feeling that this is the problem we are facing and if this is the case I do not have a rapid solution for it.
The workaround would be to drop from the complete distributions for these cases, cut the distribution at Dmin and Dmax and calculate the moments numerically. This would also introduce a different behaviour of pamtra for specific values which is something I would discourage.

In any case, the gammafunc is the solution of our problem if, and only if, x>0, thus, we cannot use the formula if mu<=-1 when dealing with N0, if mu<=-3 when dealing with r_eff and mu<=-4 if mixing_ratio only is provided.

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

No branches or pull requests

2 participants