NAC orthoimage problem

13 views
Skip to first unread message

Daniel Berman

unread,
Apr 7, 2025, 2:17:27 PMApr 7
to Ames Stereo Pipeline Support
I'm having a problem with an LRO NAC pair. I followed the procedure outlined in section 8.7 of the manual, using stitching. I ran parallel_stereo on the pair, then ran point2dem and made the dem and orthoimage. I was happy with the results, so I then ran pc_align and aligned the dem to LOLA shots. It worked fine, so I tried to run point2dem again with --orthoimage, using the -L.tif texture file as usual, and got this:
ERROR: Point cloud M1458121567LE_M1458128588LE-DEMalign-trans_reference.tif and texture file M1458121567LE_M1458128588LE-L.tif do not have the same dimensions.

This was my input:
point2dem M1458121567LE_M1458128588LE-align-trans_reference.tif --orthoimage -n --errorimage M1458121567LE_M1458128588LE-L.tif -o M1458121567LE_M1458128588LE-align

Any help would be appreciated!

Oleg Alexandrov

unread,
Apr 7, 2025, 2:31:56 PMApr 7
to Daniel Berman, Ames Stereo Pipeline Support
What happens here is that when you create a DEM, the number of rows and columns is no longer as in the point cloud. Then, pc_align produces an aligned cloud, but it has the same dimensions as the DEM, rather than as the input point cloud. 

So, point2dem cannot function with the L.tif that is 1-to-1 with the PC.tif before being gridded with point2dem.

I guess what you can do is:

 - Use pc_align with the input PC.tif, before gridding with point2dem, then the output of pc_align will have the same dimensions.

Or:

 - Create the orthoimage with point2dem with the original cloud, producing a DRG, then use pc_align as now, get a point cloud which would have the same dimensions as the DEM (I hope), which has the same dimensions as the DRG, then call point2dem with this DRG instead of L.tif.

I did not test this, but given that the problem is with mismatch in size, it should work. I don't recall now if point2dem will be happy enough to accept the DRG.tif instead of L.tif if called with the --orthoimage run/run-DRG.tif option, or if one has to first rename DRG.tif to L.tif.


--
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 visit https://groups.google.com/d/msgid/ames-stereo-pipeline-support/f40b6633-e4fd-4c67-a7e4-b8002321d670n%40googlegroups.com.

Daniel Berman

unread,
Apr 7, 2025, 6:49:31 PMApr 7
to Ames Stereo Pipeline Support
Thanks! The second option worked using the DRG in pc_align. I did not have to change the name. 
Reply all
Reply to author
Forward
0 new messages