Skip to content

Commit

Permalink
Update src/titiler/xarray/titiler/xarray/io.py
Browse files Browse the repository at this point in the history
Co-authored-by: Jonas <[email protected]>
  • Loading branch information
vincentsarago and j08lue authored Nov 6, 2024
1 parent df7bdf6 commit eb7aec5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/titiler/xarray/titiler/xarray/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def _arrange_dims(da: xarray.DataArray) -> xarray.DataArray:
if "x" not in da.dims and "y" not in da.dims:
try:
latitude_var_name = next(
x for x in ["lat", "latitude", "LAT", "LATITUDE", "Lat"] if x in da.dims
name for name in ["lat", "latitude", "LAT", "LATITUDE", "Lat"] if name in da.dims
)
longitude_var_name = next(
x
Expand Down

0 comments on commit eb7aec5

Please sign in to comment.