Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumevernieres committed Apr 22, 2024
1 parent 3bb46b6 commit 1994f17
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion ush/soca/prep_ocean_obs.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,15 @@ def initialize(self):
cyc = self.runtime_config['cyc']
assim_freq = self.config['assim_freq']

SOCA_INPUT_FIX_DIR = self.config['SOCA_INPUT_FIX_DIR']
ocean_mask_src = os.path.join(SOCA_INPUT_FIX_DIR, 'RECCAP2_region_masks_all_v20221025.nc')
ocean_mask_dest = os.path.join(self.runtime_config.DATA, 'RECCAP2_region_masks_all_v20221025.nc')
logger.info(f"************ {SOCA_INPUT_FIX_DIR}")
try:
FileHandler({'copy': [[ocean_mask_src, ocean_mask_dest]]}).sync()
except OSError:
logger.warning("Could not copy RECCAP2_region_masks_all_v20221025.nc")

OBS_YAML = self.config['OBS_YAML']
observer_config = YAMLFile(OBS_YAML)

Expand Down Expand Up @@ -135,7 +144,7 @@ def initialize(self):
obsprep_space['input files'] = input_files
obsprep_space['window begin'] = self.window_begin
obsprep_space['window end'] = self.window_end
ioda_filename = f"{RUN}.t{cyc}z.{obs_space_name}.{cdatestr}.nc4"
ioda_filename = f"{RUN}.t{cyc:02d}z.{obs_space_name}.{cdatestr}.nc4"
obsprep_space['output file'] = ioda_filename

# set up the config file for conversion to IODA for bufr and
Expand Down

0 comments on commit 1994f17

Please sign in to comment.