MATLAB: How to find the coordinates (latitude/longitude) for Z(n,m) based on the referencing vector in Mapping Toolbox 2.7.2 (R2009a)

dtedlatitudelongitudemappingMapping Toolboxsetltln

The DTED function in Mapping Toolbox returns a referencing vector (refvec). I want to find the coordinates (latitude/longitude) for Z(n,m) based on the 'refvec'.

Best Answer

The referencing vector (refvec) returned by the DTED function is the associated three-element referencing vector that geolocates Z.
A referencing vector defines the pixel size and northwest origin for a regular, rectangular data grid:
refvec = [cells-per-degree north-lat west-lon]
The first element, cells-per-degree, describes the angular extent of each grid cell (e.g., if each cell covers five degrees of latitude and longitude, cells-per-degree would be specified as 0.2). The second element, north-lat, specifies the northern limit of the data grid (as a latitude), and the third element, west-lon, specifies the western extent of the data grid (as a longitude). In other words, north-lat, west-lon is the northwest corner of the data grid. Note, however, that Z (1,1) is always in the southwest corner of the grid.
For more help on referencing vectors please visit this link:
Use this referencing vector to compute the latitude and longitude corresponding to Z using the SETLTLN function in Mapping Toolbox 2.7.2 (R2009a). This function converts data grid rows and columns to latitude-longitude. Use this function to find the coordinate (latitude/longitude) for Z(n,m) base on 'refvec'. For more information about SETLTLN visit this link: