[Go to Previous] [Go to Next]


Modify the Layer Object

setColorScale - Displays color scale on a panel and specifies its attributes

Usage: myDataLayer.setColorScale(keywords)
Keywords - optional:
visible= True - displays color scale (default)
placement= location of color scale
'Top' (default)
'Bottom'
'Left'
'Right'
font= name of font; default = font defined in User Preferences
style= font style; default=font defined in user preferences
'BOLD' - bolded font
'ITALIC' - italicized font
'NONE'
size= size of font; default = size of font defined in User Preferences
color= 'color name'; default = color defined in User Preferences
-or-
[R,G,B] fractional scaling factor for each red, green and blue value (0.0 to 1.0)
showUnit= toggles the visibility of the display unit on the color scale (default = False)
Example:
layer.setColorScale(placement='Left',font='SansSerif',size=18.0,color='green',showUnit=True)

setEnhancement - Applies a color table and defines data range of data in a layer

Usage: myDataLayer.setEnhancement(keywords)
Keywords - required:
color table = color table name e.g., 'Longwave Infrared Deep Convection'
Keywords - optional:
range= (min,max) enhancement range; default = (min,max) of data
transparency= transparency to apply to entire enhancement. The valid range is 0 - 100, with 0 being opaque and 100 being 100% transparent; default=0
Example:
layer.setEnhancement('Longwave Infrared Deep Convection',range=(20,250),transparency=20)

setLayerLabel - Toggles a layer label on/off and defines its attributes

Usage: myDataLayer.setLayerLabel(keywords)
Keywords - required:
label = layer label string. This can include macros
Keywords - optional:
visible= True - displays layer label(default)
font= name of font; default = font defined in User Preferences.
style= font style; default = font defined in user preferences
'BOLD' - bolded font
'ITALIC' - italicized font
'NONE'
size= size of font; default = size of font defined in User Preferences
color= 'color name'; default = color defined in User Preferences
-or-
[R,G,B] fractional scaling factor for each red, green and blue value (0.0 to 1.0)
Example:
layer.setLayerLabel('%displayname% %timestamp%', size=15, color='blue', style='BOLD')

setLayerVisible - Toggles layer visibility on/off, this includes any color scale or layer labels for the layer

Usage: myDataLayer.setLayerVisible(keywords)
Keywords - required:
visible= sets the visibility of the layer
True - displays the layer
False - does not display the layer
Example:
layer.setLayerVisible(False)

setVerticalPosition - Sets the vertical positioning of the layer in the Main Display. The acceptable values range from -1 (bottom) to 1 (top)

Usage: myDataLayer.setLayerVisible(keywords)
Keywords - required:
verticalPosition= Sets the vertical positioning of the layer in the Main Display.
Example:
layer.setVerticalPosition(1)

[Go to Previous] [Go to Next]