def update_marginal_marine(row): points = [] if row["Biostratigraphy"] == "1": points = ["x"] elif row["Biostratigraphy"] == "2": points = ["x"] elif row["Biostratigraphy"] == "3": points = ["x"] elif row["Biostratigraphy"] == "4": points = [3, 1, 0] elif row["Biostratigraphy"] == "5": points = [3, 1, 0] elif row["Biostratigraphy"] == "6": points = [3, 1, 0] elif row["Biostratigraphy"] == "7": points = [-2, -1, 0] if len(points) > 0: if points[0] != "x": point = points[int(row["Reliability"]) - 1] for code in utils_func.get_group_depofacies("Marginal_Marine"): name = utils_func.map_core_depofacies_code_to_name(code) if int(row[name]) > 0: row.update({name: utils_func.handle_addition(int(row[name]) + point)}) else: for code in utils_func.get_group_depofacies("Marginal_Marine"): name = utils_func.map_core_depofacies_code_to_name(code) row.update({name: 0}) return row
def update_alluvial_fan(data_set): curve_name = "Alluvial_Fan" if data_set[curve_name] == "0": return 0 points = [-1, 0, 2, 3] return utils_func.handle_addition( points[get_idx(data_set["Lateral_proximity"])] + int(data_set[curve_name]))
def update_progradational_lacustrine_shoreface(data_set): curve_name = "Progradational_Lacustrine_Shoreface" if data_set[curve_name] == "0": return 0 points = [-2, 0, 2, 3] return utils_func.handle_addition( points[get_idx(data_set["Number_of_similar_units_50"])] + int(data_set[curve_name]))
def update_fluvial_floodplain(data_set): curve_name = "Fluvial_Floodplain" if data_set[curve_name] == "0": return 0 points = [-3, 0, 2, 3] return utils_func.handle_addition( points[get_idx(data_set["Number_of_similar_units_50"])] + int(data_set[curve_name]))
def update_marine_deepwater(data_set): curve_name = "Marine_Deepwater" if data_set[curve_name] == "0": return 0 points = [-3, 0, 2, 3] return utils_func.handle_addition( points[get_idx(data_set["Number_of_similar_units_50"])] + int(data_set[curve_name]))
def update_distal_submarine_fan(data_set): curve_name = "Distal_Submarine_Fan" if data_set[curve_name] == "0": return 0 points = [-1, 0, 2, 3] return utils_func.handle_addition( points[get_idx(data_set["Number_of_similar_units_50"])] + int(data_set[curve_name]))
def update_transgressive_marine_shoreface(data_set): curve_name = "Transgressive_Marine_Shoreface" if data_set[curve_name] == "0": return 0 points = [-1, 1, 2, 3] return utils_func.handle_addition( points[get_idx(data_set["Number_of_similar_units_50"])] + int(data_set[curve_name]))
def update_tidal_channel_and_sand_flat(data_set): curve_name = "Tidal_Channel_And_Sand_Flat" if data_set[curve_name] == "0": return 0 points = [-1, 1, 2, 3] return utils_func.handle_addition( points[get_idx(data_set["Number_of_similar_units_50"])] + int(data_set[curve_name]))
def update_distal_submarine_fan(data_set): curve_name = "Distal_Submarine_Fan" if data_set[curve_name] == "0": return 0 points = [-1, 0, 2, 3] return utils_func.handle_addition( points[get_idx(data_set["Lateral_proximity"])] + int(data_set[curve_name]))
def update_marine_offshore_transition(data_set): curve_name = "Marine_Offshore_Transition" if data_set[curve_name] == "0": return 0 points = [-1, 1, 2, 3] return utils_func.handle_addition( points[get_idx(data_set["Lateral_proximity"])] + int(data_set[curve_name]))
def update_transgressive_marine_shoreface(data_set): curve_name = "Transgressive_Marine_Shoreface" if data_set[curve_name] == "0": return 0 points = [-1, 1, 2, 3] return utils_func.handle_addition( points[get_idx(data_set["Lateral_proximity"])] + int(data_set[curve_name]))
def update_muddy_tidal_flat(data_set): curve_name = "Muddy_Tidal_Flat" if data_set[curve_name] == "0": return 0 points = [-1, 1, 2, 3] return utils_func.handle_addition( points[get_idx(data_set["Lateral_proximity"])] + int(data_set[curve_name]))
def update_tidal_channel_and_sand_flat(data_set): curve_name = "Tidal_Channel_And_Sand_Flat" if data_set[curve_name] == "0": return 0 points = [-1, 1, 2, 3] return utils_func.handle_addition( points[get_idx(data_set["Lateral_proximity"])] + int(data_set[curve_name]))
def update_lacustrine_turbidite(data_set): curve_name = "Lacustrine_Turbidite" if data_set[curve_name] == "0": return 0 points = [-2, 1, 2, 3] return utils_func.handle_addition( points[get_idx(data_set["Lateral_proximity"])] + int(data_set[curve_name]))
def update_progradational_lacustrine_shoreface(data_set): curve_name = "Progradational_Lacustrine_Shoreface" if data_set[curve_name] == "0": return 0 points = [-2, 0, 2, 3] return utils_func.handle_addition( points[get_idx(data_set["Lateral_proximity"])] + int(data_set[curve_name]))
def update_lacustrine_turbidite(data_set): curve_name = "Lacustrine_Turbidite" if data_set[curve_name] == "0": return 0 points = [-2, 1, 2, 3] return utils_func.handle_addition( points[get_idx(data_set["Number_of_similar_units_50"])] + int(data_set[curve_name]))
def update_distal_marine_turbidites(data_set): curve_name = "Distal_Marine_Turbidites" if data_set[curve_name] == "0": return 0 points = [-2, 0, 2, 3] return utils_func.handle_addition( points[get_idx(data_set["Lateral_proximity"])] + int(data_set[curve_name]))
def update_muddy_tidal_flat(data_set): curve_name = "Muddy_Tidal_Flat" if data_set[curve_name] == "0": return 0 points = [-1, 1, 2, 3] return utils_func.handle_addition( points[get_idx(data_set["Number_of_similar_units_50"])] + int(data_set[curve_name]))
def update_marine_deepwater(data_set): curve_name = "Marine_Deepwater" if data_set[curve_name] == "0": return 0 points = [-3, 0, 2, 3] return utils_func.handle_addition( points[get_idx(data_set["Lateral_proximity"])] + int(data_set[curve_name]))
def update_marine_offshore_transition(data_set): curve_name = "Marine_Offshore_Transition" if data_set[curve_name] == "0": return 0 points = [-1, 1, 2, 3] return utils_func.handle_addition( points[get_idx(data_set["Number_of_similar_units_50"])] + int(data_set[curve_name]))
def update_fluvial_point_bar(data_set): curve_name = "Fluvial_Point_Bar" if data_set[curve_name] == "0": return 0 points = [-2, 0, 2, 3] return utils_func.handle_addition( points[get_idx(data_set["Lateral_proximity"])] + int(data_set[curve_name]))
def update_distal_marine_turbidites(data_set): curve_name = "Distal_Marine_Turbidites" if data_set[curve_name] == "0": return 0 points = [-2, 0, 2, 3] return utils_func.handle_addition( points[get_idx(data_set["Number_of_similar_units_50"])] + int(data_set[curve_name]))
def update_levee(data_set): curve_name = "Levee" if data_set[curve_name] == "0": return 0 points = [-1, 1, 2, 3] return utils_func.handle_addition( points[get_idx(data_set["Lateral_proximity"])] + int(data_set[curve_name]))
def update_crevasse_splay(data_set): curve_name = "Crevasse_Splay" if data_set[curve_name] == "0": return 0 points = [-1, 1, 2, 3] return utils_func.handle_addition( points[get_idx(data_set["Number_of_similar_units_50"])] + int(data_set[curve_name]))
def update_crevasse_splay(data_set): curve_name = "Crevasse_Splay" if data_set[curve_name] == "0": return 0 points = [-1, 1, 2, 3] return utils_func.handle_addition( points[get_idx(data_set["Lateral_proximity"])] + int(data_set[curve_name]))
def update_lacustrine_fan_delta(data_set): curve_name = "Lacustrine_Fan_Delta" if data_set[curve_name] == "0": return 0 points = [-2, 0, 2, 3] return utils_func.handle_addition( points[get_idx(data_set["Number_of_similar_units_50"])] + int(data_set[curve_name]))
def update_fluvial_floodplain(data_set): curve_name = "Fluvial_Floodplain" if data_set[curve_name] == "0": return 0 points = [-3, 0, 2, 3] return utils_func.handle_addition( points[get_idx(data_set["Lateral_proximity"])] + int(data_set[curve_name]))
def update_lacustrine_fan_delta(data_set): curve_name = "Lacustrine_Fan_Delta" if data_set[curve_name] == "0": return 0 points = [-2, 0, 2, 3] return utils_func.handle_addition( points[get_idx(data_set["Lateral_proximity"])] + int(data_set[curve_name]))
def update_deep_marine(row): point = 0 if int(row["Stacking_pattern"]) == 1: point = 0 elif int(row["Stacking_pattern"]) == 2: point = 0 codes = utils_func.get_group_depofacies("Deep_Marine") for code in codes: name = utils_func.map_core_depofacies_code_to_name(code) if int(row[name]) > 0: row.update( {name: utils_func.handle_addition(int(row[name]) + point)}) return row