Coastal & Marine Geology InfoBank

Home FACS Activities Atlas Geology School Related Sites More

USGS InfoBank program -- latlong

Skip navigational links
Loading
InfoBank Programs: by Name   by Topic  
Expanded Description
Topic Description
Name
latlong
Synopsis
/infobank/programs/plt/naved/latlong.for
Description
  Subroutine to display latitude / longitude for NAVED.

       
AUTHOR
  Clint Steele            

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

  
  call latlong                          (with the following arguments)
         MenuOption                  [variable char*1 r]
         TekWest                     [variable i*4 a]
         TekEast                     [variabl i*4 a]
         TekSouth                    [variable i*4 a]
         TekNorth                    [variable i*4 a]
         WindowNumber                [variable i*4 ar]
    
SUBROUTINES
  dwindo              (external Tektronix)          

  twindo              (external Tektronix)          
  specialmode         (internal)                    
  anykey              (internal)
  getkey              (external DRS shareable)
  changecase          (external DRS shareable)
  cursor              (internal)                    
  valid               (internal)                    
  search              (internal)                    
  point               (internal)                    
  movea               (external Tektronix)          
  movrel              (external Tektronix)          
  aoutst              (external Tektronix)          
    
FILES_USED
  unit=*(write)


    
Reads
Writes
          write (OutputLine (1:NumberCharacters), 
     *           fmt = ' (f9.5, 1x, f10.5) ') LatPosition, LongPosition
          write (OutputLine (1:NumberCharacters), 
     *           fmt = ' (f9.5, 1x, f10.5) ') 
     *           LatPosition, LongPosition + 360.0
Opens
Calls
      call dwindo (LongWestWindow (WindowNumber), 
     *             LongEastWindow (WindowNumber),
     *             LatSouthWindow (WindowNumber), 
     *             LatNorthWindow (WindowNumber) )
      call twindo (TekWest, TekEast, TekSouth, TekNorth) 
      call specialmode ('TEXT')
      call anyprompt
      call getkey (Key, KeyValue)
      call changecase ('CAPITAL', Key)
      call cursor (AsciiCode, LongPosition, LatPosition) 
          call specialmode ('TEXT')
      call valid (StatusFlag,
     *            AsciiCode, 
     *            LongPosition, 
     *            LatPosition, 
     *            WindowNumber)
          call search (Point1,
     *                 LatPosition, 
     *                 LongPosition, 
     *                 'EDITABLE', 
     *                 WindowNumber,
     *                 'D')
          call point (LatPosition, 
     *                LongPosition, 
     *                TekWest,
     *                TekEast,
     *                TekSouth,
     *                TekNorth,
     *                WindowNumber,
     *                'O')
      call movea (LongPosition, LatPosition) 
      call movrel ( CharacterWidth / -2,  CharacterHeight / -2) 
      call aoutst (NumberCharacters, 
     *             OutputLine (1:NumberCharacters) ) 
      call movrel ( ( -1 * CharacterWidth * NumberCharacters) - 115,
     *               0) 
      call aoutst (NumberCharacters, 
     *             OutputLine (1:NumberCharacters) ) 

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