GEOTHERM User Guide
Manual text content
°Pen File GEOTHERM User Guide by James R. Swanson U.S. Geological Survey Reston, Virginia 22092 Contents Abstract ..,,,,.,....,...,,....... 1 Introduction ,.,,,.....,....,....... 2 GIPSY ,,,...,,....,............,. 23 The Commands ..I.,.,.......,.....,.. 27 SELECT .,..,... t .,...,.,..,..... 27 ITERATE ........................ 31 BACK .....I.,...,,...,.,...,... 32 SORT .......................... 32 SUM ,. f ........................ 33 PRINT LIHESIZE = 120 . .................. 31* LIST ....,..,..,...,...."....... 3U COPY .......................... 35 ReferencevS cited ..................... 39 Examples, .......................... Uo Firure Figure Figure Fipure Figure Figure Figure Figure Figure Fitrure Illustrations I. Section A Input form , , Page 2. Section B Input form ...,.,,.....,.... 11-18 3. Section C Input form ................. 19-22 4. Job control language ................. 2k 5. GIPSY commands .................... 26 6. Variable description formats and options ..... 29 7. Printout of Example 1 ................ Ul 8. Printout of Example 2 ................ 1*3-1*5 9. Printout of Example 3 ................ 1*8-51 10. Printout of Example 4 ................ 53 11 Abstract GEOTHERM is a computerized geothermal resources file developed by the U.S. Geological Survey. The file contains data on geothermal fields, wells, and chemical analyses from the United States and international sources. The General Information Processing System (GIPSY) on the IBM 370/155 computer is used to store and retrieve data. The GIPSY retrieval program contains simple commands which can be used to search the file, select a narrowly defined subset, sort the records, and output the data in a variety of forms. Eight commands are*listed and explained so that the GEOTHERM file can be accessed directly by geologists. No programming experience is necessary to retrieve data from the file. 1 Introduction GEOTHERM is the operational computerized file, created by the U.S. Geological Survey, of national and international geothermal resource information. The data base covers geothermal physical and chemical data and is stored and retrieved by the General Information Processing System (GIPSY). GEO.THERM contains site-dependent geothermal information The format is divided into three sections which contain information on three subtopics: Geothermal field/area, chemical analyses of geothermal fluids, and geothermal well/drill hole. Section A: Geothermal field/area - This topic contains data on the locality, developments, subsurface dimensions, geology, heat content, etc. of a geothermal field or area. Section B: Chemical analysis - This topic includes - chemical analysis data of geotherrral fluids. Space is .provided for three types of analyses water, condensate, and residual gas. Data items include sampling conditions, solutes, and isotopes. Section C: Geothermal well/drill hole - This topic contains information on peothermal wells. Data items include locality, temoerature, / * pressure, enthalpy, and well flow. The GEOTHERM input forms are illustrated in figures 1-3. The rest of this paper is devoted, to the use of the GEOTHERM file. No previous computer knowledge is required and the necessary job control language (JCL) is illustrated. Further details on the GIPSY program can be found in the GIPSY "Users Guide" and "Programmer Guide" (University of Oklahoma, 1975). 3 Geothermal Resources File (GEOTHERM) Revision 8 (February 1976) Section A: Geothermal Field-Area Record Identification A10 < A20 < u A25 <_ A30 < A Record No. Cross Index No. Revision Record Type Reporter Name Date Organization Geographic Locality Name of Field-Area Users of Area Waring Figure (USGS) B14 < Waring Number (USGS) B15 < Country Code (List A) B40 < A50 A60 A70 B'10 B13 Country Name State/Province County Latitude Longitude B50 < B60 < B65 < B70 < B80 < Yr. 11 i *** i i Available Maps of Area B81 Page 2 - Section A Township, Range, Section, 1/4, 1/4 B95s i t t> 3105^ . t i> B115<, . . , , . . . i i i i i . i . I . t . TOK«sK;p Rawjs Section *A l/» * Base § Meridian B125 * Other Locality Information B83 < General Description Size of Surface Expression CIO < . i i . ..... .... i unit! Elevation B140 < > < i i i i i i t i j I t i i i t i > units Resource Catagory CIS < _ > Development .Status C20 < _ > Present Use 5 Developments C30 < ________; Potential Use C40 < Inferred Heat Source C50 < ____ \ _______; Depths to Production Zones Zone 1 C70 < \ \ \ \ \ \ \ \ \ \ \ \ \. \ \ \ \ \ \ > Unit* Zone 2 t C80 * \_.i_.j.,_ i i t ^ i i t ^1 > t i i t t i > Thickness of Production Zones Zone 1 C100 < i i i t t i i i i t i Zone 2 C110 < i i i » t t i . i t i i i i i i i units Average Temperature of Production Zones Zone 1 C114 < i i i t t t t t t i i | i i _. t i i « > UA.<3 Zone 2 C115 < i ^ i i i i t i t » j I t if t i t > un.'t^ Surface Thermal Activity C120 < _ -5- Page 3 - Section A Associated Deposits No. of Hot Springs Electric Power Capacity . -Year Production Began Number of Wells Producing Injection Test . . Abandoned Other Total No. of Wells Principal Exploration Techniques C220 < Comments (General Description) C230 < Geothermal Characteristics Main Reservoir Fluid Natural Surface Discharge C130 <. C135 < C140 < C150 < C170 < C180 < C190 < C200 < C210 < E10 < E20 < Units > > Total Calculated Discharge of Deep Water Natural Recharge Injection Recharge Total Natural Heat Flux Total Withdrawal Flux Excess Withdrawal/Natural E16 Measured E15- < i i i i t i \ i j i i i i j > m>itj E17 Estimated (Circle Label) i i i i i _ i t i > i t it i i i i i i E30 E40 E50 E60 F.70 < | i ti i i < \ i . i t i i < iifii 1 . . , , . 1 ,,,,,! i i \ \ \ i i Urtit< 1 1 1 Unl^ 1 , I uni£$" I i i units > \ ' ' ? \ > i i i i i ** 1 1 f 1 . .1 S. i i | | j > -6- Page 4 - Section A Heat Flow of Surrounding Area Range of Spring Temperatures E75 < E76 < _ ! i t i iiit i i i i > to E77< t t i j j i i ^ i r i VAj{S Spring Description (if no temp, measured) E78 < Boiling Hot Warm > (Circle word) Well information E95 < E96 < E97 < E98 < Maximum Well Temperature Depth Datum Bottom-Hole Temperature Depth Datum Ave. Thermal -Gradient Comments Reservoir Properties Reservoir Temperatures to Best Estimate Based on Subsurface Area to Best Estimate Based on Depth to Reservoir Top to Best Estimate RJ5 < 1 t i i « t i i I., i 1 R20 < , f t > i i I i i i L i > I > units < II' 1 ' R30 Assumed R50 R55 R60 R70 R40 Measured (Circled Label) <. < >., ,1 I..., l R100 < R110 < R120 < R130 < R140 < j i i i i units t lit I ii ill i V It t . I > UAitS ,1 ^ it i . \. II J t > Units - > Page 5 - Section A Depth to Reservoir Bottom to Best Estimate Reservoir Thickness to Best Estimate Reservoir Volume to Best Estimate Porosity Best Estimate Ave. Well Flow (Mass) to Well Diameter Comments Reserves Total Stored Heat to Best Estimate Depth Datum Temperature Datum Recoverable Heat Depth Datum Temperature Datum R145 < ^ f i t i i i n i i i < i tiii i , i i i . I I > » » t units R150 < ^ ,.......,. 1 ... . ... > units R160 < ........... R180 < {tiii it ii t .i.l i t. i t i r i "> R190 < . ... i . i .... i ...... i > R200 < 111,1. R210 < _____. R230 < ________ > to R220 < > > > R270 < 11.1 R280 < t . . . R290 < . , . t R300 < units t i ii F13 < i i t i it I i t t i . i t F10 < t F20 < L i i i i ti i i i t I i i i i i i i units iiiitliiiiliii.ii. Units i F30 < i_iiiiit'iiiili> F40 < L F50 < t F60 < , iT! unit's iif'iiiii 1.1! t.i .it t . 1 1 I ! 1 1 t 1 1,1 j 1 > -8- Page 6 - Section A Method Used Recoverable By-Product Potential By-Product Comments (Reserves): Geology General Rock Types Cap Rock Aquifer Depth Thickness Cap Rock Aquifer Depth Thickness Other Horizons 5 Units Comments (Horizons): Hydrothermal Index Minerals Important Control or Locus Other Structures or Trends Hydrology F70 -c F80 < F100 G10 G30 G40 G 5 0 < t ^ i i itit t ? t 1 it < II i G60 < iii . i i t . i i i I i i t i i i G70 < ______________________________ G80 < _____ _____________ >' G90 < i i . « . . UnltS G1 0 0 < L t I I t III I i i I I III II \ "> G20 < _________________________________ G110 < ________________________________ G120 < _______________________________ G140 < _____ ._______________________ G130 < _______________________________ G150 < _________ Comments (Geology): G160 Page 7 - Section A Geophysics Gravity Survey Information J20 < _______________________._______________ > Magnetic Survey Information J30 < 4 ____________;______________________^___ v Seismic Survey Information J40 < ,_____________________ , ______________, > Electrical Resistivity J50 <________I______________________________> Other Geophysical Resistivity J60 < ________________________________________, > Comments (Geophysics): J70 < ________________________________________ > Envir9nmental Factors . HIS < ________________________________________ > Primary Reference (Geothermal Field) Author K20 < _________________________________-_«___ > Date K30 < _________________ * Title K40 < ________________________________________ > i " , -- - ' .- Reference K50 <______________________________________ > References 1) . K70 < _________________,____!____________ ..--. > 2) K80 < _________________________________________ > 3) K90 < _________________________________________ > 4) K100 <_________________________________________'> -10- Geothermal Resources File (GKOTHERM) Revision 8 (February 197G) Section B - Chemical Analysis Re c ofd Identification Cross Index No. A20 < i r i... i r t _ t __j > Record Type A30 < B > Sample Type A34 < WELL ' SURFACE > (Circle word) Repojrtejr Name ABO < Date A60 Organization A70 Geographic Locality Geothermal field Name of Sample Source Country Code Country Name State/Province County Latitude Longitude YA MO, < BIO < B20 < B40 < ,_L _, > B50 < B60 < B65 < B70 < L r i- < i ! . i i i ! t V B80 <,,,,-,,,.,,! I , > > > > > > > p M e/w Tov;nship, Range, Section/ 1/4, 1/4 i , .> B105<, . , .> B1I5<. , , , . , , . , , . . . , . , , , ,> Tow*»t«;{> Ran^c - Section 1./M i/1 USGS WRD Well-Spring Numbering System mi 6 < Other Grid System System Used B100 <. X Coorxi. B110 <, Y Coord. B120 <, UTM Zone No. B130 < Nap Reference B82 < Other Locality Information B83 < Page 2 -Section B Surface Sample Information Source Type S10 < Sample No. M190 < Collection Date M200 < Collector(s) 520 < ._________________________________________ > Point of Collection N210 <____._________________________________ _ > Volume Flow Rate of Spring M220 < i i i t i , i , i t t I , , i , , , , > Temperature M210 < i i . t , t i t i t > I . > Qualitative Steam/Water Ratio S40 < ____________________ ________ t > Deposits or Alteration S30 * ______ _________________ Water Treatment Data - M234 < Other Sample Information S50 < References M790 < -12- Page 3 - Section B Well Sample Information Sample \'o. Collection Date Collector(s) References Wellhead Status Wellhead Pressure Water Point of Collection Separation Pressures First Second Third Water Sampling Temp. Steam Point of Collection Separation pressure Steam Sampling Temp. Steam Flow Rate (Mass) Water Flow Rate (Mass) Enthalpy of Total Flow Water Treatment Data M190 M200 S20 M790 NIC N30 P55 P60 < t_ )_ i i i i i ii i i ,P70 < l_L P80 < L . M210 < L . , . . , , , , , , un.'tj i i 1 \ i A/G I I i i I _v_i i ii i i j > .> P75 -: < till 1 I I i t l {... Ill < i i S60 < t ,!!.,, I I , , } I > N50 < i t i t lit i i i i) i i i it it > M220 < |t , t ,,,, t t ,{,,,,.,. > . N60 <,,.,.. M234 < _________ Other sample information S50 < Page 4 - Section B Water Analysis Analysis Date Analyst(s) ?H 1) 2) Eh Temperature Specific -Gravity Specific Conductance Temperature Alkalinity Total Dissolved Solids Total Suspended Solids Isotopic Data Del O (18) of Water . . Del D of Water Del C (13) of Dissolved C0 Del 0 (18) of Dissolved SO Del S (34) of Dissolved S0 Del S (34) of Dissolved H 2 Tritium Content of Water C(14) Content of C02 Other A31 M233 M236 M20 M202 M221 M222 M91 M21 M740 M22 < W > At Ttmp. .> At .M202A <i i i i i L_J I L j > 11 t t i il tii i i i I > .....'. iT> > t « > I I I i I i I I > <t i i . \_ <t \ i i i t units M24 <t i t i 0270 <i i i i i t. i i i t i Q250 <i i i ( i t i i i i i Q150 < t , , , , , , , , , , Q200 <i , , , , , i , i i , Q190 <,,,,,,,,,' ,, Q185 <,,,,,,,,,,, Q186 <,,,,,,,,,,, Q187 <,,,,,,,,,,, I 1 1 1 1 units i i ill J 1 1 1 I 1 , , , , I 1 1 1 1 1 1 1 1 1 u*;*5 l , , , , Unt'ts 1 1 1 1 1 1 i | > ^ t J > ' f 1 > I L f > i i t > j^ 1 1 1 > umis 0.110 < Page 5 - Section B Units Used M341 < Li M30 < Na M4 0 < K ' M50 < Rb M480 < Cs M500 < Na+K M300 < NH, Ml 50 < 4 ' NO. M590 < PO, M600 < 4 SiO^ M130 < SO. MHO < 4 C0 3 M580 < HC0 3 Ml 40 < Rare Earths Analyzed Actinides Analyzed Rare Gases Analyzed Other Solutes & Gases Comments >' Mg M70 < > Cu M360 < > Ca M60 < > Zn M390 < > Sr M380< > Hq M440 < > Ba M330< ' > B M120 < > Ca+Ma M180< > HB0 2 M170 < > Mn+3 M630< > Al M310 < > Mn(TOT) M520< > Pb M370 < > Fe+3 M620< > As M320 < > Fe(TOT) M510< > Sb M470 < > U M450 < > > > M750 < M760 < M770 < M780 < , M800 < > F M90 < > > Cl M80 < > > Br M350< > > I M490< > > O 2 M610< > ' > N 2 M530< > > C0 2 M570< > > SO M540< > > H'2 S M160< > > ' 2 < > CH, M560< ' > 4 -..., .., ., ,.,...,.,.. > > ' . > -15- Page 6 - Section B Condensate Analysis Analysis Date Analyst(s) pH 1) 2) Eh Temperature Specific Gravity Specific Conductance Temperature Alkalinity Total Dissolved Solids Total Suspended Solids Isotopic Data . . Del 0 (18) of Water Del D of Water Del C (13) of Dissolved C02 Del O (18) of Dissolved S04 Del S (34) of Dissolved S0 4 Del S (34) of Dissolved H 2 S Tritium Content of Water C(14) Content of C02 Other A32 < C > S70 <___ S80 <___ N191 <___ SlOO <___ S110 < _ > At N191A > Te^p. siOOA <r « i < t i ' i ' ' i i i i i ) i > S140 .< _____________________ > S150 <t , , ( f ( t t t t , I , , || j , j 5160 ** ' ' t » t i i i. .« i .1 . > S170 <, i , < t I I 1 J I > I I I I I i I I . I I I > Un.tJ S190 < i ) ) I t I I t i.l I ! J I I l_.._i ^ Q260 < t j i i i it i i i 1 1 i Q24 ^ < i ^ i i » i i > i i i I i i t i i i i S220 < j i i . t i i t i j ( t I i i t < i i i S 2 3 0 < j t i i i i l i i i i I i i i i i i i ' . UAl't5 S240 < i__._i > r j t it t i i I i 5250 < l i i t i l i. t. i i t I ^ i i. i i i j t i t i j > . > > S260 <; . t i i i t i r t t i S270 <i i ( | t i \ t i t { { t i t i i S280 < i > Page 7 - Section B Units Used T500 < Li T10 Na T20 K T30 Rb T40 Cs T50 Na+K T60 NH4 T70 NO T80 PO, T90 4 Si0 2 T100 S04 T110 C0 3 T120 HC0 3 T130 Rare Earth Actinides Rare Gases Other Solu < < < < < < < < < < < < < s Analyzed Analyzed Analyzed tes & Gases Comments > > > > > > > > > > >. > > T440 T450 T460 T470 T490 Mq T140 < > Cu T230 < Ca T150 < > Zn T240 < Sr T160 < > Hg T250 < Ba T170 < > B T260 < Ca+Mg T180 < > HBO n T270 < Mn+3 T190 < > Al T286 < Mh(TOT) T200 < > Pb T290 < Fe+3 . T210 < > As T300 < Fe(TOT) T220 < > Sb T310 < U T320 < < < < < < > F T330 > Cl T340 > Br T350 > I T360 > 0 0 T370 > N 2 T380 > C0 2 T390 > SO^ T400 > H^S T410 > H n T420 CH 4 T430 > > < < : < : < < : < . < : < : < : < < > -IT- Page 8 - Section B Gas Analysis Analysis Date Analyst(s) A33 < G > U10 <___ U20 < Gas/H 2 0 Ratio (mol/mol) U30 < Units Used N230 < CO. H 2 S 0, N80 <. N90 <. .N140 <. N150 < H 2 CH C 2H 6 He N120 < N130 < N182 < N170 < Other Hydrocarbons U40 < Other Isotopic Data Del C (13) of CO. C(14) Content of CO, Del C (13) of CH ( Del D of CH 4 Del D of H 0 U50 < U60 t tii t lit t i i < I, i i i i r t t i i i i i J 1 t > <!* I I » 1 t , I I I t i Nl.lla. . f I I I » I I i ti i i i i i 11 Urti'tS Del S (34) of H 2 S Q 220 < L_L_L L_L U110 <|,),, Ratio Ar(40)/Ar(36) Q290 <_______ Other U130 <_______ Comments U140 <______ i i i i \ i Unitj f I units Ar N183 <. Rn N110 <. Hg N160 < -18- GEOTHERMAL RESOURCES FILE (GEOTHERM) C - Gcother-.nal Well/Drill Hole ftecgjrd Identification r Record No, ALO <......,.» Cross Index No. A20 < ._______________ : Record Type A30 <_v Reporter Name A50 < . Date. A60 <i_. ./. y«. Organization - A70 <________ Location ; Geothermal Field BIO <_________________ KGRA Bll < _________ API No. B12 <_________________ Well name B30 <__ '__________ company B35 <___________________ Country Code BAG * t . ,^ . . Country B30 < ___________________ State* B60 <________________ County B65 < __________________ B70 <t i \ - 1 i i « t i i B80 <i i t i , . , , > . . , f \ > ^ fA» township, Range, Section, %, % 6 Meridian B125< Coordinate System Northing B120< Easting B110< UTM Zone No. B130< Reference B82 < Locality Information B83 <. -19- SECTION C - PACK 2 grilling & Casing Date Started v Date Completed Date Abandoned Well Status Total Depth Elevation Casing 012 D10 JA-^-J/l- /_l_1 / «o. .x . .X B150< t ,....,. . ._ . D45 < Producing Interval Water Level Drawdov/n Porosity Permeability Well Log Information D40 < D25 < f i D26 < L D27 < D28 < L D29 < 11 r » r i i i ii I I r t i > L 0*1175 Comments C230< L61 < DRY STEAM L62 < INITIAL TEST SECTION C - PAGE 3 testing & Completion Data Production Type 'f Measurements From Date Flow Rate Orifice Plate Size Steam Quality Wellhead Temperature j Bottom Hole Temperature 0130^ .....,.,.. I .: HOT WATER > SUBSEQUENT TEST > L64 it it v/j i rs D90 < L65 <, . . Wellhead Pressure Enthalpy Of Steam Enthalpy Of Brine Enthalpy Of Total Production Rate Comments 1.67 <t -J L I L I I I D230<, , , i " , , , , i , D240<, ,.,.,1,,.. L66 "^ i i , i i t i i i. . j D140 <, , , , , , , . , , i L68 « U»»|T5 A/C, I 1 , « 1 t l> 1 , . 1 1 i 1 1 * L ,.,,,. ,> 1 , i i i i. j stem Test Bate Interval Flow Rate Fluid Recovery Fluid Temperature Final Flow Pressure L20 <, L25< 1*0. L26 < L L27< L40 <L_L_1_ -J ' ' I t i L41 < Final Shut-in Pressure L42 < ,_L __!> U»iiT5 'Final Hydrostatic Press. L43 <.........., | -PI JECTION C - PAGE 4 I jpr iroary Reference f Author K20 < Date - K30 < = Title K40 < I I Reference K50< iCther References 1) K70 "<. 2) K8CK_ GIPSY The General Information Processing System (GIPSY), developed by the University of Oklahoma, is used for the storage and retrieval of GEOTHEftM data. 'The GIPSY program provides for easy access to the file by a set of simple user commands. A retrieval setup consists of job control language (JCL) and GIPSY retrieval cards. The JCL needed to make a retrieval from GEOTHERM is listed in figure 4. The retrieval cards, which follow the JCL cards, contain the user commands and command parameters relating to a specific retrieval. GIPSY commands are user-oriented so that no prior computer experience is necessary to make a retrieval. With a set of eight commands, the user can select, sort, and output information from the file. A successful retrieval can best be accomplished by using the following questions as a check list. What kind of data is'desired (e.g., geochernical, wells, or fields)? Should the data be restricted by geographic locality, temperature, chemical constituents, etc.? Should the data be sorted? What data items are desired for output (all or a partial list of items)? How should the output be organized (entire records, tables, lists, etc.)? // Job Card //A EXEC CUESTRAN J)NAHE= % A93 i100.AZ231.WG9B200.GEOD* , DYOLrCCD915 , // DUrUT=3330,RNAME=*RIF.W0020.THERMl*,RVOL*CCD921, // UNIT=3330,CLOCK=15,SPACE=800,RGN=110K //QUE3TRAW.SYSRDR DD * FORM GEOTHERM - GIPSY retrieval cards - / /* Figure 4.--Job control lanrua^e The answers to these questions are important in formulating a search strategy and assembling a set of GIPSY retrieval cards. The retrieval cards are a sequence of GIPSY commands and conditions. A command always begins in the first column of the computer card. Parameter statements that follow each command begin in Column 2. For example, the. SELECT command is followed by parameter statements which define and list criteria for selection. The most common commands, and the function they perform, are listed in figure 5. -25- SELECT ITERATE BACK ' FUNCTION Search/Retrieval SORT SUM Processing PRINT LIMESIZE=120 LIST COPY Outout Figure 5.--GIPSY commands -26- The -Commands SELECT. --The SELECT command is used to initiate a search on the GEOTKERM file. It will always be the first command used for each retrieval but it can be used many times in one job run. The result of this command will be a subfile which, in turn, can be searched using the ITERATE command. An example of the SELECT command and parameter statements is listed below. SELECT A. B40 US variable descriptions B. A30 A LOGIC A AliD B lofic statement Two types of condition statements are reouired: the variable description( s ) and the lo^ic statement. Examples in the use of the SELECT command are shown in examples 1-4 (figures 7-10) Variable description - This statement provides the factors for selection of a record. For example, the user may wish to see seo thermal field records from the United States. The subset r«ust reflect two characteristics. A. United States B. Geothermal Field Records The variable descriptions would be: A. B40<US> B. A30<A> -27- The designators (A, B) are uniaue single alphabetic characters used to identify one characteristic in one search. Up to 26 designators can be listed for each use of the SELECT command. Following the designators are the data labels (B^O, A30). These unique labels identify the data iteins of the file (see input forms for subtopics in figures 1-3). "BUG" is associated with country code and "A30" is associated with record type. Following the labels are restrictions which the user can impose. The first conditions (<US>) indicates that the country code, "US," is a factor in the search. The brackets (< ">) enclose character strings. A list of variable description forr.-ats and options are illustrated in figure 6. » Logic_Statement - The lo^ic statement is the key to the search procedure. It links the variable descriptions using the boolean operators, "AMD," "OR," and "NOT" (the synbols * (AND), + (OR), - (HOT) can be used also). In the example, both characteristics (i.e., peotherrnal field records from the United States) are required. The logic statement is: LOGIC A AND B -28- A. A30 B. A30<KA C. A30<A> D. E. F. A30<£A£> THRU G. H. A30.EQ 20 I. A30 GT 20 J. A30 LT 20 K. A30 10 THRU 20 L. A30 EQ 'A20 M. A30 LT A20 N. A30 GT A20 A. Use only the label by itself v/hen.it is desired to select on existence (presence) of a data item. For example, the user may want to select analysis records only if they contain temperature data. B. This setup means the user wants any data with the word "/il# M (a word is defined as a string of one or more characters or numbers bounded by blanks). C. This setup requires only the existence of the letter "A." All words that contain the letter "A" will be selected. Figure 6.--Variable description formats and options. D. Use this setup for the prefix, "/) A." Records with "around" or "about" will be selected but not "Canada." E. Use to find the suffix, "ftf." Records with "Canada" or "Nevada" would be selected but not "average." F. The user can retrieve on a range of letters. In this example, the words "A," "B," and "C" will be retrieved. G. In this example, the character value of "20" would be selected. The string, "20.0," would not be selected H. The numeric value, 20, would be selected whether it v/as 20.0, 020, or 20. I. Records with a numeric value greater than (GT) 20 will be selected. J. Records with a numeric value less than (LT) 20 will be selected. K. The user can select a range of numbers. In. this case, all records with value of 10 through 20. L-N. Numbers under two lables can be compared. In these cases, the numeric values in labels A20 and A30 are compared. (EQ = equal, LT = less than, GT = greather than.) Figure 6. (cont'd) -30- Another lo,?ic statement could have been used with the same variable descriptions to select a different subset. For example: LOGIC A Ai\T D NOT B This example would retrieve records from the United States but net if they were reothermal field records. Parentheses may be used as in mathematical equations to eliminate ambiguities, LOGIC A OR B AMD C LOGIC A OR (B AMD C) ITERATE. The ITERATE command performs a function similar to the SELECT command. When the SELECT command is invoked the entire file is searched and all previous subsets are deleted. The ITERATE command is used to search a previously selected subset. The SELECT command produces a subset 1. The ITERATE command will often follow the SELECT command and it is used to search subset 1. The resultant subset is subset 2 which in turn can be searched using the ITERATE command a second time. These subsets are deleted when (1) the job is finished (2) the SFLFCT command is used again (3) the BACK command is used. The ITERATE command is used like the SELECT command and contains the same variable description and logic statements. For use of the ITERATE command see examples 2 and 3. * l' ne BACK command is used to return to a previously selected subset. That subset can be either searched with the ITERATE command or it can be sorted, printed, etc, BACK 2 ITERATE In this example, the user returns to subset 2 and then searches it. Subsets 3 and greater are deleted but subset 1 is still retained. The resultant subset in this case v/ould be a new subset 3. See example 3 for use of the BACK command. SORT. The SORT or SORTD (descending sort) command is optional. Records can be sorted by any information item and the sorts can be nested. SORT B60 10 M130 5.2 The parameter-statenents consist of a list of the sort fields and the number of characters involved in the sort. In the example, B60 and M130 refer to state and silica content respectively. The subset is first- sorted on the first ten characters of state. The secondary sort is on silica content and is ordered numerically for five dibits with two decimal places. See example 2 for use of the SORT command. -32- SUJi- --The SUM conir.and producer r.ho following information. 1. The number of occurrences of the item in the selected subset 2. The arithmetic mean 3. The algebraic sum 4. Maximum value 5. Minimum value This operation ignores text. The parameter statements consist of a list of the items to be Drocessed. SUM MI 30 M40 This example would perform the SUM orocedure for silica content (MI30) and sodium content (M-iO) for the selected subset. See exanpie 4 for u?e of the SLir! command. -33- £RMI_LIll£S_TZE=120.--The PRINT command instructs the system to print the records from the selected subset. No parameter statements are required. Each record begins at the top of a computer page. The NOPAGE option which prevents beginning a new page for each record can be added. PRINT LINESIZE=120 NOPAGE See example 2 for use of the PRINT command. LIST.--Sometimes the user only wishes to see a few data items. The LIST command is used to print designated portions of the selected records. The items are printed in their entirety and are continued on subseouent lines if there is an overflow. The parameters are a list of the data items to be printed. LIST M130 MHO M30 See example 3 for use of the LIST command. COP_Y.--The COPY command is probably the most useful output command. Fixed-length records can be produced from CEOTHERM with this command. The system, therefore, has a report generating capability which can produce tables or formatted records for user-written processing programs. The COPY command is used in example 3. Copy to Printer - The user may wish to produce tables from a subset of GEOTHERM records. The parameter statements that follow the command consist of a list of data items and character strings to be included in the table. A line is printed for each record of r the subset. The parameter statements consist of the following types. AID x In this case the first "x" number of characters from AID will be printed. Blanks are inserted if there is no data. A10 x.y This format causes the first number in A10 to be printed with "x" number of dibits and "y"-decimal places. The decimal point is assumed. "STRING" Literal character strings can be inserted by putting the string between single quotes. This character string would be printed for every record. Maximum length is 60 characters. The first statement after the COPY command is a literal used for carriage control on the printer. The user has three choices of spacing. a blank provides single spacing *1 % double space H - N triple space If one of these three cards is not entered, then the first character of each line will be truncated. If output is going to disk then this card is unnecessary. Copy for Extended Applications - The COPY command is very useful in producing formatted subfiles for further processing. For example, silica, sodium, potassium, and calcium concentrations from chemical analysis records can be extracted, formatted, and output to cards, tape or disk. Data that is extracted can be formatted to fit the needs of the user program. Suppose the user had a program desipned to process the following data input format. Column Field " Data type Length 1 Geothermal field Character 15 16 State . Character 15 31 County Character 15 ^6 Silica Decimal 5.2 51 Sodium Decimal 5.2 56 Potassium Decimal 5.2 61 Calcium Decimal 5.2 -36- The COPY output would be the followinr: COPY BIO 15 B60 15 B65 15 M130 5.2 M30 5.2 M60 5.2 With the addition of one job control statement this data could go to cards, tape or temporary disk space. The extra statement would, be inserted just before //QUESTRAN.SYSRDR DD*. This extra JCL card for each output is listed below: Card Output //QU[s3THAr:.SYSlvRKO DD SYS OUT = R , DCB= (RECFM=F A , LRFCL-80 , ELKS IZ Fir 60 ) Temporary disk output //QUESTRAN.SYSURKO DD DSN=&&TEMP,UNIT=SYSDK,DISP=(MOD,PASS), // DCB=(RECFM=FB,LRECL=XX,BLKSIZE=XX), // SPACE^(CYL,(6,1),RLSE) This example would create a data set (&&TEMP) on a system disk pack. The LRECL (record length) and BLKSIZE (block size) will vary with the total length issued from the COPY command. This GIPSY procedure could be followed by a program written in PL/1, FORTRAN, etc. -37- lane Out out //QUESTR/UM.SYSURKO DD DSN=nyset, UMIT = TA PE9 , // DISP=(,KEEP),DCB=(RECFM=FB,LRECL=XX,BLKSIZE=XX), // LABEL=(I,SL) In this examole a data set called "mysct" would be created on a standard label 9-tract taoe. The LRFCL (record length) and BLKSIZE (block size) will vary with the total ierurth issued from the COPY command. -38- References cited University of Oklahoma, 1975, General Information Processing System Users Guide, GIPSY documentation series, vol. 2: University of Oklahoma, Office of Information Systems Programs. University of Oklahoma, 1975, General Information Processing System Programmers Guide, GIPSY documentation series, vol. 3: University of Oklahoma, Office of Information Systems Programs. -39- Examples Example 1 Objective - The user wishes to pet a counh of chemical analysis (Analysis (A30=B) records from the states (B60) of California and Nevada with temperature (M210) greater than 35°C. In this case none of the output options will be selected. Input setup // JCL FORM GEOTHERM SELECT' A. A30<B> B. B60<CALIFORNIA> C. B60<NEVADA> D. M210 GT 35 LOGIC A*(B+C)*D /* -no- Figure 7- Example 1 SELECT A. A30<8> RECORD TYPE..... B. STATE/PfHVINCE. R40<CALtFQRNlA> STATE/PRQVIN:E. D. MZ10 GT 35 WATER SAMPLING TEMP.... LOGIC A*(B+C)*D SEARCH ?0:?3:4l.2 SEARCH BEGINNING D:?3:^9.7 SEARCH SU9SET SEARCHED SELECTED VARIABLES A 8 C 0 18SO 416 SATISFIED 1309 386 732 652 Objective - The user wishes to select all records from the United States and then search that subset for Arizona records. The selected records are to be sorted by county (B65) and geothermal field (BIO) and then are to be printed. Input setup // JCL FORM GEOTHERM SELECT A. BilO<US> LOGIC A ITERATE A. B60<ARIZONA> LOGIC A PRINT LINESIZE=120 /* Mote: It v/ould actually be easier in this particular example to ask for the Arizona records directly. However, by selecting the U.S. records, the user has a smaller subset to deal with. Thus, another ITERATE command on the U.S. records could have followed the first. Search time and cost would be lower because the U.S. subset is searched instead of the entire file. :rr 3. Example 2 A. COUNTRY CODE. tonic A 2>:23:<r9.C SEARCH BEGINNING 20:24:06.0 SEtAlH COMPLETED SEARCHED I860 SELECTED 1*95 SUBSET 1 V4RU8LES SAT! SPIED A 14,95 ITERATF A. R6G<4fUZONA> STATE/PROVINCE, LOT, 1C 4 23:2^:06.2 SEARCH BEGINNING 2Q:?V.l7.l SEARCH CQHPLETCO H95 SELECTED U SUBSET 2 VARfABUES SATISFIED A 11 SORT a&s 15 ftlQ 15 EN3 CP SORT PRINT LlNEStZE-120 . -1*3- Figure 8. Example 2 (cont'd) PACE 0001 RECORD 00001 GfftTHtRMAL RESOURCES FILE {GEOTH6RN) REVISION 8 SecTIOS A.- CEOTHERMAL FIELD-AREA RECORD IDFS'T IFlCiUON RECORD NO. ...... 0000256 CROSS IMDEX \3.. CFC0281 RECORD TYPE..... A NAME.......... J. RENNER OATE.......... 75/05 ORGANIZATION.. U.S.G.S. GEOGRAPHIC LOCALITY G-CniHErtHAL FIELD-AREA.. POWER RANCHES INC. WELLS COUNTRY CODE........... us COUNTRY NAME........... UNITED STATES STATE/PROVINCE......... ARIZONA LinruOE............... 33-17-06N , LONGITUDE.............. U1-41.-12U TOWNSHIP RANGE SECTION 1/4 1/4 C2S 06E I SW BASE C MERIDIAN........ GILA C SALT RIVER AVAILABLE HAPS DF AREA: HIGLeY 1:24,000 GENERAL DESCRIPTION ELEVATION..................... 408.^3 H 1340. FT RfSOUftCc CATcT.ORY.. ........... 6 PRESENT USE C DEVELOPMENTS: 2 WELLS OF ABOUT 3KH DEPTH SURFACE THERMAL ACTIVITY...... FOUNO BY DRILLING wn. OF HOT SPRINGS............ GEOTHERMAL CHARACTERISTICS NATURAL SURFACE DISCHARGE.......... 316.65 L/S U9000E+04 L/MIN ESTIMATED WELL INFQRHATION HAXINUH WELL TEMPERATURE........... 18'». C TO 3200. H BOTTOM-MOLE TEHPEPATURE............ 184.0 C TO 3200.00 H RESERVOIR PROPERTIES RESERVOIR TEMPERATURES.......to. 163. C TO 184. C MEASURED PEST ESTIMATE............. 160.0 C SUBSURFACE ARF4............... 1.0 KM**2 TO 5.0 KH**2 6EST ESTIMATE.. ........... 2.5 KK**2 SASEO ON: 9RI LLING DEPTH TO TOP OF RESERVOIR..... 6EST ESTIMATE............. 2000.00 M 2.000 KM DEPTH TO BOTTOM OF RESERVOIR.. 3000,00 M 3.000 Krt TO 3000.00 M. 3.000 ftFST ESTIMATE............. 3000.00 H 3.000 KM THICKUESS OF RESERVOIR........ BEST ESTIMATE............. 1000.00 M 1.000 KM VOUHE OF RESERVOIR..... ...... BEST E STIMATE............. 2.'300 KM**3 COMMENTS: DEPTH TO BOTTOM OF RESERVOIR IS ASSUMEO. Rfseftves TOTAl STORED He4T.......... cEST ESTIMATE.......... a.3716E*17 J l.9999E*l7 CAL ABOVE 15. C Figure 8. Example 2 (cont'd) OC 3G Y &EW£RAL RCC< TYPES: VOLCANICS (AGE?> PAGE 0002 REFERENCE: . O.E. WHITc 4 O.L. WILLUKS, EDITORS . 1975 TITLE....... ASSESSHENT OF GEOTHERMAL RESOURCES OF THE UNITED STATES - 1975 ... u.s.c.s. CIRCULAR 726 REFERENCES: ^E-IS. :OHM. MR HIKS 0 OONNELL t MR. WARD AUSTIM OF GEOTHcftHAL KINETICS Objectives: i) Seiect U.S. records. 2) Use the LIST command to print sample source (B20), temperature (M210), sodium (M*IO), potassium (M50), calcium (M60), and silica (M.I 30). 3) Search the U.S. subset and seloct chenical analyses records from Nevada. *O Produce a tabular format of the Nevada records including the same data elements from the LIST command. In order to illustrate the BACK command in this example, the Nevada records will be selected from the U.S. subset and output in tabular form. The U.S..subset is then called back to be listed. Input setup // JCL FORM GEOTHERM SELECT A. B40<US> LOGIC A ITERATE A. B60<NEVADA> B. A30<B> LOGIC A*B . ' -1*6- Ci'i i V \ B20 20 % x M210 I MHO 7 x » M50 7 x % M60 7 x x Mi30 7 BACK I LIST B20 M?iO MMO M50 M60 MI 30 9. Example 3 SHECT A. B40<US> COUNTRY CODE, ScARCH ??:24:5l.l SEARCH BEGINNING ?0:2*:56.5 SEARCH COMPLETED SEARCHED 1860 SELECTED 1*95 SUBSET VARIABLES SATISFIED A 1VJ5 ITERATE A. 860<NEVADA> STATE/PROVINCE......... A30<R> RECORD TYPE. Lfr.IC A*B S=ARCH 23:2^:56.7 SEARCH BEGINNING 23:25:22.9 SEARCH COMPLETED SEARCHED 1495 SELECTED 3^0 SUBSET VARIABLES SATISFIED A B CTPY « t R23 20 t i *210 1* H40 7 i H50 7 i i 386 1233 "Figure 9, Example 3 Icorrt'dj UCK 1 LIST M210 M^3 H50 M60 -1*9- Figure 9. Example 3 (cont'd) 90.0 90.0 95.0 CARSON (SHAW) HOT SP 44. MMN r.EYSFR BOILING SPRING 21-N 95 .6 SPRING 8 85. *tW?R'S MANSION, NEV 43. S1UTH STFAMSOAT WELL WARM ^-S 52. ",S-n 97. 24? 97. HOT SPRING N NEVA O HIT SPRING. ( S HIT SPRING ISSUED HIT SPRING N <iHAl I nw RESEARCH HEL UMNiKCQ HOT SPRING N CFYSER SPRINGS SPRINGS L GEYSER LftS VFC-S.S SPRINGS "."Pit VHL6 W\RM SPRIN ^?IV!N HTT SPRINGS ( WFLL NFAR HOT SPRING .= YSER PANCH SPRINGS HIO SPRING PANACA WARM SPRING S-tALLOW RESEARCH WcL SIVNAMEO HIT SPRING I "STEAM" WELL IKNAHEO HOT SPRING = LOW INS WELL IN STtL UNNAMED HOT SPRING FLOWING WELL NEAR 'GE UNNAMED HOT SPRING C C C C C C C C C 160.00 1000.00 110.00 35.9 744 682 806 866 37.3 66 ( 753 16.00 48.00 2.60 77 103 77 108 5.7 8.2 78 12.03 32. 00 1.30 10.9 TRACE 6 6.8 13 7 6.7 15 5.9 11 165.00 160.00 90.00 242.00 44 418 343 311 205 325 44 335 49-60. 60. 77. BOILING 41. 79. 98. 1&-21. 29-31. . 61. 77. 92. 29. 72. 97. 88. 66. 54. 80. 86. 56. 79 . 90. 54. 72. . 72. 5S. 49. 74. 7?. C C C C C C C C C C C C C C C C C C C , C C C C C C C C C C 774.3 741 282 282 130.95 239 295 300 250 540 160 180 I4fi0 277 450 170 81 340 463 120 45 390 230 44 200 238 250 150 165 66.9 91 53*38 33 17 31 38 80 13 20 42 15 26 8.4 1.0 17 9.3 39 16 41 58 14 36 33 34 22 26 30 6 46 46 100.3 2 56 44 67 37 44 52 40 75 1.3 95 s. a 36 103 38 44 4.3 .2 31 25 60 60 49 53 56 43 29 45 33 110 278.8 271 42 42 133.4 449 n 43 54 11 35 46 105 500 150 135 110 170 115 100 110 57 82 85 65 70 84 67 68 77 BO eo 66 65 -50- Figure 9« Example 3 (cont'd) PACE 01 S4MOLING TEMP.... 100.0 <a 4<rl.OO K 13. OQ . r.i 0.10 S1D2 303.00 WATER SAMPLING TEMP.... 69.0 V\ 603.00 < 33. 03 CA 163.00 88.00 SAMPLING TEMP.... 52.0 U 87.03 K 9.Z3 r; i3.oo SI32 108.0.0 SAMPLING TEMP.... 83.0 ti 2B8.00 K 21.00 CA 9.90 SI02 128.00 WATER SAMPLING TEMP.... 22.0 NA 53.00 C 5.60 CA 18.03 59.00 WATER SAMPLING TEMP.... 55.0 C N4 1450.00 >C 61.00 CA 533.00 SI 02 '100.00 WATER SAMPLING TEMP.... 77.0 C NA 800.00 K 41.03 CA 75.00 SIC2 90.00 rfATER SAHPLINS TEHP.... 49.0 C NA 51.00 K 1.30 C4 2.00 SI 02 75.00 N4 83.00 K 2.10 CA 5.90 -51- i?. y n IP r> 1 e. Objective - For Nevada analysis records use the SUM command for temperature (M210), sodium (M^O), potassiun (M50), caiciurn (f'60), and silica (fII30) Input setup // JCL FORM GSOTHERM SELECT A. B60<NEVADA> B. A3rO<B> LOGIC A*B SUM M210 M40 M50 M60 Mi 30 ' . -52- 7i.ru.re 10. Example SPLcCT \. STATE/PROVINCE. RECORD TYPE..... LO'tC A*B SEARCH 3:35:?-). 9 SEARCH BEGINNING 0:3S:41.6 SEARCH COMPLETED SEARCHED SELECTED 1860 3*0 SUBSET VARIABLES SATISFIED A B SUM LABEL M?1D "60 336 1339 <*) 234 290 275 Z73 260 SUM 15,760.5 103,941.72 9,575.67 10,226. I 30,763.65 AVE 67.30675 358. 4L972 3<t. 82061 113.34096 MAX 186 lt51D 160 412 5"i't MIN 3 1.73 O.IB 0 GIPSY - LWmsiTY OF.OKLAHOMA 8:35 P.M. TUESDAY MARCH 8,1977 -53-