Skip to content

Commit

Permalink
DAS-2232 - small bug fix in get_override_projection_dimension_name
Browse files Browse the repository at this point in the history
  • Loading branch information
sudha-murthy committed Oct 1, 2024
1 parent 2296a35 commit 2efc4c7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions hoss/dimension_utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,12 @@ def get_override_projected_dimension_name(
"""
override_variable = varinfo.get_variable(variable_name)
projected_dimension_name = None
if override_variable is not None:
if override_variable.is_latitude():
projected_dimension_name = 'projected_y'
elif override_variable.is_longitude():
projected_dimension_name = 'projected_x'
else:
projected_dimension_name = None
return projected_dimension_name


Expand Down

0 comments on commit 2efc4c7

Please sign in to comment.