Example #1
0
def test_write_sect_widths_12():
    l = read(egfn("sample_write_sect_widths_12.las"))
    s = StringIO()
    l.write(s, version=1.2)
    s.seek(0)
    assert s.read(
    ) == '''~Version ---------------------------------------------------
Example #2
0
def test_write_units():
    l = read(egfn("sample.las"))
    l.curves[0].unit = 'FT'
    s = StringIO()
    l.write(s, version=2, wrap=False, fmt="%.5f")
    s.seek(0)
    assert s.read() == '''~Version ---------------------------------------------------
Example #3
0
def test_write_20_to_12_ver_in_mem_is_20():
    las = read(egfn("2.0/sample_2.0.las"))
    s = StringIO()
    las.write(s, version=1.2)
    s.seek(0)
    assert s.read(
    ) == '''~Version ---------------------------------------------------
Example #4
0
def test_write_empty_las():
    las = lasio.las.LASFile()

    s = StringIO()
    las.write(s, version=2.0)
    s.seek(0)
    assert (
        s.read()
        == """~Version ---------------------------------------------------
VERS.   2.0 : CWLS log ASCII Standard -VERSION 2.0
WRAP.    NO : One line per depth step
DLM . SPACE : Column Data Section Delimiter
~Well ------------------------------------------------------
STRT.m       0 : START DEPTH
STOP.m       0 : STOP DEPTH
STEP.m       0 : STEP
NULL. -9999.25 : NULL VALUE
COMP.          : COMPANY
WELL.          : WELL
FLD .          : FIELD
LOC .          : LOCATION
PROV.          : PROVINCE
CNTY.          : COUNTY
STAT.          : STATE
CTRY.          : COUNTRY
SRVC.          : SERVICE COMPANY
DATE.          : DATE
UWI .          : UNIQUE WELL ID
API .          : API NUMBER
~Curve Information -----------------------------------------
~Params ----------------------------------------------------
~Other -----------------------------------------------------
~ASCII -----------------------------------------------------
"""
    )
Example #5
0
def test_write_sect_widths_20_wide():
    l = read(egfn("sample_write_sect_widths_20_wide.las"))
    s = StringIO()
    l.write(s, version=2)
    s.seek(0)
    assert s.read(
    ) == """~Version ---------------------------------------------------
def test_write_units():
    l = read(egfn("sample.las"))
    l.curves[0].unit = 'FT'
    s = StringIO()
    l.write(s, version=2, wrap=False, fmt="%.5f")
    s.seek(0)
    assert s.read() == '''~Version ---------------------------------------------------
def test_write_sect_widths_12_curves():
    l = read(egfn("sample_write_sect_widths_12.las"))
    s = StringIO()
    l.write(s, version=1.2)
    for start in ("D.M ", "A.US/M ", "B.K/M3 ", "C.V/V "):
        s.seek(0)
        assert "\n" + start in s.read()
Example #8
0
def test_write_wrapped():
    fn = stegfn("1.2", "sample_wrapped.las")
    l = read(fn)
    s = StringIO()
    l.write(s, version=2.0, wrap=True, fmt="%.5f")
    s.seek(0)
    assert s.read() == """~Version ---------------------------------------------------
Example #9
0
def test_write_sect_widths_12_curves():
    l = read(egfn("sample_write_sect_widths_12.las"))
    s = StringIO()
    l.write(s, version=1.2)
    for start in ("D.M ", "A.US/M ", "B.K/M3 ", "C.V/V "):
        s.seek(0)
        assert "\n" + start in s.read()
Example #10
0
def test_write_single_step():
    las = lasio.read(egfn("single_step_20.las"))
    s = StringIO()
    las.write(s, version=2)
    s.seek(0)
    assert s.read(
    ) == '''~Version ---------------------------------------------------
Example #11
0
def test_multi_curve_missing_mnemonics_rewrite():
    l = read(egfn('sample_issue105_b.las'))
    s = StringIO()
    l.write(s, version=2, wrap=False, fmt="%.5f")
    s.seek(0)
    assert s.read(
    ) == '''~Version ---------------------------------------------------
Example #12
0
def test_write_12_to_20_ver_in_mem_is_12():
    las = read(egfn("1.2/sample.las"))
    s = StringIO()
    las.write(s, version=2)
    s.seek(0)
    assert las.version.VERS.value == 1.2
    assert s.read(
    ) == '''~Version ---------------------------------------------------
def test_write_wrapped():
    fn = stegfn("1.2", "sample_wrapped.las")
    l = read(fn)
    s = StringIO()
    l.write(s, version=2.0, wrap=True, fmt="%.5f")
    s.seek(0)
    assert s.read(
    ) == """~Version ---------------------------------------------------
Example #14
0
def test_rename_and_write_curve_mnemonic():
    l = read(egfn("sample.las"))
    for curve in l.curves:
        if curve.mnemonic != "DEPT":
            curve.mnemonic = "New_" + curve.mnemonic
    for curve in l.curves:
        print(
            "mnemonic=%s original_mnemonic=%s"
            % (curve.mnemonic, curve.original_mnemonic)
        )
    s = StringIO()
    l.write(s, version=2)
    s.seek(0)
    assert (
        s.read()
        == """~Version ---------------------------------------------------
VERS. 2.0 : CWLS log ASCII Standard -VERSION 2.0
WRAP.  NO : ONE LINE PER DEPTH STEP
~Well ------------------------------------------------------
STRT.M                  1670.0 : 
STOP.M                 1669.75 : 
STEP.M                  -0.125 : 
NULL.                  -999.25 : 
COMP.   # ANY OIL COMPANY LTD. : COMPANY
WELL.   ANY ET AL OIL WELL #12 : WELL
FLD .                     EDAM : FIELD
LOC .           A9-16-49-20W3M : LOCATION
PROV.             SASKATCHEWAN : PROVINCE
SRVC. ANY LOGGING COMPANY LTD. : SERVICE COMPANY
DATE.              25-DEC-1988 : LOG DATE
UWI .         100091604920W300 : UNIQUE WELL ID
~Curve Information -----------------------------------------
DEPT    .M     : 1  DEPTH
New_DT  .US/M  : 2  SONIC TRANSIT TIME
New_RHOB.K/M3  : 3  BULK DENSITY
New_NPHI.V/V   : 4   NEUTRON POROSITY
New_SFLU.OHMM  : 5  RXO RESISTIVITY
New_SFLA.OHMM  : 6  SHALLOW RESISTIVITY
New_ILM .OHMM  : 7  MEDIUM RESISTIVITY
New_ILD .OHMM  : 8  DEEP RESISTIVITY
~Params ----------------------------------------------------
BHT .DEGC   35.5 : BOTTOM HOLE TEMPERATURE
BS  .MM    200.0 : BIT SIZE
FD  .K/M3 1000.0 : FLUID DENSITY
MATR.        0.0 : NEUTRON MATRIX(0=LIME,1=SAND,2=DOLO)
MDEN.     2710.0 : LOGGING MATRIX DENSITY
RMF .OHMM  0.216 : MUD FILTRATE RESISTIVITY
DFD .K/M3 1525.0 : DRILL FLUID DENSITY
~Other -----------------------------------------------------
Note: The logging tools became stuck at 625 meters causing the data
between 625 meters and 615 meters to be invalid.
~ASCII -----------------------------------------------------
 1670.00000  123.45000 2550.00000    0.45000  123.45000  123.45000  110.20000  105.60000
 1669.87500  123.45000 2550.00000    0.45000  123.45000  123.45000  110.20000  105.60000
 1669.75000  123.45000 2550.00000    0.45000  123.45000  123.45000  110.20000  105.60000
"""
    )
Example #15
0
def test_df_curve_addition_on_export():
    l = read(egfn("sample.las"))
    df = l.df()
    df["ILD_COND"] = 1000 / df.ILD
    l.set_data_from_df(df, truncate=False)
    s = StringIO()
    l.write(s, version=2, wrap=False, fmt="%.5f")
    s.seek(0)
    assert s.read() == """~Version ---------------------------------------------------
def test_df_curve_addition_on_export():
    l = read(egfn("sample.las"))
    df = l.df()
    df["ILD_COND"] = 1000 / df.ILD
    l.set_data_from_df(df, truncate=False)
    s = StringIO()
    l.write(s, version=2, wrap=False, fmt="%.5f")
    s.seek(0)
    assert s.read() == """~Version ---------------------------------------------------
Example #17
0
def test_write_12_to_20_ver():
    las = read(egfn("1.2/sample.las"))
    las.version.VERS.value = 2
    s = StringIO()
    las.write(s)
    s.seek(0)
    assert las.version.VERS.value != 1.2
    assert s.read(
    ) == '''~Version ---------------------------------------------------
def test_rename_and_write_curve_mnemonic():
    l = read(egfn("sample.las"))
    for curve in l.curves:
        if curve.mnemonic != 'DEPT':
            curve.mnemonic = "New_" + curve.mnemonic
    for curve in l.curves:
        print('mnemonic=%s original_mnemonic=%s' % (curve.mnemonic, curve.original_mnemonic))
    s = StringIO()
    l.write(s, version=2)
    s.seek(0)
    assert s.read() == '''~Version ---------------------------------------------------
Example #19
0
def test_df_curve_addition_on_export():
    l = read(egfn("sample.las"))
    df = l.df()
    df["ILD_COND"] = 1000 / df.ILD
    l.set_data_from_df(df, truncate=False)
    s = StringIO()
    l.write(s, version=2, wrap=False, fmt="%.5f")
    s.seek(0)
    assert (
        s.read()
        == """~Version ---------------------------------------------------
VERS. 2.0 : CWLS log ASCII Standard -VERSION 2.0
WRAP.  NO : One line per depth step
~Well ------------------------------------------------------
STRT.M                  1670.0 : 
STOP.M                 1669.75 : 
STEP.M                  -0.125 : 
NULL.                  -999.25 : 
COMP.   # ANY OIL COMPANY LTD. : COMPANY
WELL.   ANY ET AL OIL WELL #12 : WELL
FLD .                     EDAM : FIELD
LOC .           A9-16-49-20W3M : LOCATION
PROV.             SASKATCHEWAN : PROVINCE
SRVC. ANY LOGGING COMPANY LTD. : SERVICE COMPANY
DATE.              25-DEC-1988 : LOG DATE
UWI .         100091604920W300 : UNIQUE WELL ID
~Curve Information -----------------------------------------
DEPT    .M     : 1  DEPTH
DT      .US/M  : 2  SONIC TRANSIT TIME
RHOB    .K/M3  : 3  BULK DENSITY
NPHI    .V/V   : 4   NEUTRON POROSITY
SFLU    .OHMM  : 5  RXO RESISTIVITY
SFLA    .OHMM  : 6  SHALLOW RESISTIVITY
ILM     .OHMM  : 7  MEDIUM RESISTIVITY
ILD     .OHMM  : 8  DEEP RESISTIVITY
ILD_COND.      : 
~Params ----------------------------------------------------
BHT .DEGC   35.5 : BOTTOM HOLE TEMPERATURE
BS  .MM    200.0 : BIT SIZE
FD  .K/M3 1000.0 : FLUID DENSITY
MATR.        0.0 : NEUTRON MATRIX(0=LIME,1=SAND,2=DOLO)
MDEN.     2710.0 : LOGGING MATRIX DENSITY
RMF .OHMM  0.216 : MUD FILTRATE RESISTIVITY
DFD .K/M3 1525.0 : DRILL FLUID DENSITY
~Other -----------------------------------------------------
Note: The logging tools became stuck at 625 meters causing the data
between 625 meters and 615 meters to be invalid.
~ASCII -----------------------------------------------------
 1670.00000  123.45000 2550.00000    0.45000  123.45000  123.45000  110.20000  105.60000    9.46970
 1669.87500  123.45000 2550.00000    0.45000  123.45000  123.45000  110.20000  105.60000    9.46970
 1669.75000  123.45000 2550.00000    0.45000  123.45000  123.45000  110.20000  105.60000    9.46970
"""
    )
Example #20
0
def test_write_data_section_header_renamed_with_curve_names():
    # Verify that the Curve headers are included in the ~A data_header
    s = StringIO()
    las = read(egfn("2.0/sample_2.0.las"))
    las.write(s, mnemonics_header=True, data_section_header="~A")
    s.seek(0)
    assert (
        s.read()
        == """~Version ---------------------------------------------------
VERS. 2.0 : CWLS log ASCII Standard -VERSION 2.0
WRAP.  NO : ONE LINE PER DEPTH STEP
~Well ------------------------------------------------------
STRT.M                  1670.0 : START DEPTH
STOP.M                 1669.75 : STOP DEPTH
STEP.M                  -0.125 : STEP
NULL.                  -999.25 : NULL VALUE
COMP.     ANY OIL COMPANY INC. : COMPANY
WELL.                  AAAAA_2 : WELL
FLD .                  WILDCAT : FIELD
LOC .           12-34-12-34W5M : LOCATION
PROV.                  ALBERTA : PROVINCE
SRVC. ANY LOGGING COMPANY INC. : SERVICE COMPANY
DATE.                13-DEC-86 : LOG DATE
UWI .         100123401234W500 : UNIQUE WELL ID
~Curve Information -----------------------------------------
DEPT.M                 : 1  DEPTH
DT  .US/M 60 520 32 00 : 2  SONIC TRANSIT TIME
RHOB.K/M3 45 350 01 00 : 3  BULK DENSITY
NPHI.V/V  42 890 00 00 : 4  NEUTRON POROSITY
SFLU.OHMM 07 220 04 00 : 5  SHALLOW RESISTIVITY
SFLA.OHMM 07 222 01 00 : 6  SHALLOW RESISTIVITY
ILM .OHMM 07 120 44 00 : 7  MEDIUM RESISTIVITY
ILD .OHMM 07 120 46 00 : 8  DEEP RESISTIVITY
~Params ----------------------------------------------------
MUD .   GEL CHEM : MUD TYPE
BHT .DEGC   35.5 : BOTTOM HOLE TEMPERATURE
BS  .MM    200.0 : BIT SIZE
FD  .K/M3 1000.0 : FLUID DENSITY
MATR.       SAND : NEUTRON MATRIX
MDEN.     2710.0 : LOGGING MATRIX DENSITY
RMF .OHMM  0.216 : MUD FILTRATE RESISTIVITY
DFD .K/M3 1525.0 : DRILL FLUID DENSITY
~Other -----------------------------------------------------
Note: The logging tools became stuck at 625 metres causing the data
between 625 metres and 615 metres to be invalid.
~A     DEPT         DT       RHOB       NPHI       SFLU       SFLA        ILM        ILD
 1670.00000  123.45000 2550.00000    0.45000  123.45000  123.45000  110.20000  105.60000
 1669.87500  123.45000 2550.00000    0.45000  123.45000  123.45000  110.20000  105.60000
 1669.75000  123.45000 2550.00000    0.45000  123.45000  123.45000  110.20000  105.60000
"""
    )
Example #21
0
def test_write_sect_widths_20_narrow():
    l = read(egfn("sample_write_sect_widths_20_narrow.las"))
    s = StringIO()
    l.write(s, version=2)
    s.seek(0)
    assert (
        s.read()
        == """~Version ---------------------------------------------------
VERS. 2.0 : CWLS log ASCII Standard -VERSION 2.0
WRAP.  NO : ONE LINE PER DEPTH STEP
~Well ------------------------------------------------------
STRT.M   1670.0 : START DEPTH
STOP.M  1669.75 : STOP DEPTH
STEP.M   -0.125 : STEP
NULL.   -999.25 : NULL VALUE
COMP.       ANY : COMPANY
WELL.   AAAAA_2 : WELL
FLD .   WILDCAT : FIELD
LOC .        12 : LOCATION
PROV.   ALBERTA : PROVINCE
SRVC.   LOGGING : SERVICE COMPANY ARE YOU KIDDING THIS IS A REALLY REALLY LONG STRING
DATE. 13-DEC-86 : LOG DATE
UWI .  10012340 : UNIQUE WELL ID
~Curve Information -----------------------------------------
DEPT.M                 : 1  DEPTH
DT  .US/M 60 520 32 00 : 2  SONIC TRANSIT TIME
RHOB.K/M3 45 350 01 00 : 3  BULK DENSITY
NPHI.V/V  42 890 00 00 : 4  NEUTRON POROSITY
SFLU.OHMM 07 220 04 00 : 5  SHALLOW RESISTIVITY
SFLA.OHMM 07 222 01 00 : 6  SHALLOW RESISTIVITY
ILM .OHMM 07 120 44 00 : 7  MEDIUM RESISTIVITY
ILD .OHMM 07 120 46 00 : 8  DEEP RESISTIVITY
~Params ----------------------------------------------------
MUD .   GEL CHEM : MUD TYPE
BHT .DEGC   35.5 : BOTTOM HOLE TEMPERATURE
BS  .MM    200.0 : BIT SIZE
FD  .K/M3 1000.0 : FLUID DENSITY
MATR.       SAND : NEUTRON MATRIX
MDEN.     2710.0 : LOGGING MATRIX DENSITY
RMF .OHMM  0.216 : MUD FILTRATE RESISTIVITY
DFD .K/M3 1525.0 : DRILL FLUID DENSITY
~Other -----------------------------------------------------
Note: The logging tools became stuck at 625 metres causing the data
between 625 metres and 615 metres to be invalid.
~ASCII -----------------------------------------------------
 1670.00000  123.45000 2550.00000    0.45000  123.45000  123.45000  110.20000  105.60000
 1669.87500  123.45000 2550.00000    0.45000  123.45000  123.45000  110.20000  105.60000
 1669.75000  123.45000 2550.00000    0.45000  123.45000  123.45000  110.20000  105.60000
"""
    )
Example #22
0
def test_write_20_to_12_ver_in_mem_is_20():
    las = read(egfn("2.0/sample_2.0.las"))
    s = StringIO()
    las.write(s, version=1.2)
    s.seek(0)
    assert (
        s.read()
        == """~Version ---------------------------------------------------
VERS. 1.2 : CWLS LOG ASCII STANDARD - VERSION 1.2
WRAP.  NO : ONE LINE PER DEPTH STEP
~Well ------------------------------------------------------
STRT.M         1670.0 : START DEPTH
STOP.M        1669.75 : STOP DEPTH
STEP.M         -0.125 : STEP
NULL.         -999.25 : NULL VALUE
COMP.         COMPANY : ANY OIL COMPANY INC.
WELL.            WELL : AAAAA_2
FLD .           FIELD : WILDCAT
LOC .        LOCATION : 12-34-12-34W5M
PROV.        PROVINCE : ALBERTA
SRVC. SERVICE COMPANY : ANY LOGGING COMPANY INC.
DATE.        LOG DATE : 13-DEC-86
UWI .  UNIQUE WELL ID : 100123401234W500
~Curve Information -----------------------------------------
DEPT.M                 : 1  DEPTH
DT  .US/M 60 520 32 00 : 2  SONIC TRANSIT TIME
RHOB.K/M3 45 350 01 00 : 3  BULK DENSITY
NPHI.V/V  42 890 00 00 : 4  NEUTRON POROSITY
SFLU.OHMM 07 220 04 00 : 5  SHALLOW RESISTIVITY
SFLA.OHMM 07 222 01 00 : 6  SHALLOW RESISTIVITY
ILM .OHMM 07 120 44 00 : 7  MEDIUM RESISTIVITY
ILD .OHMM 07 120 46 00 : 8  DEEP RESISTIVITY
~Params ----------------------------------------------------
MUD .   GEL CHEM : MUD TYPE
BHT .DEGC   35.5 : BOTTOM HOLE TEMPERATURE
BS  .MM    200.0 : BIT SIZE
FD  .K/M3 1000.0 : FLUID DENSITY
MATR.       SAND : NEUTRON MATRIX
MDEN.     2710.0 : LOGGING MATRIX DENSITY
RMF .OHMM  0.216 : MUD FILTRATE RESISTIVITY
DFD .K/M3 1525.0 : DRILL FLUID DENSITY
~Other -----------------------------------------------------
Note: The logging tools became stuck at 625 metres causing the data
between 625 metres and 615 metres to be invalid.
~ASCII -----------------------------------------------------
 1670.00000  123.45000 2550.00000    0.45000  123.45000  123.45000  110.20000  105.60000
 1669.87500  123.45000 2550.00000    0.45000  123.45000  123.45000  110.20000  105.60000
 1669.75000  123.45000 2550.00000    0.45000  123.45000  123.45000  110.20000  105.60000
"""
    )
Example #23
0
def test_multi_curve_missing_mnemonics_rewrite():
    l = read(egfn("sample_issue105_b.las"))
    s = StringIO()
    l.write(s, version=2, wrap=False, fmt="%.5f")
    s.seek(0)
    assert (
        s.read()
        == """~Version ---------------------------------------------------
VERS. 2.0 : CWLS log ASCII Standard -VERSION 2.0
WRAP.  NO : One line per depth step
~Well ------------------------------------------------------
STRT.M                  1670.0 : 
STOP.M                 1669.75 : 
STEP.M                  -0.125 : 
NULL.                  -999.25 : 
COMP.   # ANY OIL COMPANY LTD. : COMPANY
WELL.   ANY ET AL OIL WELL #12 : WELL
FLD .                     EDAM : FIELD
LOC .           A9-16-49-20W3M : LOCATION
PROV.             SASKATCHEWAN : PROVINCE
SRVC. ANY LOGGING COMPANY LTD. : SERVICE COMPANY
DATE.              25-DEC-1988 : LOG DATE
UWI .         100091604920W300 : UNIQUE WELL ID
~Curve Information -----------------------------------------
DEPT.M     : 1  DEPTH
    .ohmm  : curve 1,2,3
    .ohmm  : curve 10,20,30
    .ohmm  : curve 100,200,300
PHI .      : porosity
~Params ----------------------------------------------------
BHT .DEGC   35.5 : BOTTOM HOLE TEMPERATURE
BS  .MM    200.0 : BIT SIZE
FD  .K/M3 1000.0 : FLUID DENSITY
MATR.        0.0 : NEUTRON MATRIX(0=LIME,1=SAND,2=DOLO)
MDEN.     2710.0 : LOGGING MATRIX DENSITY
RMF .OHMM  0.216 : MUD FILTRATE RESISTIVITY
DFD .K/M3 1525.0 : DRILL FLUID DENSITY
~Other -----------------------------------------------------
Note: The logging tools became stuck at 625 meters causing the data
between 625 meters and 615 meters to be invalid.
~ASCII -----------------------------------------------------
 1670.00000    1.00000   10.00000  100.00000    0.10000
 1669.87500    2.00000   20.00000  200.00000    0.20000
 1669.75000    3.00000   30.00000  300.00000    0.30000
"""
    )
Example #24
0
def test_write_wrapped():
    fn = stegfn("1.2", "sample_wrapped.las")
    l = read(fn)
    s = StringIO()
    l.write(s, version=2.0, wrap=True, fmt="%.5f")
    s.seek(0)
    assert (
        s.read()
        == """~Version ---------------------------------------------------
VERS. 2.0 : CWLS log ASCII Standard -VERSION 2.0
WRAP. YES : Multiple lines per depth step
~Well ------------------------------------------------------
STRT.M                   910.0 : 
STOP.M                   909.5 : 
STEP.M                  -0.125 : 
NULL.                  -999.25 : Null value
COMP.     ANY OIL COMPANY INC. : COMPANY
WELL.    ANY ET AL XX-XX-XX-XX : WELL
FLD .                  WILDCAT : FIELD
LOC .           XX-XX-XX-XXW3M : LOCATION
PROV.             SASKATCHEWAN : PROVINCE
SRVC. ANY LOGGING COMPANY INC. : SERVICE COMPANY
SON .                   142085 : SERVICE ORDER
DATE.                13-DEC-86 : LOG DATE
UWI .                          : UNIQUE WELL ID
~Curve Information -----------------------------------------
DEPT.M     : Depth
DT  .US/M  : 1 Sonic Travel Time
RHOB.K/M   : 2 Density-Bulk Density
NPHI.V/V   : 3 Porosity -Neutron
RX0 .OHMM  : 4 Resistivity -Rxo
RESS.OHMM  : 5 Resistivity -Shallow
RESM.OHMM  : 6 Resistivity -Medium
RESD.OHMM  : 7 Resistivity -Deep
SP  .MV    : 8 Spon. Potential
GR  .GAPI  : 9 Gamma Ray
CALI.MM    : 10 Caliper
DRHO.K/M3  : 11 Delta-Rho
EATT.DBM   : 12 EPT Attenuation
TPL .NS/M  : 13 TP -EPT
PEF .      : 14 PhotoElectric Factor
FFI .V/V   : 15 Porosity -NML FFI
DCAL.MM    : 16 Caliper-Differential
RHGF.K/M3  : 17 Density-Formation
RHGA.K/M3  : 18 Density-Apparent
SPBL.MV    : 19 Baselined SP
GRC .GAPI  : 20 Gamma Ray BHC
PHIA.V/V   : 21 Porosity -Apparent
PHID.V/V   : 22 Porosity -Density
PHIE.V/V   : 23 Porosity -Effective
PHIN.V/V   : 24 Porosity -Neut BHC
PHIC.V/V   : 25 Porosity -Total HCC
R0  .OHMM  : 26 Ro
RWA .OHMM  : 27 Rfa
SW  .      : 28 Sw -Effective
MSI .      : 29 Sh Idx -Min
BVW .      : 30 BVW
FGAS.      : 31 Flag -Gas Index
PIDX.      : 32 Prod Idx
FBH .      : 33 Flag -Bad Hole
FHCC.      : 34 Flag -HC Correction
LSWB.      : 35 Flag -Limit SWB
~Params ----------------------------------------------------
~Other -----------------------------------------------------
~ASCII -----------------------------------------------------
  910.00000    -999.25 2692.70750    0.31400   19.40860   19.40860   13.17090
12.26810   -1.50100   96.53060  204.71770   30.58220    -999.25    -999.25
3.25150    -999.25    4.71770 3025.02640 3025.02640   -1.50100   93.13780
0.16410    0.01010    0.16410    0.31400    0.16410   11.13970    0.33040
0.95290    0.00000    0.15640    0.00000   11.13970    0.00000    0.00000
0.00000
  909.87500    -999.25 2712.64600    0.28860   23.39870   23.39870   13.61290
12.47440   -1.47200   90.28030  203.10930   18.75660    -999.25    -999.25
3.70580    -999.25    3.10930 3004.60500 3004.60500   -1.47200   86.90780
0.14560   -0.00150    0.14560    0.28860    0.14560   14.14280    0.26460
1.00000    0.00000    0.14560    0.00000   14.14280    0.00000    0.00000
0.00000
  909.75000    -999.25 2692.81370    0.27300   22.59090   22.59090   13.68210
12.61460   -1.48040   89.84920  201.92870    3.15510    -999.25    -999.25
4.31240    -999.25    1.92870 2976.44510 2976.44510   -1.48040   86.34650
0.14350    0.01010    0.14350    0.27300    0.14350   14.56740    0.25980
1.00000    0.00000    0.14350    0.00000   14.56740    0.00000    0.00000
0.00000
  909.62500    -999.25 2644.36500    0.27650   18.48310   18.48310   13.41590
12.69000   -1.50100   93.39990  201.58260   -6.58610    -999.25    -999.25
4.38220    -999.25    1.58260 2955.35280 2955.35280   -1.50100   89.71420
0.15900    0.03840    0.15900    0.27650    0.15900   11.86000    0.32100
0.96670    0.00000    0.15380    0.00000   11.86000    0.00000    0.00000
0.00000
  909.50000    -999.25 2586.28220    0.29960   13.91870   13.91870   12.91950
12.70160   -1.49160   98.12140  201.71260   -4.55740    -999.25    -999.25
3.59670    -999.25    1.71260 2953.59400 2953.59400   -1.49160   94.26700
0.18800    0.07230    0.18800    0.29960    0.18800    8.48630    0.44900
0.81740    0.00000    0.15370    0.00000    8.48630    0.00000    0.00000
0.00000
"""
    )
Example #25
0
def test_write_sect_widths_20_narrow():
    l = read(egfn("sample_write_sect_widths_20_narrow.las"))
    s = StringIO()
    l.write(s, version=2)
    s.seek(0)
    assert s.read() == """~Version ---------------------------------------------------
def test_write_sample_empty_params():
    l = read(egfn("sample_write_empty_params.las"))
    l.write(StringIO(), version=2)
Example #27
0
def test_write_sect_widths_12():
    l = read(egfn("sample_write_sect_widths_12.las"))
    s = StringIO()
    l.write(s, version=1.2)
    s.seek(0)
    assert s.read() == '''~Version ---------------------------------------------------
Example #28
0
def test_multi_curve_missing_mnemonics_rewrite():
    l = read(egfn('sample_issue105_b.las'))
    s = StringIO()
    l.write(s, version=2, wrap=False, fmt="%.5f")
    s.seek(0)
    assert s.read() == '''~Version ---------------------------------------------------