コード例 #1
0
ファイル: test_graphics.py プロジェクト: JohannesUIBK/oggm
def test_intersects_borders():
    fig, ax = plt.subplots()
    gdir = init_hef()
    graphics.plot_catchment_width(gdir, ax=ax, add_intersects=True,
                                  add_touches=True)
    fig.tight_layout()
    return fig
コード例 #2
0
def test_downstream():
    fig, ax = plt.subplots()
    gdir = init_hef()
    graphics.plot_centerlines(gdir, ax=ax, add_downstream=True,
                              use_flowlines=True)
    fig.tight_layout()
    return fig
コード例 #3
0
ファイル: test_graphics.py プロジェクト: OGGM/oggm
def test_centerlines():

    gdir = init_hef()
    graphics.plot_centerlines(gdir)
    graphics.plot_centerlines(gdir, use_flowlines=True)
    graphics.plot_centerlines(gdir, add_downstream=True, use_flowlines=True)
    graphics.plot_centerlines(gdir, add_downstream=True)
コード例 #4
0
ファイル: test_graphics.py プロジェクト: JohannesUIBK/oggm
def test_downstream():
    fig, ax = plt.subplots()
    gdir = init_hef()
    graphics.plot_centerlines(gdir, ax=ax, add_downstream=True,
                              use_flowlines=True)
    fig.tight_layout()
    return fig
コード例 #5
0
ファイル: test_graphics.py プロジェクト: MachineAi/oggm
def test_centerlines():

    gdir = init_hef()
    graphics.plot_centerlines(gdir)
    graphics.plot_centerlines(gdir, use_flowlines=True)
    graphics.plot_centerlines(gdir, add_downstream=True, use_flowlines=True)
    graphics.plot_centerlines(gdir, add_downstream=True)
コード例 #6
0
ファイル: test_graphics.py プロジェクト: OGGM/oggm
def test_plot_model():

    gdir = init_hef()
    flowline.init_present_time_glacier(gdir)
    fls = flowline.convert_to_mixed_flowline(gdir.read_pickle('model_flowlines'))
    model = flowline.FlowlineModel(fls)
    graphics.plot_modeloutput_section(gdir, model=model)
    graphics.plot_modeloutput_map(gdir, model=model)
コード例 #7
0
ファイル: test_graphics.py プロジェクト: MachineAi/oggm
def test_plot_model():

    gdir = init_hef()
    flowline.init_present_time_glacier(gdir)
    fls = flowline.convert_to_mixed_flowline(
        gdir.read_pickle('model_flowlines'))
    model = flowline.FlowlineModel(fls)
    graphics.plot_modeloutput_section(gdir, model=model)
    graphics.plot_modeloutput_map(gdir, model=model)
コード例 #8
0
def test_intersects_borders():
    fig, ax = plt.subplots()
    gdir = init_hef()
    graphics.plot_catchment_width(gdir,
                                  ax=ax,
                                  add_intersects=True,
                                  add_touches=True)
    fig.tight_layout()
    return fig
コード例 #9
0
ファイル: test_graphics.py プロジェクト: JohannesUIBK/oggm
def test_modelmap():

    gdir = init_hef()
    flowline.init_present_time_glacier(gdir)
    fls = gdir.read_pickle('model_flowlines')
    model = flowline.FlowlineModel(fls)

    fig, ax = plt.subplots()
    graphics.plot_modeloutput_map(gdir, ax=ax, model=model)
    fig.tight_layout()
    return fig
コード例 #10
0
ファイル: test_graphics.py プロジェクト: JohannesUIBK/oggm
def test_modelsection():

    gdir = init_hef()
    flowline.init_present_time_glacier(gdir)
    fls = gdir.read_pickle('model_flowlines')
    model = flowline.FlowlineModel(fls)

    fig = plt.figure(figsize=(12, 6))
    ax = fig.add_axes([0.07, 0.08, 0.7, 0.84])
    graphics.plot_modeloutput_section(gdir, ax=ax, model=model)
    return fig
コード例 #11
0
def test_modelsection():

    gdir = init_hef()
    flowline.init_present_time_glacier(gdir)
    fls = gdir.read_pickle('model_flowlines')
    model = flowline.FlowlineModel(fls)

    fig = plt.figure(figsize=(12, 6))
    ax = fig.add_axes([0.07, 0.08, 0.7, 0.84])
    graphics.plot_modeloutput_section(gdir, ax=ax, model=model)
    return fig
コード例 #12
0
def test_modelmap():

    gdir = init_hef()
    flowline.init_present_time_glacier(gdir)
    fls = gdir.read_pickle('model_flowlines')
    model = flowline.FlowlineModel(fls)

    fig, ax = plt.subplots()
    graphics.plot_modeloutput_map(gdir, ax=ax, model=model)
    fig.tight_layout()
    return fig
コード例 #13
0
def test_inversion():
    fig, ax = plt.subplots()
    gdir = init_hef()
    graphics.plot_inversion(gdir, ax=ax)
    fig.tight_layout()
    return fig
コード例 #14
0
ファイル: test_graphics.py プロジェクト: OGGM/oggm
def test_inversion():

    gdir = init_hef()
    graphics.plot_inversion(gdir)
コード例 #15
0
ファイル: test_graphics.py プロジェクト: OGGM/oggm
def test_width():

    gdir = init_hef()
    graphics.plot_catchment_width(gdir)
    graphics.plot_catchment_width(gdir, corrected=True)
コード例 #16
0
ファイル: test_graphics.py プロジェクト: JohannesUIBK/oggm
def test_inversion():
    fig, ax = plt.subplots()
    gdir = init_hef()
    graphics.plot_inversion(gdir, ax=ax)
    fig.tight_layout()
    return fig
コード例 #17
0
ファイル: test_graphics.py プロジェクト: OGGM/oggm
def test_googlemap():

    gdir = init_hef()
    graphics.plot_googlemap(gdir)
コード例 #18
0
ファイル: test_graphics.py プロジェクト: JohannesUIBK/oggm
def test_centerlines():
    fig, ax = plt.subplots()
    gdir = init_hef()
    graphics.plot_centerlines(gdir, ax=ax)
    fig.tight_layout()
    return fig
コード例 #19
0
def test_googlemap():
    fig, ax = plt.subplots()
    gdir = init_hef()
    graphics.plot_googlemap(gdir, ax=ax)
    fig.tight_layout()
    return fig
コード例 #20
0
ファイル: test_graphics.py プロジェクト: JohannesUIBK/oggm
def test_thick_interp():
    fig, ax = plt.subplots()
    gdir = init_hef()
    graphics.plot_distributed_thickness(gdir, ax=ax, how='per_interpolation')
    fig.tight_layout()
    return fig
コード例 #21
0
ファイル: test_graphics.py プロジェクト: MachineAi/oggm
def test_inversion():

    gdir = init_hef()
    graphics.plot_inversion(gdir)
コード例 #22
0
ファイル: test_graphics.py プロジェクト: JohannesUIBK/oggm
def test_googlemap():
    fig, ax = plt.subplots()
    gdir = init_hef()
    graphics.plot_googlemap(gdir, ax=ax)
    fig.tight_layout()
    return fig
コード例 #23
0
ファイル: test_graphics.py プロジェクト: MachineAi/oggm
def test_googlemap():

    gdir = init_hef()
    graphics.plot_googlemap(gdir)
コード例 #24
0
ファイル: test_graphics.py プロジェクト: MachineAi/oggm
def test_plot_distrib():

    gdir = init_hef()
    graphics.plot_distributed_thickness(gdir, how='per_altitude')
    graphics.plot_distributed_thickness(gdir, how='per_interpolation')
コード例 #25
0
def test_thick_alt():
    fig, ax = plt.subplots()
    gdir = init_hef()
    graphics.plot_distributed_thickness(gdir, ax=ax, how='per_altitude')
    fig.tight_layout()
    return fig
コード例 #26
0
ファイル: test_graphics.py プロジェクト: JohannesUIBK/oggm
def test_thick_alt():
    fig, ax = plt.subplots()
    gdir = init_hef()
    graphics.plot_distributed_thickness(gdir, ax=ax, how='per_altitude')
    fig.tight_layout()
    return fig
コード例 #27
0
def test_thick_interp():
    fig, ax = plt.subplots()
    gdir = init_hef()
    graphics.plot_distributed_thickness(gdir, ax=ax, how='per_interpolation')
    fig.tight_layout()
    return fig
コード例 #28
0
ファイル: test_graphics.py プロジェクト: OGGM/oggm
def test_plot_distrib():

    gdir = init_hef()
    graphics.plot_distributed_thickness(gdir, how='per_altitude')
    graphics.plot_distributed_thickness(gdir, how='per_interpolation')
コード例 #29
0
def test_centerlines():
    fig, ax = plt.subplots()
    gdir = init_hef()
    graphics.plot_centerlines(gdir, ax=ax)
    fig.tight_layout()
    return fig
コード例 #30
0
ファイル: test_graphics.py プロジェクト: JohannesUIBK/oggm
def test_width():
    fig, ax = plt.subplots()
    gdir = init_hef()
    graphics.plot_catchment_width(gdir, ax=ax)
    fig.tight_layout()
    return fig
コード例 #31
0
def test_width():
    fig, ax = plt.subplots()
    gdir = init_hef()
    graphics.plot_catchment_width(gdir, ax=ax)
    fig.tight_layout()
    return fig
コード例 #32
0
ファイル: test_graphics.py プロジェクト: MachineAi/oggm
def test_width():

    gdir = init_hef()
    graphics.plot_catchment_width(gdir)
    graphics.plot_catchment_width(gdir, corrected=True)