This function extract the area of images covered by non NA values and return
an sf
object with one polygon per image.
Arguments
- path_in
chr. Path to the folder where the mosaics are located.
- dates
chr. Vector with dates (format should be '%Y%m%d', p.e '20220925'). The order of the dates should match with the order of the dates of the mosaics in the path_in folder.
- out_dir_path
chr. Path to the directory used to export the vector files. One file will be export per date. If NULL, the vector will not be exported.
- filename
logical. Name of the files.