mirror of
https://github.com/heyarne/earth-observation-for-journalism.git
synced 2026-05-06 19:13:40 +02:00
Trying to find out why downloads are failing for band maths
This commit is contained in:
parent
99678b9792
commit
fcada57719
8 changed files with 3029 additions and 866 deletions
|
|
@ -559,7 +559,9 @@
|
|||
"! mkdir -p {dst_path}\n",
|
||||
"\n",
|
||||
"product_ids = gdf.loc[:idx, 'uuid'].values\n",
|
||||
"downloads, _m _ = api.download_all(subset, dst_path)"
|
||||
"\n",
|
||||
"api._tqdm = tqdm # monkey-patch for nicer progress bars\n",
|
||||
"downloads, _, _ = api.download_all(subset, dst_path)"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -815,7 +817,9 @@
|
|||
" 'height': height,\n",
|
||||
" 'transform': masked_transform\n",
|
||||
" })\n",
|
||||
" with r.open(out_name, 'w', **kwargs) as dst:\n",
|
||||
" \n",
|
||||
" ! mkdir -p output\n",
|
||||
" with r.open(Path('output') / out_name, 'w', **kwargs) as dst:\n",
|
||||
" dst.write(masked)\n",
|
||||
" print(f'Wrote resulting raster file to {out_name}')"
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue