Coastal & Marine Geology InfoBank

Home FACS Activities Atlas Geology School Related Sites More

USGS InfoBank program -- showdata

Skip navigational links
Loading
InfoBank Programs: by Name   by Topic  
Expanded Description
Topic Description
Name
showdata
Synopsis
/infobank/programs/plt/naved/showdata.for
Description
  Subroutine to display data of closest fix for NAVED.

       
AUTHOR
  Clint Steele           

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

  
  call showdata                         (with the following arguments)
         MenuOption                  [variable char*1 r]
         FileStatus                  [variable char*11 r]
         TekWest                     [variable i*4 r]
         TekEast                     [variable i*4 r]
         TekSouth                    [variable i*4 r]
         TekNorth                    [variable i*4 r]
         WindowNumber                [variable i*4 ar]
         ModifiedData                [variable char*3 s]
    
SUBROUTINES
  specialmode         (internal)                    

  getkey              (external DRS shareable)
  changecase          (external DRS shareable)
  cursor              (internal)                    
  valid               (internal)                    
  search              (internal)                    
  point               (internal)                    
  findtime            (internal)                    
  makepoint           (internal)                    
  pointa              (external Tektronix)          
  converttime         (external DRS shareable routine)
    
FUNCTIONS
  index               (FORTRAN intrinsic function)  

    
FILES_USED
  unit=*(read,write)


    
Reads
                  read (*, ' (a17) ', end = 99) 
     *                     CoastEditLine (CoastEditFlag 
     *                        (Point1) )
                  read (*, ' (a17) ', end = 99) 
     *                     CoastBackLine (CoastBackFlag 
     *                        (Point1) )
Writes
          write (OutputLine (1:NumberCharacters) , 3) 
     *         TemporaryDay, 
     *         TemporaryHour, 
     *         TemporaryMinute, 
     *         TemporarySecond, 
     *         TemporaryTenths
Opens
Calls
      call specialmode ('TEXT')
      call anyprompt
      call getkey (Key, KeyValue)
      call changecase ('CAPITAL', Key)
      call cursor (AsciiCode, Longitude, Latitude) 
          call specialmode ('TEXT')
      call valid (StatusFlag,
     *            AsciiCode, 
     *            Longitude, 
     *            Latitude, 
     *            WindowNumber)
          call search (Point1,
     *                 Latitude, 
     *                 Longitude, 
     *                 'EDITABLE', 
     *                 WindowNumber,
     *                 'D')
          call search (Point1,
     *                 Latitude, 
     *                 Longitude, 
     *                 'BACKGROUND', 
     *                 WindowNumber,
     *                 'D')
      call point (LatPoint1, 
     *            LongPoint1, 
     *            TekWest,
     *            TekEast,
     *            TekSouth,
     *            TekNorth,
     *            WindowNumber,
     *            'O')
      call findtime (Point2,
     *               FileType, 
     *               TimePoint1, 
     *               WindowNumber)
      call pointa (LongPoint1, LatPoint1) 
          call converttime ('EXPAND  ', 
     *                       TemporaryDay, 
     *                       TemporaryHour, 
     *                       TemporaryMinute, 
     *                       TemporarySecond, 
     *                       TemporaryTenths, 
     *                       TimePoint1,
     *                       TimeStatusFlag)
          call movrel ( CharacterWidth, CharacterHeight / -2)
          call aoutst (NumberCharacters, 
     *                 OutputLine (1:NumberCharacters) ) 
          call specialmode ('TEXT')
          call yesno ('Y[N]', Key) 
          call changecase ('CAPITAL', Key)

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