salem.transform_proj¶
- salem.transform_proj(p1, p2, x, y, nocopy=False)¶
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: p1 : pyproj.Proj
projection associated to x and y
p2 : pyproj.Proj
projection into which x, y must be transformed
x : ndarray
eastings
y : ndarray
northings
nocopy : bool
in case the two projections are equal, you can use nocopy if you wish