diff --git a/modules/icing/pirep_goes.py b/modules/icing/pirep_goes.py index d1d7fae73824469eb89b502c502b1aa452cb54b4..25b24d3742a1f0db3909176d71c5523f535c5ca5 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