Write additional header items into the Well information section #560
-
Dear lasio developers, I was wondering whether it is possible to write additional header items into a las-file when creating it from scratch. Assigning
Results in
However it doesn't apper in the resulting file if I use Maybe there are some other parameters? Thanks a lot in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 2 replies
-
Certainly it should be possible! I think try
las.well['XCOORD'] = 123456
|
Beta Was this translation helpful? Give feedback.
-
Thank a lot! KeyError: "XCOORD not in ['STRT', 'STOP', 'STEP', 'NULL', 'COMP', 'WELL', 'FLD', 'LOC', 'PROV', 'CNTY', 'STAT', 'CTRY', 'SRVC', 'DATE', 'UWI', 'API']" But I'm going through the las_items.py now and may find a way. |
Beta Was this translation helpful? Give feedback.
-
Ah, you need to use lasio.HeaderItem https://lasio.readthedocs.io/en/latest/header-section.html @Taisi Try: las.well.XCOORD= lasio.HeaderItem(mnemonic='XCOORD', value=123456) |
Beta Was this translation helpful? Give feedback.
-
Is this something that could/should have a clearer example (and/or explanation) in the Building a LAS file from scratch part of the documentation? |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot! I did it this way and it works perfectly fine!
|
Beta Was this translation helpful? Give feedback.
Ah, you need to use lasio.HeaderItem
https://lasio.readthedocs.io/en/latest/header-section.html
@Taisi Try: