Search notes:

SAS: proc sgrender

Drawing a half sphere with sgrender

data xyz;
  do tq84_x=-1 to 1 by 0.1;
  do tq84_y=-1 to 1 by 0.1;
     if sqrt(tq84_x**2 + tq84_y**2) > 1
        then tq84_z=0;
        else tq84_z=sqrt(1 - tq84_x**2 - tq84_y**2);
  output;
  end; end;
run;

proc template;
  define statgraph tq84_surface;
  begingraph;
    layout overlay3d;
      surfaceplotparm
        x=tq84_x
        y=tq84_y
        z=tq84_z;
    endlayout;
  endgraph;
  end;
run;

proc sgrender
     data     = xyz
     template = tq84_surface;
run;
Github repository about-SAS, path: /programming/proc/sgrender/half-sphere.sas

See also

SAS programming: proc

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Companie...', 1759408134, '216.73.216.42', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Companies-Products/SAS/programming/proc/sgrender/index(67): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78