salem.transform_proj

salem.transform_proj(p1, p2, x, y, nocopy=False)[source]

Wrapper around the pyproj.transform function.

Transform points between two coordinate systems defined by the Proj instances p1 and p2.

When two projections are equal, this function avoids quite a bunch of useless calculations. See https://github.com/jswhit/pyproj/issues/15

Parameters:
p1pyproj.Proj

projection associated to x and y

p2pyproj.Proj

projection into which x, y must be transformed

xndarray

eastings

yndarray

northings

nocopybool

in case the two projections are equal, you can use nocopy if you wish