Ejemplo n.º 1
0
    processed_logs.append(log)

### 9. electrofacies ###

# define curves to use in electofaceis module #

electro_logs = ['GR_N', 'RESDEEP_N', 'NPHI_N', 'RHOB_N', 'PE_N']

# specifiy to use logarithmically scaled RESDEEP_N #

scaled = ['RESDEEP_N']

# calculate electrofacies for the processed logs #
final_logs = ptr.electrofacies(processed_logs,
                               f,
                               electro_logs,
                               6,
                               log_scale=scaled)

### Third Iteration ###

for log in final_logs:

    ### 1. export statistics ###

    log.statistics_to_csv('wfmp_processed_las/wfmp_statistics.csv',
                          replace=True,
                          formations=f,
                          curves=stats_curves)

    ### 2. export data ###
### 9. electrofacies ###

# define curves to use in electofaceis module #

electro_logs = ['GR_N', 'RESDEEP_N', 'NPHI_N', 'RHOB_N', 'PE_N']

# make a list of Log objects as input         #

logs = [log]

# calculate electrofacies for the defined logs#
# over the specified formations               #
# finding 6 clusters of electrofacies         #
# with RESDEEP_N logarithmically scaled       #

logs = ptr.electrofacies(logs, f, electro_logs, 6, log_scale=['RESDEEP_N'])

# unpack log object from returned list        #

log = logs[0]

### 10. statistics ###

# define list of curves to find statistics    #

stats_curves = ['OIP', 'BVH', 'PHIE', 'SW', 'VCLAY', 'TOC']

# calculate stats over specified formation and#
# save to csv file wfmp_statistics.csv        #
# update the line if the well, formation is   #
# already included in the csv file            #