Skip to content

Commit

Permalink
changes from @bluefinweiwei for PR#419
Browse files Browse the repository at this point in the history
  • Loading branch information
grantfirl committed Apr 11, 2024
1 parent 1f624a5 commit 472b7d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 419 deletions.
8 changes: 4 additions & 4 deletions scm/etc/scripts/UFS_IC_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -1351,7 +1351,7 @@ def get_UFS_oro_data(dir, tile, i, j, lam):
if lam:
nc_file = Dataset('{0}/{1}'.format(dir,'oro_data.nc'))
else:
filename_pattern = 'oro_data.tile{0}.nc'.format(tile)
filename_pattern = 'oro*.tile{0}.nc'.format(tile)
for f_name in os.listdir(dir):
if fnmatch.fnmatch(f_name, filename_pattern):
filename = f_name
Expand Down Expand Up @@ -1500,8 +1500,8 @@ def get_UFS_forcing_data(nlevs, state_IC, location, use_nearest, forcing_dir, gr
atm_ftag = 'atmf*.tile{0}.nc'.format(tile)
sfc_ftag = 'sfcf*.tile{0}.nc'.format(tile)
else:
atm_ftag = 'atmf*.nc'
sfc_ftag = 'sfcf*.nc'
atm_ftag = '*atmf*.nc'
sfc_ftag = '*sfcf*.nc'

# Get list of UFS history files with 3D ATMospheric state variables.
atm_filenames = []
Expand Down Expand Up @@ -2646,7 +2646,7 @@ def write_comparison_file(comp_data, case_name, date, surface):
########################################################################################
def find_date(forcing_dir):

atm_ftag = 'atmf*.nc'
atm_ftag = '*atmf*.nc'

atm_filenames = []
for f_name in os.listdir(forcing_dir):
Expand Down
Loading

0 comments on commit 472b7d5

Please sign in to comment.