Found a no-data or NaN pixel in the DEM. Cannot continue. The dem_mosaic tool can be used to fill in holes.

28 views
Skip to first unread message

劳承学

unread,
Feb 26, 2022, 11:43:04 AM2/26/22
to Ames Stereo Pipeline Support
Dear all,
when I use the scipt,
sfs -i run_full1/run-DEM.tif A.cub -o sfs_ref1/run
I got the error:
Found a no-data or NaN pixel in the DEM. Cannot continue. The dem_mosaic tool can be used to fill in holes.

After run "dem_mosaic run_full1/run-DEM.tif  --hole-fill-length 5000 -o blended.tif",
I still got the same error...


Alexandrov, Oleg (ARC-TI)[KBR Wyle Services, LLC]

unread,
Feb 26, 2022, 11:56:45 AM2/26/22
to 劳承学, Ames Stereo Pipeline Support
Can you examine your "blended.tif" in stereo_gui and see if it has holes or missing data at edges? You can use the "View->Hillshade" option to show it as hillshaded.

Then you can pass it to sfs as:

  sfs -i blended.tif  A.cub -o sfs_ref1/run

You can also try to crop out of blended.tif a portion without holes, with gdal_translate -srciwn. The bounds to put there an be found with stereo_gui (https://stereopipeline.readthedocs.io/en/latest/tools/stereo_gui.html#use-as-an-image-viewer).

If no luck, you can regenerate run_full1/run-DEM.tif. For that, you'd do:

point2dem run_full1/run-PC.tif --search-radius-factor 5  --dem-hole-fill-len 100

then you should examine run_full1/run-DEM.tif in stereo_gui as before and crop from it a rectangular clip having valid data everywhere, which can be passed to sfs.

I will suggest reading carefully the SfS examples at https://stereopipeline.readthedocs.io/en/latest/sfs_usage.html. The SfS program needs a lot of attention to be used right.




From: ames-stereo-pi...@googlegroups.com <ames-stereo-pi...@googlegroups.com> on behalf of 劳承学 <laoch...@gmail.com>
Sent: Saturday, February 26, 2022 8:43 AM
To: Ames Stereo Pipeline Support <ames-stereo-pi...@googlegroups.com>
Subject: [EXTERNAL] Found a no-data or NaN pixel in the DEM. Cannot continue. The dem_mosaic tool can be used to fill in holes.
 
--
You received this message because you are subscribed to the Google Groups "Ames Stereo Pipeline Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ames-stereo-pipeline...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ames-stereo-pipeline-support/5eddc4e4-0d2c-4c95-a2c3-235bd0e038e6n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages