Skip to content

Commit

Permalink
OGC coverages: add a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
pont-us committed Dec 4, 2023
1 parent f96a460 commit e2c4009
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xcube/webapi/ows/coverages/controllers.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,8 @@ def dataset_to_image(

with tempfile.TemporaryDirectory() as tempdir:
path = os.path.join(tempdir, 'out.' + image_format)
# Make dataset representable in an image format by discarding
# additional variables and dimensions.
ds = ds.drop_vars(
names=['crs', 'spatial_ref'], errors='ignore'
).squeeze()
Expand Down

0 comments on commit e2c4009

Please sign in to comment.