Skip to content

Main content

Grain Size Phi Uncertainty Width Transform Tool

Exact asymmetric uncertainty transform under phi=-log2(diameter in mm), with reversed interval order.

Loading tool…

Description

Compute phi as negative log2 of the numeric diameter in millimeters, reverse diameter extrema for phi bounds, and return logarithmic width.

Sediment and soil calculations distinguish mass basis, solid density, bulk volume, and grain-size conventions. Changing moisture or grain-size scale changes the denominator or coordinate, not the physical sample itself.

Compute phi as negative log2 of the numeric diameter in millimeters, reverse diameter extrema for phi bounds, and return logarithmic width.

When to use this tool

Use Grain Size Phi Uncertainty Width Transform when you need an explicit sediment or material-basis conversion.

How to use the tool and how it works

  1. Enter diameterMm, minusMm, plusMm. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read phi, lowerPhi, upperPhi, phiWidth. Use the output convention below.

Require positive diameterMm and nonnegative minusMm smaller than diameter and nonnegative plusMm. Compute phi as negative log2 of the numeric diameter in millimeters, reverse diameter extrema for phi bounds, and return logarithmic width.1

Input fieldMeaning and unitsAccepted input
diameterMmPositive nominal grain diameter in millimeters.Required. Finite number; strictly above 0.
minusMmMinus MmRequired. Finite number; minimum 0.
plusMmPlus MmRequired. Finite number; minimum 0.
Output fieldInterpretationReturned shape
phiPhiRequired. Finite number.
lowerPhiPhi at the larger diameter endpoint; size and phi order are reversed.Required. Finite number.
upperPhiUpper PhiRequired. Finite number.
phiWidthPhi WidthRequired. Finite number.
json
{
  "input": {
    "diameterMm": 2,
    "minusMm": 1,
    "plusMm": 2
  },
  "output": {
    "phi": -1,
    "lowerPhi": -2,
    "upperPhi": 0,
    "phiWidth": 2
  }
}

Limitations and assumptions

  • The phi convention uses a 1 mm reference; diameter uncertainty can become asymmetric in phi. These are supplied bounds rather than a confidence interval, and grain measurement and sampling are not validated.
  • Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
  • Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.

Alternative or Complementary methods

Use a traceable laboratory and sampling method for the required material property. Align wet/dry basis, solid versus bulk density, grain-size scale, and interval definitions before comparing samples.

References

  1. Calculation and input contract: geomorphology/grain-size-phi-uncertainty-width-transform — tool.io

Similar or alternative tools

  • Grain Size Phi Step

    Return log2(first/second) using log1p for a representable relative difference and a difference of logarithms otherwise.

  • Grain Size Support Share

    Sum mass only for bins fully inside that interval and divide by total mass, otherwise return zero with defined false.