Trying to find out why downloads are failing for band maths

This commit is contained in:
heyarne 2021-02-17 15:14:30 +00:00
commit fcada57719
8 changed files with 3029 additions and 866 deletions

View file

@ -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}')"
]