Using the Stack Bands process

The Stack Bands process allows you to combine single raster datasets to form a single multiband image.

stack bands diagram

This is typically used for multispectral imagery where the output image is to be a selection of bands from different images. The number of bands in the output image needs to be specified as well as the raster ID and the band number that will be used from that raster ID. The primary raster is assumed to be the source raster for the first band. If the Resample check box is checked on the Stack Bands Process dialog box, the auxiliary images may be resampled. This option is used to ensure that the auxiliary images are in the same spatial dimension as the primary raster and needs to be run if the input image is not pixel aligned.

The raster ID can be a raster from the same dataset or a different dataset.

The input for this process can be one to seven bands at any bit depth, pixel type, or color space. The output will be the same as the input.

You can use this process after you've imported a Landsat scene with the bands input as 3, 2, 1, 4, 5, 7. Be sure the pan-sharpened check box was unchecked when the raster data was added. You have created a true color RGB image. This workflow will walk you through creating an infrared band combination using bands 4, 3, 2 for the RGB combination.

Schritte:
  1. Click the Layer drop-down arrow on the Image Service Definition Editor toolbar and choose the image service definition you want to work with (if there is more than one).
  2. Select a raster item.

    There are three main ways to select rasters in a service: using the Select Element tool on the Tools toolbar to select a footprint, opening the service table and selecting one or more rows, or using one of the selection options available from the Footprint context menu.

    Learn more about selecting rasters in an image service definition

  3. Click the Raster Properties button Raster-Eigenschaften.
  4. Click the Rasters node in the list on the left side of the Raster Properties dialog box.
  5. Click MS in the ID column.
  6. Click the General tab.
  7. Uncheck Enabled.
  8. Click 3 in the ID column.
  9. Click the Process tab.
  10. Uncheck Stack Bands in the Processes Selected list.
  11. Click 4 in the ID column.
  12. Click the General tab.
  13. Check Enabled.
  14. Click the Process tab.
  15. Click Stack Bands in the Processes Available list and click the Add Process button Prozess hinzufügen.

    This adds the process to the Processes Selected list. Each time the same process is added to the Processes Selected list, a number is appended to the alias—this number increases incrementally starting with 0. This number will not be added if you have changed the alias of the process prior to adding the second identical process.

  16. Click Stack Bands [0] in the Processes Selected list and click the Edit Process Definition button Bearbeiten.

    This opens the Stack Bands Process Definition dialog box.

  17. Optionally, type a new name in the Alias text box.
  18. Click the Output Number of Bands drop-down list and click 3.
  19. Click the Additional Bands tab.
  20. Type 3 in the Raster ID for Band 2 text box.
  21. Type 2 in the Raster ID for Band 3 text box.
  22. Click OK.
  23. Make sure the Stack Bands process is still checked and click OK.

    You can now build the image service definition and preview the results.

Verwandte Themen


7/10/2012