Skip to content

Commit

Permalink
FIX: replaced HISO references by ISO0_HEIGHT
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfidan authored and MicheleCattaneo committed Nov 8, 2024
1 parent d6ba81e commit 7a6fc5b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion rainforest/ml/rf.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ def fit_models(self, config_file, features_dic, tstart = None, tend = None,
###############################################################################

gaugetab_train = gaugetab[~invalid].copy()

import pdb; pdb.set_trace()
logging.info('Performing vertical aggregation of input features for model {:s}'.format(model))
features_VERT_AGG = vert_aggregation(radartab[features_dic[model]],
vweights, grp_vertical,
Expand Down
12 changes: 6 additions & 6 deletions rainforest/ml/rf_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ def main():
'"dualpol_default" = \'{"RF_dualpol": ["RADAR", "zh_VISIB_mean", "zv_VISIB_mean","KDP_mean","RHOHV_mean","SW_mean", "T", "HEIGHT","VISIB_mean"]}\'' +
'"vpol_default" = \'{"RF_vpol": ["RADAR", "zv_VISIB_mean","SW_mean", "T", "HEIGHT","VISIB_mean"]}\'' +
'"hpol_default" = \'{"RF_hpol": ["RADAR", "zh_VISIB_mean","SW_mean", "T", "HEIGHT","VISIB_mean"]}\'' +
'"RFO_default" = \'{"RFO_dualpol": ["RADAR", "zh_VISIB_mean", "zv_VISIB_mean","KDP_mean","RHOHV_mean","SW_mean", "HISO", "HEIGHT","VISIB_mean"]}\'' +
'"RFO_default_vpol" = \'{"RFO_vpol": ["RADAR", "zv_VISIB_mean","SW_mean", "HISO", "HEIGHT","VISIB_mean"]}\'' +
'"RFO_default_hpol" = \'{"RFO_hpol": ["RADAR", "zh_VISIB_mean","SW_mean", "HISO", "HEIGHT","VISIB_mean"]}\'' +
'"RFO_default" = \'{"RFO_dualpol": ["RADAR", "zh_VISIB_mean", "zv_VISIB_mean","KDP_mean","RHOHV_mean","SW_mean", "ISO0_HEIGHT", "HEIGHT","VISIB_mean"]}\'' +
'"RFO_default_vpol" = \'{"RFO_vpol": ["RADAR", "zv_VISIB_mean","SW_mean", "ISO0_HEIGHT", "HEIGHT","VISIB_mean"]}\'' +
'"RFO_default_hpol" = \'{"RFO_hpol": ["RADAR", "zh_VISIB_mean","SW_mean", "ISO0_HEIGHT", "HEIGHT","VISIB_mean"]}\'' +
'You can combine them for example "vpol_default, hpol_default, dualpol_default, will compute all three"',
metavar="MODELS")

Expand Down Expand Up @@ -122,13 +122,13 @@ def main():
elif opt == 'RFO_default':
dic_models['RFO'] = ["RADAR", "zh_VISIB_mean",
"zv_VISIB_mean","KDP_mean",
"RHOHV_mean","SW_mean","HISO",
"RHOHV_mean","SW_mean","ISO0_HEIGHT",
"HEIGHT","VISIB_mean"]
elif opt == 'RFO_default_hpol':
dic_models['RFO_hpol'] = ["RADAR", "zh_VISIB_mean","SW_mean","HISO",
dic_models['RFO_hpol'] = ["RADAR", "zh_VISIB_mean","SW_mean","ISO0_HEIGHT",
"HEIGHT","VISIB_mean"]
elif opt == 'RFO_default_vpol':
dic_models['RFO_hpol'] = ["RADAR", "zv_VISIB_mean","SW_mean","HISO",
dic_models['RFO_hpol'] = ["RADAR", "zv_VISIB_mean","SW_mean","ISO0_HEIGHT",
"HEIGHT","VISIB_mean"]

else:
Expand Down

0 comments on commit 7a6fc5b

Please sign in to comment.