Map Definition are used when one data format is mapped to another.
Definition names are prefixed by "map:
" in the form:
map:in:out.field= expressionwhere:
*
" in place
of "in" for output mapping because most applications
(except "bridge") use an internal intermediate buffer,
so the input dataset may not be the actual buffer being used
internally by an application.Example map definitions:
comment= set a field to a constant map:*:usp.GrpElv= 0.0 comment= map SEGY header "CdpTrcNum", to USP "TrcNum" map:segy:usp.TrcNum= CdpTrcNum comment= calculate a Midpoint for fields map:*:out.SrRcMX= 0.5 * (SrcX + GrpX) comment= calculate offset distance map:segy:usp.DstUsg= sqrt((SrcX-GrpX)*(SrcX-GrpX) + (SrcY-GrpY)*(SrcY-GrpY))
NOTE: any Trace Headers that have the same names in the output
as the input will get mapped automatically. Mapping Definitions are
therefore only needed when the names change. However,
"Spare.Hdr.LinInd
" is not the same name as
"LinInd
". Also, there are no default mappings going
into a union, because of conflicting datatypes for the same byte
locations.