A method is disclosed for attenuating noise in seismic data. The method
includes calculating a trace envelope for at least part of at least one
seismic trace, generating a filtered envelope from the trace envelope,
and transforming the filtered envelope to a filtered trace. In one
embodiment, a length of a filter operator used for generating the
filtered envelope is inversely related to a maximum frequency to be
preserved in the filtered trace.