next up previous [pdf]

Next: Part Two Up: Demo Previous: Demo

Part One

  1. Change directory to demo directory
    bash$ cd demo
    
  2. Run
    bash$ scons cmp.view
    
    in the Unix shell. A number of commands will appear in the shell followed by Figure 3(a) appearing on your screen.
  3. To understand the commands, examine the script that generated them by opening the SConstruct file in a text editor. Notice that, instead of Shell commands, the script contains rules.
  4. To better understand how rules translate into commands, run
    bash$ scons -c cmp.rsf
    
    The -c flag tells scons to remove the cmp.rsf file and all its dependencies.
  5. Next, run
    bash$ scons -n cmp.rsf
    
    The -n flag tells scons not to run the command but simply to display it on the screen. Identify the lines in the SConstruct file that generate the output you see on the screen.
  6. Run
    bash$ scons cmp.rsf
    
    Examine the file cmp.rsf both by opening it in a text editor and by running
    bash$ sfin cmp.rsf
    

    When you view cmp.rsf in the text editor, you see a history of all the programs used to create the file. The sfin program lists basic information about the file including data dimensions and extents of each axis.


next up previous [pdf]

Next: Part Two Up: Demo Previous: Demo

2012-07-20