Coastal & Marine Geology InfoBank

Home FACS Activities Atlas Geology School Related Sites More

USGS InfoBank program -- draw

Skip navigational links
Loading
InfoBank Programs: by Name   by Topic  
Expanded Description
Topic Description
Name
draw
Synopsis
/infobank/programs/plt/graphed/draw.for
Description
  Subroutine to take arrays of x coordinates and y coordinates and plots them,

  connecting the points with lines. 
       
COMMENTS
  It can plot the whole arrays, or segments

  of them, depending on the arguments passed in. It will also show gaps 
  indicating gaps in time and the current time window number being displayed.
  The x array is assumed to be time in real tenths of a second. This
  subroutine is called by and is internal to GRAPHED. It is also called
  extensively by the following GRAPHED subroutines: restoreseg, deleteseg,
  restore, delete, showxy.
    
TO_USE
  call draw (time, data, ldeleted, icount, istart, startime, timespan,

             timegap, aline)
    
  Input:
    time - array of time in real tenths of a second from the input file
    data - array of data from the input file
    ldeleted - array of flags indicating whether an array element has been 
               deleted
    icount - number of items in the arrays
    istart - pointer to the first array element in the current time window
    startime - starting time for current window in tenths of a second
    timespan - width of the x axis in real tenths of a second
    timegap - minimum visible time gap
    aline - entire input line
    
SUBROUTINES
  Internal to GRAPHED: screenmessage

  External PLOT10: erase, pointa, drawa
    
AUTHOR
  Ed Maple  2/20/87


    
Reads
Writes
      write (amessage, '(80x)')
      write (amessage, '(a,i3,3x,15a)') 
     *    'Window # ',iwindow,
     *    aline(istart)(1:4),'/',
     *    aline(istart)(5:7),'/',
     *    aline(istart)(8:11),'/',
     *    aline(istart)(12:14),
     *    '---',
     *    aline(jpoint)(1:4),'/',
     *    aline(jpoint)(5:7),'/',
     *    aline(jpoint)(8:11),'/',
     *    aline(jpoint)(12:14)
Opens
Calls
      call erase
      call pointa (time (jpoint), data (jpoint) )
                  call drawa (time (jpoint), 
     *                        data (jpoint) )
                  call pointa (time (jpoint), 
     *                         data (jpoint) )
      call stringlen (amessage, length)
      call screenmessage (amessage(1:length))

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