Coastal & Marine Geology InfoBank

Home FACS Activities Atlas Geology School Related Sites More

USGS InfoBank program -- metamucil

Skip navigational links
Loading
InfoBank Programs: by Name   by Topic  
Expanded Description
Topic Description
Name
metamucil
Synopsis
/infobank/programs/dsmpl/metamucil/metamucil.for
Description
  Program to create a file of evenly spaced times.

       
PROCESS
  All times will be

  multiples of the user supplied time rate. Gaps greater than the user
  supplied acceptable time jump are preserved.
    
PROMPTS
  Enter input file name:

  Enter output file name:
  Enter your desired record frequency in D/H/M/S/T format:
  DDDHHMMSST
  Enter the maximum acceptable time jump in D/H/M/S/T format:
  DDDHHMMSST
    
SUBROUTINES
  converttime (Shared image)

  openem      (Shared image)
    
AUTHOR
  Ed Maple  12/4/89  Redesigned from the old version by Barb Blubaugh.

  Improvements include:
      Better design, more readable code. Eliminated bug in which some
      gaps that were less than the maximum acceptable time gap 
      wouldn't be filled.

    
Reads
          read (*, '(i4,i3,3i2,i1)') Year, Day, Hour, Minute, 
     *            Second, Tenth
          read (*, '(i4,i3,3i2,i1)') Year, Day, Hour, Minute, 
     *                               Second, Tenth
      read (InputUnit, '(i4,i3,3i2,i1)') 
     *     Year, Day, Hour, Minute, Second, Tenth
              read (InputUnit, '(i4,i3,3i2,i1)', end = 900,
     *              iostat = ErrorFlag) 
     *             Year, Day, Hour, Minute, Second, Tenth
Writes
                  write (OutputUnit, '(i4.4,i3.3,3i2.2,i1)')
     *                Year, Day, Hour, Minute, Second, Tenth
              write (OutputUnit, '(i4.4,i3.3,3i2.2,i1)')
     *            Year, Day, Hour, Minute, Second, Tenth
          write (OutputUnit, '(i4.4,i3.3,3i2.2,i1)')
     *        Year, Day, Hour, Minute, Second, Tenth
Opens
Calls
      call openem (1, -1)
          call converttime ('COMPRESS', Day, Hour, Minute, Second,
     *                      Tenth, Frequency, TimeError)
          call converttime ('COMPRESS', Day, Hour, Minute, Second,
     *                      Tenth, MaxJump, TimeError)
      call converttime ('COMPRESS', Day, Hour, Minute, Second, Tenth,
     *                  FirstTime, TimeError)
              call converttime ('COMPRESS', Day, Hour, Minute, Second,
     *                          Tenth, EndTime, TimeError)
                  call converttime ('EXPAND', Day, Hour, Minute, Second,
     *                              Tenth, OutputTime, TimeError)
              call converttime ('EXPAND', Day, Hour, Minute, Second,
     *                          Tenth, StartTime, TimeError)
          call converttime ('EXPAND', Day, Hour, Minute, Second,
     *                      Tenth, OutputTime, TimeError)

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