Coastal & Marine Geology InfoBank

Home FACS Activities Atlas Geology School Related Sites More

USGS InfoBank program -- automerge

Skip navigational links
Loading
InfoBank Programs: by Name   by Topic  
Expanded Description
Topic Description
Name
automerge
Synopsis
/infobank/programs/edit/automerge/automerge.for
Description
  Program to automatically merge navigation to a data file.

       
COMMENTS
  Based on MERGEIT

   
  Data that occurs before the navigation starts are not preserved.
  Data that occurs after  the navigation ends   are not preserved.
  
  When data time and navigation time are identical, navigation is added.
  When data time has no corresponding navigation time, 
  navigation is linearly interpolated from the surrounding 2 fixes.
  
  Output is:
  YYYYDDDHHMMSST LAT.ITUDE LONG.ITUDE TENTHSEC.S ORIGINAL_DATA.......
  (i4.4,i3.3,3i2.2,i1.1, 1x,f9.5, 1x,f10.5, 1x,f10.1, 1x,a)  or
  (i4.4,i3.3,3i2.2,i1.1,t16,f9.5,t26,f10.5,t37,f10.1,t48,a)
    
AUTHOR
  Clint Steele           .for             10/9/98

    
PROMPTS
  Enter data file name:

  Enter navigation file name:
    
SUBROUTINES
  converttime (external shareable)

  openem      (external shareable)

    
Reads
          read (90, 90, err = 99, end = 98)
     *        DataYr, DataDay, DataHour, DataMin, DataSec, DataTen,
     *        DataLineLength, DataLine(1:DataLineLength)
              read (91, 91, err = 97, end = 96)
     *            NavYr, NavDay, NavHour, NavMin, NavSec, NavTen,
     *            NavLat, NavLong
Writes
      write (92, 701)
              write (92, 92) 
     *          DataYr, DataDay, DataHour, DataMin, DataSec, DataTen,
     *             NavLat, NavLong, DeltaTime/10.0,
     *             DataLine(1:DataLineLength)
              write (92, 92) 
     *          DataYr, DataDay, DataHour, DataMin, DataSec, DataTen,
     *             Latitude, Longitude, DeltaTime/10.0,
     *             DataLine(1:DataLineLength)
              write (92, 92) 
     *          DataYr, DataDay, DataHour, DataMin, DataSec, DataTen,
     *             InterpLat, InterpLong, DeltaTime/10.0,
     *             DataLine(1:DataLineLength)
Opens
Calls
      call openem (2, 1)
          call converttime ('COMPRESS', DataDay, DataHour, DataMin, 
     *                      DataSec, DataTen, DataTime, ErrorFlag)
              call converttime ('COMPRESS', NavDay, NavHour, NavMin,  
     *                          NavSec, NavTen, NavTime, ErrorFlag)
              call converttime ('COMPRESS', DataDay, DataHour, DataMin, 
     *                         DataSec, DataTen, DataTime, ErrorFlag)
              call converttime ('COMPRESS', NavDay, NavHour, NavMin,  
     *                          NavSec, NavTen, NavTime, ErrorFlag)

Skip footer navigational links

Coastal and Marine Science Centers:  Pacific   St. Petersburg   Woods Hole  
InfoBank   Coastal and Marine Geology Program   Geologic Information   Ask-A-Geologist   USGS Disclaimer  


Accessibility FOIA Privacy Policies and Notices

Take Pride in America logo USA.gov logo U.S. Department of the Interior | U.S. Geological Survey
URL: http://walrus.wr.usgs.gov/infobank/programs/edit/automerge/automerge.doc.html
Page Contact Information: InfoBank staff
Page Last Modified: Mon Sep 16 03:37:01 PDT 2013  (chd)