Ejemplo n.º 1
0
def main():
    """Main workflow."""
    fuzslppos_cfg = get_input_cfgs()

    pre_processing(fuzslppos_cfg)
    extract_typical_location(fuzslppos_cfg)
    fuzzy_inference(fuzslppos_cfg)
Ejemplo n.º 2
0
def main():
    """TEST CODE."""
    fuzslppos_cfg = get_input_cfgs()
    types = fuzslppos_cfg.slppostype
    slpposconf = fuzslppos_cfg.singleslpposconf
    combinedextconf = fuzslppos_cfg.slpposresult.extconfig
    combinedinfconf = fuzslppos_cfg.slpposresult.infconfig

    combine_ext_conf_parameters(types, slpposconf, combinedextconf)
    combine_inf_conf_parameters(types, slpposconf, combinedinfconf)
Ejemplo n.º 3
0
def main():
    """TEST CODE"""
    fuzslppos_cfg = get_input_cfgs()
    rdg_file = fuzslppos_cfg.pretaudem.rdgsrc
    d8dir_file = fuzslppos_cfg.pretaudem.d8flow
    d8strm_file = fuzslppos_cfg.pretaudem.stream_raster
    attr_list = {'dem': fuzslppos_cfg.pretaudem.filldem}
    outattrtxt = fuzslppos_cfg.ws.pre_dir + os.sep + 'profiles_attributes.txt'
    outshp = fuzslppos_cfg.ws.pre_dir + os.sep + 'profiles.shp'

    fuzslppos_profiles(rdg_file, d8dir_file, d8strm_file, attr_list,
                       outattrtxt, outshp)
Ejemplo n.º 4
0
def main():
    """Main workflow."""
    cfg = get_input_cfgs()
    flowmodel = cfg.flow_model
    if flowmodel == 1:
        flowdir = cfg.pretaudem.dinf
    else:
        flowdir = cfg.pretaudem.d8flow
    subbasin = cfg.pretaudem.subbsn
    elev = cfg.pretaudem.filldem
    prop = 0.
    ws = cfg.ws.pre_dir
    rdg = cfg.ridge

    rdgsrc_obj = RidgeSourceExtraction(flowdir, subbasin, elev, rdg, flowmodel,
                                       prop, ws)
    rdgsrc_obj.run()
Ejemplo n.º 5
0
def main():
    """TEST CODE"""
    fuzslppos_cfg = get_input_cfgs()
    pre_processing(fuzslppos_cfg)
def main():
    """TEST CODE"""
    fuzslppos_cfg = get_input_cfgs()
    fuzzy_inference(fuzslppos_cfg)
Ejemplo n.º 7
0
def main():
    """TEST CODE"""
    fuzslppos_cfg = get_input_cfgs()
    extract_typical_location(fuzslppos_cfg)