def _calc_temporal_bin_size(datasets):
    ''''''
    times = datasets[0].times
    time_delta = times[1] - times[0]

    if time_delta.days == 0:
        return 1
    elif time_delta.days <= 31:
        return 31
    elif time_delta.days <= 366:
        return 366
    else:
        return 999
dataset/ETHPy150Open apache/climate/ocw_config_runner/configuration_writer.py/_calc_temporal_bin_size/original