The geo2itslive
function transforms geographic coordinates to projected map coordinates. (Requires MATLAB's Mapping Toolbox.)
[x, y] = geo2itslive(region, lat, lon)
[x, y] = geo2itslive(region, lat, lon)
converts the geocoordinates lat
and lon
into projected map coordinates x
and y
in meters. The region must be a number from 1 to 19 corresponding to ITS_LIVE regions (which approximately match RGI regions). For a map of ITS_LIVE regions, type itslive_regions
.
Convert this spot on Malaspina Glacier Alaska (Region 1) to map coordinates:
[x, y] = geo2itslive(1, 60.08343, -140.46707)
x =
-3298427.76
y =
315689.27
Now convert them back into geocoordinates:
[lat, lon] = itslive2geo(1, x, y)
lat =
60.0834
lon =
-140.4671
The MATLAB functions in this repo and this documentation were written by Chad A. Greene of NASA/JPL. The NASA MEaSUREs ITS_LIVE project is by Alex S. Gardner and the ITS_LIVE team.