Link to USGS home page Link to InfoBank home page Link to InfoBank home page
 USGS Coastal and Marine Geology banner.    Search InfoBank.
USGS InfoBank program -- facs2equipment Skip navigational links
Home tab Atlas tab Activities tab FACS tab Geology School tab More tab Activities tabs
   
InfoBank Programs: by Name   by Data Type   General Tools   GIS   Plotting   Web   USGS Disclaimer   InfoBank Programs   Boothill  
   
Expanded description
Topic Description
Name
facs2equipment
Synopsis
/infobank/programs/refmt/facs2equipment/facs2equipment.for
Description
  Program to convert a .equipment_log file 
  to a .equipmentused file.  
    
Author
  Clint Steele   12/7/2000

    
Promts
  'Enter non-hyphenated ActivityID'

    
Input
  (EquipSystem, EquipType, EquipmentCode, EquipmentBrand, 

   EquipmentModel, EquipmentMedia, Comment)
  (a,t,a,t,a,t,a,t,a,t,a,t,a)
    
Output
  (ActivityID, Equipment)

  (a7, t10, a)

    
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))

    
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),             ! EquipmentSystem
*        ALine(Tabs(1)+1:Tabs(2)-1),     ! EquipmentType
*        ALine(Tabs(3)+1:Tabs(4)-1),     ! EquipmentBrand
*        ALine(Tabs(4)+1:Tabs(5)-1),     ! EquipmentModel
*        ALine(Tabs(5)+1:Tabs(6)-1),     ! EquipmentMedia
*        ALine(Tabs(2)+1:Tabs(3)-1),     ! EquipmentCode
*        ALine(Tabs(6)+1:ALineLength)    ! Comment

    
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

InfoBank   Menlo Park Center   Santa Cruz Center   St. Petersburg Center   Woods Hole Center   Coastal and Marine Geology Program  
U. S. Department of the Interior   U. S. Geological Survey   Geologic Information   Ask-A-Geologist   USGS privacy statement   Disclaimer  

URL: http://walrus.wr.usgs.gov/infobank/programs/refmt/facs2equipment/facs2equipment.doc.html
Maintainer: Clint Steele
Comments: e-mail
Last modified: Wed Oct 27 03:16:36 PDT 2004  (wcs)