Difference between revisions of "Tarsier tutorial: Raster data"

From CCoWS Wiki
Jump to: navigation, search
(Obtaining raster data)
Line 31: Line 31:
 
# Select 'Download' tool on far left
 
# Select 'Download' tool on far left
 
# Use tool to define the smallest rectangle that includes the entire island
 
# Use tool to define the smallest rectangle that includes the entire island
# Click 'Download' in pop-up window that appears
+
# A pop-up window appears. Before clicking 'Download' consider which file format you want:
 +
## ArcMap Grid File Format - native ESRI ArcGIS format - can only be ready by ESRI products (pretty much)
 +
## [[GeoTIFF File Format]]
 +
## [[BIL File Format]] - Band-Interleaved binary format
 +
## Grid Float File Format - I wonder what this is? It could be an Arc ASCII GRID ([[ASC]]) format, which Tarsier '''can''' read
 +
# Which one should I choose?
 +
## ArcMap? Works fine, but its not ideal because you need to use ArcGIS software to convert it to [[ASC]] format. If you select ArcMap Grid, and you want to import to Tarsier, then you'll need to [[Convert Arc Grid file format to Arc ASCII Grid format]]
 +
## GeoTIFF? These work in Tarsier, but apparently not in the 32-bit version that USGS is using.
 +
## BIL? ...maybe
 +
## Grid Float? ....checking...
 +
# To select a different format to ArcMap Grid, click 'Modify data request'.
 +
# One the format is chosen, click 'Download'
 
# Save zip to local machine and extract to folder
 
# Save zip to local machine and extract to folder
# The folder should now contain an Arc GRID coverage - a bunch of files requiring ArcGIS software to open
 
 
==== Convert Arc GRID file format to Arc '''ASCII''' GRID format ===
 
 
Tarsier can't import native Arc GRID files. But it '''can''' import Arc ASCII GRID files that have been exported from Arc format using ArcGIS.
 
 
# Open ArcMap
 
# Add Data - your Arc GRID raster
 
# Open ArcToolbox
 
# Select Conversion Tools --> From Raster --> Raster to ASCII --> Select output file as something like "kauai.asc"
 
  
 
== Importing raster data into Tarsier format ==
 
== Importing raster data into Tarsier format ==

Revision as of 19:13, 11 February 2009

What are raster data?

Raster data are gridded data such as images and gridded maps of landscape properties such as elevation. The grid is typically two-dimensional, with the dimensions representing coordinates such as latitutde and longitude.

Raster data and vector data are the most fundamental types of data used to represent landscapes.

Examples of raster data include:

  • Maps of elevation (digital elevation models, DEMs)
  • Maps of bathymetry
  • Satellite images
  • Aereal photos
  • Maps of land cover (also often represented as vector data)

Obtaining raster data

Raster data are widely available on the web.

Useful Data Sources

Example: Topography of Kauai

Obtain a digital elevation model for a portion of the USA - Kauai

  1. Visit National Elevation Dataset (NED): http://ned.usgs.gov/
  2. Navigate to Seamless Data Distribution System (SDDS): http://seamless.usgs.gov/
  3. Select USA
  4. Zoom to Hawaiian Islands
  5. Zoom to Kauai - the northernmost island
  6. Click 'Download' on far right
  7. Select 'SRTM Finished 3 arc sec' i.e. the coarest data available, since we just want a quick look
  8. Select 'Download' tool on far left
  9. Use tool to define the smallest rectangle that includes the entire island
  10. A pop-up window appears. Before clicking 'Download' consider which file format you want:
    1. ArcMap Grid File Format - native ESRI ArcGIS format - can only be ready by ESRI products (pretty much)
    2. GeoTIFF File Format
    3. BIL File Format - Band-Interleaved binary format
    4. Grid Float File Format - I wonder what this is? It could be an Arc ASCII GRID (ASC) format, which Tarsier can read
  11. Which one should I choose?
    1. ArcMap? Works fine, but its not ideal because you need to use ArcGIS software to convert it to ASC format. If you select ArcMap Grid, and you want to import to Tarsier, then you'll need to Convert Arc Grid file format to Arc ASCII Grid format
    2. GeoTIFF? These work in Tarsier, but apparently not in the 32-bit version that USGS is using.
    3. BIL? ...maybe
    4. Grid Float? ....checking...
  12. To select a different format to ArcMap Grid, click 'Modify data request'.
  13. One the format is chosen, click 'Download'
  14. Save zip to local machine and extract to folder

Importing raster data into Tarsier format

  1. Open Tarsier
  2. Open your ASC file e.g. "kauai.asc"
  3. Select "Save As" and save as kauai.tra and kauai.trv
    1. Warning: there's an idiosyncrasy to saving files in Tarsier

Viewing raster data

TarsierRasterKauaiRainbow.jpg
  1. Open a the TRA file or the TRV
    1. The TRA is just the raster data, and the the viewer for the raster data. So when you open a TRA, you get default viewer. If you change the view settings (colors, zoom etc), you can save these in a TV and re-open them later. Each TV is associated with a TRA (and also a second TRA that can be used as a mask, but this is almost never done anymore).
  2. Zoom in and out:
    1. ...
  3. Change the color scheme:
    1. ...
  4. Save an image of your raster
    1. ...
  5. Etc.:
    1. ...

Manipulating raster data

  1. Algebra etc.
    1. ...

Links