Public
Edited
Jun 24, 2024
1 star
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
wellio = require("wellio")
Insert cell
Insert cell
Insert cell
wellioviz = require('https://bundle.run/wellioviz@0.0.32')
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
fetched = await fetch(fileUrltoWellLog)
Insert cell
well_as_string = await fetched.text()
Insert cell
Insert cell
Insert cell
well_json_01_01_095_19W4 = wellio.las2json(well_as_string)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
depth_curve_name = "DEPT"
Insert cell
three_things_2 = wellioviz.fromJSONofWEllGetThingsForPlotting(well_json_01_01_095_19W4,depth_curve_name)
Insert cell
Insert cell
Insert cell
Insert cell
well_log_curves_reformatted_for_d3_2 = three_things_2["well_log_curves_reformatted_for_d3"]
Insert cell
Insert cell
Insert cell
Insert cell
example_template = wellioviz.curveBoxTemplateExamples("example")
Insert cell
Insert cell
Insert cell
gr_plot_template_noFill = wellioviz.minimumDataIntoTemplateFunc(example_template,well_log_curves_reformatted_for_d3_2,[uwi2],["CALI"],["black"],[""],[
{"curve_name":"GR","fill":"no","fill_direction":"left","cutoffs":[0,ShaleSiltCutOff,SiltSandCutOff],"fill_colors":["gray","orange","yellow"],"curve2":""}],"well_holder_1A",200,400,"DEPT")
Insert cell
resd_plot_template_1 = wellioviz.minimumDataIntoTemplateFunc(example_template,well_log_curves_reformatted_for_d3_2,[uwi2],['ILD'],["RED"],[""],[
{"curve_name":"ILD","fill":"yes","fill_direction":"left","cutoffs":[5,10,25],"fill_colors":["#ffe6e6","#ffb3b3","red"],"curve2":"ILD"}],"well_holder_1B",200,400,"DEPT")
Insert cell
poro_plot_template_1 = wellioviz.minimumDataIntoTemplateFunc(example_template,well_log_curves_reformatted_for_d3_2,[uwi2],["NPHI","DPHI"],["purple","pink"],[""],[{
"curve_name":"NPHI",
"fill":"yes",
"fill_direction":"between",
"cutoffs":[0],
"fill_colors":["lightblue"],
"curve2":"DPHI"
},
{
"curve_name":"DPHI",
"fill":"no",
"fill_direction":"left",
"cutoffs":[],
"fill_colors":[],
"curve2":""
}
],"well_holder_1C",200,400,"DEPT")
Insert cell
gr_plot_template_1 = wellioviz.minimumDataIntoTemplateFunc(example_template,well_log_curves_reformatted_for_d3_2,[uwi2],["GR"],["black"],[""],
[{"curve_name":"GR","fill":"yes","fill_direction":"right","cutoffs":[0,ShaleSiltCutOff,SiltSandCutOff],"fill_colors":["yellow","orange","gray"],"curve2":""}],"well_holder_1A",200,400,"DEPT")
Insert cell
Insert cell
Insert cell
Insert cell
result_1 = wellioviz.multipleLogPlot("well_holder",[gr_plot_template_noFill,gr_plot_template_1,resd_plot_template_1,poro_plot_template_1])
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more