Visualization of 2D rectangular matrices in Google Earth Viewer.
Visualizes gridded numerical data contained in variable 'M' at locations specified by vectors 'X' and 'Y' of size Nx1. Note that X and Y should have constant spacing to avoid distortion.
In addition to the above, this syntax also allows for specification of a number of parameters regarding the appearance of the data when viewed in Google Earth. 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.
Use imagesc() in combination with ge_colorbar() to indicate to what values the colors in a map correspond.
When you customize the appearance of the map, make sure to assign identical values to parameters 'cMap', 'cLimLow', and 'cLimHigh' in the call to ge_imagesc() and ge_colorbar().
When all values within M are identical, you should assign different values to parameters 'cLimLow' and 'cLimHigh' in the call to ge_imagesc() and ge_colorbar() to avoid a 'divideByZero' error.
See the demo file demo_ge_imagesc for more details.
The above will generate a *.kml file that looks like the image below when opened in the Google Earth viewer.
