reproduced from best avmuttccottprogram extract currently extracts the following data for each well...
TRANSCRIPT
UNITED STATES DEPARTMENT OF THE INTERIOR
GEOLOGICAL SURVEY
EXTRACT: A FORTRAN Program to Retrieve
Selected Well History Control System (WHCS) Data
By
Suzanne I. Weston and Thaddeus S. Dyman
Open-File Report 81-29
1931
REPRODUCED FROM BEST AVMUttCCOtt
This report is preliminary and has not been reviewed for conformity with the U.S. Geological Survey editorial standards. Any use of trade names is for descriptive purposes only and does not imply endorsement by the USGS.
TABLE OF CONTENTS
Page
Introduction 1
Program Description 3
Program Execution 6
Restart Procedure- 12
Sample Processing Statistics 14
Appendix A Sort Paramater Analysis 17
Appendix B Guidelines for Program Expansion 20
Appendix C Definition of Variables 25
Appendix D EXTRACT Program Code 35
INTRODUCTION
The Well History Control System (WHCS) is a large digital data file
containing geological and engineering data on more than one million oil and
gas wells drilled in the United States. Specific data categories include:
1. well location, identification, and classification,
2. initial potential and production tests,
3. formation tops and bases,
4. core data,
5. drill stem and wireline tests,
6. miscellaneous data including logs, shows, casing description, and
hole deviation.
The WHCS file is owned and maintained by Petroleum Information Corporation
(PI) of Denver, Colorado, and is directly accessed by the U.S. Geological
Survey through a contract with PI.
Applications to WHCS within the U.S. Geological Survey include:
1. resource appraisal and basin evaluation
2. field and reservoir engineering and production problems,
3. regional stratigraphic correlation, and
4. special aquifer and formation studies.
The WHCS file is being used extensively throughout the U.S. Geological
Survey, but no large scale effort has yet been made to process this data on
Survey computers. To best retrieve and manipulate WHCS data for printed and
graphic output, an efficient database management system and related processing
routines are required.
As a first step in that direction, EXTRACT was written to selectively
retrieve and output stratigraphic and production data for the state of
Colorado from WHCS on the Honeywell MIJLTICS System. EXTRACT is a FORTRAN IV
program and, with the exception of calls to five system routines, is system
independent.
The purpose of this report is to present EXTRACT for continued use and
modification, and describe the level of programming effort and computer time
required for data retrieval. Included with the program code and documentation
are program expansion and modification guidelines, a sort parameter analysis,
and a sample processing cost analysis.
Large and small letters in key-in commands (e.g., Whcs, extract) should be typed as shown; however, capital letters are used in descriptions (e.g., EXTRACT) to clarify meaning.
PROGRAM DESCRIPTION
EXTRACT can best be described in terms of its three main functions:
extract, sort, and print.
The extract portion of the program reads each 80 character record of the
Colorado WHCS file (reading, consecutively, either single or multisegment
files FILE 15, FILE 16, ...FILEN, excluding FILE41 and FILE42), compares the
card class of the record with a set of user-defined card classes and extracts
specified data from the record if card classes match, and writes the extracted
data to a file (FILE09) using one of three record formats. Three formats are
used per well unit rather than just one, due to the large amount of data that
could be extracted. The record types currently defined are:
1. all data extracted except initial potential tests (IP's) and
production tests (PDT's),
2. initial potential tests, and
3. production tests.
Due to the sorting algorithm, the data to be sorted is written at the
beginning of each record.
The data format used for EXTRACT is known as the PI WHCS Storage File Format. Each record contains the following:
cc 1-14 API numbercc 15-20 blankcc 21-25 card classcc 26-80 data.
Program EXTRACT currently extracts the following data for each well unit
and writes it to FILE09 in approximately this order:
API number,
township,
range,
section,
spot,
state,
county,
well number,
well name,
operator elevation,
drill depth for the Dakota formation (602DKOT ,
602DKOTD, 602DKOTJ),
IP's for the Dakota formation (602DKOT ,
602DKOTD, 602DKOTJ),
PDT's for the Dakota formation (602DKOT ,
602DKOTD, 602DKOTJ)
In case of an abnormal termination during the extract process, a restart
capability exists. See Restart Procedure, p. 12.
The sort portion of the program consists of a call to a system sort
routine (see Appendix A, Sort Parameter Analysis) which sorts the extracted
file (FILE09) in the order defined by file SORTDES, placing the results in a
second file (FILE10). The following data is sorted in the order listed:
township,
range,
section,
API number, and
record number
where record number is an internal device for sorting purposes. When the
sorting process is completed, FILE09 is deleted by a call to the system
routine DELETE.
The print portion of the program reads each record of the sorted file
(FILE10) and writes the data contained in that record to a second file
(FILE 11) in a format that can be easily read by the user. The system routine
DPRINT is then called which causes FILE11 to be listed on the printer.
PROGRAM EXECUTION
EXTRACT.FORTRAN is the program source name in the USGS Denver MULTICS
directory >udd>Whcs>TDyman for the program EXTRACT (see Appendix D, Program
Code) used to extract specific data from the Colorado WHCS file (FILE15,
...FILEN), write the extracted data to FILE09, sort FILE09, write the sorted
data to FILE10, and write the sorted data in an easy-to-read format in FILE11.
EXTRACT.FORTRAN consists of main program EXTRACT, which calls the three
subroutines WRSUB, SORT?, and RESTRT, the five KULTICS system routines SORT,
DELETE, DPRINT, OPEN and CF (Close File), and BLOCK DATA. Refer to figure 1
for an overview of the system.
To compile EXTRACT.FORTRAN, key in:
ft extract -card
Prior to running EXTRACT, determine if the user space is large enough for
the expected output by keying in
gq >udd>Whcs
To execute the program EXTRACT key in:
extract
EXTRACT will present a task menu with the following choices:
1 = extract, sort, print (default)
2 = extract, sort, print restart
3 = extract
4 = extract restart
5 = sort
6 = print
7 = sort, print
/TY
~\I L
^rx-
FIL
E0
9
FIL
E
10
>*
SO
RT
P
M
FIL
E
11
I I
FIL
E
* W
-'I |
FIL
E
* h
>-l
CF
iv
v v
/ i_
_
OPEN
I i
y**
"I
BO
RT
DE
a
DE
LE
TE
I
( F
ILE
11
}->
| D
PR
INT
J
V
7
I-_
__
_I
listin
g
FIG
UR
E
1 S
YS
TE
M O
VE
RV
IEW
Decide which task you wish to accomplish and input the appropriate value. The
responses 0, 1 and carriage return are equivalent.
Selecting task 1 will result in completing all three program functions:
extract, sort, and print (assuming the program terminates normally).
Selecting task 3 will result in extracting data only, and the sort and print
functions will not be done. Tasks 5 and 6 will cause only sorting and only
printing, respectively, and task 7 will cause only the combination of sorting
and printing. Refer to Restart Procedure, p. 12, for a description of tasks 2
and 4 and for more information about tasks 5, 6, and 7.
EXTRACT will then ask for the logical FORTRAN unit of the last file to be
read, where it is assumed the first file to be read is FILE 15. Thus, if 17 is
the response, EXTRACT will extract data from the following files in order:
FILE 15, FILE 16, FILE 17. The extracted data is always output to FILE09.
So that the program's progress may be monitored, EXTRACT prints various
messages on the user's terminal during execution. The first message which
appears during the extract process lists the card classes for which data is to
be extracted. Then every time data is extracted for 50 well units, the API
number of the well unit just completed is printed, and after 1,000 well units
have been processed, the value of the well unit counter is printed. (The 50
interval may be changed by modifying variable MESINT. See Appendix C,
Definition of Variables). The first message that appears during the sort
process indicates that sorting is about to take place. When sorting is
completed, the number of records sorted is given and another message indicates
that FILE09 is about to be deleted. The first message which appears during
the print process indicates that FILE 11 is about to be written. As in the
extract process, a message appears every time data for 50 (and 1,000) well
units has been written. (Variable MESINT defines this interval also). Then a
message indicates that FILE 11 is being sent to the printer to be listed. A
sample terminal session is shown in figure 2.
NOTE
After running EXTRACT, and prior to re-running EXTRACT during the same
login session, the following must be keyed in:
rl -a
new__proc
If not done, data will not be initialized properly.
extractselect tasks
1= extract, sort, print (default)2= extract, sort, print restart3= extract4= extract restart5= sort6= print7= sort, print
1input unit of last input file to be read 16
extracting data for the following card classes
1 010 1 021 110 120 121 130 211 250 1 252 1 254 1 5110512105480000005121055300000051210557900000512105630000005121056800000051210572900000512105778000005121058280000051210587800000512105929000005121059790000051210602900000512106080000005121061300000051210617900000512106228000005121062780000051210632800000512106378000005121064280000
well unit 100005121064780000051210652900000512106581000005121066820000
sorting file09 into filelO
FIGURE 2. SAMPLE EXTRACT TERMINAL SESSION
10
deleting file09
writing file 11 in user format
05121054800000 05121055300000 05121055790000 05121056300000 05121056800000 05121057290000 05121057780000 05121058280000 05121058780000 05121059290000 05121059790000 05121060290000 05121060800000 05121061300000 05121061790000 05121062280000 05121062780000 05121063280000 05121063780000 05121064280000
well unit 1000 05121064780000 05121065290000 05121065810000 05121066820000
printing filell1 request signalled, 4 already in printer queue 3
STOPR 1511.1 03/21/79 $21.83 $57.40
FIGURE 2. SAMPLE EXTRACT TERMINAL SESSION (continued)
11
RESTART PROCEDURE
A restart capability has been provided for abnormal program
termination. After the termination, respond "no" to any system query
regarding file closure. Then key in
abc file09
abc file12
rl -a
new_proc
If EXTRACT has terminated after the extract process has been completed (i.e.,
during the sort or print portions), the program may be restarted such that
only the remaining functions are executed. Select one of the following tasks
from the task menu:
5 = sort
6 = print
7 = sort, print
If there is uncertainty that the extract function has been completed, one of
the extract restart tasks may be selected as described below.
If EXTRACT is interrupted during the extract process, the program may be
restarted by selecting one of the following tasks from the task menu:
2 = extract, sort, print restart
4 = extract restart
12
The program retains file unit and record count information at the time of
an abnormal termination on FILE12 When the extract portion of the program
is restarted, the appropriate data file is positioned at the first record of
the next well unit to be processed, and the output file (FILE09) is positioned
immediately after the last record written for the last well unit completely
processed. Any combination of multisegment and single segment files can be
processed. Obviously, the larger the file, the greater the number of records
that must be read to position the file correctly during a restart.
FILE12 is deleted upon normal program termination,
13
SAMPLE PROCESSING STATISTICS
Processing statistics for a sample EXTRACT test is as follows:
Input file:
Output files:
unsorted:
sorted:
print:
Run cost:
cost:
date:
time of day:
FILE15
FILE 09
FILE10
FILE 11
$7.90
1/24/79
1300
11895 records
935 records
935 records
3087 records
560 well units
Print cost ($1.31 per 1000 lines):
$15.59 FILE15
$ 2.53 FILE10
$ 4.05 FILE 11
14
Actual processing statistics for one run of the full Colorado WHCS file
are:
Input files: FILE 15, ...FILE94
Output files: FILE09/10
FILE 11
Run cost:
Extract function (includes restart)
Sort function
Print function
Miscellaneous costs:
Miscellaneous terminal costs
Read tape
DIVMUL*
Storage cost ($.20/page/month
for 12000 pages public space)
Print cost: FILE 11 158.00
592,821 records
38,000 records
120,000 records
$181.00
37.00
58.00
30.00
84.00
110.00
80.00/day
Please note a reduction in total run cost can be achieved by inodifiying
the program source to make FILE09 and FILE10 unformatted. If this is done,
the argument list to SORT must be modified (see Appendix A, Sort Parameter
Analysis).
User utility program to convert multisegment files to single segment files This operation may not be cost effective.
15
A savings in disk storage (and consequently run time) could also be
achieved by rewriting the WHCS file such that a new record is created for each
well unit. The new record, the zeroes record (00000), would contain the 14
character well unit API number. The first 20 characters for each of the
remaining well unit records could then be deleted, avoiding a redundancy in
storage of both the API number and the 5 extra blank characters. At the same
time, the file could be written as unformatted, thereby achieving an
additional savings.
16
Appendix A
SORT PARAMETER ANALYSIS
17
SORT PARAMETER ANALYSIS
EXTRACT calls a system routine, SORT, to sort the data residing in file
FILE09 into file FILE 10, where the fields sorted are township, range, section,
API number and record number (in that order). The routine SORT is
specifically used because it sorts multisegment files.
The subroutine call within EXTRACT is:
call sort ("-ids","record__stream__ -target vfile__
file09", "-ods","record__stream_ -target
vfile_ filelO", ff-td", ">udd>Whcs>TDyman",
"-sd","sortdes")
where the input file (FILE09) and output file (FILE 10) are unstructured (i.e.,
ASCII), >udd>Whcs>TDyman is the temporary working directory, and SORTDES is
the file containing the sort description.
The sort description is:
keys: char(12) 3(18) char(12) 6(18) char(ll) 9(18)
char(U) 0 char(12) 12(9)
and can be explained as follows:
The format of each record in FILE09 is
VA8, A6,, JA4 ̂ JA4, 2A4,A3., 12,...^r
API TWP rge sec rec #
Thus, to sort the township field (char(12) 3(18)), for example, note the
following:
1. the field is a character string (char);
2. it is 12 characters long (12);
3. it begins in the third word of the record (one word = 4 characters)
(3);
4. it begins in the 18th bit of the word (one character = 9 bits) (18);
where counting begins with word 0 and bit 0.
19
Appendix B
GUIDELINES FOR PROGRAM EXPANSION
20
GUIDELINES FOR PROGRAM EXPANSION
A. If additional types of data are to be extracted from the Colorado WHCS
file, the following guidelines may be helpful in modifying the program:
1. If the program searches for the card class corresponding to the new
data, modify the code (e.g., add a DECODE statement) in EXTRACT for
that card class.
2. If the program does not search for the card class corresponding to the
new data,
a. add the new card class (in any order) to the KLSD DATA statement
in BLOCK DATA;
b. increment the number of card classes searched for (NKLS DATA
statement in BLOCK DATA);
c. update the KLSD array size in all DIMENSION statements;
d. add the new section of code extracting the data anywhere in
EXTRACT, putting the label for that new section in the
GO TO statement (in the proper order) prior to label 130;
e. if necessary, modify the statement prior to label 130 that checks
for 3xx, 4xx and 6xx records.
3. If data is to be extracted for additional formations,
a. add the new formations to the FORMD DATA statement in BLOCK DATA;
b. increment the number of formations searched for (NFORM DATA
statement in BLOCK DATA);
c. update the dimensions of all arrays which are dimensioned by NFORM
in all CHARACTER and DIMENSION statements (refer to Appendix C,
Definition of Variables);
21
d. change the value 3 corresponding to the present value of NFORM to
the new value of NFORM in FORMAT 9110 in WRSUB and FORMAT 9210
in SORTP.
4. Add new variables to the appropriate CHARACTER and/or DIMENSION and
COMMON statements in all routines.
5. Decide whether the new data extracted should be output to FILE09 in an
existing record type (1/2/3) or whether a new record type should
be defined,
a. If the data is to be output in an existing record type,
i. modify the existing WRITE and FORMAT statements and update
the appropriate data initialization code in WRSUB;
II. modify the existing READ, WRITE, and FORMAT statements in
SORTP.
b. If a new record type is to be defined,
i. add the new section of code in WRSUB, putting the label for
that new section in the GO TO statement prior to label
1000;
ii. be sure the argument in the new call to WRSUB in EXTRACT is
the correct record type;
iii. the new record type should include (in this order) the
variables API, ITWP, IRGE, ISEC, IREC for later sorting;
iv. SORTP should be modified to read a record which is other than
a type 1, 2, or 3, and then write it out in user format.
22
6. Update the documentation affected by the program changes.
B. If the extracted file (FILE09) is to be sorted by additional fields, the
following guidelines may be helpful:
1. Assuming the new data to be sorted is presently being extracted and
written to FILE09, modify the WRITE and FORMAT statements in WRSUB
such that the new data is written immediately after record number
(variable IREC) for each record type.
2. Modify the READ, WRITE, and FORMAT statements in SORTP for each record
type.
3. Modify the sort description in file SORTDES, and the COMMENT after the
call to SORT in SORTP. Refer to Appendix A, Sort Parameter
Analysis.
4. Update the documentation affected by program and sort description
changes.
C. If the current program is to be used to read a WHCS file for a state other
than Colorado, the following guidelines may be helpful:
1. Determine if the formats (including card classes) are the same for the
Colorado and new WHCS files,
a. If the formats are the same, the program will not need
modification,
b. If the formats are different, some of the FORMAT statements will
probably need modification.
c. If the card classes are different, refer to the directions in
Section A, above.
23
d. Presently, there are 83 possible records defined for a 2xxyy
(xx=01-49) or a 5xxyy (xx=01-99) card class, where yy=01-53,70-
99. If more records are defined for the new file,
i. modify the MAX25R DATA statement in BLOCK DATA;
ii. update the dimensions of all arrays which are dimensioned
by MAX25R in all CHARACTER and DIMENSION statements
(refer to Appendix C, Definition of Variables);
iii. change the value 83 corresponding to the present value of
MAX25R to the new value of MAX25R in FORMAT 9210 in WRSUB
and FORMAT 9250 in SORT P.
2. Update the documentation affected by program changes.
24
Appendix C
DEFINITION OF VARIABLES
25
Name
API
Dimension
DEFINITION OF VARIABLES
Format
A8,A6
Common
EIGHT
Description
API number extracted from the 10010
record
APII A8,A6 EIGHT API number read from every record
BLNK A8 EIGHT (8 blanks) used to
initialize data
BLNK55 A55 FFIVE -UU...UU (55 blanks) used to
initialize data
DAT A55 FFIVE All data (except API number and
card class) read from every record
DDEP NFORM A5 EIGHT Formation drill depths extracted
from the 2xx77 records (xx=50,52,
54,77*01-99)
DDP A5 EIGHT The three formation drill depths
read from each of the 2-xx.yy records
(xx=50,52,54,77=01-99)
'e.g., API is declared CHARACTER*8 and is in COMMON /EIGHT/
26
DEFINITION OF VARIABLES (continued)
Name Dimension
FORM
Format
A8
Common
EIGHT
Description
The three formations read from each
of the 2xx77 records (xx=50,52,
54,77=01-99)
FORMD NFORM A8 EIGHT The specified (uppercase)
formations for which data is to
be extracted.
FORME NFORM A8 EIGHT The formations for which drill
depths were extracted from the
2xx77 records (xx=50,52,54,
77=01-99)
ICNTY A3 FOUR Count7 extracted from the API
number (10010 record)
IDTP A4 FOUR The t7pe (LOG, SPL, DRLR) of drill
depth read from the 2xx77 records
(xx=50,52,54,77=01-99)
**Values are specified in BLOCK DATA
27
DEFINITION OF VARIABLES (continued)
Name Dimension
IDTYP NFORM
Format
A4
T7pe/ Common
FOUR
Description
The types (LOG, SPL, DRLR) of drill
depths extracted from the 2xxyy
records (xx=50,52,54,yy=01-99)
IFORM NFORM II DIM Flag corresponding to each
specified formation for which a
drill depth is to be extracted from
the 2xxyy records (xx=50,52,54,
yy=01-99)(0=not extracted, 1 =
extracted)
IN 12 MISC FORTRAN unit of the current input
file (= 15, 16,...LASTIN)
IOUT II MISC FORTRAN unit of the sorted output
file (=9)**
IOUTS II MISC FORTRAN unit of the sorted output
file (=10)**
28
DEFINITION OF VARIABLES (continued)
Name Dimension
IP
Format
12
Type/ Common
MISC
Description
Flag corresponding to a specified
formation for which IP's are to be
extracted from 2xxyy (xx=01-49) or
Sxxyy (xx=01-99) records
(yy=01-53,70-99)(0 » not extracted,
l-NFORM=extracted)
IPDT 12 MISC Flag corresponding to a specified
formation for which PDT's are to be
extracted from 5xxyy records (xx=
01-99, yy=01-53,70-99) (0 = not
extracted, 1-NFORM = extracted)
IREC 12 MISC Well unit record counter. Used to
sort multiple records for a single
well unit
IRGE 3A4 FOUR Range extracted from the 10021
record
ISAV 12 MISC FORTRAN unit of the file on which
file unit and record count
information is written (=12)**
29
DEFINITION OF VARIABLES (continued)
Name
ISEC
Dimension FormatType/ Common
2A4,A3 FOUR
Description
Section extracted from the 10021
record
ISTE A2 FOUR State extracted from the API number
(10010 record)
ITASK II MISC Task selected by the user at the
beginning of the program which
specifies the function(s) to be
performed. The task menu is:
1 = extract, sort, print (default)
2 = extract, sort, print restart
3 = extract
4 = extract restart
5 = sort
6 = print
7 = sort, print
30
Name Dimension
ITWP 3
DEFINITION OF VARIABLES (continued)
Format
3A4
Type/ Common
FOUR
Description
Township extracted from the
10021 record
ITYP A2 FOUR The type of 5xx01 record read
(-IP.PT, . . .)
ITYPD A2 FOUR The value set (-IP) in BLOCK DATA
against which to evaluate the type
of 5xx01 record read (variable
ITYP)**
KLS 11,212 DIM Card class read from every record
KLSD 3,NKLS 11,212 DIM The specified card classes for
which data is to be extracted**
KLSIP 3,MAX25R 11,212 DIM The card class of each record of
IP's extracted
KLSPDT 3,MAX25R 11,212 DIM The card class of each record of
PDT's extracted
31
DEFINITION OF VARIABLES (continued)
Name Dimension Format
LASTIN - 12
Type/ Common
MISC
Description
FORTRAN unit of the last file to be
read (the first file is assumed to
be unit 15)
LPR 12 MISC FORTRAN unit of the "print" file
(=11)**
MAX25R 12 MISC Maximum number of records defined
for card class 2xxyy (xx=01-49) or
5xxyy (xx-01-99), (yy=01-53,70-
99)**
MESINT 15 MISC Number of well units processed
prior to printing a message on the
user's terminal during program
**execution
NFORM 12 MISC Number of specified formations for
**which data is to be extracted
NFORME 12 MISC
32
Number of formations for which
drill depths were extracted from
the 2xxyy records (xx=50,52,54,
yy=01-99)
DEFINITION OF VARIABLES (continued)
Name
NIP
Dimension Format
12
Type/ Common
MISC
Description
Number of records of IP's extracted
for a specified formation (max =
MAX25R)
NKLS 12 MISC Number of specified card classes
for which data is to be extracted**
NMWELL 5A4 FOUR The well name extracted from the
last 102yy record (yy=00-99)
which exists for each well unit
NOWELL 2A4,A2 FOUR The well number extracted from the
last 102yy record (yy=00-99)
which exists for each well unit
NPDT
NRECI
12
110
MISC
MISC
Number of records of
extracted for a specified formation
(max - MAX25R)
Counter for number of records read
from the current input file
NRECO 110 MISC Counter for number of records
written to FILE09
33
Name Dimension
NWELLU
DEFINITION OF VARIABLES (continued)Type/
Format Common Description
110 MISC Counter for number of well units
processed
OPELEV 2A8 EIGHT Operator elevation (RB/CB/CF/RT/KB/
DE/FS, GR) extracted from the 10300
record
PDT MAX25R A55 FFIVE Each record of PDT's extracted for
a specified formation from 5xx77
records (xx-01-99,77=01-53,70-99)
SPOT 4A8 EIGHT Spot extracted from the 10100
record
XIP MAX25R A55 FFIVE Each record of IP's extracted for
a specified formation from 2xx77
(xx-01-49) or 5xx77 (xx-01-99)
records (yy-01-53,70-99)
34
Appendix D
EXTRACT PROGRAM CODE
35
4»
0
O
Cj
o
«
* *
*
O
1n
-
a
'»U>
T
)
rv O
:;:«
:; v o
vi
o
rp
Ovy»
<-
C
r« l\i * r fj
ll
II
II
II
It
1>
X
X
nIA
<i>
a
'i>
<t»
<t
O
X
X
H
X »
r»
rt
rt
rt
rt
rt
1
-»
-»
~|
O»
: a
u>
a-
a»
1/1X
0
ft
CI
O
X
x^ rt
r-t
rt
rl
VI
2 x
x-»
x
1It
^^
VI
V
1
vt
tj
o
5rt
-»
-»
XO
» rt
rt
x*.
1
XX
rt S
0X
3x
-i
~»x^
_..
_
..
3
3rt
rt
-1 rt l/>
--
x
rt
(Xa>
r»
-i
-t.
rt
da
: c
x
f
"x.
rt
^
X -x,
o
r»
v/
C
^
*« '
0o
O
rt
3
rt
a/
3
*.
C*
a
w
*
t rt
>
4 _*
U x
3 11 x r» u rt
X 3 13 a rt
X 3 a> K r\j
v/»
T X a t i/> -4.
3 rt
X -..
rt
Or
VI
>V
X 3 T ft O _..
X 3 -» ft r> O x -
«/> 0) < X < CM «/> r-t
~*.
3
*r»
o
o
<~i
O
O
O
03
*|
£J
^-
=*
31
H
*-*»
a
33303
O
O
O i 0
33333
x x
, -x
, -x
, -»
, x»
3 a
-*.
o
m
-*.-
..-«
,-»
«/>
3
-
3 tf
io
"x <
a
3
x»
r»
x
»-.
>V
X
v
-,,
->
,
-*
r-
O
3
v>
x
-i
u-S
H
-«
3
T3-
rr
O
Q
-
O
<~ *
* *
C
w»
D
O
u»rt
Q
Q
O
O
X
X
rt
O
-'
_..-..
X
X
-f-
a
-t.
rx u
H
C
O
O/
0
0rt
~l
rt
ib
U
«/»
3
N
U
ftX
X
O
*
r~r
H r
O
1)
t)
r-
3
r--
<
I
V»
>T
3
>X
-
V
J1
A'
«/>
3
D
vn
O>v
x
Or-
K-
rt
V\
*
X
l/>
3
D£
ar»
rt
r
/ C x _
-» t o X 3 -*,
O 1 3 x 3 -*N
O ~» 3 ft x
*o
O
3
3
0
3 t
O
a»
3r
X
-K
3
0
3
C*
T't»
"x
., r
_..
X
I/I
-<
»-t
r-t
ft
x
xO
x
r»-*
3
<-»
rt
X
Xa
xa
^ a rt u X -t.
CX rt
X u x .
rt 1C t) x _..
~»
»
UJ a X _^
.I/I 'D 0 X
no
< »
n
» *
CX
o
O
O
ft
ft
ft
ft-*
or
-jr
zr
H
x
H
x
«*
TO
~»O
n
rfrO
»«pn>
3
a> t
a>
c
Ck>
-i
n
-^
>
vi
r>
3r»
an
3
33
3_
».
rt
^-^
r-
t r rt
ftj
O>
O
>
Of
O
fO
tA
lfl»
<
<T>
r
< r
.
3
-,
X-
T
r^
n
"»
H
»L^»
OC
XC
XW
>v
w^-K
Oo*-"
^-
-*.T
3«»O
r
W»
O
H
r-x-lr T
«/»
->
0>
3-*-
Q-J-fU
rt
rv
X3
t>
3«
/»
0>
3rtrx
C«
| - <
%-.. C
rt
l/»
rtn
»C
X*~
* tj>
^N<
-xfl>
n>
o/"
x^>
*i>
X
rvO
^IN
Jr
X
TC
XC
XtA
**-
a«
-^
x>
r~
_..
-
r»
<r
or
C^X
XrxO
T
J
»/»
«/»
-|
|/t
xx
-»s
fy
^, 3
r»
O
O
-<
-
U.
X
O tj
*-*
r»
O-l-lX
Jrx
. X
J-1
-«
XX
-!-
rt
IA!
d
3
-
* V»
13
15
O
X
r-t
fX
r-x rt
- -
"^ rt
rt
T
_»
^./
-xfx
JX
Q.
O
O
V>-*
CU
l^v-Q
rt
1
T
x*
<~>
UJ'-'X
XlJ
Vll/l
X
v>
x
O
-»
*
v>
x^
-*.
X
O
T)
rt
-
-».
a a
t x
a.O
CM
X
) r
X)
^-I
rt
r>
r»
C
X X
9
* U
J <
t)
r-s
(J-
^-'
*-*
rxtM
r-
x
INJ
l*J
^
3
0
x*
X
K
O
X
X
>T
- W
l <
V
I/*
-
r-
Ul
O
1)
^
V>
r~
»
O
C
-
l>
* rt
O
O
s-.
rx
rx
rx
X
r-
Cr4
t/J
O
*-
x^
X
r
X
X
On
3
-
LrJ
A
' ~
»
xx
03
x
(*>
V
rx
r-
IMV
I «^
»
XJ
^O rt
U»
r-»
H
)
t>rj
r»X
r>
OL»
L
nl
O*
xx
-^
X
O
O
O
O
O
O
-*
vi
C
30
t
rt
jt
tJ
-»«»
u
n>
c rt
r-
C
r- rt
x,
x..
-t
3
C
-i
C
ft
Q
3
1)
3
o
-.0
O t)
rt
O
rt
-i
-»
xx
-i ^
u.
- a
3
« rt
r-
«1>
1>
30
3
tO
CU
D
rt
rt
rt
J tJ
J
C
-*
rt
-
VI
|/l
-K
CX) -
< o
-
0>
r**l
O
VI
-
JO
i ft>
ft»
0-
i
nr-
O*
<t
ft
0 rt
0rx
r»
n
3
-i
CXC
vt
ft
r
Trt
rx
»B
3
IX
U
Cr-
r- IT
<»
rt X
-..
I
O
-H<»
r- t
n
n>
~DO
x
T
TO
*»
1
Vt
0
IQO
1
U
~it
Q.
Oi
-»
vi
3 CXT
)<t
> V
I
T
ft
O
« » 3.
T3 C rt a> 3 a
n> X
rt
-> a« o rt
O C rt
U C rt -».
-
ft I/I a* -» t> o -i (X a» n ro a cr x *» TJ » «
3 C 3 O <V -i
n
o -D
0 H VI
-«.
0 -» O o rvj
O x O rt
-»>
0 -» 3 to rt
-»
0 3 rx CX A*
0 rt
X CX »r
O rt CX x 0 K-
o rt
i_>
.
XX
0 o V*
-«.
o -» o«
o fVI
CX x- o rt
-»«
0 ~» 3 <K rt _..
O 3 rx a rr O rt
X CX rr 0 rt a X CX >v 0 rt w-<
XX
O
O
O
O
O
O
a o
c
r o
viI
D
ft
ft
O
rt
1 -»
r»
r r-
C
ft*
r
-i
r- r-
3
rt
r-
to
r*
/»
«^
3
3 X
cx o
a/
c
t
-i
a
a
o
10
rt
ft
ft
:r r-
T
r»-*
» <
O
0>-»
rt
-».
0 0
0 3
rvj
CX *r O rt
rx CX o> >r
O r» Of
XX
-».
o ~» 3 0* rt
_*.
O 3 *~*
Q.
re 0 rt
X 0 IT O rt a X 0 rr O
rt
O
O
O
O
O
O *.V
I V
* ~»
<
»*"»
D
1
«O
«T
T) -
O
o
rt
T3 -
rt
rt
r»
3
C
rt3
o
rO
t
ft
~l
VI
O -i rt
ft a a Oi
rt
fr -x.
3 a* 3 r» 01 VI
X1
rt 0 1 ~» ft a» a -».
0 i 3 0> rt
O 0 -»
CX (t -t rt
O O/
3 0 C rt
D C rt
-4s
_..
r
t X VI
O T rt
rt 3T r» O C rt
13 C rt
-t.
-
r-
t X ft/ 3 a
o
o
o
o
X3
-»
r»
OM
IL
. O
rt
-1
T
1
O.
O
(U
3
«O
o
nrt
rt
Oi
0
3rt Or
-i
ftft
t
*
£,
r*-t.
a
-io
o>r- 0
0
r-
O
rt
O
c o
-.-
-»3
a.m
n o
CX a>
crt
3T
»
0
X
VI
c -^
~»
-
_..
/
rt
<»<»
O>-
3rt
aX
rx -f-
-«.
3
0 1OJ D
r»
X?
a*-»
o
O
3x
C3 t
Oi
r
rt
r-
r»
x^
r-
C
X
3 - -
rt rt
:r *
-*
I/I,
* " 6« print"//
* " 7* sort/ print")read(5 /9C01 ) i t ask
9001 format ( i1 )if(itask . 11 .0 .or. itask.gt.7) go to 50
c itask ge 5 = sort ano/or printif(itask.ge.5) go to 220
c c define a variable with 55 blanks
encode ( bin* 55,900*. > <blnk/i«1/7) 9004 format (6a8/a7) c
write(6/90G7)9007 formatC" input unit of last input file to be read")
read< 5 /9GG8) la stin9008 f orma t ( i 2)c itask eq 2 or 4 = restart
if (itask.re.2 .and. itask. ne. ̂ ) go to 60 c position input and output files
call restrt (in,iout/isav /nreci/nreco t lastin) c check if finisned with extract function (unit gt last unit)
i fCin.gt.I astin) go to 210go to 70
60 c ont i nue c extract (not restart) -- set input file unit as 15
in s 1 5 c70 c ont i nue c access variaole k I sd because of block oata requirements
write(6/9GG9) ((klsd(i/j)/i=1/3)/j=1/nkls) 9009 format (//" extracting data for the following card"/
* " classes --"////<10(3i2/1x))) c 100 cont i nuer «»«*»**»»w«*w««w*«*»*«***«*»**»»*«*«**********«*«****w**«**«»wi
c read a recora c
read(in/9C*J/end=20G) api i/kls/dat 9010 f cr-na t Ca3/a6/ox/i1 /i2/i2/a55)
nreci-nreci*1c * 110 continuec if this is a new well/unit/ write data Crecorc type 1) for the c previous we I I/jnit/ anc unitialize values
if(api^(1).ne.api(1) .or. apii(2).ne.api(2)) call w r s u c(1 ) cc skip core test records (3xx)/ drill stem test records (ixx)/ c and general information recoras (6xx)
if(kIsC 1 5.ea.3 .or. klsC1).eq.^ .or. kls(1).eq,6) go to 1 00 c c search for specific cars classes
30 133 I'naexs^/nkls
if«Kl5(l).ne,<lsd(l/in<2ex» go to 130if(KIs ( 2 ).ne.<lsa(2/incex)) go to 1 3Cif("tls(3).ne.<lsc(3/incex)5 go to 130
c we nave a i»atch -- go to cne appropriate program sectiongo to ( i COG/iCOC/3CCG/4uCC/^000/50jj/fcOOC/7CGC/70CC/70CC/
* eCCG)/ incex 130 continue c no matcn -- re^3 next recoro
37
00
»
O
«»
r»x
a.rt
~i
U3
-..
CJ
1
O.
O
O t
U»->
o
o
r»
rt
3
O
rt
* *
O
(b
O
U*
r*
ft
|
vi
»
^-.
*~»
4.
«/»O
c*
11
TJCT
* ft*
ft*
^
*
r-
' -f
c
xx
-»
c~i
is*
o
U3
rv>
a,
r\i
ft
f-
Xx
Of\
J
v>
I/*
O>
1/-
-*
- 0
X
rt
0>
X"U
< t)
»-'
X _..
-»
Uj
19'
X -
*/»
'V o
"» lv
» O
O
O
r>
o
<r»
O
o
O
io
-*
o
-»O
O
vi
>»
ft
o
r*
t)
X
O»
Hi
r~*
rt
-^
r»
UJ
-«
CX
rt
0*
Of
T
CXO
O
O
f*
f*
X
Jt3
3
A>3
inx
-< _
.. c
n
r»rt
rt
si
O
-^«~
»il
<-*
-
O<
*>Q
.r>
rv
»
o
o>3
r-
tr^O
>
^s_x<
p
j*
vtC
~
».'v^.c
"»
T
)«
/»<
O
*
<fc
3
II II
O
rv»
U
»-t
-*x
X
a/
a/
3
o
01
x o
r>
co
\s*
O
_..
_..
g
«-*
-»
- _
.. o
o
»
^->.
y~»
<tO
rv
i -*
"I
^>
-*
~r
\~*
X
--.
w»U
l rt
rt
Ql
H>
rt
X
f|>
-*.
X
n 3
ort
. O
X
C 3 rt x
*
O
OM
i\j
- O
O
O
O
* O
CX
«">
VI
-f-f.
cO
>
wi
-« -* *»
/>
r-
O
rtl
O
t
rT
3
v>
3
r~
O
**"»
4,^.
i/i
_ .
o
C
XO
I/I
->
^P
O
Vt
O
OO
irtO
-»
V
I O
rt
n
U3
"1
3
1>
-*
O -* "*-* r«
O
rt-»
,rt|^n
>O
ft*V
>
O
-t«
A-
O>
'PO
O
*»"^r«-*.
3t~
*>
7
O3
O
^^^r
3
r X
O
3
«
»
3
ft"*
* ^^C
3
^^**
-*»rt
T)"*'
r
BI
rt
r~
IC
rt
-' fljr C
Xrt
r»
CX
*'*
-*--'-3
ll'&
-*-
-<
r»|/»
<
w-
rt
rt
_..
rtjQ
ft»-*.
Q
-»
3
3
-
33
-»
»
-«>
3
tt.o
nr-3
V
I O
O
3
0»
Crt3
0.
X3
«-»_. rt ._.
_.
C
«!-
»-»
. C
O
1
C
C
v>
Ui^
B»C
-»
3llC
riv
i3
«»
/--
»
t
A
U)
-f«t
1
T
r-|
/^
K
VI
t
C)
O
rt
Q
» -
. ri
«»
t
r»
r-
»
-
«?
**
O
C'T
N
OrtO
r* -
3
r~
o3
r
X3
A> t.
'**»
CT
*»
^
1
*^ *
T3« «
-
»** y
i i*
cx
-*-
.0
«->n
» <»
rt *
c*»c
O
ll/l
r
|>
O
-1
O ^
U»
rt
t/i
toC
H
V»
r~
-«.
H>
t^
*^
O
O
3
rt
rt
«--0<
r-
O
II
1
-f.l-'-C
X-*.-'-
<«
*»<
!
CX
-»
-C
X3
-3
-»
fl
ft
'
9
O
HI
r
f*-
r
vx ^
O>
&-*
1
K
rt
t^ll
*V»
<*
tot
r--t.
r«3«rtX
O
«O
Q
»--
rt
TtJ
C*-C
Or
^-O
-*
0»
*t
3O
43rt
Cit
-».
rtn
rt
-»
-rt3
'ft
-^-
-»«
Ol
»-*
*
ft
r*
O
ffc
.
w.
r
-
I/I
«»
n
11
-t«
*t
»~*
J>C
O
(V* r
rt
it
3
-*»
»
O/
ft
rt
ft
'
O
O
VI
0,
-»-»£) X
I
r»^
V«
v>
O
S ^'
X
< "
r-
-«.
-»»
V>
v^
a*
-rf-
_..
rt
|/t
r~
TD
J"
UJ
rt
tft
ft
ft
O
-
T
3
C
rt
»\*
-K
rt
ft
O
50
S
O
-^
-1
t)
r-
CJ
B
"»
r«j
«s»
ftf*
-
U
J C
a
30
3r*
_
».
3
-J-
5
rt
XI
3
C
r
-*.
C
r-
a
a>
<»
oK
rt
w.
>
3a* O
ft
* 3
4
* * it
O o o
to0
O
3 <-f
rt
O3 C
-
t
O 0
'
3000 continuec »**»» ***«» ** »**** *»» ** »«**»**»**** » ********»***«* ***,,c card class 10100cc extract spotc
decode(oat/931Q) spot 931 0 f ormat (15x/4ao)
go to 10G c4000 continueC **» * **** *» * ** *** ** » * »»**** ***» *»»» »* **** *»****»»
c card class 102yy (yy=00-99)cc extract the last well numoer and well name given for ac spec i f i c -eI l/un itc
decode(dat/3410)~now el l/nmwell 9410 format(24x,2a4,a2/5a4) 41QO c ont i nue
read(in/9Q10/ena=42GC) apii/kls/datn rec i = nre c i +1
c if this is still a 102 record/ go decode infoi f ( k I s (1 ). eg. k I sd ( 1 / i nde x ) .and. kIs(2).eq.kIsd(2 / inoex)}
* go to 4QQQ c this is a different card class
go to 110 c4200 continue c end of file - increment unit if not the last unit
if(in.eq.la-stin) go to 210i n - \ n> 1if(in.eq.41) in = 43go to 4100
c5000 continue c «*************«*****» «***«****«******«***«*«*****«**»***»****«****c card class 103 COcc extract operator elevation ( R8/ C 3 / C F /3 T / < 3/ 7E / f S *> G3)c
decode(cat/9510) opelev 95 1 0 format (2afii
go to 100 c6000 continue c ****«** *«*»*******« **«**********************«****««.*****»««««* *c card class 2xx01-2x*53, 2xx7O2xx99 (tx=Ol-49) cc extract I? s for nform soecified formations (forma) i f oossirle.c save rec 2 x x 01 in case :ne formation on rec 2xxC2-2xxJ5 isc the oesired formation. if it is/ also save recs 2x*1C-2xx99.cc save rec 2<<G1
x io(I) = da tao 6C50 i s 1 /3
6050 continuei k s 1
c
39
0*7
:r a 2 3 ej( c » j c , ; suci2efcjc> r a i
(66-t
2 x a \4 2d-ac^ i 3 ads w j
^=X X * «?c '
n i jc ^c0 ^ u J C y u
2 c ' o s s « x j
f C / 2 «
5 c a n i JM 2 si ex 21 i w c ; 3 e j 2
? S 5 P 1 3 D J
p ir a
3
3
3
3
3
anuiiuoD 000^3
00 i 02 06 Oil °i 0? (i"ba-^aui) j i
spjosaj xx? sjou ou 3 000* 01 °£ (S'ba-(t)si> -cue- i«ca«x*Pau i >; i
:i s s a 3 c j d 06 ' p j c 2 a j i Cx * S e s ! s ! M 2 ; i 3 03Q9 02 o £ (2"DS"(t)S-j>! 'Due* i-fca"xx«aui)ji
2t ssasojc 06 >pj03aj LOXX2 e sf s i LJ 2 jt 3(2>pnsj^ V1P3 (QBau*di)^i
5u2 a z i ) e;. 2iui pue pjcsaj am aiiJ^ ^Da;3 J2xa «ja^ Sd! ^i 3anui2uc: 00 ̂9
3
$219 02 06
* I «. u i s u i QI? 02 o£ (ui2SPl*^a*ui)it
2iun 3 se"} aci2 2 o u ^ i 2iun 2uauaj3ui - ^ 1 M ^o pua 3anu i 200 3 00f9
3
0019 02 06anu i 2U03 0029
00 L 9 02 o£ ^ i 5 d i
0029 02 06 ((^i)piujo^*au*(i)WJC;)|tuijo^u'ts^i 0329 op
* 0296
uoi2e»tjo; pajtsap at|2 02 X-jdde sojo3aj xx^ * s a >< 2 > ! dds D0019 02. 06 (6"15'C£ ) s 11) M
spjosaj 60XX2-20XX2 ^M2 2sed aw aje 300 19 02 06 (O'au '0-1)^1
(uoi.2P«DJOj. uo '"a»i) t|32ew P puno^ Xpeaj-je a« aAe^ 31 \ = d i u anui2u03 OS 19
(i) sl*: s ( sit ' i ) Oisi )j £' t*^ OS 19 op2PD s ( 9| i ) d I X
0 s x x wau i00^9 02 06 « i-^ t'2)disiVdu-(2> sim i
L s x xnau t( pjosa j 10XX2*MHJ 3
si ''a*i pjooaj 2sei aq i se au>es aui xx^ siq2 si 3
0079 02 06 (6^'i6- (2>si si -jo- (xapui ' t >ps n'au-( i >s 1^1) MI s *au i
0 s x x«au i(6<?-l = xx) XX2 ** > 11 i 2 s stm si 3
l+pdju s i3aju2eo'Si>i'iide (00£9=Pl-**'OL06'unP^*J
anut2u03 52 19 I**: i a 1 t
SSP13 pj63 SIM2 ul spj03aj ) 1 P M6nojc|2 dOOl 3anu 1 2003 00 19
log « log too (rec 250)spl s sample top (rec 252)orlr = driller top (rec 254)
if we have extracted drill depths for all formations/ skip this sectionif(nforme.eQ.nform) go to 100i k = 1go to 72GO
C7100 continue c loop through all recorcs in this card class
ik « i k + 1 71 50 continue
read(in/9Q1G/end=76GO) apii/kls^datnreci = nreei+1
c is this still rec 2xx ( x x = 50/52/ 54)i f ( k I s ( 1 ). n e. < I sd ( 1 / i ndex ) .or. k Is ( 2 )-ne . k I s d ( 2 / i ndex ) ) go to 110
7200 cont i n uedecode<Cdt/971Q) iotp/(form(i),ddp(i)#i=1/3)
9710 format (a4/3 (2x/a8/1x/a5)) c does tnis record contain the specified formations
do 7500 if«1/nform c have -e already founa 3 watch
if(iform(if ).ea.1) go to 7500do 74 GO 1 = 1 /3i f ( f or n» ( i ) . ne . f ormd ( i f 5 ) go to 7400
C set flag/ increment counter/ and save formation/ drill type and d*»pthi form < i f) * 1nforme - nforme+1forme(nforme) s formd(if)icUyp(nforrne) = idtpadepCnforue ) = ddp(i)50 to 75CO
74QO continue 7500 continue
go to 7100c 7600 continue
not the I as t un i ten a cf file - increment unit if ifCin.es.lastin) go to 210 in = i n + 1if(i r>.eq.4l) in s 43 go to 71 50
50CO continue£ ft******************** ft*************************-***
c card class 5xxG1-5xx53/ 5xx7C-5xx99 (xx=01-99) cc extract IPs for nform specifieG formations Cformd)c not sone previously at lasel oGOOc extract 3 -*3 for nfor- specified formations (fornjc in soth extractions/ Sjve rec 5*xJ1 c on rec 5xxGt-5x«C? "is c save recs 5xx'G-5xx99. c
c a se thene cesired formation. if
if type is !°/ use coae at lacel 6GCO to process I?
e t n e r or
m a 11 2 nit 1 s / also
*i*G forma: ( a <2)ifCityp.eq.itypa) go to oCGG
41
c re co ros arc POT c save r ec 5 xx01
pdt(1) = da tdo 3050 i*1/3kIspdt (i/1 ) = k Is ( i )
8050 c ont i nuei k * 1
c8100 c
continue loop through all records in this card class
ik = i k + 1 8125 continue
readCin/901G/ena=53GG) apii/kls/datnreci s nreci+1
c is this still rec 5xx (xx=1-99)i newx x = 0i new = 1i f (kl s(1).ne.<Isd(1/index ) ) go to 8400i new s 0
c is this 5xx the same as the last record (i.e./ is c this a 5xx01 record)
i n e w x x = 1i f(kls(2>.ne.klspdt(2/ik-1)) go to 84QQi newx x = 0pdt(i k ) = datdo 3150 i = 1 /3k Ispdt ( i /i k ) = kls ( i )
8150 continuenpdt = i k
c have we already found a match (i.e./ on formation)i f(ipdt.ne.O) go to 8100
c are we past tne 5xxQ2-5xx09 recordsi f (k I s(3).g t.9) go to 810C
c see if tnese 5xx recorcs applydecooe(oat/9623) form<1)
c if we nave a ma ten/ set a flagdo 5200 ifsl/nformi f(form (1).ne.formcC if) ) go to 8200i pat « i fgo to 31 CO
820C continuego to 3100
to the desired formation
c8300 continuec increment unit if not the last unit
if(in.eg.I astin) go to 210in - i n » 1if(in.ea.41) in = 43 go to 3125
u if
c o n t i n u e?DTs were extracted/ write the recorc ana initializei f C i p J t . ne . > call w r s j b C 3)
if this is a 5 x x ' j 1 record/ if(inewxx.ec.l) gc to 300
go process +. u
it
no mere 5x« recordsi f < i n e w . e q . 1 ) go to go to 1 C 3
11
42
endsuoroutine wrsub(kode)
cc suoroutine to write extracted Colorado whcs data to an output c file and to initialize all variables file and arrays c
character*4 iste/icnty/idtp/idtyp(3)*itwp(3)/irge(3)/isec(3)/* nowe I I ( 3 ) /nmwel I ( 5 ) f i t y p* i t y pd
c hara c t e r*3 api (2) /api i (2)/opelev(2)/spot(O/* form(3)/forme(3)/formd(3)/ddp(3>/ddep(3)/blnkcharacter* 55 xip(83>/pdt(83)/dat/blnk55
cdiwens ion *ls(3)*klsd<3/11)*iform(3)*klsip(3/83)*klspdt(3/33>
ccommon /four/ i st e / i en t y / i dt p / i dt yp f i t wp / i r ge * i s ec t
* nowe I I /nrowe 1 1 /i t y p * i t ypd common /eight/ ap i t a pi i / ope I e v * spot f
* form/ forme/ forma/ddp*ddep/olnk common /ffive/ x i p * p dt / da t /b I n k 5 5 common /dim/ k I s/ k I s d/ i f o rro/ k I s i p A I s p dt common /misc/ in*iout/iouts/lpr*nkls/nwellu/irec/nform*nforme/
* ip/nip/ipat/npdt/max25r*mesint/itask/nrec'i*n'-eco/isav/lastincc branch to the type of record to be written
go to ( 1 000/2000/3000) * kode c1000 continue £ A******************************************************************
c re cord type 1cc write API number/ TwP* rge/ sec* record number*c total numcer of records for this well/unit/c soot/ state/ county/ well numoer* well name/ operator elevation*c numoe r of formation arill depths*c formation/ drill type/ drill depth for nforme formationsc
n rec = i reci r ec = 1
c if we haven't processed any well/units yet/ skip to data initializationif<nwetlLueq.-*)go to 11 COi f (n f o rme . e G . 05 n f c r me = ^nreco = nreco+1 » r i : e ( i o u t / ? 1 1 G > api/itwp/irge/isec/i rec/
» nrec/ssot/iste/icnty/nowell/nmyei l/cpelev*nf* Cfor,-ne(i}/iJtypCi)/adepCi}/i=1/nforme)
9110 format (a3/ao/3a^./2a4 / 2a4/a3/i2/
cc every mesint well/ units/ write api number to users terminal
nw = n^ellu*1i f ( me -i ( n w / m e s i r : ) . e c . C ) write(6*9*15) api
9115 for,na:(3x/aS^ao) c every 1C30 we I I/ «o us* «-rite to users t e r .ni n a I
if(moc(nw*1CCj).ec.C) write<6*9'?23) n* 5123 formatC* -e II / u ni t " / 1 1 0 ) cc save input file unit, recors numcer of t r e last recora c read fron the input file for t^e most recently srocessec : -ell/unit/ jnc recora numcer of tne Last reccrc c written to f U eQ9 for t^e most recently processes
A3
cwel'l/unitor = n r e c i - 1rewind i sa vwrite ( isav r 9130 ) in*nr/nreco
9130 format C i2,2 ilQ)cc da t a initialization 1100 continue
nweI Iu s nwel lu+1i ste = blnki cnty s blnkn f o rme = 0do 1200 is1 ,2api(i) = ap i i (i )ope Iev(i ) s blnk
1200 continuedo 1300 i=1*3i t wp ( i ) = D Inki r^e ( i ) = o Inki sec(i ) = blnknoweI I (i) a blnk
1300 c ont i nuedo KGJ i s 1 *<*spot(i ) s b In*
1 AGO c ont i nuedo 1SOO i=1 ,5nrawe I I ( i ) = Dink
1500 continuedo 1600 i = 1*nformi forra C i) s Cf orme ( i) = blnki d t yp(i ) = blnkadep(i) = o Ink
1600 continue c if no wells have been processed yet/ initialize the rest of tne aata
if(r.wellu.eq.'J) go to 21CCreturn
c 20
cccccc
00 cor
re co r c
wr T t ef *"* r .1
IPs
it i'
s t
AP
»a cfo
nu e
y pe 2
I n u .TI c e r /i en, numoer t na t for
TW?
r oflat
/ rge /f I? seion for
sec tr s/ anip
r ecndset
******.*}*.
or a n um oe r ,care classs
r
and
irec= irec + 1nreco 2 nreco+1write(iou:/?21Q) aoi/it-p/irge^isec/^rec^
* for.Ti2(io)/nipx(Cklsip(j/i)/j s 1/3)/*ip(i)/'i=1/nip) 9213 formatCa3/ac/3a^/3ai/2a^/a3/i2/
«3/i 2/ i3Ci1/2i2/a5 5) ) cc data initialization 2100 continue
30 2200 is1*.nax25rxip(i) s olnk.55
2200 continuei o s jn i p = Q
44
X i u-c Ju i J 0 = 9 Da J| s e 11, D9
xse: paiss-ias au 3 01 dunf 3
j i'n<)-]a»'u'st;> u'jdT's^ct'jnci'ui / 3 s UK / uJPC S 1 V CJ I S 1 ^ *\vj 0± i 'P S 1 Jj 'S 1 i( /«U|.P/ UOUJU/03
>uic'ieD'aDC'dLx ^AI/ UOUJUJOD
' joes ' AS i ado* t tde * i oe /jy5i*/pdX:i/dXii/-)ia«u;u'TTdp. ou
35S I ' e6 J I ' Qf 1 I ' CX :C I 'd 3PI ' X 3 UO I ' 5 IS I /jno^/ UOlUUiOO
> /'di.S5«'UJJCt''P5>'SX. UOlSUdUtlp
( SJ 03 d I J D S 5p) 1U t J dp J UJS3xa
(Sjc;dij3sdp)!3 i e u j 3 : x 5(Sj 01 d i j DS ep) d as ) ap ieujs:xd
( s j Did i j 3 ssp) i j o s ieujs:xs3
(LL *H^) leuuo^, pe*j-oj-Xse« ue ui D1 * 1 i ^ ,.5U!-"'(:;M u *M i 'Cl dl^J oaui ^ aii^ ajos oj auijnojqns 3
Dd5 jos du t 5 no jcns
pud3
u jna d j 0 = 3pdu0 s 3Pd Ianu i iuo 3 002£
5g5|uia s ( i ) jpd jSjxew j,si OC££ °P
anu 1 3uo 3 00 l£UC I IP 2 I IP I J I Ul P3 Pp 3
'saw i'3asi'a5jt'd«ji' tdp £0l261+03 a JU s 033 J U
I* 3dJ I s 3d J I
3
s;as 5 pdu jo^ UOIJPUJO^ )pq) JG^ SIQ^ 3PUP SSP13 PJP3 PUP 'SldS j.Qd ^° J^OUJnu 'UOllPUJO^ 3
'jacuinu pjosaj '3as'a6j 'dWi jaou»nu i^v a 5 i j« 3
£ adX : p JO3 aj 3*********»***** «****«**» *»»«»*« »*»*» 3
anu i auo 3 OOOf3
u jnja j 00 t£ o i 06 ( t ba 3 * j i > M
o
r
4
-
A-
rt
"1
ft
l/>
-'
0
rt
T
<)
>t)
(t
rt
>
O
% --
O
-
t»
-i*/»
'i
i±rt
%
O>
'-O
«
-»
\ rv
j x
-
L~
tl
n
( j
lit3
v-'
rt
X
QJ
H ri
3
- C
) %
* -
n>
« t*
«
r"
U
V
\
:> -
3
i
r to
0)
»r
Xr-
-.
X
UI
C)
'ftT.
) *">
(t
sr- o> <
TO
r»
o
o-O
or
ivi
rvi
rvi
fvi
rvi
rvi
CM
<B
rvi
n>
c_>
£
<
<
-i(0
10
-*
-K
-»
-«
-K
-
-1
-*.
».
r»
O-K
XO
-*.xo
nn
>~t
^
-t
-~*
~i
->
3
3
-»
3
3
3
3
"» t
&>
O
CJO
>O
'D
(X>
0)
(t
rt
Ci
CJ
<"
Q
U
l rt
«-»
J
r-
^-v
O
-^
r>
_
..
r-v r- r-
2 J
«*J
3
3
~» 0
-^
»»X
«rt>
,-|C
I.
I'D
(ft
<k
<t>
X
\
3
<t»
r /
a,
r-
r
-..
-o
-*
r-
r-
,
(XI
O»
-»
IV
I rt
r-
t ">
. «
I
r-
O
1X
1
^X
t
U.
*
r->
L
3
C
3
O
J
-s.
(XI
-^
C3
C
J - -'
ID
C x
3-
I j rt
U>
:)
X
JO
ri
O
UI
-
O t
'ft
: -
s
3 ' o
»»
~»S
rt
UI
,->
. >
X
-
Oi f
*-*
>
rv»
~*
Q
i
:r
C
ui
Cl
-
1>
t
4
rt
v-'
C.
rt
O
T
4
Ul
>-x
n>
«...
v,.
-iO
rt
>~>
Ul
t
rt
^"
f|>
T
O_.
. t
u*rt
C
TO
10
|/|
-
-»
r-,
ft
rt
O
T
1>
3
* U
i ^
C<
* &
B
r\>
rt
%
urv
i (t»
-A
) (it
CM
1
'V
*
1
^
3
fv*
-* .
r\i
. »
3
_>
^
Ot
U>«T
» r
Q«
C'
t-1
U
»r
-
H)
c -i U
I
rt
t ~t 3 -- .3 Oi
i
"» O
O
sO
f*
rv
> <
0
TO
3
<ft
0
4
44
U>
3
» -»
. T
Q
. o
»,
rt>
O
'»
Oa
3
-T
^3
0i-»
3»
1i
fvi
d
-».
~1
Q
(ft
rt
r-J
>O
>O
'6'~
NO
-'
C
rt
*-
rt
-»
r»
-
O
3
oj
r- j
x
O
-»
CI|O
(*
>
Oi
<T>
I/)
C
Cl
t>O
S
O
u
r-v ri
rt
3
C
Ol
N
O
UI
rt
C
3
r\i
0.
«-x
,t
x x
O)
rt
>
O
X
S
-1J T
)
r-
(«
U'
\
-
l\t ft
r~
-t
1^1
1
^1
CJ
U)
-
C
XO
.r»r»O
-*
-f
-t»
r\j
i- X
r»
v
-*
O
ttl
N
O
<
«t
T
f-
OJ
r-s
-»
3x
a.
<i
Q3
oj
r*
«->
j
HC
rv
i >
\ t-
t r^
t3
\ iv
i a
x
IA!
O
v-/l
U.
O
\
(,J
<1>
Ui
4>
<D
T3
O- »
r-
%
o
o
^-»>
ui
/->
t:O
r\
j tr
<
1>
O»
-».
a>
s
»-*
r- o
OU
-
*
r-
-..
l
s rM
-
\
s 0
-
>
II
3
-
r-
IVI
~*
3
r-t
r-
>
X
t
Jt
*»»
Cf4
3
1)
1J
C
rx
-»,
r~
\
3
tti
O
r-
-»
-
UO
T
S
~
»
rt
X
3
O
IU
ui
U>
(t>
U
'0j
v^
rp
s
0
x~»
ttl
ft
UI
O
t/i
c
n>n
^
\ n
'ft
v-x
3
^U
I -».-
UI
O
T
<D
'1
'0a
30
ft \
\
o
3 ->.
-i
-*>
£
3
rt(f
t O
T
t
-
£ -,
n>
a>-«
3
rt / r
3
Ul
Q
r-
-
Q
rt
x-x
C
M
y->
O
--
1)
- ^
S
II
O
--.
O
riC
;
rvi o o
rt
0
Cui
1 en
3-»
«
-
rt
-..
IKrt
-»_
..
3
-»-
UJ
O T-»
,-
3
r-
C
rft
3~»
U
n> n-f
.3
O -*.
C Ul
C(t
ft1
,
-*»
V
.
0
C-i
3a
- O
l rt
rt
ui
2-»
O
»-.
. -»
v^
O o ft Ul
Ul n> a
-,
>i.
Ql
3 a
Oi
rt
3
or
t)n> a»
ui
ui
OX
~
l1
rt
rt
ft
o
tx1 T
-»»
ro
- .
Q|
r
Q.
ft
~»S
"»
O
c:
-» 3
Q1
Oi
3rt
Q t "H -».
it ft ->
rt
rt
0 r> i _..
3 rt -t.
w.
. It * »
O o4
O4 4 4
0
4
O
4
34
rt
4
-*
4
J
4
C
4
(ft
» 4 4 » 4 4 4 » 4 4 4 4 » » 4 4- 4- 4 4 4 4 4 4 4 4 4 * 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 «
O
rvi
-*
O
CX
3rt
fi
Oa>
<
Q.
rt *
I/I
O
~K
£
(f
t ft
ft~
»,X
-
0»
0
-1
-t
*T
|/I
*-»
*
->
-*
n>
<
r»
r»-
t
r-3rt
XT
3rt
/3
a<
ii>
-n
ui-<
-ai
Ol
Cl
rt
r-»
-«.
O
rt
Ul
V/l
rft
r-%
O
^.
/ "
rt
K
' --
.sa
>
oo
-»
-;
u
n>
^^-<
*o
:T
:TO
I/I
it
rt-"
5 O
-O
O
l O
l 3
O
£)u
i t)
rv
j -»
TS
~I
O
o
O
r*
*-*
. ,+
en
-i
r^rt«
-'
» »
ic
tJ.
v-»
rt
S«
r^ix
iart
-t>
r»
»-.
«-.
_«.
v»«C
i O
*
rt
o
;
O
3
-
O
o>i J
f
(ft
J
r~»
-»
rtX
O
UJ
o »
- -
«rt
O
O
3"
to
Ul
5
-t.
On
*^
rt
1/-4
s^
_».
-»
J
O
r-
^ 0
l»
O
1)
rvi
or
0
0
~
Oi
-*O
"»
-*
5
*
«-»
^~»-'
fvi »
O>r~
\ l\>
\O
v-'
r>^-
O%
« O
3
r-.
rt
»
a,U
ti ->
*~*
3 -
o
3 3
- to
Oi n
rts-*
J
-*
ft_» «-
> U
l
O-O
n
rx
rt
»
00 v»
*
*
»
3 ;
1 1
rt
0
a.
a:
ui\
;;
%v
;c
-»O
rf
tQ
n
V 0
m i
:r a
o
1I/I
Ul
\S
rt
-H
T
O
<t
X
Oi
3
3a>
i
3S
1S
rt
: a>
i -i
Ul
«O
CX
ftS
rt
s;
<U
l -K
0
-
->
i rt
rft
CX
1 1
ft Ul
-».
» -
*
-> r
(ft
»
0;
%
r
o Oi
r-
r-
Ul
0 -» r-t
r>. ; 1 _.
u Ul ;
s;
T ft o O -> a i Ul
rt -1 (ft
Ol 3 1
1r-
l
O/
-» lO ft rt
< -tv
-»
, a> 1 -t» j. r
ft O 0;
%
O
0
3 rn
-«
. C
ft
O
n
Oc
-» --
-»-
3
rt
0
3
ft*
t>
*"DQ
rt
s^.
-»
r^.
O
_..
v^
s
_,.
O*^-O
V
IC
20
rt
-»
-«
Ul
O
S_~
O
-*
"Dn
<*
rt -i.
-»
3
ualO
rf
t v
- > _.
u«
.
CD(f
t 0
O
s-O
t>-»
. "X
I3
r-t
0
3 C-*
3
- cr
r-
0»«»
T
»
%o
T
v^
ft 0 O -» a 3 C 3 a r» -1
o n -»
03
3 a. r
O 1 c> r» n -
Ul
3t»
Q »--
3 C 9 O n> T
O -1 rt
-*.
-
r
t >o -* 3 rt
O -*.
_..
r
ft -» o
0
ri
o
(
TJ
4
O
4I/
I 4
u.
- *
O
rt
4
*
O
4
O
34
O
4
...
4
3
*II
t)
t-
C
4
%
rt
4
3
*1
-t.
4
ft
4
f>
/
4
-
'04
4 4 4 4 4 4 4 4 4 It 4 4 4 4 4 M 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
0 o - » c
o
~>?
~"
a-
a>rt
r-^
r-v
4>
x^,
%**
, -O
; o r\
jU
O
o
<-'
u» _..
/-t - o 3 .
3 (O _.. 3 O C rt a> 3 a 0 C. rt
C)
C rt -t»
_>.
r~
t I/I
-K O -t -1 rp I/I rt a. - » r-t s x.y
o
o
O
<O
jr
fl»
<D
rt
-**
O
*»
"~
l
-*
A-
0
'P
-»
m
a>
3 *
d
C
i O
3
-*>
ft-
' x
C
rt
-
r*
lO
-t,
r-x
Ul
rt
_..
_
Q
j -t.
3
f\
j <
~*
.,
_j
v
%
r
a.
«/i
rvj o r
pU
) U
"
C*
r-t
«fc
-»
--»
C
-
a o c
j 3
3
v*r
*-*
~i.
x-'
«.
rt
-..
_».
%U
l rt
3
a
or
% _..
3
3rt
O>
"I
U
Ox
r»
Crt
O
r-t
LAI
-i
-
O
a»
* -»
.O
r>
3
-
rt
-»
r
ID
rp
-».
O
C
0
-»3
rp
0
O
rt
O
-*
"»
o
tx3
%
r-»
O
C
C3
rt
-
"O -t
c rt
UJrt
~H
-
r-
r
Oj
rp«/» rt
-I
rpC
n
3
O-
-i
^
O ^
rp o O -i
Q O -».
t rr n> 3 O i/t rt -1 a» r» *P 3 rt
r-
X O O 3 n rp rt n> a c rp r~ r
v^
C 3 _..
rf
j O C O c r-t
-» ~»
.
r~ rp f.4
I/I
XJ o rt -* rt
_..
O 3 'P a . ... 13 3 <P a. _^.
Ot
rt 'P X Of -t> rt a -» rt ~3 rp r a> in rt
*. rp
T3
a.
->r~
~
>-
<J
r~
3
Iti
*-.
o
-tC
C
Q
j3
rt
3
-
rt
-t.
ri)
-
X
U
r- rt
rp
'P
~i
- .
a»3
-r>
UJ
Ul
r»
CJ
T3
Ui
TO
-*.
O
U>
rt
O
-
rpl\>
rt
-i»/
» _
..
u»
o
a.t
3
3U
'P Q
_
,.
ft*
3rt
Qi
rt
rt
n>r-
t 1
:r rt
-i
rp
ir
crp
U
rt
rt
*
-^
~
t
J
-
O
rp
-^
3l/i
O
r-t
--
" »
3"i
rt
n>
r-t
D
0
J
rp
o
<p-i
-
a.
a»3
x
rt
0
rt
<C
>
-tN
'1
~>
Oi
->
rt
nC
J
^t
D
rPrt
C)
-
-I
O
O3
o rp 1/1 U
l
C
tr -» o c rt 3 rp rt 0 TJ O U> ^..
rt
-
O 3 _. 3 U C «-»
bi 3 Q O C rt
U C rt
-t.
-j.
r-
rp in t *
"2T
rp 3 n 'P Ul
rt a- ~> r» -*
3 ai
i/i
n>
nC
. 3
ro
CT a
^
-l
C
O
1C
3
rt _..
3 rp -i rp U)
rt
-1 rt
f^.
.... 3 * -
O C rt
% ,j.
U> a* < % 3 1 rp O -
% 3 ~» rp n O % r o< I/I rt
-«.
3 <^-
O
rvi
C»*
0
-s(
0
rp
4 O
O
n
O
34
a
*
o4
O
O
O
-t.
C
U>
O
O
4 O
O
iO<
O~
tro
o-»-43
r- r-
-|
...
3
ui
4 --
a!
rp
3
-*
O»
3
O-nrt^>
Q3
T4
C
U-t.r^.0
C
rt4IP
-1
"^.^tjrP
~^
4
-
»-N
»
».
O
1
O
4 3
5 5
f\J -
"»
4
rt
-t,
->J
3
-
4
--.
TJ
C3
rt
34
r* r
~»
V-»
<t
4 5
rp
-
-*4
1
-*
3
-
4 3" *
rt
r
4 n>
3
-<
re4
2 s^
3
»
*
%
(D
«
4 3
4 »
» -t
.*
»-._
..4
f~
4
. n
i ro
4
»
»
*
_
_»
4
23
4
%
v^
4 2
4
-K
4
-
4
r~4
rp4
-»4
-*4
Z
4
v->
4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4- 4 4 4 4 4 4 4 4 4 4
> rv
j-o
on
O
o
o«
rv
» r\
j ro
O
O
en
O O
C
O
-i
r-
-»
«P
O»
-
4
4
0>
O10
ri
-t»
tr-t
-«.
Td
.Q.0
O
O
O
~irp
O
r»
O
rtrt3^N
rti
Oo
3
O
Q
ro
INJ
JQ
*
&
/c
rp
rp
%
(&>
"!
rx o
rv
i T
3
rt ,
r-*
O
- rt
3
-*
O
O
O
IVI
C ^
W
*~
O
C
VI^»r^O
^O
C
_«
rp
-»
-. u
i
v cu
-*
C
C
i (U
Ci
*-T
3"td
<X
.(X
«-'rt
...3
^
O
Xr>
-»
U4
%
\
Ul
r*
1
%^->
Ort
rN
Q.D
sX
IIrt
IX>
%
r\j
X
-»
O>
»
^)
XJ
I\J
3^"
Cx>
-<
C>
XJ
»
v tj
ryj
rp
% ct
%^O
rp
>
04
s
en
3 *
\
^*
f\>a»
/^o'v
»"»
~>
X
>"
f\>
- ^
r-N
V
_X
-V
^
fQ
^
% U
-^
*x
rv»%
xr
CM
OU
IO
» »
O
C*l
\O
4r-O
i rt
c^ v
-i
a>
a>
ui
t?%
C
»4
3
»./
t **
-* -
»
O
^.v
^.^
en-»t)
s
-^f-
^ \
_-»
v-r
rv
<-»
-*
x
s-»
>
-»
O»
>
rt
rt
*-
-.
^ r>
»
»: D-
x
TJ
x
%
-
X3
r»\
r-%
-*
- B
i v^
»_..
_.. xj
t>j
s
-«
-t-*
*-
, ^.
\
v-.
-»
ro
% »
-
-
II
iQ
r»r\
j -«
. <w
rv
i
ro
o
_..
II
v \
>
s
-»l\>
-*
C
w
-
Q.
^
s
«^
u»
wi
3
% rp
x
-«.
x
n
-*.
% TJ
-
*
0O
i *-!
> T3
-»
-»
en
*->
-ien
-»
ro
«^v^
«-«
O
3
T
« '
V
%
-..
_..
«/l
II ~*
ev
rpD
r~
-..
r-
t>
*v.
v>*
C 3 - .
rt
-t.
rt
_».
3T
rt
*»
r>
3"
D
D
-»
rP
XO
rt
-
V
Irp
-»
£>
rp
O
r»
3 o
r-
* *
-» x
u.u
J O
0
D rprt
0
-i rpt\j
ri-
O
O
-io
a -*, 0 -% rt y -*.
u» t rp r
r ^ C D _,.
rt
% lO o 1 rp a* a
ro
* >
O -K O -» a o> rt
r-»
»
«^
X % O ^^
O Oo
% »
x % o> t» % o> en % _» x x^
>**
1 1
4 C _,.
rt rp rx.
< r> -i % o r\j
*^ 0 v^ rx.
-t.
O n j rp -~»
_..
x^
% _..
a rt
X Q o,
-
*-.
% a a rp TJ r-x
_,.
VX
% _«.
II _»
% 3 -K O -» a r% XJ.
O
-*
-*»
-*
0<-*
t-
»
O
Oo
Q/
-»
%
rt
3
0.
r^
'P
f\j
0<r-
x
%
OJ
*
ft» \
vw>
tr4
0
<
V
O
3
rvi
%rp
O
/ vJ
*4
<^
O'
u
* r-
f
a>
%3
r\j
i^*
*~
»
O>x^
\J>
*»
O*
%«^
f\
jX
O>
r\j
*xo<
%
01 a
>x-'
1,4
S ^
read( i n/91 1 C) 9110 format ( 1 x) 100 continue c c **« « **«* ***********»**»** »* *** »**«*»****** ****«»» *»*****«c po si t i on output filecc open outcut file with extend option
open (9 f attacn = "record_stream_ -target vfile. file09 -extend"/* forms"formatted") do 200 i =1 t nrec 0 read< i out/911 0)
200 continue c 300 continue£ »*»***» »****» ** »* »»* »* » *»***#* »»**»»** »**»****»»»» *»»*****»** '
C end of restrtc
return endblock data
cc block aata subprogram for program extract c
character*** i s t e / i cnty/idtp/idtyp(3>/ i t w p ( 3 ) / i r g e ( 3 ) / i sec(3)/* nowe I I (3)/nmwell (5)/ityp/irypd Character'8 api(2)/apii(2)/opelevC2)/spot(4>/
* for m(3 ) / f or me (3 ) /formd(3)/ddp(3)/daep(3) /pinkcharacter»55 x i p(3 3 )/pdt(33)/dat/Plnk55
cdimension kls(3)/klsd(3/11)/ifcrm(3)/klsip(3/33)/klspdt(3/83)
ccommon /four/ iste/icnty/idtp/idtyp/itwp/irge/isec/
* nowell/nm*ell/ityp/i'ypd common /eignt/ ap i / a p i i / ope I e v / spot /
* form/ forme/formc/dap/dceo/clrr* common /ffive/ xip/pat / a at/oInk55 common /cim/ kIs/k IsC/i form/nI sip /k ISP dt C ommon /misc/ in/ <icut/iCuts/lpr/n<ls/nwelli-/iroc/nfo.'"n/'nfo/''ne/
* ip/nip/ipct/npd"/max25r/mesint/itask/n^eci/nrecc/isav/l3st'tn C C fortran i/o units
data i ou t / i ou t s/I p r / i s 3 v /9/1Q/11/12/ c miscellaneous
data o Ink/" "/cata api /2* M "/
c counter for number of well/units processeddatanwellu/-!/
c counter for nu^Der of records input from one filedata nreci /]/
c counter for nunoer of recorcs written to file 09data nreco /J/
c numcer of -el I/units processed pefore printing message c to users terminal
data -nesint /50/c maximum nu'toer of recorcs of cara class 2xxyy (xx=3''- i >) c r c 3*xyy (xxsC*- 5 1̂ ). nere xx s ^'J "53/ 7L-99 = maxZS 1* .-ecorcs.
data max25r /E3/ C numper of formations searched for
data nfcrm /3/
48
pua
"tO'eO'L "OO'eO'l 'OO'LO't nZ'OO'L 'Ol'OO'l/ PSl^l eiepjo; paqDjp^s sasseiD PJPD 3
/LI/ s nu ejep jo; p3L|Djeos sasse^o PJPD jo jaqiunu 3
/,,dl,,/ pax li Piepdl J0^ PJOO^J 10**$ uo uo i -j eu6 i s ap D
/ P^JO> eiep " - " jeos suoijeujjo; 3