Mapping Toolbox

From OPS
Jump to: navigation, search

All Matlab Toolboxes

NOTE: This list is not complete and is under construction.

List of Mapping Toolbox functions:

  • geotiffread, geotiffinfo, projfwd.m, projinv.m: Required for some posting operations and many support operations. Used in track_layer.m (DEM), runOpsInsertLayer.m (DEM), publish_map.m (background map images), tomo.add_icemask_surfacedem.m (DEM), and many other support functions. Needs to be replaced with imfinfo and imread (see below) and direct access to proj4 library.
  • shaperead, shapeinfo: Required for some posting operations. Used in publish_map.m (contour maps), track_layer.m (ocean mask), check_surface.m (ocean mask), and tomo.add_icemask_surfacedem.m (ocean mask). Needs to be replaced with open source shape file reader, but could also change files to a supported format.
  • bufferm: Required for some specialized operations. Used in plot_DEM.m, tomo.add_icemask_surfacedem.m, and flowline_post.m. Needs to be replaced with open source buffer option.

Implemented in the CReSIS toolbox to reduce the dependence on the Mapping Toolbox:

  • ecef2geodetic, geodetic2ecef: Required for qlook, sar, and analysis processing. Used in trajectory_with_leverarm.m.
  • lv2ecef: Required for qlook, sar, and analysis processing. Used in trajectory_with_leverarm.m.

geotiff

path = ; file_in = 'greenland_vel_mosaic500_2016_2017_vel_v2.tif';

% Retrieve the image info GeoKeys = imfinfo(strcat(path,file_in)) N = GeoKeys.Width; M = GeoKeys.Height; dx = GeoKeys.ModelPixelScaleTag(1); dy = GeoKeys.ModelPixelScaleTag(2); minx = GeoKeys.ModelTiepointTag(4); maxy = GeoKeys.ModelTiepointTag(5);

% Generate x/y pixel location vectors xdata = minx + dx/2 + ((0:N-1).*dx); ydata = maxy - dy/2 - ((M -1:-1:0).*dy);

% Read the image data, flip upside down if necessary data_in = imread(strcat(path,file_in)); if GeoKeys.Orientation

   data_in = flipud(data_in);

end

Use PROJ.4 map projection library to replace projfwd and projinv.

Personal tools
Namespaces

Variants
Actions
Navigation
Tools