Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
Mescla
Light Logo Dark Logo
v0.1

Getting started

  • Installation
  • Tutorials
    • 00 · Quickstart
    • 01 · Real data, units and quality control
    • 02 · EMMA: how many source waters, and which species behave as a mixture?
    • 03 · Mixing ratios: how much of each source is in each sample
    • 04 · MIX: when the end-members are uncertain
    • 05 · Uncertainty and identifiability
    • 06 · Reading reactions out of the residuals
    • 07 · A complete analysis, start to finish
    • 08 · Isotope tracers, and the one that breaks linear mixing
    • 09 · Fifty years of acid rain, and the assumption that broke

Using it well

  • Units
  • Which method, and when
  • Assigning standard deviations
  • Pitfalls

Reference

  • API reference
    • mescla.types
      • mescla.types.ChemTable
      • mescla.types.DiagnosticsReport
      • mescla.types.EMMAResult
      • mescla.types.EndMembers
      • mescla.types.MixingResult
      • mescla.types.WaterChemistry
    • mescla.prep.units
      • mescla.prep.units.conversion_factors
      • mescla.prep.units.equivalent_weight
      • mescla.prep.units.lookup_ion
      • mescla.prep.units.to_meq_per_l
      • mescla.prep.units.to_mmol_per_l
      • mescla.prep.units.Ion
    • mescla.prep.qaqc
      • mescla.prep.qaqc.charge_balance_error
      • mescla.prep.qaqc.charge_balance_report
      • mescla.prep.qaqc.detection_limit_report
      • mescla.prep.qaqc.ec_check
      • mescla.prep.qaqc.ec_from_ions
      • mescla.prep.qaqc.missing_data_report
    • mescla.prep.transform
      • mescla.prep.transform.Standardizer
    • mescla.prep.missing
      • mescla.prep.missing.complete_species
      • mescla.prep.missing.drop_incomplete_samples
      • mescla.prep.missing.impute_below_detection
      • mescla.prep.missing.largest_complete_block
      • mescla.prep.missing.missing_summary
    • mescla.emma.model
      • mescla.emma.model.emma
      • mescla.emma.model.EMMA
    • mescla.emma.pca
      • mescla.emma.pca.eigen_decomposition
      • mescla.emma.pca.EigenStructure
    • mescla.emma.rank
      • mescla.emma.rank.broken_stick
      • mescla.emma.rank.cumulative_variance_rule
      • mescla.emma.rank.parallel_analysis
      • mescla.emma.rank.rank_summary
      • mescla.emma.rank.rule_of_one
    • mescla.emma.projection
      • mescla.emma.projection.project_endmembers
      • mescla.emma.projection.project_to_subspace
      • mescla.emma.projection.subspace_distance
      • mescla.emma.projection.u_space
    • mescla.emma.diagnostics
      • mescla.emma.diagnostics.cross_site_projection
      • mescla.emma.diagnostics.hooper_diagnostics
      • mescla.emma.diagnostics.residual_structure_test
    • mescla.emma.endmembers
      • mescla.emma.endmembers.barycentric_coordinates
      • mescla.emma.endmembers.hull_fraction
      • mescla.emma.endmembers.in_hull
      • mescla.emma.endmembers.rank_candidates
      • mescla.emma.endmembers.suggest_endmembers
    • mescla.emma.archetypes
      • mescla.emma.archetypes.archetypal_analysis
      • mescla.emma.archetypes.archetype_rss_curve
      • mescla.emma.archetypes.archetype_stability
      • mescla.emma.archetypes.ArchetypeResult
    • mescla.mixing.lsq
      • mescla.mixing.lsq.mixing_ratios
      • mescla.mixing.lsq.solve_ratios
    • mescla.mixing.geometric
      • mescla.mixing.geometric.three_component
      • mescla.mixing.geometric.two_component
      • mescla.mixing.geometric.uspace_solve
    • mescla.mixing.ml
      • mescla.mixing.ml.improvement_index
      • mescla.mixing.ml.mix_ml
      • mescla.mixing.ml.profile_objective
      • mescla.mixing.ml.MixML
    • mescla.isotopes
      • mescla.isotopes.carrier_for
      • mescla.isotopes.check_isotopes
      • mescla.isotopes.delinearize
      • mescla.isotopes.is_water_isotope
      • mescla.isotopes.linearize
      • mescla.isotopes.mix_isotope
      • mescla.isotopes.two_component_isotope
    • mescla.uncertainty.propagation
      • mescla.uncertainty.propagation.delta_method
      • mescla.uncertainty.propagation.genereux_sigma
      • mescla.uncertainty.propagation.two_component_uncertainty
    • mescla.uncertainty.montecarlo
      • mescla.uncertainty.montecarlo.monte_carlo_ratios
    • mescla.uncertainty.resampling
      • mescla.uncertainty.resampling.bootstrap_endmembers
      • mescla.uncertainty.resampling.jackknife_endmembers
    • mescla.uncertainty.identifiability
      • mescla.uncertainty.identifiability.condition_number
      • mescla.uncertainty.identifiability.endmember_separation
      • mescla.uncertainty.identifiability.identifiability_report
      • mescla.uncertainty.identifiability.sigma_sweep
    • mescla.reactions.residuals
      • mescla.reactions.residuals.classify_source_sink
      • mescla.reactions.residuals.fit_conservative
      • mescla.reactions.residuals.measured_vs_predicted
      • mescla.reactions.residuals.reaction_report
    • mescla.datasets.synthetic
      • mescla.datasets.synthetic.carrera_application1
      • mescla.datasets.synthetic.carrera_application2
      • mescla.datasets.synthetic.make_mixture
      • mescla.datasets.synthetic.SyntheticMixture
    • mescla.datasets.loaders
      • mescla.datasets.loaders.cache_dir
      • mescla.datasets.loaders.fetch_water_quality_portal
      • mescla.datasets.loaders.load_grafton_nh
      • mescla.datasets.loaders.load_grafton_nh_frame
      • mescla.datasets.loaders.load_hubbard_brook
      • mescla.datasets.loaders.load_hubbard_brook_frame
      • mescla.datasets.loaders.load_tubau_besos
      • mescla.datasets.loaders.BesosEndMembers
    • mescla.plotting.diagrams
      • mescla.plotting.diagrams.plot_loadings
      • mescla.plotting.diagrams.plot_measured_vs_predicted
      • mescla.plotting.diagrams.plot_mixing_line
      • mescla.plotting.diagrams.plot_ratios
      • mescla.plotting.diagrams.plot_ratios_with_uncertainty
      • mescla.plotting.diagrams.plot_reaction_departures
      • mescla.plotting.diagrams.plot_residuals
      • mescla.plotting.diagrams.plot_scree
      • mescla.plotting.diagrams.plot_ternary
      • mescla.plotting.diagrams.plot_uspace
    • mescla.plotting.theme
      • mescla.plotting.theme.apply_axes_style
      • mescla.plotting.theme.get_theme
      • mescla.plotting.theme.series_color
      • mescla.plotting.theme.Theme
  • Validation
  • References
Back to top
Copyright © 2026, Albert Nardi
Made with Sphinx and @pradyunsg's Furo