How to use the construct.SLInt16 function in construct

To help you get started, we’ve selected a few construct examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github PIC-IRIS / PH5 / ph5 / core / segy_h.py View on Github external
# Transduction constant mantissa
                             construct.SLInt32("Tucmant"),
                             # Transduction constant exponent
                             construct.SLInt16("Tucexp"),
                             construct.SLInt16("Tdu"),  # Transduction units
                             # Device/Trace identifier
                             construct.SLInt16("Dti"),
                             construct.SLInt16("Tscaler"),  # Time scalar
                             # Source Type/Orientation
                             construct.SLInt16("Sto"),
                             # Source Energy direction
                             construct.String("Sed", 6),
                             # Source measurement mantissa
                             construct.SLInt32("Smsmant"),
                             # Source measurement exponent
                             construct.SLInt16("Smsexp"),
                             # Source measurement Units
                             construct.SLInt16("Smu"),
                             # Last 8 bytes undefined in rev1
                             # Trace start time usec
                             construct.UBInt32("start_usec"),
                             construct.UBInt32("shot_us"))  # Shot time usec
    return TRACE
github PIC-IRIS / PH5 / ph5 / core / segy_h.py View on Github external
# Uphole time at source in ms
                             construct.SLInt16("sourceUpholeTime"),
                             # Uphole time at group in ms
                             construct.SLInt16("recUpholeTime"),
                             # Source static correction in ms
                             construct.SLInt16("sourceStaticCor"),
                             # Group static correction in ms
                             construct.SLInt16("recStaticCor"),
                             # Total static applied in ms
                             construct.SLInt16("totalStatic"),
                             construct.SLInt16("lagTimeA"),  # Lag time A, ms
                             construct.SLInt16("lagTimeB"),  # Lag time B, ms
                             # Delay recording time, ms
                             construct.SLInt16("delay"),
                             # Mute start time, ms
                             construct.SLInt16("muteStart"),
                             construct.SLInt16("muteEnd"),  # Mute end time, ms
                             # *** Number of samples ***
                             construct.ULInt16("sampleLength"),
                             # *** Sample interval, us ***
                             construct.SLInt16("deltaSample"),
                             construct.SLInt16("gainType"),  # Gain type
                             construct.SLInt16("gainConst"),  # Gain constant
                             construct.SLInt16("initialGain"),  # Early gain
                             construct.SLInt16("correlated"),  # Correlated?
                             # Sweep frequency at start
                             construct.SLInt16("sweepStart"),
                             # Sweep frequency at end
                             construct.SLInt16("sweepEnd"),
                             # Sweep length in ms
                             construct.SLInt16("sweepLength"),
                             construct.SLInt16("sweepType"),  # Sweep type
github PIC-IRIS / PH5 / ph5 / core / segy_h.py View on Github external
construct.SLInt16("notchFreq"),
                             # Notch filter slope, dB/octave
                             construct.SLInt16("notchSlope"),
                             # Low-cut frequency, Hz
                             construct.SLInt16("lowCutFreq"),
                             # High-cut frequency, Hz
                             construct.SLInt16("hiCutFreq"),
                             # Low-cut slope, dB/octave
                             construct.SLInt16("lowCutSlope"),
                             # High-cut slope, dB/octave
                             construct.SLInt16("hiCutSlope"),
                             construct.SLInt16("year"),  # Year
                             construct.SLInt16("day"),  # Day of Year
                             construct.SLInt16("hour"),  # Hour
                             construct.SLInt16("minute"),  # Minute
                             construct.SLInt16("second"),  # Seconds
                             # Time bias code
                             construct.SLInt16("timeBasisCode"),
                             # Trace weighting for LSB
                             construct.SLInt16("traceWeightingFactor"),
                             # Geophone group number
                             construct.ULInt16("phoneRollPos1"),
                             # Geophone group number (field)
                             construct.ULInt16("phoneFirstTrace"),
                             # Geophone group number, last trace (field)
                             construct.ULInt16("phoneLastTrace"),
                             construct.SLInt16("gapSize"),  # Gap size
                             construct.SLInt16("taperOvertravel"))
    # Over travel
    return TRACE
github PIC-IRIS / PH5 / ph5 / core / segy_h.py View on Github external
construct.SLInt16("muteStart"),
                             construct.SLInt16("muteEnd"),  # Mute end time, ms
                             # *** Number of samples ***
                             construct.ULInt16("sampleLength"),
                             # *** Sample interval, us ***
                             construct.SLInt16("deltaSample"),
                             construct.SLInt16("gainType"),  # Gain type
                             construct.SLInt16("gainConst"),  # Gain constant
                             construct.SLInt16("initialGain"),  # Early gain
                             construct.SLInt16("correlated"),  # Correlated?
                             # Sweep frequency at start
                             construct.SLInt16("sweepStart"),
                             # Sweep frequency at end
                             construct.SLInt16("sweepEnd"),
                             # Sweep length in ms
                             construct.SLInt16("sweepLength"),
                             construct.SLInt16("sweepType"),  # Sweep type
                             # Sweep taper at start, ms
                             construct.SLInt16("sweepTaperAtStart"),
                             # Sweep taper at end, ms
                             construct.SLInt16("sweepTaperAtEnd"),
                             construct.SLInt16("taperType"),  # Taper type
                             # Alias filter frequency, Hz
                             construct.SLInt16("aliasFreq"),
                             # Alias filter slope, dB/octave
                             construct.SLInt16("aliasSlope"),
                             # Notch filter frequency, Hz
                             construct.SLInt16("notchFreq"),
                             # Notch filter slope, dB/octave
                             construct.SLInt16("notchSlope"),
                             # Low-cut frequency, Hz
                             construct.SLInt16("lowCutFreq"),
github PIC-IRIS / PH5 / ph5 / core / segy_h.py View on Github external
# Sweep frequency at end
                             construct.SLInt16("sweepEnd"),
                             # Sweep length in ms
                             construct.SLInt16("sweepLength"),
                             construct.SLInt16("sweepType"),  # Sweep type
                             # Sweep taper at start, ms
                             construct.SLInt16("sweepTaperAtStart"),
                             # Sweep taper at end, ms
                             construct.SLInt16("sweepTaperAtEnd"),
                             construct.SLInt16("taperType"),  # Taper type
                             # Alias filter frequency, Hz
                             construct.SLInt16("aliasFreq"),
                             # Alias filter slope, dB/octave
                             construct.SLInt16("aliasSlope"),
                             # Notch filter frequency, Hz
                             construct.SLInt16("notchFreq"),
                             # Notch filter slope, dB/octave
                             construct.SLInt16("notchSlope"),
                             # Low-cut frequency, Hz
                             construct.SLInt16("lowCutFreq"),
                             # High-cut frequency, Hz
                             construct.SLInt16("hiCutFreq"),
                             # Low-cut slope, dB/octave
                             construct.SLInt16("lowCutSlope"),
                             # High-cut slope, dB/octave
                             construct.SLInt16("hiCutSlope"),
                             construct.SLInt16("year"),  # Year
                             construct.SLInt16("day"),  # Day of Year
                             construct.SLInt16("hour"),  # Hour
                             construct.SLInt16("minute"),  # Minute
                             construct.SLInt16("second"),  # Seconds
                             # Time bias code
github PIC-IRIS / PH5 / ph5 / core / segy_h.py View on Github external
# Water depth at group
                             construct.SLInt32("recWaterDepth"),
                             # Elevation and depth scalar
                             construct.SLInt16("elevationScale"),
                             # Coordinate scalar
                             construct.SLInt16("coordScale"),
                             # X coordinate of source
                             construct.SLInt32("sourceLongOrX"),
                             # Y coordinate of source
                             construct.SLInt32("sourceLatOrY"),
                             # X coordinate of receiver group
                             construct.SLInt32("recLongOrX"),
                             # Y coordinate of receiver group
                             construct.SLInt32("recLatOrY"),
                             # Coordinate system
                             construct.SLInt16("coordUnits"),
                             # Weathering velocity
                             construct.SLInt16("weatheringVelocity"),
                             # Sub-weathering velocity
                             construct.SLInt16("subWeatheringVelocity"),
                             # Uphole time at source in ms
                             construct.SLInt16("sourceUpholeTime"),
                             # Uphole time at group in ms
                             construct.SLInt16("recUpholeTime"),
                             # Source static correction in ms
                             construct.SLInt16("sourceStaticCor"),
                             # Group static correction in ms
                             construct.SLInt16("recStaticCor"),
                             # Total static applied in ms
                             construct.SLInt16("totalStatic"),
                             construct.SLInt16("lagTimeA"),  # Lag time A, ms
                             construct.SLInt16("lagTimeB"),  # Lag time B, ms
github PIC-IRIS / PH5 / ph5 / core / segy_h.py View on Github external
construct.SLInt16("aliasSlope"),
                             # Notch filter frequency, Hz
                             construct.SLInt16("notchFreq"),
                             # Notch filter slope, dB/octave
                             construct.SLInt16("notchSlope"),
                             # Low-cut frequency, Hz
                             construct.SLInt16("lowCutFreq"),
                             # High-cut frequency, Hz
                             construct.SLInt16("hiCutFreq"),
                             # Low-cut slope, dB/octave
                             construct.SLInt16("lowCutSlope"),
                             # High-cut slope, dB/octave
                             construct.SLInt16("hiCutSlope"),
                             construct.SLInt16("year"),  # Year
                             construct.SLInt16("day"),  # Day of Year
                             construct.SLInt16("hour"),  # Hour
                             construct.SLInt16("minute"),  # Minute
                             construct.SLInt16("second"),  # Seconds
                             # Time bias code
                             construct.SLInt16("timeBasisCode"),
                             # Trace weighting for LSB
                             construct.SLInt16("traceWeightingFactor"),
                             # Geophone group number
                             construct.ULInt16("phoneRollPos1"),
                             # Geophone group number (field)
                             construct.ULInt16("phoneFirstTrace"),
                             # Geophone group number, last trace (field)
                             construct.ULInt16("phoneLastTrace"),
                             construct.SLInt16("gapSize"),  # Gap size
                             construct.SLInt16("taperOvertravel"))
    # Over travel
    return TRACE
github PIC-IRIS / PH5 / ph5 / core / segy_h.py View on Github external
construct.SLInt16("lagTimeB"),  # Lag time B, ms
                             # Delay recording time, ms
                             construct.SLInt16("delay"),
                             # Mute start time, ms
                             construct.SLInt16("muteStart"),
                             construct.SLInt16("muteEnd"),  # Mute end time, ms
                             # *** Number of samples ***
                             construct.ULInt16("sampleLength"),
                             # *** Sample interval, us ***
                             construct.SLInt16("deltaSample"),
                             construct.SLInt16("gainType"),  # Gain type
                             construct.SLInt16("gainConst"),  # Gain constant
                             construct.SLInt16("initialGain"),  # Early gain
                             construct.SLInt16("correlated"),  # Correlated?
                             # Sweep frequency at start
                             construct.SLInt16("sweepStart"),
                             # Sweep frequency at end
                             construct.SLInt16("sweepEnd"),
                             # Sweep length in ms
                             construct.SLInt16("sweepLength"),
                             construct.SLInt16("sweepType"),  # Sweep type
                             # Sweep taper at start, ms
                             construct.SLInt16("sweepTaperAtStart"),
                             # Sweep taper at end, ms
                             construct.SLInt16("sweepTaperAtEnd"),
                             construct.SLInt16("taperType"),  # Taper type
                             # Alias filter frequency, Hz
                             construct.SLInt16("aliasFreq"),
                             # Alias filter slope, dB/octave
                             construct.SLInt16("aliasSlope"),
                             # Notch filter frequency, Hz
                             construct.SLInt16("notchFreq"),
github PIC-IRIS / PH5 / ph5 / core / segy_h.py View on Github external
# Shot/trigger time - minute
                             construct.SLInt16("shot_minute"),
                             # Shot/trigger time - second
                             construct.SLInt16("shot_second"),
                             # Shot/trigger time - microsec
                             construct.SLInt32("shot_us"),
                             # Override for sample interval (SET = 0)
                             construct.SLInt32("si_override"),
                             # Azimuth of sensor orient axis (empty)
                             construct.SLInt16("sensor_azimuth"),
                             # Geophone inclination (empty)
                             construct.SLInt16("sensor_inclination"),
                             # LMO static (x/v)  (ms) (empty)
                             construct.SLInt32("lmo_ms"),
                             # LMO flag: (0=Y, 1=N) (SET = 1)
                             construct.SLInt16("lmo_flag"),
                             # 13 = rt-130, 16 = texan
                             construct.SLInt16("inst_type"),
                             construct.SLInt16("correction"),  # 0
                             # Azimuth of source-receiver (min of arc)
                             construct.SLInt16("azimuth"),
                             construct.SLInt16(
                                 "sensor_type"),  # 1--L28 (PASSCAL)(4.5 Hz)\
                             # 2--L22 (2 Hz)\
                             # 3--L10B (8 Hz)\
                             # 4--L4 1 Hz\
                             # 5--L4 2 Hz\
                             # 6--FBA\
                             # 7--TDC-10 (4.5 Hz)\
                             # 8--L28 (GSC)\
                             # 9--LRS1033 (4.5 HZ)\
                             # 99--unknown
github PIC-IRIS / PH5 / ph5 / core / segy_h.py View on Github external
construct.SLInt16("gainType"),  # Gain type
                             construct.SLInt16("gainConst"),  # Gain constant
                             construct.SLInt16("initialGain"),  # Early gain
                             construct.SLInt16("correlated"),  # Correlated?
                             # Sweep frequency at start
                             construct.SLInt16("sweepStart"),
                             # Sweep frequency at end
                             construct.SLInt16("sweepEnd"),
                             # Sweep length in ms
                             construct.SLInt16("sweepLength"),
                             construct.SLInt16("sweepType"),  # Sweep type
                             # Sweep taper at start, ms
                             construct.SLInt16("sweepTaperAtStart"),
                             # Sweep taper at end, ms
                             construct.SLInt16("sweepTaperAtEnd"),
                             construct.SLInt16("taperType"),  # Taper type
                             # Alias filter frequency, Hz
                             construct.SLInt16("aliasFreq"),
                             # Alias filter slope, dB/octave
                             construct.SLInt16("aliasSlope"),
                             # Notch filter frequency, Hz
                             construct.SLInt16("notchFreq"),
                             # Notch filter slope, dB/octave
                             construct.SLInt16("notchSlope"),
                             # Low-cut frequency, Hz
                             construct.SLInt16("lowCutFreq"),
                             # High-cut frequency, Hz
                             construct.SLInt16("hiCutFreq"),
                             # Low-cut slope, dB/octave
                             construct.SLInt16("lowCutSlope"),
                             # High-cut slope, dB/octave
                             construct.SLInt16("hiCutSlope"),