def production_dates(): print('\nSelect the dates for which you would like to assess production') print('The available data set contains monthly production data for wells between Jan-2005 and Dec-2019') print('For OPGEE field assessment, adjust start date to be first drill year\n') start_date = str(raw_input('Enter the Start Date (YYYY-MM): ')) end_date = str(raw_input('Enter the End Date (YYYY-MM): ')) print('\n') date_array = dates_array(start_date, end_date) return date_array
from well_search import well_search from OPGEE_defaults import OPGEE_defaults from general_well_data_analysis import OPGEE_well_data, general_well_data_analysis from dates_array import dates_array from OPGEE_input_sensitivity import OPGEE_input_sensitivity #from LNG_well_search import LNG_well_search #well_data_function = get_formation_well_data() # MONTNEY well_data_function = well_search() #well_data_function = get_tight_oil_wells() #well_data_function = LNG_well_search() well_data_headings = well_data_function[0] well_data = well_data_function[1] #well_data = [] OPGEE_data = OPGEE_defaults() OPGEE_data = OPGEE_well_data(well_data, well_data_headings, OPGEE_data) dates_array = dates_array = dates_array('2017-01', '2017-12') #dates_array = ['2017-06'] OPGEE_data, province_facility_total, count_AB_wells, count_AB_facilities = AB_facility_analysis( well_data, well_data_headings, OPGEE_data, dates_array) #for well in OPGEE_data: #print(OPGEE_data['assessed field'][OPGEE_data['headings'].index('Flaring-to-oil ratio')]) #print(OPGEE_data['defaults'][OPGEE_data['headings'].index('Flaring-to-oil ratio')]) #OPGEE_input_sensitivity(OPGEE_data, well_data)
return OPGEE_data, SK_facility_data['ALL'], len( connected_wells), len(SK_facility_data) - 1 if __name__ == '__main__': from well_search import well_search from dates_array import dates_array from OPGEE_defaults import OPGEE_defaults from general_well_data_analysis import OPGEE_well_data from OPGEE_input_sensitivity import OPGEE_input_sensitivity from get_all_post_2005_well_data import get_all_post_2005_well_data, get_tight_oil_wells #well_data_headings, well_data, project_name = well_search() #well_data_headings, well_data = get_all_post_2005_well_data() #well_data_headings, well_data = get_formation_well_data() # MONTNEY #well_data = [] #collec all facility data well_data_headings, well_data = get_tight_oil_wells() well_data = [] date_array = dates_array('2015-01', '2015-12') OPGEE_data = OPGEE_defaults() OPGEE_data = OPGEE_well_data(well_data, well_data_headings, OPGEE_data) OPGEE_data, province_facility_total, count_SK_wells, count_SK_facilities = SK_facility_analysis( well_data, well_data_headings, OPGEE_data, date_array) OPGEE_input_sensitivity(OPGEE_data, well_data)