Topography for CODAS

Matlab

If you are installing Matlab and want topography, you should be using the m_map, package. This is an excellent, free Matlab mapping toolbox that our code uses extensively. Although it is not required for Matlab ADCP processing, your editing plots will be vastly improved if you have it.

Note

If you want to process with Python, go to the new documentation for better instructions and consistent examples.


THIS SECTION MAINTAINED FOR HISTORICAL REASONS

Python

We use two topography products, ETOPO and Smith-Sandwell. You can get one or the other, or both.

Present versions we can parse are

  1. ETOPO:
  2. Smith Sandwell:

Installation:

    • make a directory adjacent to the UH programs directory,

    • it must be called “topog”

    • inside “topog” make two directories

      “etopo” “sstopo”

    • ETOPO:

      • move the ETOPO file (etopo1_ice_g_i2.zip) into the etopo directory:
      • unzip there (etopo1_ice_g_i2.bin,etopo1_ice_g_i2.hdr)
    • Smith Sandwell:

      • move the Smith-Sandwell file (topo_14.1.img) to the sstopo directory
    • in a shell window, with all environment variables set correctly, change directories to uh_programs/pycurrents/data (if the UH programs directory is ‘uh_programs’)

      run:

      python topo_sub.py

    • this should generate 2 more files for each type of topography. (it takes a long time). Then you should have:

(alongside these)

    uh_programs/adcp_templates/[etc]
    uh_programs/codas3/[etc]
    uh_programs/pycurrents/[etc]
    uh_programs/matlab/[etc]

(new)

    topog/sstopo/topo_14.1.img
    topog/sstopo/topo_14.1s3.img
    topog/sstopo/topo_14.1s9.img

    topog/etopo/etopo1_ice_g_i2.bin
    topog/etopo/etopo1_ice_g_i2_s3.bin
    topog/etopo/etopo1_ice_g_i2_s9.bin