Privacy Policy and Important Notices
Updated: Monday, 15-Dec-2008 16:03:13 EST
[Command Mode][Interactive Mode]
Description: The loadpal procedure allows loading of color palettes from:
Required Input Arguments/Keywords: (NOTE: Either ifile, band_no or RED/GREEN/BLUE are required)
| ifile | HDF or ASCII filename, IDL table number/name. |
| red | Array containing red component to load. |
| green | Array containing blue component to load. |
| blue | Array containing blue component to load. |
| band_no | The band number of a band which was loaded with a color palette. |
Optional Input Arguments/Keywords:
| nlut | Number of concurrent color tables to load into. If specified, then low. top and ncolors will be automatically determined. |
| low | First color index to load into. Default = 0 unless nlut is specified. |
| top | Last color index to load into. Default is end of first color table unless nlut is specified. |
| ncolors | Number of index colors to load into. Automatically determined from low, top and/or nlut. If none of these are specified, then the default is the number of colors in the first color palette. |
| nsl | Number of fixed input colors from the bottom to load without stretching (used for masks). Default is 0. |
| nsh | Number of fixed input colors from the top to load without stretching (used for masks). Default is 0. |
| palnum | Palette number to load for HDF file. (Default is first) |
| file_idl | Alternate IDL color table file instead of "colors.tbl". |
| HDF | Explicitly specify that the input is an HDF file. (Not necessary if file ends in '.hdf') |
| ASCII | Explicitly specify that the input is an ASCII color table name. (Any non-HDF file will be assumed to be ASCII.) ASCII format is 3 columns x 256 rows, any integer format. (See file $SDSDEMO/demo1.lut for an example of the ASCII input file format.) |
| IDL | Explicitly specify that input is an IDL color name or number. |
| help | Print help to screen. |
| npals | Number of color palettes found in file. |
| names | Name list of IDL color palettes in IDL file. (for /IDL only) |
Examples:
Interactive
Mode (sdsxloadct):
Load Color Table Widget:
The seadas color table widget can be accessed through many menus in the seadas package and by typing "sdsxloadct" at the command line. This widget is a modified version of IDL's loadct program.Informational items :
| The color bar shows the full color range allotted for the current xsession. The predefined graphics colors can be seen at the far right of the bar. The multiple concurrent color tables can be seen within the non-graphics portion of the bar. |
Action items:
| Color table | Pull down to select which concurrent color table to work with. Currently, all programs outside of the general display program (seadisp) only use the first color table. To add, remove or change the index pointers of color tables, either (1) select Global Setup->Change Color Table Configuration option from the Main Menu, or (2) select Utility->setlut from the SeaDAS Main Menu. | ||||||||||||
| Valid range | The color index ranges over which to load the input color table. The
default is the range assigned to the current color table specified in Color
table. You can only specify a range within these limits.
Two occasions for using this option are:
|
||||||||||||
| Flags bottom, top | The number of colors to hold constant at the start and end of the input 256-element color table without scaling. This is used to load color palettes which contain masks. Currently SeaWiFS browse products will set these values automatically. | ||||||||||||
| Auto-Apply? & Apply LUT | Determines whether to automatically update the display window when a new color LUT is selected. If auto-apply is set to No, selecting new LUTs will update only the Color Bar at the top of the window in order to give a preview of the selected color LUT. This avoids long waits for a new LUT to load on slow machines and/or large images. Setting auto-apply to yes or clicking the Apply LUT button will immediately apply the currently selected LUT. | ||||||||||||
| Refresh all windows? | Determines whether to refresh only the display window that spawned the Load Color window or else to refresh all open display windows. Setting this option to No can avoid long waits for a new LUT to load in multiple windows on slow machines and/or large images. | ||||||||||||
| Color Tables Menu | This menu toggles between "Standard Product Color Tables", "Custom Product Color Tables", and "IDL Color Tables". "Standard Product Color Tables" are the color LUTs normally used for ocean products distributed by the OBPG. All other LUTs that are not included with IDL are listed under the "Custom Product Color Tables" menu option. Users can easily create their own color LUTs and have them show up automatically in this list. (See the SeaDAS FAQ for instructions on how to do this.) | ||||||||||||
| Options | (The Options portion of this documentation is IDL's documentation since the
functionality has not been modified.)
|
||||||||||||
| Functions | (The Functions portion of this documentation is IDL's documentation, since the
functionality has not been modified).
Selecting this mode allows interactive editing of the mapping of color table values to color indices by dragging control points on a plot of the map. Select and move a control point by clicking and dragging on its box. The first and last control points may only be moved in the vertical direction. Other control points may be moved anywhere within the plot as long as they are to the right of their predecessor and to the left of the next control point. You can add a control point, in the largest interval that contains no control points with the "Add Control Point" button. The "Remove Control Point" button removes the control central point in the smallest interval containing three control points. The "Reset Transfer Function" restores a linear one-to-one transfer function. |
||||||||||||
| Load LUT | Pressing the Load LUT button will display all the input option types from which
to load color tables.
|
||||||||||||
| Help | Show help in HTML viewer. | ||||||||||||
| Quit | Quit Load Color Table Widget. |
Privacy Policy and Important Notices
Updated: Monday, 15-Dec-2008 16:03:13 EST