Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion geocube/utils/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def timeseries_to_animation(images: List[np.array], gif_name: str, duration=0.2,
writer.append_data(image)


def image_to_geotiff(image: np.ndarray, transform: affine.Affine, projection: str, no_data: float, filename: str):
def image_to_geotiff(image: np.ndarray, transform: affine.Affine, projection: str, no_data: float | None, filename: str):
import rasterio
if len(image.shape) == 2:
image = np.expand_dims(image, 0)
Expand Down