From f3cd80ce5ee48beb1fd6806e18ceea25d78884f5 Mon Sep 17 00:00:00 2001 From: manishvenu Date: Thu, 26 Sep 2024 11:15:59 -0600 Subject: [PATCH] Change function name for rect orientation --- regional_mom6/regional_mom6.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/regional_mom6/regional_mom6.py b/regional_mom6/regional_mom6.py index 1c5e0681..c3bf6326 100644 --- a/regional_mom6/regional_mom6.py +++ b/regional_mom6/regional_mom6.py @@ -152,7 +152,7 @@ def longitude_slicer(data, longitude_extent, longitude_coords): return data -def find_MOM6_orientation(input): +def find_MOM6_rectangular_orientation(input): """ Convert between MOM6 boundary and the specific segment number needed, or the inverse """ @@ -1101,7 +1101,7 @@ def setup_ocean_state_rectangular_boundaries( ), varnames, orientation, # The cardinal direction of the boundary - find_MOM6_orientation( + find_MOM6_rectangular_orientation( orientation ), # A number to identify the boundary; indexes from 1 arakawa_grid=arakawa_grid, @@ -1259,7 +1259,9 @@ def setup_tides_rectangle_boundaries( infile=None, # location of raw boundary outfolder=self.mom_input_dir, varnames=None, - segment_name="segment_{:03d}".format(find_MOM6_orientation(b)), + segment_name="segment_{:03d}".format( + find_MOM6_rectangular_orientation(b) + ), orientation=b, # orienataion startdate=self.date_range[0], repeat_year_forcing=self.repeat_year_forcing,