Orion-AI-Lab / KuroSiwo

Code and data for Kuro Siwo flood mapping dataset
https://orion-ai-lab.github.io/publication/bountos-2023-kuro/
MIT License
40 stars 3 forks source link

Download only labeled images? #2

Closed Frankie91 closed 9 months ago

Frankie91 commented 9 months ago

Dear @ngbountos and colleagues,

First of all, congratulations and thank you for the impressive work. I have the following question: how should I proceed if I wanted to download only the labeled images relative to the flood events that took place in Europe?

Thank you in advance and best regards, Daniele Francario

ngbountos commented 9 months ago

Hi @Frankie91, you can download the data from this link. We split the dataset in 8 parts to make it easier to download. We did not group the events by continents, so you have to download everything and separate the events that you need (in this case the ones in Europe). Each event is associated with an id e.g 470. In catalogue.yaml we provide all necessary information regarding the location of each event so you can identify which id's you need e.g:

 - act_id: 470
    act_region: Togo
    aois:
        aoi_name: Oti River
        cl_zone: 1

I hope this helps.

Frankie91 commented 9 months ago

Good Morning @ngbountos,

Thanks for the quick answer, which does clarify how to find the events I'm looking for. To obtain a complete labeled image for the flood event that took place in Togo I should therefore select all the last tiles in every triplet with the act_id equal to 470, and merge them together. Is that correct?

ngbountos commented 9 months ago

Each event has three SAR images. Two before the event and one after. Each sample is stored as triplets (pre event 1, pre event 2 and post event) of patches of 224x224 pixels in a subdirectory of the given activation id and aoi as specified in the catalogue.yaml e.g /118/01/eef3611509285592aa0ffe3fe1856d53 . 01 signifies the aoi under study. In the 00 subfolder we store the patches coming from the area outside of the aois. If you want to recreate the initial image you have to take all patches of a certain timestep (let's say the post event) and merge them. The patches are georeferenced so it should be easy.

Frankie91 commented 9 months ago

Perfect, thanks again for all the detailed clarifications!