summaryrefslogtreecommitdiff
path: root/modules/hdf5/demos
diff options
context:
space:
mode:
Diffstat (limited to 'modules/hdf5/demos')
-rwxr-xr-xmodules/hdf5/demos/eps.h5bin0 -> 206848 bytes
-rwxr-xr-xmodules/hdf5/demos/hdf5.dem.gateway.sce18
-rwxr-xr-xmodules/hdf5/demos/resonator.dem.sce37
3 files changed, 55 insertions, 0 deletions
diff --git a/modules/hdf5/demos/eps.h5 b/modules/hdf5/demos/eps.h5
new file mode 100755
index 000000000..3d741999b
--- /dev/null
+++ b/modules/hdf5/demos/eps.h5
Binary files differ
diff --git a/modules/hdf5/demos/hdf5.dem.gateway.sce b/modules/hdf5/demos/hdf5.dem.gateway.sce
new file mode 100755
index 000000000..5e56d620c
--- /dev/null
+++ b/modules/hdf5/demos/hdf5.dem.gateway.sce
@@ -0,0 +1,18 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2011 - DIGITEO - Sylvestre Ledru
+//
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+
+
+function subdemolist = demo_gateway()
+
+ demopath = get_absolute_file_path("hdf5.dem.gateway.sce");
+ add_demo(gettext("HDF5"), demopath + "hdf5.dem.gateway.sce");
+
+ subdemolist = [_("Ring resonator (HDF5 data source)") ,"resonator.dem.sce" ]
+
+ subdemolist(:,2) = demopath + subdemolist(:,2);
+endfunction
+
+subdemolist = demo_gateway();
+clear demo_gateway;
diff --git a/modules/hdf5/demos/resonator.dem.sce b/modules/hdf5/demos/resonator.dem.sce
new file mode 100755
index 000000000..e82d5f00a
--- /dev/null
+++ b/modules/hdf5/demos/resonator.dem.sce
@@ -0,0 +1,37 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2013 - S/E - Sylvestre Ledru
+// Copyright (C) 2013 - LASS - Antoine Monmayrant
+//
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+
+function resonator_demo()
+
+
+
+ my_test_fig = figure(100001);
+ my_test_fig.figure_name = _("Ring Resonator from a HDF5 file");
+
+ filename = "resonator.dem.sce";
+ demo_viewCode(filename);
+
+ h5=h5open(SCI+"/modules/hdf5/demos/eps.h5","r");
+ eps=h5.root.eps.data;
+
+ surf(eps);
+ h=gcf();
+ h.color_map=hotcolormap(64);
+ f=gcf();f.background=60;
+ e=gce();
+ a=gca();
+ a.x_label.text=_("X position [a]");
+ a.y_label.text=_("Y position [a]");
+ a.z_label.text=_("Permittivity");
+ a.z_label.font_angle=-90;
+ e.thickness=0;
+ a.rotation_angles=[20,-140];
+ a.title.text=_("Ring Resonator");
+
+endfunction
+
+resonator_demo();
+clear resonator_demo;