Skip to content
Jay edited this page Sep 8, 2015 · 3 revisions

#Export DTMs and Orthoimages

Brief Overview

Exporting DTMs and Orthoimages is a two step process:

  1. First we run utilities/programs on the SOCET SET workstations to convert SOCET SET file formats to raw binary files and build corresponding ISIS3 scripts. All raw binary files and ISIS3 scripts are placed in folder D:\\DATA\\<ProjectName>\\Output_Products.

  2. Then we copy the entire D:\\DATA\\<ProjectName>\\Output_Products folder to an ISIS3 processing machine, where the scripts are executed to generate the ISIS3 cubes.

Export DTMs

  1. From the SOCET Set menu bar, select USGS Tools > Exports > Export DEM to ISIS.

  2. Press Project File.

  3. In the Open window, navigate to the main SOCET SET DATA folder (D:\\DATA), select file <ProjectName>.prj, and then press “Open”.

  4. Select DTM(s) to export. Either:

    a. Press Select All if you wish to export all DTMs, or

    b. Double click on the check box for each DTM you wish to export.

  5. Press Execute.

  6. A Command Prompt window will pop-up. Upon completion of the program, close the Command Prompt window.

Export Orthoimage(s)

  1. From the SOCET Set menu bar, select USGS Tools > Exports > Export Orthos to ISIS.

  2. Press Project File.

  3. In the Open window, navigate to the main SOCET SET DATA folder (D:\DATA), select file .prj, and then press Open.

  4. Select Orthoimages to export (these will have the _o suffix): double click on the check box for each Orthoimage you wish to export.

  5. Press Execute.

  6. A Command Prompt window will pop-up. Upon completion of the program, close the Command Prompt window.

Transfer Files to ISIS Processing Machine

Using Windows/File Explorer, copy the <data_path>\\<ProjectName>\\Output_Products folder to a shared network drive. Place Output_Products in the <ProjectName> working directory/folder on the ISIS machine.

File Transfer for USGS Astrogeology Guest Facility Users

  1. Bring up Windows Explorer and navigate to D:\\DATA\\<ProjectName>.

  2. Bring up a second Window Explorer window, and navigate to Z:\\<ProjectName>.

  3. Copy the entire Output_Products folder from D:\\DATA\\<ProjectName> to Z:\\<ProjectName>.

Generate ISIS3 Cubes

  1. Log onto the ISIS Processing (UNIX) Machine. For Guest Facility Users, log onto astrovm-guest (see 1 Guest Facility Log On Procedure for details.)

  2. In the Unix window, change directory into the <ProjectName>/Output_Products directory.

    Unix Command for Guest Facility Users is:

    $ cd <ProjectName>/Output_Products
    

    Unix Command for Astro Employees is:

    $ cd <path_to_ProjectName>/Output_Products
    
  3. Run dos2unix on the scripts to update linefeed/carriage-return differences between Windows and UNIX. Use the wildcard (*) to update all scripts with one command, as follows:

    $ dos2unix \*.sh
    
  4. Run setisis to initiate ISIS, as follows:

    $ setisis isis3
    
  5. Use the source command to execute each script. Wildcarding does not work with source, so use awk to generate a script to source all the dem- and ortho-to-isis scripts “automatically. The commands are:

    $ ls \*.sh | awk ‘{print “source”,\$1}’ > generate_cubes.script
    $ source generate\_cubes.script