< prev | next >

gradient < Tags < Home

<gradient>

The <gradient> tag specifies a "color-filled" gradient plot to appear within the context of a map. As such, <gradient> tags can only appear as children of a <map>. Each <gradient> tag must contain a single <data> tag, and may contain a <range>. If the <range> is omitted a default will be applied. Currently, the data source for a gradient plot is limited to an MDF formatted file. Future versions may allow for additional gradient data sources. The color palette for a gradient cannot be customized. That feature may also be supported in a future version.

Attributes

attribute

default

description

visible

"true"

Is the gradient plot initially visible?

name

The name of the displayed parameter.

Custom product name to appear in the legend.

Children

tag

quantity

description

<data>

1 (required)

The source from which the gradient's data are obtained.

<range>

1 (optional)

The range and of values mapped to the gradient's color palette. By default, the gradient range will cover the extremes of the data set.

Examples

<gradient visible="true">
  <data src="http://sdg/MesoData.acgi$latest.mdf"
    param="TAIR" units="fahr"/>
  <range low="0.0" high="100.0"/> 
</gradient>
 
<gradient>
  <data src="http://local/archives/199807071700.mg0"
    param="TDEW" units="cels"/>
</gradient>

Confidential. Copyright © 2002, Oklahoma Climatological Survey. All Rights Reserved.
Send questions or comments concerning this web page to
wolfie@ou.edu.