MCPcopy Index your code
hub / github.com/pydata/xarray / forward

Method forward

xarray/core/coordinate_transform.py:36–52  ·  view source on GitHub ↗

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])

Source from the content-addressed store, hash-verified

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.

Callers 4

generate_coordsMethod · 0.95
_oindex_getMethod · 0.45
_vindex_getMethod · 0.45

Calls

no outgoing calls

Tested by 1