def fn(cell, cell_count): split = cell.split(':') if (len(split) == 2): split.append('') (_, land_use, bmp) = split et = et_max * lookup_ki(bmp or land_use) return simulate_cell_day(precip, et, cell, cell_count)
def fn(cell, cell_count): # Compute et for cell type split = cell.split(':') if (len(split) == 2): (land_use, bmp) = split else: (_, land_use, bmp) = split et = et_max * lookup_ki(bmp or land_use) # Simulate the cell for one day return simulate_cell_day(precip, et, cell, cell_count)
def simulate(precip, tile_string): land_use = tile_string.split(':')[1] ki = lookup_ki(land_use) return simulate_cell_day(precip, 0.207 * ki, tile_string, 1)
def fn(cell, cell_count): (soil_type, land_use) = cell.lower().split(':') et = et_max * lookup_ki(land_use) return simulate_cell_day((precip, et), cell, cell_count)
def simulate_day(cell, cell_count): soil_type, land_use = cell.lower().split(':') et = et_max * lookup_ki(land_use) return simulate_cell_day((precip, et), cell, cell_count)
def simulate(precip, tile_string): soil_type, land_use = tile_string.split(":") ki = lookup_ki(land_use) return simulate_cell_day((precip, 0.207 * ki), tile_string, 1)