Skip to content

Commit

Permalink
Modify assumption comments in get_variable_values for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyschultz committed Oct 21, 2024
1 parent 8770da0 commit 78dd9df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions swath_projector/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ def get_variable_values(
if len(variable[:].shape) == 1:
return make_array_two_dimensional(variable[:])
elif 'time' in input_file.variables and 'time' in variable.dimensions:
# Assumption: Array = (1, y, x)
# Assumption: Array = (time, along-track, across-track)
return transpose_if_xdim_less_than_ydim(
variable[0][:].filled(fill_value=fill_value)
)
else:
# Assumption: Array = (y, x)
# Assumption: Array = (along-track, across-track)
return transpose_if_xdim_less_than_ydim(
variable[:].filled(fill_value=fill_value)
)
Expand Down

0 comments on commit 78dd9df

Please sign in to comment.