Skip to content

Commit

Permalink
Change function name for rect orientation
Browse files Browse the repository at this point in the history
  • Loading branch information
manishvenu committed Sep 26, 2024
1 parent 5e44fba commit f3cd80c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions regional_mom6/regional_mom6.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
"""
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit f3cd80c

Please sign in to comment.