SeaDAS Banner Image

Band Shift Function (band_shift)

Description: Shift any loaded band in the X and/or Y directions by the number of points specified.  The resultant output band will retain the navigation of the input band.  This function can be used to register sets of bands which require a constant and known shift in the X and/or Y directions.

Note:The shifted lines or pixels in the output image will be filled with the miniumum data value found in the input data grid.  Any data shifted off the grid will be lost.

[Interactive mode][Command mode]


Command mode:

Usage: band_shift, band_no=band_no, xshift=xshift, yshift=yshift, replace=replace, help=help

Note:  The load command must be used before using the band_shift command.

Examples:

  1. Load a Level-2 MOS file and shift in the y-direction by 6 lines:
  2. seadisp
    load, '$SDSDEMO/L2_mos1.hdf', prod_name=['chl_oc2','chl_octsc']
    band_shift, band_no=[1,2], xshift=0, yshift=6, /replace
     ;  At this point, loaded bands #1 and #2 contain the shifted MOS bands
Keywords:
band_no  An array of loaded band numbers to shift.
xshift The number of points to shift the band(s) specified in band_no, in the x direction.  A positive number will shift the image toward the right, a negative number will shift the image toward the left. (Default = 0).
yshift The number of points to shift the band(s) specified in band_no, in the y direction.  A positive number will shift the image upward, a negative number will shift the image downward. (Default=0).
replace Replace the input band(s) with the shifted bands.  (0 = add a new band, 1 = replace the input band with the shifted band).  (Default = 0).
help Print out help information.


Interactive mode:

Description:  The Band Shift Widget provides the capability of shifting a set of loaded band images in horizontal (X) and vertical (Y) directions.  This widget can be activated by selecting Functions->Band Shift in the Main Widget.

Band Selection Section:
Band selection list The list of the bands currently loaded in the memory and displayed in the Band List Selection Widget.  Clicking on a band in this list adds the band to the Selected for shifting list.
Update Update the current Band selection list with any bands that have been added or deleted in the Band List Selection Widget.
Selected for shifting  The list of loaded input bands selected to be shifted.
Delete Remove the highlighted item from the Selected for shifting list.

Input items:
X shift The number of points to shift the band(s) specified in band_no, in the x direction.  A positive number will shift the image toward the right, a negative number will shift the image toward the left. (Default = 0).
Y shift The number of points to shift the band(s) specified in band_no, in the y direction.  A positive number will shift the image upward, a negative number will shift the image downward. (Default=0).
Output to  Option for the shifted band images to either be saved as new bands or to replace the input bands.
 
New band(s) Add the shifted band as a new band and add to the Band List.
Original band(s) Replace the input band(s) with the new shifted band.
Go Shift the band(s) listed in the Selected for shifting list.  The shifted bands will either be posted as new band images on the Band List Selection Widget or replace the original band images depending on the option selected in the Output to field.
Help Display this help file in the HTML viewer.
Quit Close the Band Shift Widget.


Curator: OceanColor Webmaster

Authorized by: gene carl feldman

NASA logo

Privacy Policy and Important Notices

Updated: 15 December 2008