Skip to content

Commit

Permalink
Update recipe.py
Browse files Browse the repository at this point in the history
  • Loading branch information
thodson-usgs committed Nov 21, 2023
1 parent 1db4e86 commit d9cbd8a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion recipes/us-ssebop/recipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ def _preproc(item: Indexed[T]) -> Indexed[T]:
import rioxarray

index, f = item
time = dates[index]
time_dim = index.find_concat_dim('time')
time_index = index[time_dim].value
time = dates[time_index]

da = rioxarray.open_rasterio(f.open()).drop('band')
da = da.rename({'x': 'lon', 'y': 'lat'})
Expand Down

0 comments on commit d9cbd8a

Please sign in to comment.