Skip to content

Main content

Compass Deviation East West Token

Express an explicitly supplied compass-deviation magnitude and direction under a caller-selected east-positive sign convention.

Loading tool…

Description

Encode an east/west compass-deviation magnitude under a supplied sign convention.

Nautical quantities require explicit north, datum, sign, station and unit conventions. A wrapped bearing error has a chosen opposite-direction endpoint, while a circular sector has its own start and end policy. Supplied polar speeds, tank factors and tide labels are references rather than verified navigation or vessel conditions.

Encode an east/west compass-deviation magnitude under a supplied sign convention.

When to use this tool

Use Compass Deviation East West Token when you already have magnitudeDegrees, eastPositive, eastward and need to encode an east/west compass-deviation magnitude under a supplied sign convention.

How to use the tool and how it works

  1. Enter magnitudeDegrees, eastPositive, eastward. 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 signedDegrees, label. Use the output convention below.

Require magnitudeDegrees>=0; signedDegrees is positive when eastward equals eastPositive and negative otherwise; label magnitude with E or W.1

Input fieldMeaning and unitsAccepted input
magnitudeDegreesMagnitude DegreesRequired. Finite number; minimum 0.
eastPositiveSelects the caller's sign convention; no magnetic model is consulted.Required. Boolean.
eastwardEastwardRequired. Boolean.
Output fieldInterpretationReturned shape
signedDegreesSigned DegreesRequired. Finite number.
labelLabelRequired. Text; maximum UTF-16 length 8192.
json
{
  "input": {
    "magnitudeDegrees": 3,
    "eastPositive": true,
    "eastward": true
  },
  "output": {
    "signedDegrees": 3,
    "label": "3 E"
  }
}

Limitations and assumptions

  • The deviation and convention are supplied; no compass, magnetic variation, correction table or actual heading is inferred.
  • 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 verified charts, observations, vessel documentation and the complete relevant geometric or hydrostatic model for a navigational question. Preserve the local bearing/datum convention and treat scalar factors or sector checks as limited inputs rather than operational decisions.

References

  1. Calculation and input contract: nautical/compass-deviation-east-west-token — tool.io

Similar or alternative tools