Ordinal Number to Quarter Position Mapper

Map one-based quarter ordinal to viewer row-major zero-based coordinates under explicit column count.

Description

A quarter's ordinal can be converted into a row and column in a declared grid.

A quarter's ordinal can be converted into a row and column in a declared grid.1

The mapping describes layout position without inferring genealogy or entitlement.

When to use Ordinal Number to Quarter Position Mapper

Use this tool to calculate or review the supplied observations under the stated rules. Establish the source tradition, viewing frame, coordinate units and independently annotated features.

How to use Ordinal Number to Quarter Position Mapper and understand its results

  1. Establish the source tradition, viewing frame, coordinate units and independently annotated features.
  2. Enter ordinal, columns, totalQuarters, using the field meanings and rules below, then run the tool.
  3. Read result.viewerRowIndex, result.viewerColumnIndex, using the output meanings and calculation rules below.
  4. Correct any reported input issue and run again. Before using a successful result, check the stated units, signs, reference scope and observation coverage.
Input fieldMeaningValue typeRequirement
ordinalOrdinalnumberRequired
columnsColumnsnumberRequired
totalQuartersTotal quartersnumberRequired

Use total quarters as an integer 1..128, ordinal 1..total and columns 1..64. Convert ordinal−1 into a zero-based row by integer division and column by remainder. Positions advance left to right, then top to bottom.

row=floor((ordinal−1)/columns); column=(ordinal−1)%columns

Use the matching field units and the exact boundary, ordering and reference rules above.

Output fieldMeaningValue type
resultCalculated observation or referenceobject
result.viewerRowIndexviewer Row Indexnumber
result.viewerColumnIndexviewer Column Indexnumber
json
{
  "input": {
    "ordinal": 3,
    "columns": 2,
    "totalQuarters": 4
  },
  "output": {
    "result": {
      "viewerRowIndex": 1,
      "viewerColumnIndex": 0
    }
  }
}

Limitations and assumptions

The grid mapping does not infer a pedigree, heraldic precedence, occupied-cell geometry or entitlement.

Missing required fields, unknown fields, wrong types and violated rules return input issues. Numeric values and outputs must be finite. Extremely large composite outputs are rejected.

Alternative or Complementary methods

For a related step, use Quarterly Quadrant Assignment Order Checker: Quarter order is read in a defined viewing frame. For a complementary comparison, use Marshalling Quartering Count Capacity Calculator: A rectangular quartering grid has a finite number of cells.

References

  1. Ordinal Number to Quarter Position Mapper — tool.io

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies