diff --git a/modules/util/util.py b/modules/util/util.py
index 7565a91fc1e310f040028e3e419d89af51abea4a..49f435aeda8d874753ab2b118d7d40479d587901 100644
--- a/modules/util/util.py
+++ b/modules/util/util.py
@@ -563,8 +563,8 @@ def make_for_full_domain_predict(h5f, name_list=None, satellite='GOES16', domain
 # -------------------------------------------------------------------------------------------
 
 
-def write_icing_file(clvrx_str_time, preds_dct, probs_dct, x, y, lons, lats):
-    outfile_name = homedir + 'icing_prediction_'+clvrx_str_time+'.h5'
+def write_icing_file(clvrx_str_time, output_dir, preds_dct, probs_dct, x, y, lons, lats):
+    outfile_name = output_dir + 'icing_prediction_'+clvrx_str_time+'.h5'
     h5f_out = h5py.File(outfile_name, 'w')
 
     dim_0_name = 'pixel_elements'