Coastal & Marine Geology InfoBank

Home FACS Activities Atlas Geology School Related Sites More

USGS InfoBank program -- facs2crew_orig

Skip navigational links
Loading
InfoBank Programs: by Name   by Topic  
Expanded Description
Topic Description
Name
facs2crew_orig
Synopsis
/infobank/programs/refmt/facs2crew/facs2crew_orig.for
Description
  Program to convert a .crew_log file 

  to a .crew file and a .chief_from_crewlog. 
       
AUTHOR
  Clint Steele   12/7/2000

    
PROMTS
  'Enter non-hyphenated ActivityID'

    
INPUT
  (Name, Responsability, Affiliation)

  (a,t,a,t,a)
    
OUTPUT
  (ActivityID, CrewMember, Responsability, Organization)

  (a, t10, a, ',  ', a, ', ', a)

    
Reads
      read (5, '(q,a)', end=999)
     *      IDLength, ID(1:IDLength)
          read (90, '(q,a)', end = 199)
     *        ALineLength, ALine(1:ALineLength)
          read (90, '(q,a)', end = 99)
     *        ALineLength, ALine(1:ALineLength)
Writes
      write (BigID, '(10x)')
      write (InFile, '(1024x)')
      write (OutFile, '(1024x)')
          write (91, 8) BigID,               ! ActivityID
     *      ALine(1:Tabs(1)-1),            ! CrewMember Name
     *      ALine(Tabs(1)+1:Tabs(2)-1),    ! Responsability
     *      ALine(Tabs(2)+1:ALineLength)   ! Organization / Affiliation
          write (91, 81) BigID,
     *      ALine(1:Tabs(1)-1)
          write (91, 82) BigID,
     *      ALine(1:Tabs(1)-1),
     *      ALine(Tabs(1)+1:Tabs(2)-1)
            write (91, 82) BigID,
     *      ALine(1:Tabs(1)-1),
     *      ALine(Tabs(2)+1:ALineLength)
              write (92, '(a,t10,a)') BigID,       ! ActivityID
     *                       ALine(1:Tabs(1)-1)    ! CrewMember Name
Opens
      open (unit = 90,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'old',
     *      name = InFile(1:InFileLength),
     *      err = 2)
      open (unit = 91,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = OutFile(1:OutFileLength))
              open (unit = 92,
     *              access = 'append',
     *              form = 'formatted',
     *              status = 'unknown',
     *              name = OutFile(1:OutFileLength-4)//
     *                     'chief_from_crewlog')
Calls
      call changecase ('SMALLS', ID(1:IDLength))
      call changecase ('CAPITALS', BigID(1:IDLength))
      call stringlen (InFile, InFileLength)
      call stringlen (OutFile, OutFileLength)

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