Exemple #1
0
    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)
Exemple #2
0
    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)
Exemple #3
0
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)
Exemple #4
0
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)
Exemple #5
0
 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)
Exemple #6
0
 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)
Exemple #7
0
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)