Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customize column spacing in the data section #412

Closed
robbohn14 opened this issue Dec 18, 2020 · 2 comments · Fixed by #520
Closed

Customize column spacing in the data section #412

robbohn14 opened this issue Dec 18, 2020 · 2 comments · Fixed by #520
Assignees
Labels
documentation Anything that calls for improvements to the Sphinx docs good-issue-for-beginners

Comments

@robbohn14
Copy link

robbohn14 commented Dec 18, 2020

Is there a way to modify the spacing of the curves in the data section?

For example, there is space leading the data in the depth curve. See attached pic.
Can I remove this space when exporting?

Also, is it possible to modify the character spacing between curves as well?
For example, there are 4 spaces between curves in the data section. Could I change it to 1?

I ask because some commercial software's get tripped-up by certain spacing.


Image below:
image

~Version ---------------------------------------------------
VERS. 2.0 : CWLS log ASCII Standard -VERSION 2.0
WRAP. NO : One line per depth step
~Well ------------------------------------------------------
STRT.FT -1064.7812486025 : START DEPTH
STOP.FT 10425.244576461 : STOP DEPTH
STEP.FT 3.3266049960000146 : STEP
NULL.FT -9999 : NULL VALUE
COMP. : COMPANY
WELL. : WELL
FLD . : FIELD
LOC . : LOCATION
SRVC. : SERVICE COMPANY
DATE. : LOG DATE
CNTY. : COUNTY
STAT. : STATE
CTRY. : COUNTRY
API . : API NUMBER
~Curve Information -----------------------------------------
DEPT .FT : DEPTH
RMS[0]. : RMS from 1 Hz to 5 Hz
RMS[1]. : RMS from 5 Hz to 200 Hz
RMS[2]. : RMS from 200 Hz to 500 Hz
SSTR .NA : Slow Strain
~Params ----------------------------------------------------
DASF. 1.0 : DAS Stretch Factor
DAZO.FT -3199.58 : DAS Zero Offset
~Other -----------------------------------------------------
~ASCII -----------------------------------------------------
-1064.78125 0.21310 16.92360 28.62540 -5.63529
-1061.45464 0.24550 19.98770 32.33440 -6.10739
-1058.12804 0.50980 36.95650 58.22620 -6.90639
-1054.80143 0.47920 41.33940 65.39230 -6.52109
-1051.47493 0.47250 33.82540 56.03570 -7.01899
-1048.14832 0.51530 25.41380 40.95540 -7.83369

@kinverarity1
Copy link
Owner

Thank you for raising this issue @robbohn14! I have just merged some tweaks to the master branch which should achieve what you need:

import lasio
import lasio.examples

las = lasio.examples.open("sample.las")
from sys import stdout

las.write(stdout, lhs_spacer="", len_numeric_field=-1, spacer=" ")
~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

@kinverarity1 kinverarity1 added documentation Anything that calls for improvements to the Sphinx docs and removed enhancement labels Apr 9, 2021
@kinverarity1
Copy link
Owner

I have re-tagged this issue with "documentation". It can be closed once an explanation of the new keyword arguments is added to the Sphinx documentation.

@kinverarity1 kinverarity1 changed the title Spacing in data section Customise column spacing in the data section Apr 9, 2021
@dcslagel dcslagel added this to To do in Transform-2021-Lasio Apr 12, 2021
@dcslagel dcslagel self-assigned this Nov 9, 2021
@dcslagel dcslagel removed their assignment Jan 19, 2022
@dcslagel dcslagel self-assigned this Jun 16, 2022
@dcslagel dcslagel changed the title Customise column spacing in the data section Customize column spacing in the data section Jun 28, 2022
@dcslagel dcslagel linked a pull request Jun 28, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Anything that calls for improvements to the Sphinx docs good-issue-for-beginners
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

3 participants