eXtended Triton Format (XTF) Tools (sidescan/xtf)
The xtf directory (code/sidescan/xtf/) contains the parser library, byte-order conversion routines, header definitions, and command-line converter for importing Triton Imaging Inc. eXtended Triton Format (.xtf, Revision 3 / Sept 1998) digital sidescan sonar files into the Ocean Mapping Groupβs JCU GLORIA (.ss) processing format.
Executable & Source Modules
xtf2gloβ Main command-line converter that reads 8-bit or 16-bit.xtfsidescan sonar files, performs dynamic range normalization (RAW,MINMAX,STDDEV, orAVGmethods), optionally detects the seabed or interpolates across nadir, computes Course Made Good (-cmg), and writes JCU GLORIA.ssrecords plus an.mbrMinimum Bounding Rectangle file.xtf_funcs&xtf_funcs.h(xtf_funcs.o) β File I/O module providingreadXTFheader()andreadXTFdata()to parse variable-length XTF packets (XTF_HEADER_SONAR,XTF_HEADER_ATTITUDE,XTF_HEADER_NOTES, etc.).chxtfhdr&chxtfhdr.h(chxtfhdr.o) β Struct unpacking module that converts packed, byte-unaligned on-disk XTF character structures (cXTFFILEHEADER,cXTFPINGHEADER,cXTFPINGCHANHEADER, etc.) into aligned C structures.bytes2func&bytes2func.h(bytes2func.o) β Endian-aware conversion functions (bytes2short,bytes2int,bytes2float,bytes2double) controlled by the globalSWAPflag for reading little-endian Intel.xtffiles on big-endian SGI/Sun or little-endian Linux hosts.xtf_doc.hβ Complete Triton.XTFformat specification header defining all packet types and C data structures (XTFFILEHEADER,CHANINFO,XTFPINGHEADER,XTFPINGCHANHEADER,XTFATTITUDEDATA,XTFNOTESHEADER,XTFRAWSERIALHEADER).new_xtf.hβ Header definingxtf2glonormalization constants, bitmask flags (RAW_FLAG,AUX_DEPTH,INTERP_NADIR,BOTTOM_DETECT,CMG), and theMBRstruct.makefileβ Build configuration linkingxtf2glo.o,xtf_funcs.o,chxtfhdr.o, andbytes2func.o.