write_assets missing assets
The write_assets function does not write all the assets from the collection, but does not give any error message.
Using the script download_pc_data.py
from fordead_v2, data from Planetary Computer, collection sentinel-2-l2a, period 2016-01-01 to 2020-01-01, on a small area (observations_tuto.shp
from fordead-data).
write_assets outputs:
Found 892 items
100%|████████████████████████████████████████████████████████████████████████████████| 892/892 [1:50:08<00:00, 7.41s/it]
but on my local disk, there are only 343 items in the json file saved after the write_assets (with save_object), some assets have the href pointing to the local disk, some still have the href pointing to planetary.