mirror of
https://github.com/heyarne/earth-observation-for-journalism.git
synced 2026-05-06 19:13:40 +02:00
Produce Cloud Optimized GeoTIFFs everywhere
This commit is contained in:
parent
00183d446b
commit
b988f0d678
3 changed files with 3 additions and 3 deletions
|
|
@ -644,7 +644,7 @@
|
||||||
" # use the transformation matrix of the intersection (the origin changed)\n",
|
" # use the transformation matrix of the intersection (the origin changed)\n",
|
||||||
" 'transform': blue.window_transform(out_window),\n",
|
" 'transform': blue.window_transform(out_window),\n",
|
||||||
"\n",
|
"\n",
|
||||||
" 'driver': 'GTiff', # save as geotiff\n",
|
" 'driver': 'COG', # save as geotiff\n",
|
||||||
" 'dtype': np.uint8 # using integers instead of floats\n",
|
" 'dtype': np.uint8 # using integers instead of floats\n",
|
||||||
" })\n",
|
" })\n",
|
||||||
"\n",
|
"\n",
|
||||||
|
|
|
||||||
|
|
@ -83,7 +83,7 @@
|
||||||
" out_meta.update({\n",
|
" out_meta.update({\n",
|
||||||
" 'width': window.width,\n",
|
" 'width': window.width,\n",
|
||||||
" 'height': window.height,\n",
|
" 'height': window.height,\n",
|
||||||
" 'driver': 'GTiff',\n",
|
" 'driver': 'COG',\n",
|
||||||
" 'dtype': 'float32',\n",
|
" 'dtype': 'float32',\n",
|
||||||
" 'nodata': -999\n",
|
" 'nodata': -999\n",
|
||||||
" }) \n",
|
" }) \n",
|
||||||
|
|
|
||||||
|
|
@ -588,7 +588,7 @@
|
||||||
" \n",
|
" \n",
|
||||||
" out_meta.update({\n",
|
" out_meta.update({\n",
|
||||||
" 'count': 1,\n",
|
" 'count': 1,\n",
|
||||||
" 'driver': 'GTiff',\n",
|
" 'driver': 'COG',\n",
|
||||||
" 'dtype': 'float32'\n",
|
" 'dtype': 'float32'\n",
|
||||||
" })\n",
|
" })\n",
|
||||||
" \n",
|
" \n",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue