History records

Perform a ratioing of two channels into a third. Before starting an abort message is set, and if the operation succeeds a descriptive history record is written.

fd = DBOpen(file, "r+")
call DBWriteHistory( fd, "IMG", 3 )
%{fd,3} = %{fd,2} / (%{fd,1}+1)
call DBWriteHistory( fd, "IMG", 3, \
                    "Ratio of Channels 1 and 2" )
call DBClose( fd )

© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.