ENVIRONMENTAL INFORMATICS
GEOINFORMATION PRODUCTS
  BROCKMANN CONSULT
BEAM Java Tutorial
   

Tutorial Index

General Goals

During this tutorial you will ...

Pre-Requisites

In order to get the most out of this tutorial you should have ...

Tutorial Overview

Lesson Contents Source Code
IDE Set-up

How to prepare a Java IDE for usage with BEAM:

  1. Create a new IDE project
  2. Create the BEAM-3.3 library

 
Exercise 1

How to open a data product and access some of its properties:

  1. Create a Java package and a new main class
  2. Open a data product
  3. Access the properties of a product
  4. Write a script to run the program from the console

Ex1.java
Ex1.bat
Exercise 2

How to read pixel data from a band of a data product:

  1. List the bands contained in a data product
  2. Get a specific band and read pixel data
  3. Dump pixel data to the console

Ex2.java
Exercise 3a

How to create a new data product and write it as BEAM-DIMAP format:

  1. Create a new product object
  2. Create a new band and add it to the product
  3. Set the band's raster data with computed pixel values
  4. Write the data product as BEAM-DIMAP format
  5. Inspect data product output and open it in VISAT

Ex3a.java
Exercise 3b

How to create a new data product and write pixel data line by line:

  1. Write a product "skeleton" in BEAM-DIMAP format
  2. Compute new pixel values and write band data line-wise

Ex3b.java
Exercise 4

All together - generate an NDVI product from a MERIS Level-2 product

Ex4.java
Outlook

How to continue after this tutorial:

  1. Check for invalid or missing input pixels
  2. Specify invalid or missing output pixels
  3. Add more information to the output product
  4. Extend the BEAM Java API
  5. Find out more about the BEAM Java API
 

© 2005 by Brockmann Consult - Need help? Contact beam@brockmann-consult.de