Visualizing filled contour maps in Google Earth.
Visualizing contour maps in Google Earth. "X" contains the location longitudes whereas "Y" contains the location latitudes of the data in the 2D numerical array "M". "M" should at least be 2x2. "X" and "Y" must be the same size as "Z". "X" must be monotonically increasing with increasing column number; "Y" must be monotonically decreasing with increasing row number.
When two output arguments are specified, ge_contourf also returns a cell array with data about the contours. The columns of this array are the x-coordinates, y-coordinates, area, level, and hexadecimal color string, respectively.
In addition to the above, a number of options can be set regarding the appearance of the contourmap. Assigning values to the parameters can be accomplished by inclusion of an alternating sequence of parameters and their value. The table below provides an overview of the authorized options. The order in which the parameters are included does not matter. Please be aware that the options are case-sensitive. Examples are provided further down.
Latitudes on the Southern hemisphere must be passed as negative values. Same for longitudes on the Western hemisphere.
Latitudes and longitudes should be passed in units of decimal degrees (also known as fractional degrees). Google Earth uses Simple Cylindrical projection (also known as Plate Carée) with a WGS84 datum.
demo_ge_contourf provides an example of the use of ge_contourf(). It will generate a *.kml file that looks like the image below when opened in the Google Earth viewer.