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
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
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)
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)
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)
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
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
def test_inversion(): fig, ax = plt.subplots() gdir = init_hef() graphics.plot_inversion(gdir, ax=ax) fig.tight_layout() return fig
def test_inversion(): gdir = init_hef() graphics.plot_inversion(gdir)
def test_width(): gdir = init_hef() graphics.plot_catchment_width(gdir) graphics.plot_catchment_width(gdir, corrected=True)
def test_googlemap(): gdir = init_hef() graphics.plot_googlemap(gdir)
def test_centerlines(): fig, ax = plt.subplots() gdir = init_hef() graphics.plot_centerlines(gdir, ax=ax) fig.tight_layout() return fig
def test_googlemap(): fig, ax = plt.subplots() gdir = init_hef() graphics.plot_googlemap(gdir, ax=ax) fig.tight_layout() return fig
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
def test_plot_distrib(): gdir = init_hef() graphics.plot_distributed_thickness(gdir, how='per_altitude') graphics.plot_distributed_thickness(gdir, how='per_interpolation')
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
def test_width(): fig, ax = plt.subplots() gdir = init_hef() graphics.plot_catchment_width(gdir, ax=ax) fig.tight_layout() return fig