24-Mar-2019 20:07:49 sphere_cubed_grid_test MATLAB version Test sphere_cubed_grid. SPHERE_CUBED_GRID_POINT_COUNT_TEST SPHERE_CUBED_GRID_POINT_COUNT counts points on a cubed sphere grid. Each square face is divided into NxN subfaces, and there are 6 faces. N POINT_COUNT 1 8 2 26 3 56 4 98 5 152 6 218 7 296 8 386 9 488 10 602 SPHERE_CUBED_GRID_POINTS_TEST SPHERE_CUBED_GRID_POINTS computes points on a cubed sphere grid. Number of divisions on each face = 10 Total number of points = 602 Initial part of XYZ array: Col: 1 2 3 Row 1 : -0.57735 -0.57735 -0.57735 2 : -0.62896 -0.456966 -0.62896 3 : -0.665247 -0.33896 -0.665247 4 : -0.689152 -0.223919 -0.689152 5 : -0.702714 -0.111299 -0.702714 6 : -0.707107 0 -0.707107 7 : -0.702714 0.111299 -0.702714 8 : -0.689152 0.223919 -0.689152 9 : -0.665247 0.33896 -0.665247 10 : -0.62896 0.456966 -0.62896 11 : -0.57735 0.57735 -0.57735 12 : -0.456966 -0.62896 -0.62896 13 : -0.506732 -0.506732 -0.697457 14 : -0.543426 -0.381106 -0.747962 15 : -0.568473 -0.254229 -0.782436 16 : -0.583019 -0.127097 -0.802456 17 : -0.587785 0 -0.809017 18 : -0.583019 0.127097 -0.802456 19 : -0.568473 0.254229 -0.782436 20 : -0.543426 0.381106 -0.747962 SPHERE_CUBED_GRID_POINTS_FACE_TEST SPHERE_CUBED_GRID_POINTS_FACE computes points associated with one face of a cubed sphere grid. Number of divisions on each face = 3 Total number of points = 56 Current number of points = 16 XYZ array after call for bottom face: Col: 1 2 3 Row 1 : -0.57735 -0.57735 -0.57735 2 : -0.694747 -0.186157 -0.694747 3 : -0.694747 0.186157 -0.694747 4 : -0.57735 0.57735 -0.57735 5 : -0.186157 -0.694747 -0.694747 6 : -0.250563 -0.250563 -0.935113 7 : -0.250563 0.250563 -0.935113 8 : -0.186157 0.694747 -0.694747 9 : 0.186157 -0.694747 -0.694747 10 : 0.250563 -0.250563 -0.935113 11 : 0.250563 0.250563 -0.935113 12 : 0.186157 0.694747 -0.694747 13 : 0.57735 -0.57735 -0.57735 14 : 0.694747 -0.186157 -0.694747 15 : 0.694747 0.186157 -0.694747 16 : 0.57735 0.57735 -0.57735 Current number of points = 22 XYZ array after call for a side face face: Col: 1 2 3 Row 1 : -0.57735 -0.57735 -0.57735 2 : -0.694747 -0.186157 -0.694747 3 : -0.694747 0.186157 -0.694747 4 : -0.57735 0.57735 -0.57735 5 : -0.186157 -0.694747 -0.694747 6 : -0.250563 -0.250563 -0.935113 7 : -0.250563 0.250563 -0.935113 8 : -0.186157 0.694747 -0.694747 9 : 0.186157 -0.694747 -0.694747 10 : 0.250563 -0.250563 -0.935113 11 : 0.250563 0.250563 -0.935113 12 : 0.186157 0.694747 -0.694747 13 : 0.57735 -0.57735 -0.57735 14 : 0.694747 -0.186157 -0.694747 15 : 0.694747 0.186157 -0.694747 16 : 0.57735 0.57735 -0.57735 17 : -0.694747 -0.694747 -0.186157 18 : -0.694747 -0.694747 0.186157 19 : -0.935113 -0.250563 -0.250563 20 : -0.935113 -0.250563 0.250563 21 : -0.935113 0.250563 -0.250563 22 : -0.935113 0.250563 0.250563 SPHERE_CUBED_GRID_POINTS_DISPLAY_TEST SPHERE_CUBED_GRID_POINTS_DISPLAY_TEST displays points on a cubed sphere grid. Number of divisions on each face = 10 Total number of points = 602 title_string = sphere\_cubed\_grid\_points\_f10.png Plot file saved to "sphere_cubed_grid_points_f10.png". SPHERE_CUBED_GRID_IJK_TO_XYZ_TEST: SPHERE_CUBED_GRID_IJK_TO_XYZ returns the XYZ coordinates of a point on the surface of the cubed sphere, given its (I,J,K) indices. Using grid parameter N = 3 I J K X Y Z 0 0 0 -0.577350 -0.577350 -0.577350 0 0 1 -0.694747 -0.694747 -0.186157 0 0 2 -0.694747 -0.694747 0.186157 0 0 3 -0.577350 -0.577350 0.577350 0 1 0 -0.694747 -0.186157 -0.694747 0 1 1 -0.935113 -0.250563 -0.250563 0 1 2 -0.935113 -0.250563 0.250563 0 1 3 -0.694747 -0.186157 0.694747 0 2 0 -0.694747 0.186157 -0.694747 0 2 1 -0.935113 0.250563 -0.250563 0 2 2 -0.935113 0.250563 0.250563 0 2 3 -0.694747 0.186157 0.694747 0 3 0 -0.577350 0.577350 -0.577350 0 3 1 -0.694747 0.694747 -0.186157 0 3 2 -0.694747 0.694747 0.186157 0 3 3 -0.577350 0.577350 0.577350 1 0 0 -0.186157 -0.694747 -0.694747 1 0 1 -0.250563 -0.935113 -0.250563 1 0 2 -0.250563 -0.935113 0.250563 1 0 3 -0.186157 -0.694747 0.694747 1 1 0 -0.250563 -0.250563 -0.935113 1 1 3 -0.250563 -0.250563 0.935113 1 2 0 -0.250563 0.250563 -0.935113 1 2 3 -0.250563 0.250563 0.935113 1 3 0 -0.186157 0.694747 -0.694747 1 3 1 -0.250563 0.935113 -0.250563 1 3 2 -0.250563 0.935113 0.250563 1 3 3 -0.186157 0.694747 0.694747 2 0 0 0.186157 -0.694747 -0.694747 2 0 1 0.250563 -0.935113 -0.250563 2 0 2 0.250563 -0.935113 0.250563 2 0 3 0.186157 -0.694747 0.694747 2 1 0 0.250563 -0.250563 -0.935113 2 1 3 0.250563 -0.250563 0.935113 2 2 0 0.250563 0.250563 -0.935113 2 2 3 0.250563 0.250563 0.935113 2 3 0 0.186157 0.694747 -0.694747 2 3 1 0.250563 0.935113 -0.250563 2 3 2 0.250563 0.935113 0.250563 2 3 3 0.186157 0.694747 0.694747 3 0 0 0.577350 -0.577350 -0.577350 3 0 1 0.694747 -0.694747 -0.186157 3 0 2 0.694747 -0.694747 0.186157 3 0 3 0.577350 -0.577350 0.577350 3 1 0 0.694747 -0.186157 -0.694747 3 1 1 0.935113 -0.250563 -0.250563 3 1 2 0.935113 -0.250563 0.250563 3 1 3 0.694747 -0.186157 0.694747 3 2 0 0.694747 0.186157 -0.694747 3 2 1 0.935113 0.250563 -0.250563 3 2 2 0.935113 0.250563 0.250563 3 2 3 0.694747 0.186157 0.694747 3 3 0 0.577350 0.577350 -0.577350 3 3 1 0.694747 0.694747 -0.186157 3 3 2 0.694747 0.694747 0.186157 3 3 3 0.577350 0.577350 0.577350 SPHERE_CUBED_GRID_LINE_COUNT_TEST SPHERE_CUBED_GRID_LINE_COUNT counts lines on a cubed sphere grid. Each square face is divided into NxN subfaces, and there are 6 faces. N LINE_COUNT 1 12 2 48 3 108 4 192 5 300 6 432 7 588 8 768 9 972 10 1200 SPHERE_CUBED_GRID_LINES_TEST SPHERE_CUBED_GRID_LINES defines the lines on a cubed sphere grid. Each cube face is divided into 5x5 subfaces The number of points is 152 The number of grid lines is 300 Line Start End Index X Y Z X Y Z 1 -0.577350 -0.577350 -0.577350 -0.338960 -0.665247 -0.665247 2 -0.577350 -0.577350 -0.577350 -0.665247 -0.338960 -0.665247 3 -0.577350 -0.577350 -0.577350 -0.665247 -0.665247 -0.338960 4 0.577350 -0.577350 -0.577350 0.338960 -0.665247 -0.665247 5 0.577350 -0.577350 -0.577350 -0.665247 -0.338960 -0.665247 6 0.577350 -0.577350 -0.577350 0.665247 -0.665247 -0.338960 7 0.577350 0.577350 -0.577350 0.338960 0.665247 -0.665247 8 0.577350 0.577350 -0.577350 0.665247 0.338960 -0.665247 9 0.577350 0.577350 -0.577350 0.665247 0.665247 -0.338960 10 -0.577350 0.577350 -0.577350 -0.338960 0.665247 -0.665247 SPHERE_CUBED_GRID_LINES_DISPLAY_TEST SPHERE_CUBED_GRID_LINES_DISPLAY displays the lines on a cubed sphere grid. Each cube face is divided into 5x5 subfaces The number of points is 152 The number of grid lines is 300 Saving plot as "sphere_cubed_grid_lines.png". sphere_cubed_grid_test Normal end of execution. 24-Mar-2019 20:08:01