convertxyll.py
March 27, 2020 ยท View on GitHub
- Converts lat/lon points to and from projected coordinates
Calling Sequence
from pyTMD.convert_xy_ll import convert_xy_ll
x,y = convert_xy_ll(lon,lat,PROJ,'F')
lon,lat = convert_xy_ll(x,y,PROJ,'B')
Inputs
i1: longitude ('F') or projection easting x ('B')i2: latitude ('F') or projection northing y ('B')PROJ: spatial reference system code for coordinate transformationsBF: backwards ('B') or forward ('F') translations
Outputs
o1: projection easting x ('F') or longitude ('B')o2: projection northing y ('F') or latitude ('B')