write_window#

write_window(dataset: DatasetReader, arr: ndarray, window: rastervision.core.box.Box | None = None) None[source]#

Write a (H, W[, C]) array out to a rasterio dataset.

Parameters:
  • dataset (DatasetReader) – Rasterio dataset, opened for writing.

  • arr (np.ndarray) – Array to write.

  • window (Box | None) – Window (in pixel coords) to write to. Defaults to None.

Return type:

None