How to use the construct.LFloat32 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 / sac_h.py View on Github external
construct.LFloat32("baz"),
                           # Station to event great circle arc length
                           # (degrees).
                           construct.LFloat32("gcarc"),
                           construct.LFloat32("sb"),      #
                           construct.LFloat32("sdelta"),  #
                           # Mean value of dependent variable.
                           construct.LFloat32("depmen"),
                           # Component azimuth (degrees, clockwise from north).
                           construct.LFloat32("cmpaz"),
                           # Component incident angle (degrees, from vertical).
                           construct.LFloat32("cmpinc"),
                           construct.LFloat32("xminimum"),
                           construct.LFloat32("xmaximum"),
                           construct.LFloat32("yminimum"),
                           construct.LFloat32("ymaximum"),
                           construct.LFloat32("unused6"),
                           construct.LFloat32("unused7"),
                           construct.LFloat32("unused8"),
                           construct.LFloat32("unused9"),
                           construct.LFloat32("unused10"),
                           construct.LFloat32("unused11"),
                           construct.LFloat32("unused12"))
    return BIN
# SAC Little Endian binary header, int part
github PIC-IRIS / PH5 / ph5 / core / sac_h.py View on Github external
construct.LFloat32("sb"),      #
                           construct.LFloat32("sdelta"),  #
                           # Mean value of dependent variable.
                           construct.LFloat32("depmen"),
                           # Component azimuth (degrees, clockwise from north).
                           construct.LFloat32("cmpaz"),
                           # Component incident angle (degrees, from vertical).
                           construct.LFloat32("cmpinc"),
                           construct.LFloat32("xminimum"),
                           construct.LFloat32("xmaximum"),
                           construct.LFloat32("yminimum"),
                           construct.LFloat32("ymaximum"),
                           construct.LFloat32("unused6"),
                           construct.LFloat32("unused7"),
                           construct.LFloat32("unused8"),
                           construct.LFloat32("unused9"),
                           construct.LFloat32("unused10"),
                           construct.LFloat32("unused11"),
                           construct.LFloat32("unused12"))
    return BIN
# SAC Little Endian binary header, int part
github PIC-IRIS / PH5 / ph5 / core / sac_h.py View on Github external
construct.LFloat32("user0"),
                           construct.LFloat32("user1"),   #
                           construct.LFloat32("user2"),   #
                           construct.LFloat32("user3"),   #
                           construct.LFloat32("user4"),   #
                           construct.LFloat32("user5"),   #
                           construct.LFloat32("user6"),   #
                           construct.LFloat32("user7"),   #
                           construct.LFloat32("user8"),   #
                           construct.LFloat32("user9"),   #
                           # Station to event distance (km).
                           construct.LFloat32("dist"),
                           # Event to station azimuth (degrees).
                           construct.LFloat32("az"),
                           # Station to event azimuth (degrees).
                           construct.LFloat32("baz"),
                           # Station to event great circle arc length
                           # (degrees).
                           construct.LFloat32("gcarc"),
                           construct.LFloat32("sb"),      #
                           construct.LFloat32("sdelta"),  #
                           # Mean value of dependent variable.
                           construct.LFloat32("depmen"),
                           # Component azimuth (degrees, clockwise from north).
                           construct.LFloat32("cmpaz"),
                           # Component incident angle (degrees, from vertical).
                           construct.LFloat32("cmpinc"),
                           construct.LFloat32("xminimum"),
                           construct.LFloat32("xmaximum"),
                           construct.LFloat32("yminimum"),
                           construct.LFloat32("ymaximum"),
                           construct.LFloat32("unused6"),
github PIC-IRIS / PH5 / ph5 / core / sac_h.py View on Github external
# Event to station azimuth (degrees).
                           construct.LFloat32("az"),
                           # Station to event azimuth (degrees).
                           construct.LFloat32("baz"),
                           # Station to event great circle arc length
                           # (degrees).
                           construct.LFloat32("gcarc"),
                           construct.LFloat32("sb"),      #
                           construct.LFloat32("sdelta"),  #
                           # Mean value of dependent variable.
                           construct.LFloat32("depmen"),
                           # Component azimuth (degrees, clockwise from north).
                           construct.LFloat32("cmpaz"),
                           # Component incident angle (degrees, from vertical).
                           construct.LFloat32("cmpinc"),
                           construct.LFloat32("xminimum"),
                           construct.LFloat32("xmaximum"),
                           construct.LFloat32("yminimum"),
                           construct.LFloat32("ymaximum"),
                           construct.LFloat32("unused6"),
                           construct.LFloat32("unused7"),
                           construct.LFloat32("unused8"),
                           construct.LFloat32("unused9"),
                           construct.LFloat32("unused10"),
                           construct.LFloat32("unused11"),
                           construct.LFloat32("unused12"))
    return BIN
# SAC Little Endian binary header, int part
github PIC-IRIS / PH5 / ph5 / core / sac_h.py View on Github external
construct.LFloat32("user5"),   #
                           construct.LFloat32("user6"),   #
                           construct.LFloat32("user7"),   #
                           construct.LFloat32("user8"),   #
                           construct.LFloat32("user9"),   #
                           # Station to event distance (km).
                           construct.LFloat32("dist"),
                           # Event to station azimuth (degrees).
                           construct.LFloat32("az"),
                           # Station to event azimuth (degrees).
                           construct.LFloat32("baz"),
                           # Station to event great circle arc length
                           # (degrees).
                           construct.LFloat32("gcarc"),
                           construct.LFloat32("sb"),      #
                           construct.LFloat32("sdelta"),  #
                           # Mean value of dependent variable.
                           construct.LFloat32("depmen"),
                           # Component azimuth (degrees, clockwise from north).
                           construct.LFloat32("cmpaz"),
                           # Component incident angle (degrees, from vertical).
                           construct.LFloat32("cmpinc"),
                           construct.LFloat32("xminimum"),
                           construct.LFloat32("xmaximum"),
                           construct.LFloat32("yminimum"),
                           construct.LFloat32("ymaximum"),
                           construct.LFloat32("unused6"),
                           construct.LFloat32("unused7"),
                           construct.LFloat32("unused8"),
                           construct.LFloat32("unused9"),
                           construct.LFloat32("unused10"),
                           construct.LFloat32("unused11"),
github PIC-IRIS / PH5 / ph5 / core / sac_h.py View on Github external
construct.LFloat32("gcarc"),
                           construct.LFloat32("sb"),      #
                           construct.LFloat32("sdelta"),  #
                           # Mean value of dependent variable.
                           construct.LFloat32("depmen"),
                           # Component azimuth (degrees, clockwise from north).
                           construct.LFloat32("cmpaz"),
                           # Component incident angle (degrees, from vertical).
                           construct.LFloat32("cmpinc"),
                           construct.LFloat32("xminimum"),
                           construct.LFloat32("xmaximum"),
                           construct.LFloat32("yminimum"),
                           construct.LFloat32("ymaximum"),
                           construct.LFloat32("unused6"),
                           construct.LFloat32("unused7"),
                           construct.LFloat32("unused8"),
                           construct.LFloat32("unused9"),
                           construct.LFloat32("unused10"),
                           construct.LFloat32("unused11"),
                           construct.LFloat32("unused12"))
    return BIN
# SAC Little Endian binary header, int part
github PIC-IRIS / PH5 / ph5 / core / sac_h.py View on Github external
construct.LFloat32("resp6"),   #
                           construct.LFloat32("resp7"),   #
                           construct.LFloat32("resp8"),   #
                           construct.LFloat32("resp9"),   #
                           # Station latitude (degrees, north positive)
                           construct.LFloat32("stla"),
                           # Station longitude (degrees, east positive).
                           construct.LFloat32("stlo"),
                           # Station elevation (meters). [not currently used]
                           construct.LFloat32("stel"),
                           # Station depth below surface (meters). [not
                           # currently
                           construct.LFloat32("stdp"),
                           # used]
                           # Event latitude (degrees north positive).
                           construct.LFloat32("evla"),
                           # Event longitude (degrees east positive).
                           construct.LFloat32("evlo"),
                           # Event elevation (meters). [not currently used]
                           construct.LFloat32("evel"),
                           # Event depth below surface (meters). [not currently
                           # used]
                           construct.LFloat32("evdp"),
                           construct.LFloat32("mag"),  # Event magnitude.
                           # User defined variable storage area {ai n}=0,9.
                           construct.LFloat32("user0"),
                           construct.LFloat32("user1"),   #
                           construct.LFloat32("user2"),   #
                           construct.LFloat32("user3"),   #
                           construct.LFloat32("user4"),   #
                           construct.LFloat32("user5"),   #
                           construct.LFloat32("user6"),   #
github PIC-IRIS / PH5 / ph5 / core / sac_h.py View on Github external
# Ending value of the independent variable.
                           # [required]
                           construct.LFloat32("e"),
                           # Event origin time (seconds relative to reference
                           # time.)
                           construct.LFloat32("o"),
                           # First arrival time (seconds relative to reference
                           # time.)
                           construct.LFloat32("a"),
                           construct.LFloat32("fmt"),     #
                           construct.LFloat32("t0"),      #
                           construct.LFloat32("t1"),      #
                           construct.LFloat32("t2"),      #
                           construct.LFloat32("t3"),      #
                           construct.LFloat32("t4"),      #
                           construct.LFloat32("t5"),      #
                           construct.LFloat32("t6"),      #
                           construct.LFloat32("t7"),      #
                           construct.LFloat32("t8"),      #
                           construct.LFloat32("t9"),      #
                           # Fini or end of event time (seconds relative to
                           # reference
                           construct.LFloat32("f"),
                           # time.)
                           construct.LFloat32("resp0"),   #
                           construct.LFloat32("resp1"),   #
                           construct.LFloat32("resp2"),   #
                           construct.LFloat32("resp3"),   #
                           construct.LFloat32("resp4"),   #
                           construct.LFloat32("resp5"),   #
                           construct.LFloat32("resp6"),   #
                           construct.LFloat32("resp7"),   #
github PIC-IRIS / PH5 / ph5 / core / sac_h.py View on Github external
# (degrees).
                           construct.LFloat32("gcarc"),
                           construct.LFloat32("sb"),      #
                           construct.LFloat32("sdelta"),  #
                           # Mean value of dependent variable.
                           construct.LFloat32("depmen"),
                           # Component azimuth (degrees, clockwise from north).
                           construct.LFloat32("cmpaz"),
                           # Component incident angle (degrees, from vertical).
                           construct.LFloat32("cmpinc"),
                           construct.LFloat32("xminimum"),
                           construct.LFloat32("xmaximum"),
                           construct.LFloat32("yminimum"),
                           construct.LFloat32("ymaximum"),
                           construct.LFloat32("unused6"),
                           construct.LFloat32("unused7"),
                           construct.LFloat32("unused8"),
                           construct.LFloat32("unused9"),
                           construct.LFloat32("unused10"),
                           construct.LFloat32("unused11"),
                           construct.LFloat32("unused12"))
    return BIN
# SAC Little Endian binary header, int part