{"id":284,"date":"2012-04-01T06:39:17","date_gmt":"2012-04-01T06:39:17","guid":{"rendered":"http:\/\/ahay.org\/blog\/?p=284"},"modified":"2015-09-04T03:37:58","modified_gmt":"2015-09-04T03:37:58","slug":"program-of-the-month-sfgrey3","status":"publish","type":"post","link":"https:\/\/ahay.org\/blog\/2012\/04\/01\/program-of-the-month-sfgrey3\/","title":{"rendered":"Program of the month: sfgrey3"},"content":{"rendered":"<p><a href=\"\/RSF\/sfgrey3.html\">sfgrey3<\/a> generates &#8220;cube&#8221; plots from 3-D data. A cube plot displays sections from a 3-D cube as faces of the cube. <\/p>\n<p>Some of the options specific to this kind of display are: <\/p>\n<ul>\n<li><strong>flat=<\/strong> The <strong>flat<\/strong> parameter tells <strong>sfgrey3<\/strong> whether to display the cube as a flat image or in a 3-D projection. The default is <strong>flat=y<\/strong>. The following example from <a href=\"\/RSF\/book\/bei\/fld\/cube.html\">bei\/fld\/cube<\/a> displays the same input data with both options: <\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"\/RSF\/book\/bei\/fld\/cube\/Fig\/cube.png\" alt=\"\" title=\"\" \/><\/p>\n<ul>\n<li><strong>frame1=, frame2=, frame3=<\/strong> The frame parameters select the slices from the cube to be displayed in the plot. The default is to take the first slice from the vertical and the out-of-plane axis (<strong>frame1=0 frame3=0<\/strong>) and the last slice from the horizontal axis (<strong>frame2=n2-1<\/strong>). In the following example from <a href=\"\/RSF\/book\/geo384w\/hw3\/gulf.html\">geo384w\/hw3\/gulf<\/a>, the data size is <strong>n1=1000 n2=250 n3=48<\/strong> and the frame parameters are <strong>frame1=500 frame2=160 frame3=10<\/strong>: <\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"\/RSF\/book\/geo384w\/hw3\/gulf\/Fig\/gulf.png\" alt=\"\" title=\"\" \/><\/p>\n<ul>\n<li><strong>point1=, point2=<\/strong> The <strong>point1= and point2=<\/strong> parameters control the aspect ratio of the cube by specifying the ratio (from 0 and 1) that the front face of the cube takes from the plot in the vertical and the horizontal dimension, respectively. The default is <strong>point1=0.5 point2=0.5<\/strong>. The following example from <a href=\"\/RSF\/book\/sep\/plane\/qint.html\">sep\/plane\/qint<\/a> has <strong>point1=0.85 point2=0.74<\/strong>: <\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"\/RSF\/book\/sep\/plane\/qint\/Fig\/qdome.png\" alt=\"\" title=\"\" \/><\/p>\n<ul>\n<li><strong>movie=<\/strong> The <strong>movie<\/strong> parameter allows the user to create a movie looping over slices in a cube instead of a static picture. The value of the parameter (from 1 to 3) indicates the axis for looping or 0 (the default) for no movie. The frame increment in the movie is controled by <strong>dframe=<\/strong>. The following example from <a href=\"\/RSF\/book\/cwp\/geo2009TTIModeSeparation\/tti3.html\">cwp\/geo2009TTIModeSeparation\/tti3<\/a> uses <strong>movie=1<\/strong> to loop over the vertical axis: <\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"\/blog\/wp-content\/uploads\/2015\/08\/dz.gif\" alt=\"\" title=\"\" \/><\/p>\n<p>To generate a movie out of 4-D data, you can use <a href=\"\/RSF\/sfgrey4.html\">sfgrey4<\/a>. Here is an example: <\/p>\n<p><img decoding=\"async\" src=\"\/blog\/wp-content\/uploads\/2015\/08\/snaps2.gif\" alt=\"\" title=\"\" \/><\/p>\n<h3 id=\"previousprogramsofthemonth\">Previous programs of the month:<\/h3>\n<ul>\n<li><a href=\"\/blog\/2012\/03\/18\/program-of-the-month-sfspectra\/\">sfspectra<\/a><\/li>\n<li><a href=\"\/blog\/2011\/07\/03\/program-of-the-month-sfnoise\/\">sfnoise<\/a><\/li>\n<li><a href=\"\/blog\/2011\/08\/09\/program-of-the-month-sfgraph\/\">sfgraph<\/a><\/li>\n<li><a href=\"\/blog\/2011\/09\/03\/program-of-the-month-sfclip\/\">sfclip<\/a><\/li>\n<li><a href=\"\/blog\/2011\/10\/01\/program-of-the-month-sfagc\/\">sfagc<\/a><\/li>\n<li><a href=\"\/blog\/2011\/11\/05\/program-of-the-month-sfenvelope\/\">sfenvelope<\/a><\/li>\n<li><a href=\"\/blog\/2011\/12\/03\/programs-of-the-month-sfcontour\/\">sfcontour<\/a><\/li>\n<li><a href=\"\/blog\/2012\/01\/01\/program-of-the-month-sfsmooth\/\">sfsmooth<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>sfgrey3 generates &#8220;cube&#8221; plots from 3-D data. A cube plot displays sections from a 3-D cube as faces of the cube. Some of the options specific to this kind of display are: flat= The flat parameter tells sfgrey3 whether to display the cube as a flat image or in a 3-D projection. The default is [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","activitypub_content_warning":"","activitypub_content_visibility":"local","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"","footnotes":""},"categories":[3],"tags":[],"class_list":["post-284","post","type-post","status-publish","format-standard","hentry","category-programs"],"_links":{"self":[{"href":"https:\/\/ahay.org\/blog\/wp-json\/wp\/v2\/posts\/284","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ahay.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ahay.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ahay.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ahay.org\/blog\/wp-json\/wp\/v2\/comments?post=284"}],"version-history":[{"count":3,"href":"https:\/\/ahay.org\/blog\/wp-json\/wp\/v2\/posts\/284\/revisions"}],"predecessor-version":[{"id":21833,"href":"https:\/\/ahay.org\/blog\/wp-json\/wp\/v2\/posts\/284\/revisions\/21833"}],"wp:attachment":[{"href":"https:\/\/ahay.org\/blog\/wp-json\/wp\/v2\/media?parent=284"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ahay.org\/blog\/wp-json\/wp\/v2\/categories?post=284"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ahay.org\/blog\/wp-json\/wp\/v2\/tags?post=284"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}