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
- Establish the source tradition, viewing frame, coordinate units and independently annotated features.
- Enter ordinal, columns, totalQuarters, using the field meanings and rules below, then run the tool.
- Read result.viewerRowIndex, result.viewerColumnIndex, using the output meanings and calculation rules below.
- Correct any reported input issue and run again. Before using a successful result, check the stated units, signs, reference scope and observation coverage.
| Input field | Meaning | Value type | Requirement |
|---|---|---|---|
| ordinal | Ordinal | number | Required |
| columns | Columns | number | Required |
| totalQuarters | Total quarters | number | Required |
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 field | Meaning | Value type |
|---|---|---|
| result | Calculated observation or reference | object |
| result.viewerRowIndex | viewer Row Index | number |
| result.viewerColumnIndex | viewer Column Index | number |
{
"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
Similar or alternative tools
- Quarterly Quadrant Assignment Order Checker
Quarter order is read in a defined viewing frame.
- Marshalling Quartering Count Capacity Calculator
A rectangular quartering grid has a finite number of cells.