Public
Edited
Sep 9, 2023
2 stars
Insert cell
Insert cell
Insert cell
Insert cell
"uwi or well name is: "+three_things_2["uwi"]
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
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
prebuilt_minimal_styles_by_curvename = [{
//// Add your own curvenames and map them to a style, then define the style in second part of JSON.
"mapping_curvename_to_stylename":{
"GR":"GammaRay",
"GR1":"GammaRay",
"Gamma-ray":"GammaRay",
"GAM(NAT)":"GammaRay",
"GAMMA(NAT)":"GammaRay",
"GAMMA":"GammaRay",
"Caliper":"Caliper",
"Cal":"Caliper",
"CALI":"Caliper",
"CALIPER":"Caliper",
"ILD":"Resititivity_1",
"ild":"Resititivity_1",
"RESD":"Resititivity_1",
"RES":"Resititivity_1",
"Res":"Resititivity_1",
"RES(16N)":"Resititivity_1",
"RES(64N)":"Resititivity_1",
"RES(FL)":"Resititivity_1",
"LATERAL":"LATERAL_1",
"RHOB":"Caliper",
"RHOC":"Caliper",
"BS":"BS",
"SP":"SpontaneousPotential_1",
"SP_COND":"SpontaneousPotential_1",
"SPR":"SpontaneousPotential_1",
"TEMP":"Temperature_1",
"Temp":"Temperature_1",
"TEMPERATURE":"Temperature_1",
"TENSION":"Tension_1",
"NPHI":"neutron_porosity_1"
},
"styles":{
"GammaRay":{
"line_color":"Green",
"fill":"yes",
"fill_direction":"right",
"cutoffs":[0,ShaleSiltCutOff,SiltSandCutOff],
"fill_colors":["yellow","orange","gray"]
},
"Resititivity_1":{
"line_color":"red",
"fill":"yes",
"fill_direction":"left",
"cutoffs":[5,10,25],
"fill_colors":["#ffe6e6","#ffb3b3","red"]
},
"LATERAL_1":{
"line_color":"BLACK",
"fill":"yes",
"fill_direction":"left",
"cutoffs":[5,1000,2000],
"fill_colors":["TAN","#e29d76","PURPLE"]
},
"Tension_1":{
"line_color":"green",
"fill":"yes",
"fill_direction":"right",
"cutoffs":[35,45,60],
"fill_colors":["#60995a","#44cc33","#00ff11"]
},
"Temperature_1":{
"line_color":"orange",
"fill":"yes",
"fill_direction":"left",
"cutoffs":[10,40,57],
"fill_colors":["#eced4a","#edc94a","#eda74a"]
},
"SpontaneousPotential_1":{
"line_color":"blue",
"fill":"no",
"fill_direction":"left",
"cutoffs":[5,10,25],
"fill_colors":["#ffe6e6","#ff9934","red"]
},
"Caliper":{
"line_color":"purple",
"fill":"yes",
"fill_direction":caliper_fill_direction,
"cutoffs":[0],
"fill_colors":["#dbdbdb"]
},
"neutron_porosity_1":{
"line_color":"#004673",
"fill":"yes",
"fill_direction":"left",
"cutoffs":[0.2,0.4,0.7],
"fill_colors":["#acd4ee","#87c5ed","#29a0ed"]
},
"BS":{
"line_color":"purple",
"fill":"yes",
"fill_direction":caliper_fill_direction,
"cutoffs":[9],
"fill_colors":["purple"]
},
"all_others":{
"line_color":"black",
"fill":"yes",
"fill_direction":"left",
"cutoffs":[0],
"fill_colors":["gray"]
}
}
}]
Insert cell
Insert cell
import { soFetch } from '@alecglassford/so-fetch'
Insert cell
fileUrltoWellLog
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
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
ShaleSiltCutOff = widget_object_A["ShaleSiltCutOff"]
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
string_of_well_uploaded_from_local_computer = "YOU NEED TO SWITCH OUT WHICH LINE IS COMMENTED OUT, BELOW UNDER LOAD OPTION 2, BEFORE THIS WILL WORK"
// string_of_well_uploaded_from_local_computer = await string_of_well_uploaded_from_local_computer_file.text()
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
well_in_json_format_0 = checkIfString(selected_well_as_string)
Insert cell
Insert cell
well_in_json_format = handleNullsForD3(well_in_json_format_0,value_for_nulls)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
depth_curve_name = findDepthName(well_in_json_format)
Insert cell
three_things_2 = wellioviz.fromJSONofWEllGetThingsForPlotting(well_in_json_format,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
Insert cell
Insert cell
example_template = getExampleTemplateWithEdits(height_multiplier_components)
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
Insert cell
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

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