solarspatialtools.spatial.lla2flat

solarspatialtools.spatial.lla2flat(lat, lon, latref, lonref, method='matlab')

Convert from latitude/longitude to East and North in meters based on a local coordinate system.

Parameters

latnp.array

latitudes

lonnp.array

longitudes

latrefnumeric

reference latitude

lonrefnumeric

reference longitude

methodstr
  • “matlab”: follow the algorithm specified by Matlab lla2flat

    (neglecting altitude) [1][2].

  • “tmerc”: use a transverse mercator with local longitude for the

    projection equal to lonref

References

[1] Matlab Documentation - lla2flat - Convert from geodetic to flat Earth.

https://www.mathworks.com/help/aerotbx/ug/lla2flat.html

[2] Engee Documentation - LLA to Flat Earth.

https://engee.com/helpcenter/stable/en/aerospace-axes-transformations/lla-to-flat-earth.html