Difference between revisions of "Tarsier Tutorial: Watershed simulation using the Marmoset Model"

From CCoWS Wiki
Jump to: navigation, search
Line 1: Line 1:
 
== Prerequisites ==
 
== Prerequisites ==
 +
'''Data'''
 +
# Carmel watershed hydro DEM.
  
== Importing Hydro DEM into Tarsier ==
+
== Creating network data using the WatershedForm and a hydro DEM raster ==
# Find your hydroDEM and change the extension from '''.txt''' to '''.asc'''.
+
# Open Tarsino. If no Tarsier modules(dlls) are loaded a message box will come up, follow the instructions to load modules.
# Open Tarsino
+
# Open your hydro DEM raster by going to File->Open, navigate to your raster and click open.
# Open your hydroDEM raster by going to File->Open, navigate to your raster and click open.
+
# Save the raster
+
## File->Save As.
+
## The Tarsier Save Dialog should come up. The top yellow box is the raster viewer file '''*.trv'''. The second box is your raster file '''*.tra'''. Go to the second box and click the browse button. Browse to an appropriate folder and give the file a name. Click the 'Save All' Button.
+
 
+
== Creating a Network data using the WatershedForm ==
+
 
# Create a new Watershed form
 
# Create a new Watershed form
 
## File->New->Analysis->Watershed form
 
## File->New->Analysis->Watershed form
# Go to the '''input''' tab and load your hydroDEM
+
# Go to the '''input''' tab and load your hydro DEM
# Create a pointer image(Ptr) raster
+
# Create a pointer image(Ptr) raster.
## Go to the '''streams''' tab and click the '''Calc Ptr''' button
+
## Go to the '''streams''' tab and click the '''Calc Ptr''' button.
## Go to the Ptr UseeControl and click the view button.
+
## After your Ptr raster gets created go to the Ptr '''UseeControl''' and click the view button.
 
## Now save your Ptr raster  
 
## Now save your Ptr raster  
 
### File->Save As.
 
### File->Save As.
### The Tarsier Save Dialog should come up. The top yellow box is the raster viewer file '''*.trv'''. The second box is your raster file '''*.tra'''. Go to the second box and click the browse button. Browse to an appropriate folder and give the file a name. Click the 'Save All' Button.
+
### The Tarsier Save Dialog should come up. The top yellow box is the raster viewer file '''*.trv'''. The second box is your raster file '''*.tra'''. Go to the second box and click the browse button. Browse to an appropriate folder and give the file an appropriate name. Click the 'Save All' Button.
 
## Close the Ptr raster
 
## Close the Ptr raster
 
# Calculate the streams
 
# Calculate the streams
## Set the threshold upslope area above which cells are considered streams by changing the value inside the Tresh box.
+
## Set the threshold upslope area above which cells are considered streams by changing the value inside the Tresh box. The default is 100000000 which should work for your raster.
 
## Click the '''Calc stream''' button - this will calculate NetPtr, UpslopeArea, LnA, and Stream.
 
## Click the '''Calc stream''' button - this will calculate NetPtr, UpslopeArea, LnA, and Stream.
 +
## After your Stream raster gets created go to the Stream '''UseeControl''' and click the view button.
 +
## Now save your Stream raster
 +
### File->Save As.
 +
### The Tarsier Save Dialog should come up. The top yellow box is the raster viewer file '''*.trv'''. The second box is your raster file '''*.tra'''. Go to the second box and click the browse button. Browse to an appropriate folder and give the file an appropriate name. Click the 'Save All' Button.
 +
## Close the Stream raster
 +
# Go to the '''Basins''' tab and click on the '''Add all outlets to starting points''' button.
 +
  
  

Revision as of 15:46, 2 March 2010

Prerequisites

Data

  1. Carmel watershed hydro DEM.

Creating network data using the WatershedForm and a hydro DEM raster

  1. Open Tarsino. If no Tarsier modules(dlls) are loaded a message box will come up, follow the instructions to load modules.
  2. Open your hydro DEM raster by going to File->Open, navigate to your raster and click open.
  3. Create a new Watershed form
    1. File->New->Analysis->Watershed form
  4. Go to the input tab and load your hydro DEM
  5. Create a pointer image(Ptr) raster.
    1. Go to the streams tab and click the Calc Ptr button.
    2. After your Ptr raster gets created go to the Ptr UseeControl and click the view button.
    3. Now save your Ptr raster
      1. File->Save As.
      2. The Tarsier Save Dialog should come up. The top yellow box is the raster viewer file *.trv. The second box is your raster file *.tra. Go to the second box and click the browse button. Browse to an appropriate folder and give the file an appropriate name. Click the 'Save All' Button.
    4. Close the Ptr raster
  6. Calculate the streams
    1. Set the threshold upslope area above which cells are considered streams by changing the value inside the Tresh box. The default is 100000000 which should work for your raster.
    2. Click the Calc stream button - this will calculate NetPtr, UpslopeArea, LnA, and Stream.
    3. After your Stream raster gets created go to the Stream UseeControl and click the view button.
    4. Now save your Stream raster
      1. File->Save As.
      2. The Tarsier Save Dialog should come up. The top yellow box is the raster viewer file *.trv. The second box is your raster file *.tra. Go to the second box and click the browse button. Browse to an appropriate folder and give the file an appropriate name. Click the 'Save All' Button.
    5. Close the Stream raster
  7. Go to the Basins tab and click on the Add all outlets to starting points button.


Creating 3D view

  1. Open the Renderer
    1. ->File ->New ->Data Views ->Render view
  2. Make and view the Camelwatershed terrain
    1. On the Raster tab (keyboard shortcut key "R") click the Make Terrain button.
    2. A UseeControlDialog dialog will come up. Click the open button and navigate to your hydroDEM raster.
    3. After the raster is loaded click the OK button to start making the Terrain. When asked select the default name and folder for your Terrain files.
    4. Once the Terrain is created a message will come up asking if you want to load a color raster, click Yes.
    5. For the color raster we are going to use your hydroDEM, load it and then click OK.
    6. A dialog box will come up asking if you want to set the Color Scheme to RGB, since our raster is not true color click 'No'.
    7. Activate the Raster tab by clicking the check box at the upper left.
    8. If no other Terrains are loaded, Tarsino will automatically place you next to the Terrain you just created. Alternatively, you can go to the Cam 1 tab and click one of the camera icons on the left.
    9. You might notice some pink sections on your terrain. This means that there is no color data available for this section. If you want the make no data sections transparent uncheck the 'Draw nodata' checkbox in the Raster tab(upper right).

Now fly around your virtual reality. This is done by pressing the 'K' key on your keyboard. You can then use the key controls to move your point of view.

Running the model