Coastal & Marine Geology InfoBank

Home FACS Activities Atlas Geology School Related Sites More

USGS InfoBank program -- grid

Skip navigational links
Loading
InfoBank Programs: by Name   by Topic  
Expanded Description
Topic Description
Name
grid
Synopsis
/infobank/programs/plt/naved/grid.for
Description
  Subroutine to plot map boundary for NAVED.

       
AUTHOR
  Clint Steele          

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

  
  call grid                             (with the following arguments)
         Scale                       [variable r*4 r]
         TekWest                     [variable i*4 ar]
         TekEast                     [variable i*4 ar]
         TekSouth                    [variable i*4 ar]
         TekNorth                    [variable i*4 ar]
         WindowNumber                [variable i*4 r]
    
SUBROUTINES
  dwindo              (external Tektronix)          

  twindo              (external Tektronix)          
  movea               (external Tektronix)          
  dasha               (external Tektronix)          
  seeloc              (external Tektronix)          
  drawa               (external Tektronix)          
  reset               (external Tektronix)          
  movabs              (external Tektronix)          
  aoutst              (external Tektronix)          
  drwabs              (external Tektronix)          
  drwrel              (external Tektronix)          
  movrel              (external Tektronix)          
    
FUNCTIONS
  float               (FORTRAN intrinsic function)  

  abs                 (FORTRAN intrinsic function)  

    
Reads
Writes
      write (OutputLine (1:NumberCharacters) , 
     *       fmt = ' (f9.5) ') LatNorthWindow (WindowNumber)
      write (OutputLine (1:NumberCharacters) , 
     *       fmt = ' (f9.5) ') LatSouthWindow (WindowNumber)
          write (OutputLine (1:NumberCharacters) , 
     *           fmt = ' (f10.5) ') LongWestWindow (WindowNumber)
          write (OutputLine (1:NumberCharacters) , 
     *       fmt = ' (f10.5) ') TempLong
          write (OutputLine (1:NumberCharacters) , 
     *           fmt = ' (f10.5) ') LongEastWindow (WindowNumber)
          write (OutputLine (1:NumberCharacters) , 
     *           fmt = ' (f10.5) ') TempLong
              write (OutputLine (1:NumberCharacters) , 
     *               fmt = ' (i3) ')   LatValue (LoopCount) 
                  write (OutputLine (1:NumberCharacters) , 
     *                   fmt = ' (i4) ') LongValue (LoopCount) 
                  write (OutputLine (1:NumberCharacters) , 
     *               fmt = ' (i4) ') LongValue (LoopCount) + 360
          write (OutputLine (1:NumberCharacters) , 
     *           fmt = ' (i6) ') IntegerMiles
          write (OutputLine (1:NumberCharacters) , 
     *           fmt = ' (f6.3) ') TemporaryMiles
      write (OutputLine (1:NumberCharacters) , 5) Scale
Opens
Calls
      call dwindo (LongWestWindow (WindowNumber), 
     *             LongEastWindow (WindowNumber),
     *             LatSouthWindow (WindowNumber), 
     *             LatNorthWindow (WindowNumber) )
      call twindo (TekWest, TekEast, TekSouth, TekNorth) 
      call specialmode ('GRID')
              call movea  (float(LoopCount), 
     *                     LatSouthWindow (WindowNumber) ) 
              call dasha  (float(LoopCount), 
     *                     LatNorthWindow (WindowNumber), 7232) 
              call seeloc (LongXPosition (LongCount), 
     *                     LongYPosition (LongCount) ) 
              call movea  (LongWestWindow (WindowNumber), 
     *                     float(LoopCount)) 
              call seeloc (LatXPosition (LatCount), 
     *                     LatYPosition (LatCount) ) 
              call dasha  (LongEastWindow (WindowNumber), 
     *                     float(LoopCount), 7232) 
      call movea (LongWestWindow (WindowNumber), 
     *            LatSouthWindow (WindowNumber) ) 
      call drawa (LongWestWindow (WindowNumber), 
     *            LatNorthWindow (WindowNumber) ) 
      call drawa (LongEastWindow (WindowNumber), 
     *            LatNorthWindow (WindowNumber) ) 
      call drawa (LongEastWindow (WindowNumber), 
     *            LatSouthWindow (WindowNumber) ) 
      call drawa (LongWestWindow (WindowNumber), 
     *            LatSouthWindow (WindowNumber) ) 
      call reset
      call movabs (TekWest - 
     *            (CharacterWidth * NumberCharacters) - 53, 
     *             TekNorth - (CharacterHeight / 2) ) 
      call aoutst (NumberCharacters, 
     *             OutputLine (1:NumberCharacters) ) 
      call movabs (TekWest - 
     *            (CharacterWidth * NumberCharacters) - 53, 
     *             TekSouth - ( (CharacterHeight / 2) - 5) ) 
      call aoutst (NumberCharacters, 
     *             OutputLine (1:NumberCharacters) ) 
      call movabs (TekWest - 
     *            (CharacterWidth * NumberCharacters) -55, 
     *             TekSouth - CharacterHeight - 15) 
      call aoutst (NumberCharacters, 
     *             OutputLine (1:NumberCharacters) ) 
      call movabs (TekEast - 
     *            (CharacterWidth * NumberCharacters) - 67, 
     *             TekSouth - CharacterHeight - 15) 
      call aoutst (NumberCharacters, 
     *             OutputLine (1:NumberCharacters) ) 
              call movea ( float(LatXPosition (LoopCount))
     *                    - (CharacterWidth * NumberCharacters / 2.0)
     *                    - 30.0,
     *                     float(LatYPosition (LoopCount))   
     *                    + (CharacterHeight / 2.0) 
     *                    - 12.0)
              call aoutst (NumberCharacters, 
     *                     OutputLine (1:NumberCharacters) ) 
              call movea ( float(LongXPosition (LoopCount)) 
     *                    - (CharacterWidth * NumberCharacters) - 2.0,
     *                     float(LongYPosition (LoopCount)) 
     *                    - (CharacterHeight / 2.0) 
     *                    + 10.0)
              call aoutst (NumberCharacters, 
     *                     OutputLine (1:NumberCharacters) ) 
      call dwindo (LongWestWindow (WindowNumber), 
     *             LongEastWindow (WindowNumber),
     *             LatSouthWindow (WindowNumber), 
     *             LatNorthWindow (WindowNumber) )
      call twindo (TekWest, TekEast, TekSouth, TekNorth) 
      call aoutst (1, OutputLine (1:1) ) 
      call movabs (BarStart, 742) 
      call drwabs (BarStart + BarEnd,   742) 
      call movabs (BarStart + BarEnd - 45,  755) 
          call aoutst (NumberCharacters, 
     *                 OutputLine (1:NumberCharacters) ) 
          call aoutst (NumberCharacters, 
     *                 OutputLine (1:NumberCharacters) ) 
      call aoutst (NumberCharacters, 
     *             OutputLine (1:NumberCharacters) ) 
      call movabs (BarStart, 743) 
      call drwrel (0, 10) 
          call movrel (BarTicks, -10) 
          call drwrel (0, 10) 
      call movabs (TekEast / 2 - 75, 720) 
      call aoutst (NumberCharacters, 
     *             OutputLine (1:NumberCharacters) ) 
      call specialmode ('EDITABLE')

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