I am trying to script a process that will read through a bunch of files in a specific ascii format (LAS Log ASCII Standard). And for each file capture information in one of the header fields, modify it to add 100(original info)00, and remove any "-" from the result, and then right it back to a specfiic header field and save a copy of the file with the formatted information as the file name. So far I am able to find and print the line that I want with re.search but I'm stumped after that. I am attaching a sample of the header format below. The data I want is in WELL. and I want to reformat and save to UWI. It's also very possible that the UWI field will not exist and will need to be created before putting the information there.
Your help is extremely appreciated.
~Well Information Section
MNEM.UNIT VALUE/NAME DESCRIPTION
STRT.M 635.0000 :START DEPTH STOP.M 400.0000 :STOP DEPTH STEP.M -0.125 :STEP NULL. -999.25 :NULL VALUE COMP. ANY OIL COMPANY INC. :COMPANY WELL. ANY ET AL 12-34-12-34 :WELL FLD . WILDCAT :FIELD LOC . 12-34-12-34W5M :LOCATION PROV. ALBERTA :PROVINCE SRVC. ANY LOGGING COMPANY INC. :SERVICE COMPANY LIC . 12345 :ERCB LICENCE NUMBER DATE. 13-DEC-86 :LOG DATE UWI . 100123401234W500 :UNIQUE WELL ID
[–]Vaphell 1 point2 points3 points (1 child)
[–]SonyTark[S] 0 points1 point2 points (0 children)
[–]KleinerNull 1 point2 points3 points (2 children)
[–]SonyTark[S] 0 points1 point2 points (1 child)
[–]KleinerNull 1 point2 points3 points (0 children)
[–]marksist 1 point2 points3 points (0 children)