def diff_learned(domain, b):
    if domain.unflooded_domain == None:
        print 'No unflooded training domain provided.'
        return None
    unflooded_b = modis_utilities.compute_modis_indices(domain.unflooded_domain)
    water_mask  = modis_utilities.get_permanent_water_mask()
    
    threshold = modis_utilities.compute_binary_threshold(get_diff(unflooded_b), water_mask, domain.bounds)
    return modis_diff(domain, b, threshold)
The back-redirect target for this form.
dataset/ETHPy150Open nasa/CrisisMappingToolkit/cmt/modis/simple_modis_algorithms.py/diff_learned--crossover with--dataset/ETHPy150Open mitsuhiko/fungiform/fungiform/forms.py/FormBase.redirect_target