Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
518 views

Using A Python Script

Using a Python script in Techlog
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
518 views

Using A Python Script

Using a Python script in Techlog
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 6
Techlog Tutorial Ref: TT - SCR-O1 Techlog Using a Python script to create Well Properties 8/02/2007 In this tutorial it is assumed that the requisite Python script (wellPropertyZonePositions_v12.py) already exists; this tutorial does not cover the creation of a Python script. Table of Contents: COPY THE SCRIPT INTO THE CURRENT PROJECT. ACTIVATE THE SCRIPT IN TECHLOG EDIT THE CONTROL PARAMETERS weawne Copy the script into the current project Using Windows Explorer, find and copy the wellPropertyZonePositions_v12.py Python script into the Clipboard. In Techlog, click right mouse button (RMB) on the word “Datasets” in the Project Browser (PBr); select the option "Open the system explorer” from the fly-out menu that appears. In the new Explorer window that now opens on the current Project directories, open the directory *PythonScripts” and paste the wellPropertyZonePositions_v12.py Python script into this directory. Return to Techlog, place the cursor in the PBr Dock window and press FS to refresh the view of the project contents. The new Python script appears under the category “Python scripts” in the PBr. Techlog Techlog Tutorial Ref: TT - SCR-OL 18/02/2007 Using a Python script to create Well Properties Activate the script in Techlog Double-click the name of the wellPropertyZonePositions_vi2 Python script in the PBr. The Techlog Python Editor window opens to reveal the script and its control parameters. This window looks like this: The colours in the script indicate special operators... e.g. blue is a code operator, purple is comment text, green is a “string” etc. In the upper part of the three-part window the control parameters are specified and given values. The lowest part of the three-part window is for output statements/results. we Nee EE ee Date: 08/02/2007 Page: 3/6 ‘Techlog Using a Python script to create Well Properties Edit the control parameters In the upper part of the script editor window, the user has to enter the appropriate names in the Value” column. Tore ee The descriptions in this case are quite explicit as to the information required for each entry. ALL ENTRIES ARE REQUIRED, NONE OF THEM IS AN OPTIONAL ENTRY. + The first line requires the Zonation Dataset name. + The second line requires the Well Path Dataset name. + The third and fourth lines require the name of the X and Y Offset data in the current Well Property tables (i.e. these values will be picked up and used by the script operation). Note that all these parameters are defined as input parameters (Mode = “In”); it is in the nature of this script that it will write directly into the Well Properties table in Techlog. [The columns in this upper part of the editor window are general columns suitable for all types of inputs. Not all are relevant for the particular entries for this script; irrelevant cells can be left blank, as shown.) Techiog Tutorial Ref: TT ~SCR-O1 Techlog Date: 08/02/2007 Page: 4/6 Using a Python script to create Well Properties Run the script Running the script simply involves clicking on the ! icon located in the top left of the editor window. With this particular script, messages are posted into the lowest part of the editor window during the job run. The X and Y Offset values MUST be present in the current Well Property Table for each well, otherwise an error is reported and the script stops. The well property outputs are written directly to the Well Property Tables of the relevant wells. NB. This script has only been run in a few different projects as of writing this tutorial; it is possible that other projects will cause errors. ec hlog Using a Python script to create Well Properties QC the results The lowest part of the editor window contains some information about the progress of the script run. Messages are posted about units consistency, numbers of wells involved and number of headers created per well (depends on number of zones present in each well). eee t= tn) ont amit i a st et i anh tn Si ai con oe Tats ey ys sae a pr ce decanted ch dtm. i enc wir th zona datst aa th ath det pid She "a nabropeeyVauin, Xs tne Wcaton a gute to ow vn Sto MTSE DATA OT BE PRESENT nator") Nop mmo pen ea an at ta ath th a heen = verbiage Za Name) ia canatae fo) ener mewn amy "Zan am tthe ft occur ae tn a th choc oer hic einen coronene, oie see riteeretrr meson Saints Siyunes fone > oat: ‘Waring: ut ar ot haem the Wal je un yan: oft unt) ‘rang he ts retort sa We sets (aa: Wr Yan: Wet ase) Durten ()o.cston toes The user can also verify the new Well Properties Table(s) by clicking on individual Wells in the PBr and reviewing the Well Property Table ("Properties” Tab) for each one: Techiog Tutorial Ref: TT - SCR-O1 Techlog a Python script to create Well Properties 2 JOURNAL FILENAME '22_643_JOURNAL DAT LOCATION a LOG_MEASURE_FROM_Fi 6 ORGINALWELLNAME SHORT WELL_NAME fy SURVEY_DEPTH The new Well Properties are appended to the base of the table, as shown above.

You might also like