Coastal & Marine Geology InfoBank

Home FACS Activities Atlas Geology School Related Sites More

USGS InfoBank program -- findmaxmin

Skip navigational links
Loading
InfoBank Programs: by Name   by Topic  
Expanded Description
Topic Description
Name
findmaxmin
Synopsis
/infobank/programs/plt/graphed/findmaxmin.for
Description
  Subroutine to search the given data set for the next time window containing

  either a maximum or a minimum data value, or both. 
       
COMMENTS
  The search starts with

  the window following the current time window then continues from the start
  of the data set up to the current window, if no data max/min values were
  found. This subroutine is called by and is internal to GRAPHED.
    
TO_USE
  call findmaxmin (time, data, ldeleted, icount, istart, startime, timespan,

                   datamin, datamax, lfound)
    
  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
    datamin - minimum data value
    datamax - maximum data value
  Output:
    lfound - indicates if another window with a data max/min was found
    istart - changed to point to first array element in new window if 
             'lfound' = .true.
    startime - changed to starting time of new window if 'lfound' = .true.
    
SUBROUTINES
  No other subroutines are called by this subroutine.

    
AUTHOR
  Ed Maple  2/20/87


    
Reads
Writes
Opens
Calls

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