The application provides a
seismic trace header word calculation method and device based on an expression, and a medium, and belongs to the field of seismic
data processing.The method comprises the following steps: first, reading a
seismic trace header data in a
seismic trace order; second, calculating the value of a
conditional expression one by one according to the trace header word value contained in the current seismic trace header data; third, judging whether the value of the
conditional expression is true, if yes, entering the fourth step, otherwise returning to the first step; fourth, calculating the value of an arithmetic expression according to the current trace header word value, generating a new trace header word or updating an existing trace header word value; fifth, judging whether there is still seismic trace header data to be processed, if yes, returning to the first step, otherwise entering the sixth step; and sixth, ending.The application supports flexible selection of qualified trace header words for calculation, supports multiple types of arithmetic calculation functions for arbitrary combination calculation, and supports updating of existing trace header words and flexible addition of new trace header words.