From b988f0d6780f9c1a9b2eb9b8c29924f0f22e6530 Mon Sep 17 00:00:00 2001 From: heyarne Date: Thu, 18 Mar 2021 13:21:17 +0100 Subject: [PATCH] Produce Cloud Optimized GeoTIFFs everywhere --- sources/01b-visualization.ipynb | 2 +- sources/02c-time-series.ipynb | 2 +- sources/02d-spectral-indices.ipynb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sources/01b-visualization.ipynb b/sources/01b-visualization.ipynb index da19c0a..479a821 100644 --- a/sources/01b-visualization.ipynb +++ b/sources/01b-visualization.ipynb @@ -644,7 +644,7 @@ " # use the transformation matrix of the intersection (the origin changed)\n", " 'transform': blue.window_transform(out_window),\n", "\n", - " 'driver': 'GTiff', # save as geotiff\n", + " 'driver': 'COG', # save as geotiff\n", " 'dtype': np.uint8 # using integers instead of floats\n", " })\n", "\n", diff --git a/sources/02c-time-series.ipynb b/sources/02c-time-series.ipynb index cfe7341..6c53cb0 100644 --- a/sources/02c-time-series.ipynb +++ b/sources/02c-time-series.ipynb @@ -83,7 +83,7 @@ " out_meta.update({\n", " 'width': window.width,\n", " 'height': window.height,\n", - " 'driver': 'GTiff',\n", + " 'driver': 'COG',\n", " 'dtype': 'float32',\n", " 'nodata': -999\n", " }) \n", diff --git a/sources/02d-spectral-indices.ipynb b/sources/02d-spectral-indices.ipynb index 8b960b9..c576ba2 100644 --- a/sources/02d-spectral-indices.ipynb +++ b/sources/02d-spectral-indices.ipynb @@ -588,7 +588,7 @@ " \n", " out_meta.update({\n", " 'count': 1,\n", - " 'driver': 'GTiff',\n", + " 'driver': 'COG',\n", " 'dtype': 'float32'\n", " })\n", " \n",