Perform grid -> world coordinate transformation. Parameters ---------- dim_positions : dict Grid location(s) along each dimension (axis). Returns ------- coord_labels : dict World coordinate labels.
(self, dim_positions: dict[str, Any])
| 34 | self.dtype = dtype |
| 35 | |
| 36 | def forward(self, dim_positions: dict[str, Any]) -> dict[Hashable, Any]: |
| 37 | """Perform grid -> world coordinate transformation. |
| 38 | |
| 39 | Parameters |
| 40 | ---------- |
| 41 | dim_positions : dict |
| 42 | Grid location(s) along each dimension (axis). |
| 43 | |
| 44 | Returns |
| 45 | ------- |
| 46 | coord_labels : dict |
| 47 | World coordinate labels. |
| 48 | |
| 49 | """ |
| 50 | # TODO: cache the results in order to avoid re-computing |
| 51 | # all labels when accessing the values of each coordinate one at a time |
| 52 | raise NotImplementedError |
| 53 | |
| 54 | def reverse(self, coord_labels: dict[Hashable, Any]) -> dict[str, Any]: |
| 55 | """Perform world -> grid coordinate reverse transformation. |
no outgoing calls