Skip to content

Commit

Permalink
pre-commit change
Browse files Browse the repository at this point in the history
  • Loading branch information
Antsalacia committed Dec 3, 2024
1 parent ad78deb commit e34429c
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions earthspy/earthspy.py
Original file line number Diff line number Diff line change
Expand Up @@ -1106,23 +1106,19 @@ def merge_rasters(self) -> None:
"transform": output_transform,
}
)

# update dictionary if compression set
if self.raster_compression is not None:
output_meta.update(
{
"compress":self.raster_compression
}
)
output_meta.update({"compress": self.raster_compression})

# extract scene id
id_dict = {k: self.metadata[date][0][k] for k in ["id"]}

# write mosaic
with rasterio.open(date_output_filename, "w", **output_meta) as dst:
dst.write(mosaic)
dst.update_tags(**id_dict)

# save file name of merged raster
self.output_filenames_renamed.append(date_output_filename)

Expand Down

0 comments on commit e34429c

Please sign in to comment.