[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:
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 to 1)
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(color table,keywords)
color table - color table name e.g., 'Longwave Infrared Deep Convection'
Keywords:
range= (min,max) enhancement range; default = (min,max) of data
Example:
layer.setEnhancement('Longwave Infrared Deep Convection',range=(20,250))

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

Usage: myDataLayer.setLayerLabel(label,keywords)
label - layer label string. this can include macros
Keywords:
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 to 1)
Example:
layer.setLayerLabel('%displayname% %timestamp%', size=15, color='blue', style='BOLD')

setLayerVisible - Toggles layer visibility on/off

Usage: myDataLayer.setLayerVisible(visible)
visible - True displays layer
  False turns off layer
Example:
layer.setLayerVisible(False)

[Go to Previous] [Go to Next]