Hi Oleg,
I've noticed something weird with dem_mosaic... I think it's a bug with --propagate-nodata:
... I have 30 dems, each of exactly the same area, but in each dem there are lots of randomly located holes (nodata=0), with10-30% valid pixels in each case. If I build a median stack using dem_mosaic (ASP build date 21/01/25), thus:
dem_mosaic --threads 4 --median $dem_files -o $home/dem_stack.tif
then the output has mostly nodata values (valid pixels ~2%). So it seems like --propagate-nodata is the default setting, even if I don't select this option.
To check, I re-ran the exact same command using a previous version of dem_mosaic (e.g. StereoPipeline-3.1.1-alpha-2022-10-24-x86_64-Linux), and the output has valid pixels of 70%, which is what I expect. In this case, nodata are ignored when computing the median value for each pixel location.
My suspicion is this is a minor bug in the more recent releases (though I couldn't track down when the change in behaviour started?).
Cheers,
James