Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
Petrophys documentation
Logo

Getting started

  • New to Python?
  • On your own computer
  • Installation
  • Quickstart
  • Your own data

Guide

  • What Petrophys can do
  • Workflows
  • Custom workflows
  • Visualization and reporting
  • Specialist data
  • Analysis tools
  • Context export
  • LLM agents (MCP)

Learn

  • Tutorials
    • Complete tour
    • Foundations
      • Orientation and setup
      • Loading and inspecting data
      • QC and standardization
      • Clay volume
      • Porosity
      • Lithology and mineral solving
      • Formation water and environment
      • Water saturation
      • Permeability
      • Reservoir quality and net pay
    • Advanced workflows
      • Dynamic workflow glass box
      • Formation and interval analysis
      • Core calibration and digital core
      • ML curve imputation
      • NMR petrophysics
      • Saturation height
      • Borehole images and FMI
      • Visualization masterclass
      • Multiwell field study
      • LLM context generation
      • Petrophys for LLM agents (MCP)
      • Custom workflows
    • Case studies
      • North Sea formation evaluation
      • Carbonate rock typing
      • Multiwell field screening
      • Recovery from incomplete inputs
      • Saturation-model sensitivity

Reference

  • Data and depth
  • Input templates
  • Terms and curves
  • API Reference
    • import petrophys as pp
    • Interpretation settings
    • Front door
      • read
      • interpret
      • plot
    • Data model and I/O
      • Data model
        • Well
        • Curve
        • DataType
        • FormationTops
        • Formation
        • Zone
        • SubZone
        • ManualInterval
        • Interval
        • IntervalKind
        • label_depths
        • CoreData
        • UnitConverter
        • UnitRegistry
        • MatrixProperties
        • FluidProperties
        • ArchieCoefficients
        • ArchieParameterDefaults
        • ClassTable
        • ReservoirQualityTable
        • ReservoirGrade
        • Bands
        • VclClassification
        • PorosityClassification
        • HcSaturationClassification
        • PermeabilityClassification
        • RQIClassification
        • MhiClassification
        • InvasionClassification
        • TwoCurveClassTable
        • TwoCurveBands
        • create_depth_array
        • align_to_depth
        • DepthInterval
        • Zone
        • ZoneSet
        • LogDataPoint
        • DepthIndex
      • Reading and writing files
        • read_las
        • read_dlis
        • read_dlis_merged
        • read_csv
        • read_csv_wells
        • read_ascii
        • read_formations
        • read_lithology_intervals
        • read_lithology_codes
        • read_core
        • read_survey
        • attach_survey
        • depth_reference_elevation
        • minimum_curvature
        • Survey
        • export_las
        • export_csv
        • export_excel
        • LASReader
        • DLISReader
        • read_excel
      • Datasets
        • sample
        • list_samples
        • integration_fixture
        • list_integration_fixtures
        • data_dir
        • sample_kind
      • Exceptions
        • DataQualityWarning
    • Preprocessing
      • Standardization
        • standardize_curves
        • add_standard_curve_aliases
        • get_standard_mnemonic
        • CurveStandardizer
        • read_curve_aliases
        • attach_curve_aliases
        • curve_aliases_of
        • standard_curve_names
        • user_standard_name
        • standardize_units
        • convert_curve_units
        • standardize_core_saturation
      • Quality control
        • bad_hole_flags
        • washout_flag
        • large_hole_flag
        • low_density_flag
        • pef_exclusion_flag
        • mask_bad_hole_curves
        • apply_quality_flags
        • detect_washout
        • WashoutDetection
        • WellboreQC
        • find_held_readings
        • held_reading_mask
        • HeldReadings
        • apply_value_range_qc
        • clean_curve_values
        • value_range_qc_note
        • depth_match
        • find_log_depth_shift
        • shift_curves
        • DepthMatch
        • LogDepthShift
      • Normalization
        • normalize_log
        • linear_normalization
        • histogram_matching
        • histogram_equalization
        • NormalizationModule
      • Curve imputation
        • impute
    • Interpretation
      • Temperature
        • temperature_profile
        • TemperatureProfile
        • gradient_from_bht
        • temperature_gradient
        • gradient_c_per_km_to_fahrenheit_per_100ft
        • gradient_to_celsius_per_km
        • correct_resistivity_temperature
        • arps_equation
      • Clay volume
        • calculate_vcl
        • VclModule
        • classify_vcl
        • vcl_from_gr
        • vcl_linear
        • vcl_larionov_tertiary
        • vcl_larionov_older
        • vcl_steiber
        • vcl_clavier
        • vcl_from_sp
        • vcl_from_nd
        • calculate_rcl
        • RclModule
        • thomas_stieber
        • ThomasStieberResult
        • laminated_sand_resistivity
        • bounded_gr_baselines
      • Porosity
        • calculate_porosity
        • PorosityModule
        • classify_porosity
        • density_porosity
        • calculate_phid
        • neutron_porosity
        • standardize_nphi
        • sonic_porosity
        • wyllie_time_average
        • raymer_hunt_gardner
        • total_porosity
        • nd_weighted_porosity
        • effective_porosity
        • calculate_phie
        • apply_hc_correction
        • correct_neutron_hc
        • correct_density_hc
        • HcCorrectionModule
      • Lithology and minerals
        • calculate_lithology
        • LithologyModule
        • MultiMineralSolver
        • solve_two_mineral
        • solve_three_mineral
        • mineral_properties
        • nd_crossplot_data
        • mn_crossplot_data
        • pef_crossplot_data
        • build_lithology_log
        • load_lithology_csv
        • LithologyInterval
        • apparent_matrix_density
        • apparent_matrix_slowness
        • apparent_matrix_volumetric_pe
        • apparent_total_porosity
        • electron_density
        • volumetric_photoelectric
        • nd_crossplot_porosity
        • lithology_choice
        • lithology_group_for_label
        • solve_calcite_dolomite
        • solve_carbonate_minerals
      • Electrical properties
        • calculate_rw
        • RwModule
        • rw_from_sp
        • sp_rw_in_window
        • SpRwEstimate
        • rw_from_ssp
        • calculate_ssp
        • sp_lines
        • rw_from_salinity
        • salinity_from_rw
        • correct_rw_temperature
        • apparent_water_resistivity
        • sw_from_rwa
        • calculate_rmf
        • RmfModule
        • forward_step_profile
        • invert_step_profile
        • invert_well_invasion
        • read_tool_responses
        • invasion_ratio
        • classify_invasion
        • expected_resistivity_order
        • mud_regime
        • shallowest_and_deepest
        • InvasionInversionResult
        • ToolResponse
        • InvasionModule
        • InvasionType
        • default_archie_params
        • pickett_analysis
        • ArchieParameters
      • Water saturation
        • calculate_sw
        • SaturationModule
        • SaturationResult
        • SwModel
        • classify_sw
        • archie
        • simandoux
        • modified_simandoux
        • indonesia
        • north_sea_shaly_sand
        • nigeria_schlumberger
        • dual_water
        • waxman_smits
        • calculate_sxo
        • pc_from_height
        • height_from_pc
        • convert_pc_lab_to_reservoir
        • leverett_j
        • pc_from_j
        • fit_j_function
        • fit_brooks_corey
        • saturation_height_from_logs
        • JFunctionModel
        • BrooksCoreyModel
        • fit_saturation_height
        • fit_saturation_height_from_well
        • height_above_fwl
        • FittedSaturationHeight
        • read_formation_pressure
        • fit_pressure_fwl
        • FormationPressureData
        • PressureGradient
        • PressureFWLResult
        • infer_pressure_contacts
        • PressureBranch
        • PressureContact
        • PressureContactResult
        • read_mdt_pretest
        • pick_mdt_pressure
        • formation_pressures_from_mdt
        • MDTPickingConfig
        • MDTPretest
        • MDTBuildup
        • MDTPressurePick
        • fit_j_function_from_well
        • find_fwl
        • fit_j_function_from_core
        • fit_thomeer
        • read_capillary_pressure
        • water_contact_from_fwl
        • CapillaryPressureData
        • FWLFromLogs
        • sonic_water_saturation
        • SonicSaturationModule
        • SonicSaturationResult
        • slowness_to_velocity
        • vs_from_vp_greenberg_castagna
        • velocity_to_moduli
        • dry_rock_modulus
        • gassmann_ksat
        • gassmann_kfl
        • wood_fluid_modulus
        • sw_from_fluid_modulus
        • fluid_substitution_dtc_swing
      • Permeability
        • calculate_permeability
        • PermeabilityModule
        • CorePermModel
        • classify_permeability
        • timur
        • coates_denoo
        • wyllie_rose
        • lith_vcl_permeability
        • resolve_swirr
        • hc_swirr
        • swirr_app
        • apparent_swirr
        • flag_impermeable
      • Rock physics
        • elastic_properties
        • velocity_from_slowness_us_per_ft
        • ElasticProperties
      • Pore pressure
        • calibrate_eaton_exponent
        • eaton_from_well
        • eaton_pore_pressure
        • fit_normal_compaction_trend
        • hydrostatic_pressure
        • overburden_pressure
        • pressure_gradient
        • NormalCompactionTrend
        • PorePressureResult
      • NMR
        • NMRData
        • NMRCalibration
        • t2lm_from_bins
        • bvi_from_bins
        • ffi_from_bins
        • t2_fraction_below_cutoff
        • sdr_permeability
        • coates_permeability
      • Borehole imaging
        • read_fmi_dlis
        • read_borehole_image_dlis
        • read_borehole_image_las
        • BoreholeImageData
        • orient_to_azimuth
        • azimuthal_coverage
        • with_navigation
        • get_navigation
        • filter_by_depth_with_navigation
        • equalize_static
        • equalize_dynamic
        • safe_per_depth_statistics
        • fmi_colormap
        • plot_fmi
      • Geochemistry
        • interpret_spectral_gamma
        • has_spectral_gamma_inputs
        • SpectralGammaResult
        • uranium_stripped_gamma_ray
        • thorium_clay_index
        • ThoriumClayIndex
        • classify_th_u_environment
        • ThUEnvironment
        • classify_clay_th_k
        • clay_typing_from_well
        • ClayTypingResult
        • interpret_elemental_spectroscopy
        • has_elemental_spectroscopy_inputs
        • ElementalSpectroscopyResult
        • oxide_closure
        • OxideClosureResult
        • XRFData
      • Core analysis
        • core_data
        • interpolate_log_at_core
        • calibrate_porosity
        • calibrate_permeability
        • calibrate_saturation
        • CalibrationResult
        • fit_porosity_correction
        • apply_porosity_correction
        • correct_porosity_with_grain_density
        • PorosityCorrection
        • fit_poro_perm
        • fit_log_poro_perm_transform
        • fit_log_poro_perm_transform_from_correction
        • apply_poro_perm
        • PoroPermTransform
        • archie_m
        • find_core_depth_shift
        • shift_core_depths
        • CoreDepthShift
        • GrainSizeData
        • wentworth_class
        • um_to_phi
        • CoreMechanical
        • CoreImageData
        • DigitalCoreFacies
        • FaciesResult
    • Evaluation
      • BVW and MHI
        • calculate_bvw
        • BvwModule
        • calculate_mhi
        • classify_mhi
        • MhiModule
      • Net pay
        • calculate_net_pay
        • NetPayModule
        • NetPayResult
        • summarize_pay
        • PaySummary
        • grade_interval
        • cutoff_attrition
        • lithology_in
        • majority_label
        • standard_cutoffs
        • default_cutoffs
        • Cutoffs
        • net_flags
        • volumetric_pay_flag
        • add_volumetric_pay_flag
      • Rock quality and flow units
        • calculate_rock_quality
        • calculate_rqi
        • calculate_phi_z
        • calculate_fzi
        • winland_r35
        • classify_pore_throat
        • RockQualityModule
        • RockQualityResult
        • calculate_flow_units
        • assign_flow_units
        • predict_perm_from_fzi
        • flow_roles
        • FlowUnitModule
        • FlowUnitResult
      • Intervals and summaries
        • flag_intervals
        • stacking_pattern
        • analyze_interval
        • IntervalSummary
        • IntervalAnalyzer
        • calculate_zone_summary
        • summarize_zones
        • ZoneSummary
        • curve_statistics
        • zone_statistics
        • percentile_key
        • best_and_weakest
        • property_direction
        • analyze_formations
        • run_formation_analysis
        • load_formations_csv
        • FormationSummary
        • FormationAnalysisResult
        • calculate_net_gross
        • ntg_by_zone
        • NetGrossResult
        • zone_averages
        • pay_averages
        • weighted_averages
        • pore_volume_weighted_sw
      • Volumetrics
        • calculate_hcpv
        • ogip
        • ooip
        • HCPVResult
      • Sensitivity
        • compare_saturation_models
        • cutoff_sensitivity
        • parameter_sensitivity
        • SaturationModelComparison
      • Monte Carlo uncertainty
        • monte_carlo
        • read_uncertainty_table
        • MonteCarloResult
      • Permeability heterogeneity
        • dykstra_parsons
        • lorenz_coefficient
        • DykstraParsonsResult
        • LorenzResult
      • Change-point zonation
        • change_point_zonation
        • pelt
        • zone_well
        • Zonation
      • Diagnostics
        • bands_of
        • HydrocarbonAnalysis
        • LithologyAnalysis
        • PorosityAnalysis
        • PermeabilityAnalysis
        • SaturationAnalysis
        • NumericalStatisticalAnalysis
    • Workflows
      • The pp.interpret engine
        • DynamicWorkflowConfig
        • DynamicWorkflowResult
        • StepResult
        • MultiWellResult
        • WellList
        • run_dynamic_workflow
        • DynamicWorkflow
        • WorkflowStep
        • quick_look_analysis
        • run_comprehensive_analysis
        • QuickLook
      • Custom workflows
        • Workflow
        • workflow_step
        • Step
        • WorkflowRunResult
        • WorkflowBatchResult
        • WorkflowValidationError
        • WorkflowStepError
        • standardize
        • temperature
        • clay_volume
        • porosity
        • formation_water
        • mud_filtrate
        • saturation
        • permeability
        • spectral_gamma
        • rock_quality
        • bvw
        • mhi
        • net_pay
        • formation_summary
        • interpret
      • Batch and zoned runs
        • process_multiple_wells
        • process_las_directory
        • BatchProcessor
        • run_dynamic_workflow_with_zones
        • extract_zoned_parameters
        • ZonedParameterInterval
        • ZonedWorkflowRunResult
        • process_las_directory_with_workflow
        • BatchLasResult
        • write_batch_report
        • write_curve_audit_report
        • write_workflow_json_traces_directory
      • Schema
        • config_schema
        • describe_setting
        • workflow_steps
    • Visualization
      • Log viewer and templates
        • auto_template
        • load_template
        • triple_combo
        • LogViewer
        • LogViewerTemplate
      • Crossplots
        • crossplot
        • CrossPlot
        • PickettPlot
      • Interpretation charts
        • nd_plot
        • pef_plot
        • mn_plot
        • mid_plot
        • pickett_plot
        • hingle_plot
        • buckles_plot
        • flow_unit_plot
        • poro_perm_plot
        • saturation_height_plot
      • Specialist panels
        • nmr_panel
        • has_nmr_curves
        • fmi_panel
        • xrf_panel
        • pressure_plot
        • contact_plot
        • pretest_plot
      • Reservoir displays
        • zone_flags_plot
        • add_zone_shading
      • Several wells
        • compare_wells
        • MultiWellPlot
        • WellComparisonPlot
      • Analytics charts
        • multiwell_overlay
        • bar_chart
        • tornado_plot
        • histograms
        • line_chart
        • heatmap
      • Core plots
        • calibration_plot
        • core_on_logs
      • Batch export
        • export_plots
        • write_visualization_report
        • plot_style
        • use_plot_style
        • save_figure
        • BatchVisualizationResult
        • Plot
    • Reporting and LLM agents
      • Context for LLMs
        • build_context
        • export_context
        • ContextSizeError
      • Function schema
        • check
        • declaration
        • describe
        • public_functions
        • FunctionDeclaration
        • ParameterDeclaration
      • Exports and delivery packages
        • list_context_profiles
        • describe_context_profile
        • get_context_profile
        • identify_context_profile
        • ContextProfile
        • export_context_profile
        • interpret_with_context_profile
        • interpretation_group_records
        • context_group_record
        • context_group_statistics
        • export_example_format_las
        • export_example_format_directory
        • write_example_format_report
        • ExampleFormatExportResult
        • export_example_work_package_directory
        • export_reference_json_work_package_directory
        • export_reference_json_work_package_by_formation
        • export_reference_json_work_package_by_category_formation_lithology
        • write_reference_curve_name_mapping
      • MCP server
        • create_server
        • main
        • Session
        • SessionError

Project

  • Architecture
  • Reproducing the benchmark packages
  • Acknowledgements
  • Release notes
Back to top
Petrophys on GitHub
View this page
Edit this page

velocity_to_moduli¶

petrophys.interpretation.saturation.sonic.velocity_to_moduli

velocity_to_moduli(vp, vs, rhob)[source]¶

Saturated bulk and shear moduli (GPa) from Vp, Vs (m/s) and density (g/cc).

Parameters:
  • vp (float | ndarray)

  • vs (float | ndarray)

  • rhob (float | ndarray)

Return type:

Tuple[float | ndarray, float | ndarray]

Next
dry_rock_modulus
Previous
vs_from_vp_greenberg_castagna
Copyright © 2026, MBZUAI / Inception AI
Made with Furo