rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
copy_model_descr_to_plot_params.m
1 function plot_params = copy_model_descr_to_plot_params(descr, plot_params)
2 % function plot_params = copy_model_descr_to_plot_params(descr, plot_params)
3 
4 plot_params.geometry_transformation = descr.geometry_transformation;
5 
6 plot_params.xrange = descr.xrange;
7 plot_params.yrange = descr.yrange;
8 if isfield(descr, 'geometry_spline_type')
9  plot_params.geometry_spline_type = descr.geometry_spline_type;
10  plot_params.geometry_transformation_spline_x = descr.geometry_transformation_spline_x;
11  plot_params.geometry_transformation_spline_y = descr.geometry_transformation_spline_y;
12  plot_params.hill_height = descr.hill_height;
13 end
14 
15 if isfield(descr, 'postprocess')
16  plot_params.postprocess = descr.postprocess;
17  plot_params.gravity = descr.gravity;
18  plot_params.clim = descr.clim;
19 end
20 %| \docupdate