diff --git a/scripts/exgdas_global_marine_analysis_prep.py b/scripts/exgdas_global_marine_analysis_prep.py index 2d9235d9b..4e0635be2 100755 --- a/scripts/exgdas_global_marine_analysis_prep.py +++ b/scripts/exgdas_global_marine_analysis_prep.py @@ -123,13 +123,13 @@ def gen_bkg_list(bkg_path, out_path, window_begin=' ', yaml_name='bkg.yaml', ice bkg_date = window_begin # Construct list of background file names - RUN = os.getenv('RUN') + GDUMP = os.getenv('GDUMP') cyc = str(os.getenv('cyc')).zfill(2) gcyc = str((int(cyc) - 6) % 24).zfill(2) # previous cycle fcst_hrs = list(range(3, 10, dt_pseudo)) files = [] for fcst_hr in fcst_hrs: - files.append(os.path.join(bkg_path, f'{RUN}.t'+gcyc+'z.ocnf'+str(fcst_hr).zfill(3)+'.nc')) + files.append(os.path.join(bkg_path, f'{GDUMP}.t'+gcyc+'z.ocnf'+str(fcst_hr).zfill(3)+'.nc')) # Identify the ocean background that will be used for the vertical coordinate remapping ocn_filename_ic = os.path.splitext(os.path.basename(files[0]))[0]+'.nc' @@ -506,13 +506,14 @@ def find_clim_ens(input_date): ################################################################################ # Copy initial condition ics_list = [] +GDUMP = os.getenv('GDUMP') # ocean IC's -mom_ic_src = glob.glob(os.path.join(bkg_dir, f'{RUN}.*.ocnf003.nc'))[0] +mom_ic_src = glob.glob(os.path.join(bkg_dir, f'{GDUMP}.*.ocnf003.nc'))[0] mom_ic_dst = os.path.join(anl_dir, 'INPUT', 'MOM.res.nc') ics_list.append([mom_ic_src, mom_ic_dst]) # seaice IC's -cice_ic_src = glob.glob(os.path.join(bkg_dir, f'{RUN}.*.agg_icef003.nc'))[0] +cice_ic_src = glob.glob(os.path.join(bkg_dir, f'{GDUMP}.*.agg_icef003.nc'))[0] cice_ic_dst = os.path.join(anl_dir, 'INPUT', 'cice.res.nc') ics_list.append([cice_ic_src, cice_ic_dst]) FileHandler({'copy': ics_list}).sync()