<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <!--Converted with LaTeX2HTML 2002-2-1 (1.71) original version by: Nikos Drakos, CBLU, University of Leeds * revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan * with significant contributions from: Jens Lippmann, Marek Rouchal, Martin Wilck and others --> <HTML> <HEAD> <TITLE>4.5 Perspective views</TITLE> <META NAME="description" CONTENT="4.5 Perspective views"> <META NAME="keywords" CONTENT="GMT_Tutorial"> <META NAME="resource-type" CONTENT="document"> <META NAME="distribution" CONTENT="global"> <META NAME="Generator" CONTENT="LaTeX2HTML v2002-2-1"> <META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css"> <LINK REL="STYLESHEET" HREF="GMT_Tutorial.css"> <LINK REL="previous" HREF="node55.html"> <LINK REL="up" HREF="node49.html"> <LINK REL="next" HREF="node58.html"> </HEAD> <BODY bgcolor="#ffffff"> <!--Navigation Panel--> <A NAME="tex2html1204" HREF="node58.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> <A NAME="tex2html1198" HREF="node49.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> <A NAME="tex2html1194" HREF="node56.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> <A NAME="tex2html1200" HREF="node1.html"> <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> <A NAME="tex2html1202" HREF="node63.html"> <IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> <BR> <B> Next:</B> <A NAME="tex2html1205" HREF="node58.html">4.5.1 Mesh-plot</A> <B> Up:</B> <A NAME="tex2html1199" HREF="node49.html">4. SESSION FOUR</A> <B> Previous:</B> <A NAME="tex2html1195" HREF="node56.html">4.4.1 Exercises</A> <B> <A NAME="tex2html1201" HREF="node1.html">Contents</A></B> <B> <A NAME="tex2html1203" HREF="node63.html">Index</A></B> <BR> <BR> <!--End of Navigation Panel--> <H1><A NAME="SECTION00650000000000000000"></A> <A NAME="1452"></A> <BR> 4.5 Perspective views </H1> <P> Our final undertaking in this tutorial is to examine three-dimensional perspective views. <A NAME="tex2html238" HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A> is currently limited to vantage points at infinity; thus we are unable to do fly-by's through canyons etc. The <A NAME="tex2html239" HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A> module that produces perspective views of gridded data files is <A NAME="tex2html240" HREF="../man/grdview.html"><I><B>grdview</B></I></A><A NAME="2601"></A>. It can make two kinds of plots: <P> <OL> <LI>Mesh or wire-frame plot (with or without superimposed contours) <P> </LI> <LI>Color-coded surface (with optional shading, contours, or draping). <P> </LI> </OL> <P> Regardless of plot type, some arguments must be specified; these are <P> <OL> <LI><I>relief_file</I>; a gridded data set of the surface. <P> </LI> <LI><B>-J</B> for the desired map projection. <P> </LI> <LI><B>-JZ</B><I>height</I> for the vertical scaling. <P> </LI> <LI><B>-E</B><I>azimuth</I>/<I>elevation</I> for vantage point. <P> </LI> </OL> <P> In addition, some options may be required: <P> <BR><P></P> <DIV ALIGN="CENTER"><A NAME="1645"></A> <TABLE> <CAPTION><STRONG>Table 4.5:</STRONG> The most useful options in <A NAME="tex2html235" HREF="../man/grdview.html"><I><B>grdview</B></I></A><A NAME="2619"></A>.</CAPTION> <TR><TD> <DIV ALIGN="CENTER"><TABLE CELLPADDING=3 BORDER="1"> <TR><TD ALIGN="CENTER" COLSPAN=1><FONT SIZE="-1"> <I>Option</I></FONT></TD> <TD ALIGN="CENTER" COLSPAN=1><FONT SIZE="-1"> <I>Purpose</I></FONT></TD> </TR> <TR><TH ALIGN="LEFT"><FONT SIZE="-1"> <B>-C</B></FONT><FONT SIZE="-1"><I>cptfile</I> </FONT></TH> <TD ALIGN="LEFT"><FONT SIZE="-1"> The </FONT><FONT SIZE="-1"><I>cptfile</I> is required for color -coded surfaces and for contoured mesh plots </FONT></TD> </TR> <TR><TH ALIGN="LEFT"><FONT SIZE="-1"> <B>-G</B></FONT><FONT SIZE="-1"><I>drape_file</I> </FONT></TH> <TD ALIGN="LEFT"><FONT SIZE="-1"> Assign colors using </FONT><FONT SIZE="-1"><I>drape_file</I> instead of </FONT><FONT SIZE="-1"><I>relief_file</I> </FONT></TD> </TR> <TR><TH ALIGN="LEFT"><FONT SIZE="-1"> <B>-I</B></FONT><FONT SIZE="-1"><I>intens_file</I> </FONT></TH> <TD ALIGN="LEFT"><FONT SIZE="-1"> File with illumination intensities </FONT></TD> </TR> <TR><TH ALIGN="LEFT"><FONT SIZE="-1"> <B>-Qm</B> </FONT></TH> <TD ALIGN="LEFT"><FONT SIZE="-1"> Selects mesh plot </FONT></TD> </TR> <TR><TH ALIGN="LEFT"><FONT SIZE="-1"> <B>-Qs</B>[</FONT><FONT SIZE="-1"><B>m</B>] </FONT></TH> <TD ALIGN="LEFT"><FONT SIZE="-1"> Surface plot using polygons; append </FONT><FONT SIZE="-1"><B>m</B> to show mesh. This option allows for <B>-W</B> </FONT></TD> </TR> <TR><TH ALIGN="LEFT"><FONT SIZE="-1"> <B>-Qi</B></FONT><FONT SIZE="-1"><I>dpi</I>[</FONT><FONT SIZE="-1"><B>g</B>] </FONT></TH> <TD ALIGN="LEFT"><FONT SIZE="-1"> Image by scan-line conversion. Specify </FONT><FONT SIZE="-1"><I>dpi</I>; append </FONT><FONT SIZE="-1"><B>g</B> to force gray-shade image. <B>-B</B> is disabled. </FONT></TD> </TR> <TR><TH ALIGN="LEFT"><FONT SIZE="-1"> <B>-W</B></FONT><FONT SIZE="-1"><I>pen</I> </FONT></TH> <TD ALIGN="LEFT"><FONT SIZE="-1"> Draw contours on top of surface (except with <B>-Qi</B>) </FONT></TD> </TR> </TABLE><FONT SIZE="-1"> <A NAME="tbl:grdview"></A></FONT></DIV></TD></TR> </TABLE> </DIV><P></P> <BR> <P> <BR><HR> <!--Table of Child-Links--> <A NAME="CHILD_LINKS"><STRONG>Subsections</STRONG></A> <UL> <LI><A NAME="tex2html1206" HREF="node58.html">4.5.1 Mesh-plot</A> <UL> <LI><A NAME="tex2html1207" HREF="node59.html">4.5.1.1 Exercises</A> </UL> <BR> <LI><A NAME="tex2html1208" HREF="node60.html">4.5.2 Color-coded view</A> <UL> <LI><A NAME="tex2html1209" HREF="node61.html">4.5.2.1 Exercises</A> </UL></UL> <!--End of Table of Child-Links--> <HR> <!--Navigation Panel--> <A NAME="tex2html1204" HREF="node58.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> <A NAME="tex2html1198" HREF="node49.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> <A NAME="tex2html1194" HREF="node56.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> <A NAME="tex2html1200" HREF="node1.html"> <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> <A NAME="tex2html1202" HREF="node63.html"> <IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> <BR> <B> Next:</B> <A NAME="tex2html1205" HREF="node58.html">4.5.1 Mesh-plot</A> <B> Up:</B> <A NAME="tex2html1199" HREF="node49.html">4. SESSION FOUR</A> <B> Previous:</B> <A NAME="tex2html1195" HREF="node56.html">4.4.1 Exercises</A> <B> <A NAME="tex2html1201" HREF="node1.html">Contents</A></B> <B> <A NAME="tex2html1203" HREF="node63.html">Index</A></B> <!--End of Navigation Panel--> <ADDRESS> Paul Wessel 2010-07-14 </ADDRESS> </BODY> </HTML>