Coastal & Marine Geology InfoBank

Home FACS Activities Atlas Geology School Related Sites More

USGS InfoBank program -- replace

Skip navigational links
Loading
InfoBank Programs: by Name   by Topic  
Expanded Description
Topic Description
Name
replace
Synopsis
/infobank/programs/plt/naved/replace.for
Description
  Subroutine to replace data with data from other file for NAVED.

       
AUTHOR
  Clint Steele             

    
USAGE
  "a" = argument, "r" = referenced, "s" = set

  
  call replace                          (with the following arguments)
         NumberEdit            [variable i*4 sr]
         FileStatus            [variable char*11 r]
         NumberBack            [variable i*4 r]
         StatusFlag            [variable char*4 ar]
         WindowNumber          [variable i*4 ar]
         TekWest               [variable i*4 ar]
         TekEast               [variable i*4 ar]
         TekSouth              [variable i*4 ar]
         TekNorth              [variable i*4 ar]
    
SUBROUTINES
  dwindo              (external Tektronix)          

  twindo              (external Tektronix)          
  arrow               (internal)                    
  specialmode         (internal)                    
  getkey              (external DRS shareable)
  changecase          (external DRS shareable)
  cursor              (internal)                    
  valid               (internal)                    
  search              (internal)                    
  point               (internal)                    
    
FUNCTIONS
  index               (FORTRAN intrinsic function)  

    
FILES_USED
  unit=*(write)


    
Reads
Writes
Opens
Calls
      call dwindo (LongWestWindow (WindowNumber), 
     *             LongEastWindow (WindowNumber),
     *             LatSouthWindow (WindowNumber), 
     *             LatNorthWindow (WindowNumber))
      call twindo (TekWest, TekEast, TekSouth, TekNorth) 
          call arrowedit (1,
     *                'START',
     *                TekWest,
     *                TekEast,
     *                TekSouth,
     *                TekNorth,
     *                WindowNumber)
                  call arrowedit (LoopCount - 1,
     *                        'END',
     *                        TekWest,
     *                        TekEast,
     *                        TekSouth,
     *                        TekNorth,
     *                        WindowNumber)
                  call arrowedit (LoopCount,
     *                        'START',
     *                        TekWest,
     *                        TekEast,
     *                        TekSouth,
     *                        TekNorth,
     *                        WindowNumber)
          call arrowedit (NumberEdit,
     *                'END',
     *                TekWest,
     *                TekEast,
     *                TekSouth,
     *                TekNorth,
     *                WindowNumber)
           call arrowback (1,
     *                 'START',
     *                 TekWest,
     *                 TekEast,
     *                 TekSouth,
     *                 TekNorth,
     *                 WindowNumber)
                   call arrowback (LoopCount - 1,
     *                         'END',
     *                         TekWest,
     *                         TekEast,
     *                         TekSouth,
     *                         TekNorth,
     *                         WindowNumber)
                   call arrowback (LoopCount,
     *                         'START',
     *                         TekWest,
     *                         TekEast,
     *                         TekSouth,
     *                         TekNorth,
     *                         WindowNumber)
           call arrowback (NumberBack,
     *                 'END',
     *                 TekWest,
     *                 TekEast,
     *                 TekSouth,
     *                 TekNorth,
     *                 WindowNumber)
      call specialmode ('TEXT')
      call anyprompt
      call getkey (Key, KeyValue)
      call changecase ('CAPITAL', Key)
      call cursor (AsciiCode, 
     *             OldLongEditStart  ,
     *             OldLatEditStart)
          call specialmode ('TEXT')
      call valid (StatusFlag,
     *            AsciiCode,
     *            OldLongEditStart  , 
     *            OldLatEditStart, 
     *            WindowNumber)
      call search (ChangeStartEdit    ,
     *             OldLatEditStart, 
     *             OldLongEditStart  , 
     *             'EDITABLE', 
     *             WindowNumber,
     *             'D')
      call point (LatEdit  (ChangeStartEdit    ), 
     *            LongEdit (ChangeStartEdit    ), 
     *            TekWest,
     *            TekEast,
     *            TekSouth,
     *            TekNorth,
     *            WindowNumber,
     *            'O')
      call specialmode ('TEXT')
      call anyprompt
      call getkey (Key, KeyValue)
      call changecase ('CAPITAL', Key)
      call cursor (AsciiCode, OldLongEditEnd, OldLatEditEnd) 
          call specialmode ('TEXT')
      call valid (StatusFlag,
     *            AsciiCode, 
     *            OldLongEditEnd, 
     *            OldLatEditEnd, 
     *            WindowNumber)
      call search (ChangeEndEdit ,
     *             OldLatEditEnd, 
     *             OldLongEditEnd, 
     *             'EDITABLE', 
     *             WindowNumber,
     *             'D')
          call specialmode ('TEXT')
      call point (LatEdit  (ChangeEndEdit ), 
     *            LongEdit (ChangeEndEdit ), 
     *            TekWest,
     *            TekEast,
     *            TekSouth,
     *            TekNorth,
     *            WindowNumber,
     *            'O')
          call specialmode ('TEXT')
          call anyprompt
          call getkey (Key, KeyValue)
          call changecase ('CAPITAL', Key)
          call cursor (AsciiCode, 
     *                 OldLongBackStart,
     *                 OldLatBackStart)
              call specialmode ('TEXT')
          call valid (StatusFlag,
     *                AsciiCode,
     *                OldLongBackStart, 
     *                OldLatBackStart, 
     *                WindowNumber)
          call search (ChangeStartBack,
     *                 OldLatBackStart, 
     *                 OldLongBackStart, 
     *                 'BACKGROUND', 
     *                 WindowNumber,
     *                 'D')
          call point (LatBack  (ChangeStartBack), 
     *                LongBack (ChangeStartBack), 
     *                TekWest,
     *                TekEast,
     *                TekSouth,
     *                TekNorth,
     *                WindowNumber,
     *                'O')
          call specialmode ('TEXT')
          call anyprompt
          call getkey (Key, KeyValue)
          call changecase ('CAPITAL', Key)
          call cursor (AsciiCode, OldLongBackEnd, OldLatBackEnd) 
              call specialmode ('TEXT')
          call valid (StatusFlag,
     *                AsciiCode, 
     *                OldLongBackEnd, 
     *                OldLatBackEnd, 
     *                WindowNumber)
          call search (ChangeEndBack,
     *                 OldLatBackEnd, 
     *                 OldLongBackEnd, 
     *                 'BACKGROUND', 
     *                 WindowNumber,
     *                 'D')
              call specialmode ('TEXT')
          call point (LatBack  (ChangeEndBack), 
     *                LongBack (ChangeEndBack), 
     *                TekWest,
     *                TekEast,
     *                TekSouth,
     *                TekNorth,
     *                WindowNumber,
     *                'O')

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/plt/naved/replace.doc.html
Page Contact Information: InfoBank staff
Page Last Modified: Mon Sep 16 03:39:14 PDT 2013  (chd)