welly icon indicating copy to clipboard operation
welly copied to clipboard

Porosity pre-processing?

Open ThomasMGeo opened this issue 7 years ago • 1 comments

Porosity in PHIN and PHID logs sometimes comes in a format that is 0-1 or 0-100, is there a way to "pre-process" a whole data set, eg if max porosity is less than 1, multiply by 100, etc.

ThomasMGeo avatar Mar 19 '19 22:03 ThomasMGeo

You can write this as a lambda (or a regular function) and pass it as a dict value in the funcs argument to from_las (both the Well and Project methods). For example:

fractions_as_percents = lambda x: x*100. if np.nanmax(x) <= 1. else x

transforms = {c : fractions_as_percents for c in ['PHIN', 'PHID']}

project = welly.Project.from_las(path='/path/to/wells/*.las', funcs=transforms)

rgmyr avatar Mar 21 '19 06:03 rgmyr