Download   Help   Documents   Contact   Links   OceanColor   News   FAQ   Forum 

General Display Program


Displaying Loaded Bands (display)

Interactive mode

  1. From the Band List Widget, select the loaded product you would like to display.
  2. Select the window number for display.
  3. Press the Display button.

Command mode:

Note: The display command must be preceded by the seadas, seadisp and load commands.


Roaming

Interactive mode:

  1. For this example, the image loaded must contain scroll bars. To achieve this, either load a large image, or resize your current image to be smaller, so that scroll bars appear. (Resize your current image by dragging a corner of the window.)
  2. From the Display Window Widget->Functions, select Roam Window On.
  3. To roam through your full-resolution image, either:
  4. To turn off, select Functions -> Roam Window Off.

Command mode: Not available.


Zooming

Interactive mode:

  1. From the Display Window Widget->Functions, select the Zoom Window On.
  2. Move the zoom box to a new location by either:
  3. Change the zoom factor by:

Command mode:


Generating Coastlines (coast)

Interactive mode:

  1. From the Display Window Widget->Functions, select Coastline.
  2. To modify the coastline defaults, select Coastline from the Display Window Widget->Setups menu.
  3. Toggled between the High Resolution and Low Resolution coastline database options to see the results.
  4. Notice that a navigable image which is in an IDL-recognized map projection will have different parameters than an image in a non-standard projection (such as the SeaWiFS Level-1 and Level-2 data).

Command mode:


Generating Gridlines (grid)

Interactive mode:

  1. To display default gridlines, from the Display Window Widget->Functions, select Grid.
  2. To modify the gridline defaults:

Command mode:


Cursor Position: Uni-directional point location & single-point data read

Interactive mode:

  1. From the Display Window Widget->Functions, select Cursor Position.
  2. To display lat/lon and data value information for the point under the cursor, move the cursor around in any of the 3 display windows. The pixel/line displayed for all windows will be relative to the full resolution data.
  3. To only display values when the left button is clicked, turn on the Mouse button option in the Cursor Position widget.

Command mode: Not available


Read: Bi-directional point location & box-area data read & Profile

Interactive mode:

  1. From the Display Window Widget->Functions, select Read & Profile.
  2. To display lat/lon and data values under the cursor drag the left mouse button through the virtual window provided in the read widget.
  3. To move the cursor to a precise lat/lon or pixel/line location, in the displayed image:
  4. To display the data values and statistics for a small region around the cursor:
  5. To mark a graphics cross on the image:
  6. To plot a row or column profile:

Command mode: Not available.


Rescaling the Image

Interactive mode:

  1. To modify the default scaling options for a displayed window, either:
    1. from the Display Window Widget->Functions, select Rescale OR
    2. from the Display Window Widget->Setups, select Rescale.
  2. Modify the scaling range or scaling mode. The scaling range can be specified in either raw data values or geophysical values.
  3. Press Redisplay.

Note: The color bar will redraw automatically when the image is rescaled. Also, you might want to try the histogram function before rescaling your image.

Command mode: Not available.  (However, see $SEADAS/config/seadas_defaults file for controlling default scaling ranges)


Histogram

Interactive mode:

  1. From the Display Window Widget->Functions, select Histogram.
  2. You can modify the default histogram values:
  3. Press Plot after making any input modifications.
  4. The histogram plot window may be resized by dragging any corner of the window.
  5. Area refers to the data on which the histogram is performed:
  6. To output the histogram plot, press the Output button on the histogram plot window.
  7. To output the histogram bin values to a standard SeaDAS text window, press Output Data on the main histogram setup window.

Command mode: Not available yet


Color Bar

Interactive mode:

  1. From the Display Window Widget->Functions, select Color Bar->On.
  2. To modify the default annotation values either:
  3. Modify any of Label Increment, Label Values, Label Format or Label Annotation.Hit <RETURN> after entering values. The color bar annotation values update immediately.
  4. Also note that if the image is displayed with a log scaling, then the color bar increment value represents the multiplier of the base 10 exponent that falls within the data range. (i.e., an increment of 2.0 would denote 2.0x10^n, 2.0x10^n+1 2.0x10^n+2...)

Command mode: Sort of available.  You can specify the /CBAR option on the OUT command for PNG or postscript files. However currently you can't control the annotation, etc.


Full Data Spreadsheet

Interactive mode:

  1. From the Display Window Widget->Functions, select Spreadsheet->Raw Data or Spreadsheet->Geophysical Data.
  2. Roam through the data by using the scrollbars on the right and bottom. The top row shows the pixel number and the left-hand column shows the line numbers. These correspond to the full-resolution data line/pixel numbers displayed in both the Cursor Position and Read& Profile widgets.
  3. The spreadsheet widget can be resized by dragging any corner of the widget.

Command mode: Not available.  (However, see command out_data for outputting a data region to disk)


Load Color LUT : Predefined, ASCII or HDF color palette (loadpal)

This procedure is a modified version of IDL's LOADCT procedure. The basic modifications are to split the color table into data and graphics areas. Enhancements were also made for allowing ingesting of ASCII color tables and HDF color palettes.

Interactive mode:

  1. From the Display Window Widget->Functions, select Color LUT->Load Color.
  2. To load a predefined IDL color table:
  3. To load an ASCII color LUT file:
  4. To load a color palette from an HDF file:
  5. Note: This procedure has it's own HELP button.

Command mode:


Modify Graphics Colors

This procedure allows you to either change the current default graphics color or modify any graphics colors in the graphics palette. All color graphics modifications apply to all displayed windows.

Interactive mode:

  1. Select Modify Graphics Colors from Seadisp Main Menu->Functions.
  2. To modify any of the seven graphics colors:

Note: Function Modify Color LUT will also allow you to modify the SeaDAS graphics palette.

Command mode: Not available


Modify Color LUT

This procedure is a modified version of IDL's XPALETTE procedure. It does contain a Help button. The basic modification for SeaDAS is to split the color table into a data portion and a graphics portion.

Interactive mode:

  1. From the Display Window Widget->Functions, select Color LUT->Change Color.
  2. Notice:
  3. To modify a single color entry (data or graphics portion).
  4. To create your own color stretch between any two color entries in your table:

Note: Press the Help button for more detailed information on how to use other color modification functions.

Command mode: Not available


Save Color LUT

This procedure allows you to save the specified color LUT to either: This color file can then be subsequently loaded with the Load Color LUT option.

Interactive mode:

  1. Select either:
  2. Select the color table number you wish to output.
  3. Note: If you don't know which color table number is assigned to the window you are interested in, press the Info button on the window. Look at the item LUT number applied under the General Window Info category.

  4. Specify whether to write to an ASCII file or an HDF file.
  5. Select or enter a file name and press Save.

Command mode: Not available


Annotation (Text, Lines, Circles, Rectangles, Polygons, Arrows)

The annotation function is essentially IDL's annotation function, with hooks added to communicate with seadisp.

Interactive mode:

  1. From the Display Window Widget->Functions, select Annotate/Blotch->Main Window.
  2. To put text on your image:
  3. To put a circle on your image:
  4. To re-edit an object:
  5. To delete an object:
  6. To exit the annotation widget:

Note: Annotation objects can still be re-edited once you've exited the annotation program.

Command mode: Not Available(However, see commands load_graph and out_graph)


Load Graphics from Binary Flat File or HDF SD (load_graph)

Interactive mode:

  1. To load graphics from a binary flat file:
  2. To load graphics from an SD in an HDF file:

  3. From the Display Window Widget->Functions, select Load Graphics->HDF

Command mode:

  • Load graphics file from a flat file and overlay on existing graphics.
  • load_graph, '$SDSDEMO/lgraph_248x884_1b.flat', /OVER
  • Load two graphic SDs file from an HDF file and underlay existing graphics.
  • load_graph,'$SDSDEMO/lgraph1.hdf', SD=['graph1','graph2'], /UNDER

    Ship Track Overplot

    The ship track overplot function will overplot any ASCII data of the form latitude, longitude, value. The data does not need to be ship track data. See file $SDSDEMO/track1.dat for an example of the format.

    Interactive mode:

    1. Load and display $SDSDEMO/L1_gac1.hdf or $SDSDEMO/L2_gac1.hdf first.
    2. From the Display Window Widget->Functions, select Ship Track.
    3. Select file '$SDSDEMO/track1.dat' and press button Load Data.
    4. Press Plot Menu->Overplot Track on Image to overplot the locations of the ASCII data on the current display window.
    5. To change options such as color and line-style for this overplot, select Setup Menu->Ship Track Display.
    6. To see separate data plots of both the ship track data values and the corresponding image data values at the same locations, select Plot Menu->Ship and Image Data.
    7. To see a plot of the image data which would lie under connected ship track points, select Plot Menu->Image data on Ship Track.
    8. To clear graphics, select Functions->Graphics Control->Graphics Clear from the main Display Window Widget.

    Command mode: Not available(However, see commands out_graph and load_graph).


    Output Image Data to Binary Flat File or HDF SD (out_data)

    Interactive mode:

    1. From the Display Window Widget->Functions, select Output->Data->Binary.
    2. From the Output Setup Widget:
    3. Press the OK button to write the file.

    Command mode:


    Output Display to Postscript or PNG (out_display)

    Interactive mode:

    1. From the Display Window Widget->Functions, select Output->Display.
    2. From the Output Setup Widget:
    3. Press the OK button to write the file.

    Command mode:


    Save Graphics to Binary Flat File or HDF SD (out_graph)

    Interactive mode:

    1. From the Display Window Widget->Functions, select Output->Binary.
    2. From the Output Setup Widget:
    3. Press the OK button to write the file.

    Command mode:


    Map Projection (mapimg)

    The map projection function can be performed on any existing band which has already been loaded into memory, and will produce a new product which is added to the available band list for display. (i.e. the map projection function is not performed on displayed window images).

    Interactive mode:

    1. From Seadisp Main Menu->Functions, select the menu item Projection.
    2. Select as many products as desired from the selection list. Selected products will appear in the list entitled Selected for projection.
    3. Select the projection options desired and the output size of your new projected product.
    4. Press the Go button.
    5. The new projected data will now appear in the band list of loaded products available for display. Display the projected data as you would any other data. Add gridlines and coastlines as you would with any other data.

    Command mode:


    L3-binned file animation

    Interactive mode:

    From Seadisp Main Menu->Functions, select the menu item Spin L3 Binned File.

    1. Enter '$SDSDEMO/L3_daily1.hdf' in the Input file field.
    2. Select the statistical variable from the Category field and the L3 product from the Product field to be projected.
    3. Select the Orthographic projection from the Map Projection window.
    4. Change the window size to (300, 300) and the number of frames to 4 to save memory and time.
    5. Click the Go button and wait.
    6. Click the Quit button to quit this program.

    Command mode: Not Available


    Multi-Band Data Display

    The multi-band data display function is useful for viewing data values at the same location across more than one loaded product. It is only necessary that one product actually be displayed in a window in order to view the data values, however the cursor will be active across all display windows.

    Interactive mode:

    1. From Seadisp Main Menu->Functions, select the menu item Multiple Bands Data Display.
    2. Turn off any products which may be inappropriate to compare.
    3. Move the cursor in any display window.
    4. The raw and geophysical data values as well as the lat/lon coordinates will be displayed for all selected bands at the cursor location.

    Command mode: Not available.


    Movie :Multi-Display Window/Band Looping (loop)

    The looping function provides the capability of displaying many memory bands or display window images in an animated sequence within one window. A region can be specified for looping.

    Interactive mode:

    1. From Seadisp Main Menu->Functions, select the menu item Looping.
    2. Select products desired to be animated.
    3. Note that if there is a discrepancy between the image size and the window size, that the image data will be truncated (not resized) to fit the window.
    4. Press the Go button to start the animation.

    Command mode:


    Generate Bathymetry Image

    The bathymetry image generation function provides the capability of generating the bathymetry image for a user defined gridded area or a satellite image that has been loaded into the band memory. The world bathymetry data file 'BATHY.DAT' (under $SEADAS/data directory) in 2 minutes resolution is used to create the bathymetry image.

    Interactive mode:

    1. From Seadisp Main Menu->Functions, select the menu item Generate Bathymetry Image to display the Bathymetry Image Generation widget.
    2. Select the option to create the bathymetry image:
    3. Press Okay to start generating the bathymetry image. When it is created a new entry for this bathymetry image will be added to the Band List Widget.

    Command mode: Not available.


    Contour

    Interactive mode:

    1. From the Display Window Widget->Functions, select Contour to display the Contour Main Window widget.
    2. Click Go button to display the default contour plot on a new window for the current displayed image. The window may be resized by dragging any corner of the window and a new contour plot will be generated to fit inside the new window. You can output the contour plot to a Postscript or PNG file by using the Output button inside the window.
    3. You can modify the following setups and click Go button to generate new contour plot.

    Command mode: Not available.


    Band X-Y Shifting

    The band X-Y shifting function is useful for shifting images horizontally (X) or vertically (Y) in pixel numbers. Images to be shifted have to be loaded into band memory first. The shifted images may be outputted to new bands or overwritten to the original bands.

    Interactive mode:

    1. From Seadisp Main Menu->Functions, select the menu item Band X-Y Shifting to display the SEADISP Band X-Y Shifting widget.
    2. Select the band images to be shifted by clicking the left mouse button on the images listed in the Band selection list. The list is copied from Band List Widget the first time the SEADISP Band X-Y Shifting widget is displayed. If the list is empty, or does not have the image you want, or does not match to the list in the Band List Widget, then you have to load the image first (see how to load data) and press the update button to update the list.
    3. The selected images will be listed in the Selected for shifting list. To remove an entry in this list, first use left mouse button to highlight the item to be removed then click the Delete button.
    4. Enter the pixels to be shifted in the X- and Y- directions.
    5. Select the output to new bands or original bands (overwrite)
    6. Press Go to generate the shifted images. The results will update the Band List Widget.

    Command mode: Not available.


    Scatter Plot

    The Scatter Plot function provides the capability of generating a scatterplot for areas of two loaded images. The areas may be the full image or blotched areas. Ranges of data values in corresponding raw or geophysical units may be used to restrict the pixels for the plot. Histograms may also be requested and will appear at the top and to the right of the scattergram.

    Interactive mode:

    1. From Seadisp Main Menu->Functions, select the menu item Scatter Plot to display the main widget for this function.
    2. Make sure that the images for scatter plotting are listed in the Frame buffer selection list. If not, you have to load those images into the Band List Selection widget and then click the Update button to copy all the available images from the Band List Selection widget to the Frame buffer selection list.
    3. Select the images for scatter plotting by clicking the image from the Frame buffer selection list. The image selected will be displayed in either Image 1 (X-Axis) or Image 2 (Y-Axis) depending on if the toggle button on top of the widget is 1 or 2.
    4. Update the Data source, Data range, Display histogram option, Display grid option, if necessary for Image 1 and Image 2 .
    5. Click the More Setup button if you want to change the default setups for X axis and Y axis of the scatter plot.
    6. Click the Go button and the scatter plot will be generated on a new window with a default size. The scatter plot may take a while depending on the image size. Once the scatter plot is created, you can always resize the window and the scatter plot will be regenerated based on the new window size.
    7. Click the Quit button to quit the Scatter Plot widget.

    Command mode: Not available.


    SeaWiFS/OCTS L2 Flags Display

    The SeaWiFS & OCTS L2 Flags Display function provides the capabilities of displaying L2 flags overlay on top of other SeaWiFS or OCTS L1 and L2 products, turning the flags display on and off, and generating blotches on the displayed flags pixels.

    Interactive mode:

    1. Make sure that the L2 flags data is loaded and displayed in the Band List Selection widget and the corresponding L1 or L2 image to be applied is loaded and displayed in one of the display windows.
    2. From Seadisp Main Menu->Functions, select the menu item SeaWiFS & OCTS/NASDA L2 Flags Display to display the main widget for this function.
    3. On the main widget, select the band number from Band List Selection widget that the L2 flags data is loaded to.
    4. On the main widget, select the display window number that the L1 or L2 image is displayed on and to be applied by the flags.
    5. Change the Flag type to OCTS L2 Flags if you are working on OCTS L2 data.
    6. To select and display a single flag:
    7. To select and display multiple flags at once:
    8. More functions from the drop down Flag Function Menu:
    9. Click the Quit button to quit the SeaWiFS & OCTS L2 Flags Display widget.

    Command mode: Not available.


    Paint Color (Density Slice)

    The density slice function allows the user to interactively apply different colors to any specified ranges of image data.

    Interactive mode:

    1. From Seadisp Main Menu->Functions, select the menu item Paint Color (Density Slice) to display the Paint - Density Slice widget.
    2. Select the display window number for the image displayed to be applied by the paint function.
    3. Select the Raw or Geophysical data type the data ranges for paint colors to be applied.
    4. Add a range to the List of Density Slice Ranges list:
    5. Add multiple equal distance ranges to the List of Density Slice Ranges list:
    6. Click the Apply button to apply the colors to image pixels in the selected display window based on the order of the density slice ranges listed in the List of Density Slice Ranges field. Note that the program will not check for duplicated or overlapped ranges and the minimum and maximum ranges for each density slice are inclusive when comparing with the image data.
    7. Paint function manipulation from the drop down Function Menu:
    8. Click the Quit button to quit the Paint - Density Slice widget.

    Command mode: Not available.


    Copy Graphics

    The copy graphics function is used to copy graphics from one display window to another. This avoids having to recreate coastlines, gridlines, annotation, etc. when viewing several bands from a single file. Graphics can be copied selectively by color. Also, the overlay order of the graphics can be modified.

    Interactive mode:

    1. From Seadisp Main Menu->Functions, select the menu item Copy Graphics to display the Copy Graphics widget.
    2. Select the From Window number and To Window number.
    3. Turn off any graphics color you do not wish to copy (by default all colors are selected).
    4. Select an alternate Graphics Mode if you do not wish to overlay the specified graphics on the new graphics window. Make sure that your To Window already has its own graphics to see the different effects of the Overlay, Underlay or Replace options.
    5. Press Go to generate the copy the specified graphics.

    Command mode: Not available.


    Graphics Control

    The Graphics Control functions allow you to toggle graphics objects on and off or erase them completely. The graphics control is performed on the basis of color. Commonly-used graphics control functions (such as erase all) can be accessed via a shorthand menu. Complete custom control can be accomplished via the Graphics Control Window.

    For the following example, make sure you have selected a window which contains graphics of several different colors. If you want to load pre-created graphics, load the test graphics file $SDSDEMO/lgraph1.hdf with the Load Graphics->HDF option.

    Interactive mode:

      Custom control by color:
      1. You can toggle or erase graphics objects by color by bringing up the Graphics Control Window. Bring up this widget by either selecting Graphics->Graphics Control Window from Display Window Widget->Functions, or by selecting Graphics Control from Display Window Widget->Setups.
      2. To toggle graphics objects on and off by color, press the button by the number of the color you wish to toggle on and off. The action takes place immediately; there is no associated action button.
      3. To erase all graphics objects of a particular color(s) permanently, press the button next to the graphics color number(s) you wish to erase. Press Erase.

    Command mode: Not available.


    Multiple Concurrent Color Tables

    Seadisp allows the creation of multiple concurrent color tables. The number of color tables can be modified at any time during the seadisp session. Any currently displayed windows will automatically be rescaled and redisplayed. There is always only one graphics area, the multiple color table capability is for coloring data only.

    For the following example, you will probably want to also bring up the Load Color Widget or the Change Color Widget. In this way, you can watch the color tables repartition within the available colors allotted for your session.

    Interactive mode:

      To display and load multiple color tables:
      1. Display one image using display option LUT no.: 1. Display another image in another window using display option LUT no.:2.
      2. To load separate color tables into each of these windows:
      To change the number of pre-allocated color tables or change the partition sizes:
      1. From Seadisp Main Menu->Global Setup, select the menu item Change Color Table Configuration.
      2. Notice the Full session range values. This shows you how many colors you have available in your current session for coloring data (the graphics palette and other colors are excluded from this number).
      3. To change the number of concurrent color tables, select a number from No. of concurrent tables menu. If you don't like the calculated default partitions, you can change the partition range values. When you are satisfied with the new partitions, press Apply.
      4. If you have the Load Color Widget up, you should be able to see the color table repartition and rescale. Any currently displayed windows will rescale and redisplay and should look the same as before the repartitioning.

    Command mode: Not available.


    Arithmetic Band Functions: Difference, Simple Average, General Summation

    The Arithmetic Band Functions allow simple differencing, averaging or general summation functions to be performed on any loaded bands. The resultant output will be added as a new band which can be treated like any other loaded product.

    Interactive mode:

    1. Load at least 2 different bands from the same file.
    2. From Seadisp Main Menu->Functions, select the menu item Arithmetic Band Functions.
    3. Difference Function:

      The list of available loaded products should appear at the top of the widget. To create the output product Image3 = Image1 - Image2 :
      1. Click on the data product you wish to assign to variable Image1.
      2. Push the I2 button, and click on the product you wish to assign to variable Image2.
      3. Specifying Data Type:  The data type selected (either Raw or Geophysical), specifies whether to perform the difference calculation on the raw data values or the geophysical data values.
      4. Press Go. The difference image should appear as a new loaded product, available for display.
      Simple average and General Summation Functions: These two functions operate similarly to the difference function.

    Command mode: Not available.


    ASCII Output

    The ASCII Output function allows outputting either raw or geophysical data values associated with a displayed product, to an ASCII file. Data values alone can be output, or several variables in columns can be output (from latitude, longitude, pixel, line, raw data value, geophysical data value). Regions and lines can be output as well as data lying under blotched graphics areas.

    Interactive mode:

      Select the ASCII Output function either: Case 1: Simplest case (geophysical data values only for entire image):
      1. Select the window number containing the displayed product you want to output.
      2. Press Write File
      Case 2: Output latitude, longitude, and geophysical data values for a rectangular region.
      1. Select the window number containing the displayed product you want to output.
      2. To output the top lefthand corner of the data (50x50), modify opp. corner to be 50 in both the Pixel and Line columns.
      3. Press Setup to get the custom setup menu.
      4. Click on the desired variables to output. They will be added to the output variable list. You can delete variables or reorder variables.
      5. Press Write File.
      Case 3: Output the latitude, longitude, and geophysical data values for a transect between two points.
      1. Select the window number containing the displayed product you want to output.
      2. Select the Line option for Region of Interest.
      3. Define the two endpoints of the transect line either by modifying the pixel/line values or the latitude/longitude values. Pixel/line values will automatically update when modifying latitude/longitude values and vice versa.
      4. Press Setup to get the custom setup menu.
      5. Click on the desired variables to output. They will be added to the output variable list. You can delete variables or reorder variables.
      6. Press Write File

    Command mode: Not available.


    Curator: OceanColor Webmaster

    Authorized by: gene carl feldman
    Privacy Policy and Important Notices

    Updated: 20 March 2008
    NASA logo