salem.Grid.ij_to_crs

Grid.ij_to_crs(i, j, crs=None, nearest=False)[source]

Converts local i, j to cartesian coordinates in a specified crs

Parameters:
iarray of floats

the grid coordinates of the point(s) you want to convert

jarray of floats

the grid coordinates of the point(s) you want to convert

crs: crs

the target crs (default: self.proj)

nearest: bool

(for Grid crs only) convert to the nearest grid point

Returns:
(x, y) coordinates of the points in the specified crs.