ANALYTICAL AND COMPUTER CARTOGRAPHY: Spring 1999

TECHNICAL TIPS FOR CONVERTING AND USING GEOGRAPHIC DATA IN ARCVIEW© AND ARC/INFO©


RETRIEVING, CONVERTING AND IMPORTING USGS DEMS IN SDTS FORMAT

Get the windows program to convert DEMs in SDTS format to USGS DEM format. Do this once only - this program coverts the spatial data transfer standard format to DEM format.
  1. Click here to download the program in WinZip compressed (sdts2dem.zip - includes readme file) or non-compressed (sdts2dem.exe and readme.txt) format.
  2. Save to disk (put wherever your downloaded DEMS will reside).
  3. If you downloaded the zipped file, go to Start/Programs/WinZip. If you don't have WinZip, you can download an evaluation version from the web at www.winzip.com/ddchome.htm.
  4. Open windows explorer or NT explorer or My Computer (however you are used to looking at your files from a window standpoint).
  5. Click through subdirectories until you get to the folder that holds your sdts2dem.zip file just downloaded.
  6. Drag your sdts2dem.zip file into the winzip window.
  7. Drag the files in the winzip window back to the folder from whence they came (back to where the sdts2dem.zip file is).
  8. You should now have a program called sdts2dem.exe and a readme file in the same directory with sdts2dem.zip.

Get the DEM data you want.

  1. Go to the USGS web page and get the DEMs you want. There are several ways to do this. The example given here leads to a link to DEMs in alphabetical order. You can also access DEMs by state and by map graphics.
  2. You have options for different DEM resolutions (how closely points are sampled). The rest of this example pertains to the retrieval of 7.5' quadrangles. This process should be similar for files of other DEM resolution.
  3. Click 7.5min
  4. Click the letter that matches the first letter in the NAME of the quadrangle you seek.
  5. Click the name of the quadrangle.
  6. Your URL may look something like this: http://edcwww.cr.usgs.gov/pub/data/DEM/7.5min/flagstaff_west_AZ
  7. Select the actual DEM file, which is some combination of numbers and alpha characters, ending with a .tar.gz. In this case it is called 30.1.1.1201606.tar.gz. Tar is a tape archive, a way to put a group of files into one file. GZ is the extension added to the file when it was gzipped (a compression technique).
  8. After you click on the .gz file, a window will pop up asking where you want to save the file. The default file name will not help you identify the file later, so change the name to something recognizable. Also, some browsers change the downloaded name. In this case, substitute a .(dot) for the _(underscore) before tar in the filename (instead of _tar at the end, make it .tar) and add a .gz extension. In this case I might rename 30.1.1.1201606_tar (as shown in the Save As:Filename box) to flgw.tar.gz
  9. Repeat these steps with all of the DEMS you want.

Convert the DEMS

  1. From SDTS format to USGS DEM format

    1. Uncompress the DEMS
      1. Go to Start/Programs/WinZip (if you don't have it, you can download it free from the web).
      2. Open windows explorer or NT explorer or My Computer (however you are used to looking at your files from a window standpoint).
      3. Click through subdirectories until you get to the folder that holds your DEMs.
      4. Drag your DEM to the winzip window.
      5. Drag the files in the winzip window back to the folder from whence they came (back to where the dem.tar.gz file is).
      6. You will see a bunch of files that start with the same 4 numbers and have a ddf extension. All these files together make one DEM.
    2. Run the SDTS2DEM .exe program
      1. In your folder find the command called sdts2dem, with a command icon.
      2. Double-click it to run the program.
      3. A menu pops up.
      4. Choose Select Input
      5. Click on any of the files that start with the same 4 number header and a ddf extension.
      6. Click on Select Output
      7. Name the output dem something recognizable, like flgw (the dem extension will be added by the program).
      8. Remove all the files associated with this DEM before you begin to convert the next one.
      9. Convert all DEMs now.


  1. USGSDEM format to an ArcView Shapefile 

    1. Start AV
    2. Go to File/Extensions
    3. Be sure Spatial Analyst is checked.
    4. Click OK.
    5. Open or highlight an existing View, or open a new View. Be sure a view window is active.
    6. Click File/Import Data Source
    7. Pick USGS DEM from the Select File Import Type pull-down.
    8. When the Import USGS DEM files window pops up, find your converted dem(s), highlight and click OK. The files you bring in here are the ones ending in DEM that resulted from running the SDTS2DEM.exe program.
    9. Add the resulting shapefile to your view if you want.

  2. USGSDEM format to an Arc/Info Grid

    1. Use the Arc command DEMLATTICE, entering the output the DEM conversion steps (*.dem) at the input dems. The command usage looks something like this:
    2. Arc: DEMLATTICE flgw.dem flgwgrd
    3. The type is USGS (default).

      You're done!



Back to instructor's home page