Definition
The process of organizing information into a two-dimensional structure (rows and columns), where each data point is identified by a unique pair of coordinates.
Why It Matters
It provides a structured, spatial framework for organizing complex datasets, enabling efficient simulation and analysis of continuous phenomena like weather or terrain. This discretization is the foundation of modern computational modeling, turning infinite space into manageable, computable units.
Core Concepts
- The Coordinate System:
- Physical Address: Excel uses alphanumeric coordinates (e.g.,
'A1'). - Logical Address: Python modules like OpenPyXL use numeric coordinates (e.g.,
row=1, column=1).
- Physical Address: Excel uses alphanumeric coordinates (e.g.,
- 1-based Indexing: Unlike Python’s native 0-based lists, spreadsheets typically use 1-based indexing. This requires careful mapping when loops are involved.
- Dimensionality: A grid is defined by its boundaries (
max_rowandmax_column). - Traversal: The primary mechanism for interacting with a grid is Nested Looping (one loop for rows, one for columns).
- Coordinate Discrepancies:
- Spreadsheets: 1-based, often (Column Letter, Row Number).
- Digital Images: 0-based, Y-axis inverted (origin is top-left). See Digital Image Coordinate Systems.