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

cal_zdr threshold on good points? #5

Open
aamatthews opened this issue Mar 25, 2015 · 1 comment
Open

cal_zdr threshold on good points? #5

aamatthews opened this issue Mar 25, 2015 · 1 comment

Comments

@aamatthews
Copy link

When I was running this code, some of the biases counted toward the mean were very large (~ -8.0), but had only a few points, some even just 2 points, which meant often the standard deviation was low enough (<minSig) to be included in the mean.
It would be nice if a threshold could be included to mask files that also had a low number of points. I am still learning python, so there may be a better way to do this, but I did:

    if zdr_bias['volume_standard_deviation'] > minSig:
        Stats[index,0] = np.ma.masked
        Stats[index,1] = np.ma.masked
        Stats[index,2] = np.ma.masked
    elif zdr_bias['volume_number_good'] < 1000.0:
        Stats[index,0] = np.ma.masked
        Stats[index,1] = np.ma.masked
        Stats[index,2] = np.ma.masked
    else:
        Stats[index,0] = zdr_bias['volume_average']
        Stats[index,1] = zdr_bias['volume_standard_deviation']
        Stats[index,2] = zdr_bias['volume_number_good']
@nguy
Copy link
Owner

nguy commented Apr 17, 2015

@aamatthews I just instituted the change you asked for. I added another keyword variable into the zdr_cal program and and then modified the scripts to use these. It seemed to work on a file I had lying around. Let me know if you get a chance to try the new code sometime.

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