diff --git a/modules/aeolus/aeolus_amv.py b/modules/aeolus/aeolus_amv.py
index b527c2aaec576543c9dc1aa0bf7427bb911bd18c..abd2142ca77eab55ddd67c8f1c87ba4648912429 100644
--- a/modules/aeolus/aeolus_amv.py
+++ b/modules/aeolus/aeolus_amv.py
@@ -2031,7 +2031,7 @@ def create_file(filename, aeolus_to_amv_dct, aeolus_dct, amv_files, cld_lyr=Fals
     rootgrp.close()
 
 
-def create_bestfit_file(filename, match_dct, raob_dct, raob_ts, gfs_at_raob_dct, bf_dct, prd_dct, amv_params, raob_filename, amv_file_name):
+def create_bestfit_file(output_filename, match_dct, raob_dct, raob_ts, gfs_at_raob_dct, bf_dct, prd_dct, amv_params, raob_filename, amv_file_name):
     num_aparams = 4
     max_num_alevels = 0
     max_num_amvs = 0
@@ -2073,7 +2073,7 @@ def create_bestfit_file(filename, match_dct, raob_dct, raob_ts, gfs_at_raob_dct,
     rg_exmpl = Dataset('/ships19/cloud/scratch/AMV_FAST_BIAS/OPS_AMVS/OR_ABI-L2-DMWF-M6C14_G16_s20201050000166_e20201050009474_c20201050023226.nc', 'r')
 
     # the top level group for the output file
-    rootgrp = Dataset(filename, 'w', format='NETCDF4')
+    rootgrp = Dataset(output_filename, 'w', format='NETCDF4')
 
     rootgrp.createDimension('num_raob_params', size=num_aparams)
     rootgrp.createDimension('max_num_raob_levels', size=max_num_alevels)