From caa66aca9f19a001b107798378b2a1138246b129 Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Sun, 12 Dec 2021 13:23:40 -0600 Subject: [PATCH] snapshot... --- modules/icing/pirep_goes.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/modules/icing/pirep_goes.py b/modules/icing/pirep_goes.py index d1d7fae7..25b24d37 100644 --- a/modules/icing/pirep_goes.py +++ b/modules/icing/pirep_goes.py @@ -1790,6 +1790,9 @@ def analyze(preds_file, test_file='/Users/tomrink/data/icing_ml/tiles_2021092400 nda[np.logical_and(nda >= 8000, nda < 15000)] = 4 print(np.sum(nda == 0), np.sum(nda == 1), np.sum(nda == 2), np.sum(nda == 3), np.sum(nda == 4)) + print('No icing: ', np.histogram(nda[iint == 0], bins=5)[0]) + print('---------------------------') + print('Icing: ', np.histogram(nda[iint == 1], bins=5)[0]) print('---------------------------') print('level 0: ') @@ -1815,13 +1818,8 @@ def analyze(preds_file, test_file='/Users/tomrink/data/icing_ml/tiles_2021092400 print('level 4: ') print(np.nanmean(cld_dz[(nda == 4) & (iint == 0)]), np.nanmean(cld_hgt[(nda == 4) & (iint == 0)])) print(np.nanmean(cld_dz[(nda == 4) & (iint == 1)]), np.nanmean(cld_hgt[(nda == 4) & (iint == 1)])) - - print('No icing: ', np.histogram(nda[iint == 0], bins=5)[0]) - print('---------------------------') - print('Icing: ', np.histogram(nda[iint == 1], bins=5)[0]) print('-----------------------------') print('----------------------------') - print('-----------------------------') if preds_file is None: return -- GitLab