<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> <head> <meta http-equiv="X-UA-Compatible" content="IE=Edge" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>(46) Day-light terminators and other sunlight parameters — GMT 5.4.4 documentation</title> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/> <link rel="stylesheet" href="../_static/rtd.css" type="text/css" /> <link rel="stylesheet" href="../_static/pygments.css" type="text/css" /> <script type="text/javascript" id="documentation_options" data-url_root="../" src="../_static/documentation_options.js"></script> <script type="text/javascript" src="../_static/jquery.js"></script> <script type="text/javascript" src="../_static/underscore.js"></script> <script type="text/javascript" src="../_static/doctools.js"></script> <script type="text/javascript" src="../../_static/searchtools.js"></script> <script type="text/javascript" src="../../_static/rtd-sidebar.js"></script> <link rel="index" title="Index" href="../genindex.html" /> <link rel="search" title="Search" href="../search.html" /> <link rel="next" title="(47) Linear regression using different norms and types" href="ex47.html" /> <link rel="prev" title="(45) Trend modeling" href="ex45.html" /> </head><body> <div class="related" role="navigation" aria-label="related navigation"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="../genindex.html" title="General Index" accesskey="I">index</a></li> <li class="right" > <a href="ex47.html" title="(47) Linear regression using different norms and types" accesskey="N">next</a> </li> <li class="right" > <a href="ex45.html" title="(45) Trend modeling" accesskey="P">previous</a> </li> <li><a href="/projects/gmt/wiki/Documentation">Project Home</a> »</li> <li class="nav-item nav-item-0"><a href="../index.html">GMT 5.4.4 documentation</a> »</li> <li class="nav-item nav-item-1"><a href="../Gallery.html" accesskey="U">The GMT historical collection</a> »</li> <li class="right"> <form class="search" accept-charset="UTF-8" action="search.html" method="get"> <div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="✓"></div> <label for="q"> <a class="search" href="search.html" accesskey="s" original-title="">Search:</a> </label> <input accesskey="f" class="small" id="q" name="q" size="20" type="text"> <input type="hidden" name="check_keywords" value="yes"> <input type="hidden" name="area" value="default"> </form></li> </ul> </div> <div class="document"> <div class="documentwrapper"> <div class="bodywrapper"> <div class="body" role="main"> <div class="section" id="day-light-terminators-and-other-sunlight-parameters"> <span id="example-46"></span><h1>(46) Day-light terminators and other sunlight parameters<a class="headerlink" href="#day-light-terminators-and-other-sunlight-parameters" title="Permalink to this headline">¶</a></h1> <p>In this example show how the module <a class="reference internal" href="../pssolar.html"><span class="doc">pssolar</span></a> is used to plot several terminator lines that depend on the location of the sun with respect to Earth. We also show how an EPS illustration can serve as a custom symbol to be plotted with <a class="reference internal" href="../psxy.html"><span class="doc">psxy</span></a>.</p> <div class="highlight-bash notranslate"><div class="highlight"><pre><span></span><span class="ch">#!/bin/bash</span> <span class="c1"># GMT EXAMPLE 46</span> <span class="c1">#</span> <span class="c1"># Purpose: Illustrate use of pssolar to plot day/night terminators</span> <span class="c1"># GMT modules: pssolar, pscoast, psxy</span> <span class="c1">#</span> <span class="nv">ps</span><span class="o">=</span>example_46.ps gmt pscoast -Rd -JKs0/10i -Dl -A5000 -W0.5p -N1/0.5p,gray -S175/210/255 -Bafg --MAP_FRAME_TYPE<span class="o">=</span>plain -K -Xc > <span class="nv">$ps</span> gmt pssolar -R -J -Td+d2016-02-09T16:00:00 -Gnavy@95 -K -O >> <span class="nv">$ps</span> gmt pssolar -R -J -Tc+d2016-02-09T16:00:00 -Gnavy@85 -K -O >> <span class="nv">$ps</span> gmt pssolar -R -J -Tn+d2016-02-09T16:00:00 -Gnavy@80 -K -O >> <span class="nv">$ps</span> gmt pssolar -R -J -Ta+d2016-02-09T16:00:00 -Gnavy@80 -K -O >> <span class="nv">$ps</span> gmt pssolar -I+d2016-02-09T16:00:00 -C <span class="p">|</span> gmt psxy -R -J -Sk<span class="s2">"</span><span class="si">${</span><span class="nv">src</span><span class="k">:-</span><span class="p">.</span><span class="si">}</span><span class="s2">"</span>/sunglasses/1.5c -O >> <span class="nv">$ps</span> </pre></div> </div> <div class="figure align-center" id="id1"> <a class="reference internal image-reference" href="../_images/example_46.png"><img alt="../_images/example_46.png" src="../_images/example_46.png" style="width: 500px;" /></a> <p class="caption"><span class="caption-text">Day-light terminators.</span></p> </div> </div> </div> </div> </div> <div class="sphinxsidebar" role="navigation" aria-label="main navigation"> <div class="sphinxsidebarwrapper"> <h4>Previous topic</h4> <p class="topless"><a href="ex45.html" title="previous chapter">(45) Trend modeling</a></p> <h4>Next topic</h4> <p class="topless"><a href="ex47.html" title="next chapter">(47) Linear regression using different norms and types</a></p> <div role="note" aria-label="source link"> <h3>This Page</h3> <ul class="this-page-menu"> <li><a href="../_sources/gallery/ex46.rst.txt" rel="nofollow">Show Source</a></li> </ul> </div> </div> </div> <div class="clearer"></div> </div> <div class="related" role="navigation" aria-label="related navigation"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="../genindex.html" title="General Index" >index</a></li> <li class="right" > <a href="ex47.html" title="(47) Linear regression using different norms and types" >next</a> </li> <li class="right" > <a href="ex45.html" title="(45) Trend modeling" >previous</a> </li> <li><a href="/projects/gmt/wiki/Documentation">Project Home</a> »</li> <li class="nav-item nav-item-0"><a href="../index.html">GMT 5.4.4 documentation</a> »</li> <li class="nav-item nav-item-1"><a href="../Gallery.html" >The GMT historical collection</a> »</li> <li class="right"> <form class="search" accept-charset="UTF-8" action="search.html" method="get"> <div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="✓"></div> <label for="q"> <a class="search" href="search.html" accesskey="s" original-title="">Search:</a> </label> <input accesskey="f" class="small" id="q" name="q" size="20" type="text"> <input type="hidden" name="check_keywords" value="yes"> <input type="hidden" name="area" value="default"> </form></li> </ul> </div> <div class="footer"> © Copyright 2018, P. Wessel, W. H. F. Smith, R. Scharroo, J. Luis, and F. Wobbe. Last updated on Jun 28, 2018. Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.7.5. <br />Theme based on <a href="http://readthedocs.org/">Read The Docs</a> </div> </body> </html>