Skip to content

Commit

Permalink
DAS-2232 - minor name from dataset to variable
Browse files Browse the repository at this point in the history
  • Loading branch information
sudha-murthy committed Oct 16, 2024
1 parent de350b6 commit 0666248
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions hoss/spatial.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def get_x_y_index_ranges_from_coordinates(
crs = get_variable_crs(non_spatial_variable, varinfo)
projected_x = 'projected_x'
projected_y = 'projected_y'
override_dimension_datasets = update_dimension_variables(
override_dimension_variables = update_dimension_variables(
prefetch_coordinate_datasets,
latitude_coordinate,
longitude_coordinate,
Expand All @@ -257,21 +257,21 @@ def get_x_y_index_ranges_from_coordinates(
if not set((projected_x, projected_y)).issubset(set(index_ranges.keys())):

x_y_extents = get_projected_x_y_extents(
override_dimension_datasets[projected_x][:],
override_dimension_datasets[projected_y][:],
override_dimension_variables[projected_x][:],
override_dimension_variables[projected_y][:],
crs,
shape_file=shape_file_path,
bounding_box=bounding_box,
)

x_index_ranges = get_dimension_index_range(
override_dimension_datasets[projected_x][:],
override_dimension_variables[projected_x][:],
x_y_extents['x_min'],
x_y_extents['x_max'],
bounds_values=None,
)
y_index_ranges = get_dimension_index_range(
override_dimension_datasets[projected_y][:],
override_dimension_variables[projected_y][:],
x_y_extents['y_min'],
x_y_extents['y_max'],
bounds_values=None,
Expand Down

0 comments on commit 0666248

Please sign in to comment.