<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://source.geography.bristol.ac.uk/mediawiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Tony-payne</id>
	<title>SourceWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://source.geography.bristol.ac.uk/mediawiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Tony-payne"/>
	<link rel="alternate" type="text/html" href="https://source.geography.bristol.ac.uk/wiki/Special:Contributions/Tony-payne"/>
	<updated>2026-05-05T06:34:42Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.8</generator>
	<entry>
		<id>https://source.geography.bristol.ac.uk/mediawiki/index.php?title=Glam_output&amp;diff=3503</id>
		<title>Glam output</title>
		<link rel="alternate" type="text/html" href="https://source.geography.bristol.ac.uk/mediawiki/index.php?title=Glam_output&amp;diff=3503"/>
		<updated>2007-07-27T12:10:20Z</updated>

		<summary type="html">&lt;p&gt;Tony-payne: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:glam]]&lt;br /&gt;
&lt;br /&gt;
= Output from GLAM =&lt;br /&gt;
&lt;br /&gt;
== Selecting output from GLAM ==&lt;br /&gt;
&lt;br /&gt;
GLAM outputs 2d and 3d variables in files &amp;lt;tt&amp;gt;glam.2df&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;glam.3df&amp;lt;/tt&amp;gt;, respectively.  These files are binary and can be read with MATLAB scripts (see below).  The interval between output is selected using the variable &amp;lt;tt&amp;gt;nout&amp;lt;/tt&amp;gt; within &amp;lt;tt&amp;gt;glam.nml&amp;lt;/tt&amp;gt;.  The three elements of this array contain intervals for point, 2d and 3d output (the first is no longer used).  The unit is years.  Note that GLAM will also output at the first (&amp;lt;tt&amp;gt;tstr&amp;lt;/tt&amp;gt;) and final (&amp;lt;tt&amp;gt;tstr+trun&amp;lt;/tt&amp;gt;) time step irrespective of these settings; the actual time integration loop runs from &amp;lt;tt&amp;gt;tstr+tinc&amp;lt;/tt&amp;gt; until &amp;lt;tt&amp;gt;trun&amp;lt;/tt&amp;gt; is exceeded.  The variable &amp;lt;tt&amp;gt;nstrv&amp;lt;/tt&amp;gt;  can be used to control when output starts in a time-dependent simulation; output will only be written after &amp;lt;tt&amp;gt;nstr&amp;lt;/tt&amp;gt; (in years).  This is useful if we are only interested in the equilibrium.&lt;br /&gt;
&lt;br /&gt;
The variables that are output can be selected by editing &amp;lt;tt&amp;gt;glam.out&amp;lt;/tt&amp;gt;.  This file contains two arrays (&amp;lt;tt&amp;gt;which2d&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;which3d&amp;lt;/tt&amp;gt;).   Output for a particular variable is selected if the appropriate entry in the array is 1 (otherwise set to zero).  The variables currently available for output are shown in Tables 1 and 2.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot;&lt;br /&gt;
|+ '''Table 1.  3d variables available from GLAM.'''&lt;br /&gt;
| || Variable || Grid || Units || MATLAB name&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Horizontal velocity in x || Staggered || m yr&amp;lt;sup&amp;gt;-1 &amp;lt;/sup&amp;gt;|| u&lt;br /&gt;
|-&lt;br /&gt;
| 2||Horizontal velocity in y||Staggered||m yr&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;||v&lt;br /&gt;
|-&lt;br /&gt;
| 3||Vertical velocity||Normal||m yr&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;||w &lt;br /&gt;
|-&lt;br /&gt;
| 4||Vertical velocity of grid||Normal||m yr&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;||wg&lt;br /&gt;
|-&lt;br /&gt;
| 5||Glen’s A||Normal||Pa&amp;lt;sup&amp;gt;-3&amp;lt;/sup&amp;gt; yr&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;||a&lt;br /&gt;
|-&lt;br /&gt;
| 6||Temperature||Normal||deg. C||t&lt;br /&gt;
|-&lt;br /&gt;
| 7||Effective viscosity||Normal||Pa s||evs&lt;br /&gt;
|-&lt;br /&gt;
| 8||Effective stress||Normal||Pa||tau&lt;br /&gt;
|-&lt;br /&gt;
| 9||Vertical shear stress in x||Normal||Pa||txz&lt;br /&gt;
|-&lt;br /&gt;
| 10||Vertical shear stress in y||Normal||Pa||tyz&lt;br /&gt;
|-&lt;br /&gt;
| 11||Horizontal shear stress||Normal||Pa||txy&lt;br /&gt;
|-&lt;br /&gt;
| 12||Longitudinal stress deviator in x||Normal||Pa||txx&lt;br /&gt;
|-&lt;br /&gt;
| 13||Longitudinal stress deviator in y||Normal||Pa||tyy&lt;br /&gt;
|-&lt;br /&gt;
| 14||Gravitational driving stress in x||Normal||Pa||gdx&lt;br /&gt;
|-&lt;br /&gt;
| 15||Gravitational driving stress in y||Normal||Pa||gdy&lt;br /&gt;
|-&lt;br /&gt;
| ||Horizontal distances||Both||m|| xn yn xs ys&lt;br /&gt;
|-&lt;br /&gt;
| ||Vertical distances||Both||m||zn zs&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''Table 2. needs to be done'''&lt;br /&gt;
&lt;br /&gt;
== Viewing output from GLAM in MATLAB ==&lt;br /&gt;
&lt;br /&gt;
The GLAM output files can be loaded using MATLAB scripts &amp;lt;tt&amp;gt;glam2d.m&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;glam3d.m&amp;lt;/tt&amp;gt;.  Both are called using &amp;lt;tt&amp;gt;[a] = glam3d(N,PATH);&amp;lt;/tt&amp;gt; (where &amp;lt;tt&amp;gt;N&amp;lt;/tt&amp;gt; is the time step of interest and &amp;lt;tt&amp;gt;PATH&amp;lt;/tt&amp;gt; is the relative location of the output file, e.g. ‘.’ for same directory).  These scripts create a MATLAB structure that can be referenced as follows.  For 3d output, use &amp;lt;tt&amp;gt;a.NAME(I,J,K)&amp;lt;/tt&amp;gt; where &amp;lt;tt&amp;gt;NAME&amp;lt;/tt&amp;gt; is the variable’s MATLAB name (see Tables 1 and 2), &amp;lt;tt&amp;gt;I&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;J&amp;lt;/tt&amp;gt; are horizontal indices and &amp;lt;tt&amp;gt;K&amp;lt;/tt&amp;gt; the vertical index.  Note that it is often necessary to compress the 3d array to a 2d array for plotting purposes using &amp;lt;tt&amp;gt;squeeze()&amp;lt;/tt&amp;gt;.  The command &amp;lt;tt&amp;gt;imagesc(squeeze(a.txz(:,:,end)))&amp;lt;/tt&amp;gt; will produce an image of basal traction.&lt;/div&gt;</summary>
		<author><name>Tony-payne</name></author>
	</entry>
	<entry>
		<id>https://source.geography.bristol.ac.uk/mediawiki/index.php?title=Glam_output&amp;diff=3502</id>
		<title>Glam output</title>
		<link rel="alternate" type="text/html" href="https://source.geography.bristol.ac.uk/mediawiki/index.php?title=Glam_output&amp;diff=3502"/>
		<updated>2007-07-27T12:09:54Z</updated>

		<summary type="html">&lt;p&gt;Tony-payne: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:glam]]&lt;br /&gt;
&lt;br /&gt;
= Output from GLAM =&lt;br /&gt;
&lt;br /&gt;
== Selecting output from GLAM ==&lt;br /&gt;
&lt;br /&gt;
GLAM outputs 2d and 3d variables in files &amp;lt;tt&amp;gt;glam.2df&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;glam.3df&amp;lt;/tt&amp;gt;, respectively.  These files are binary and can be read with MATLAB scripts (see below).  The interval between output is selected using the variable &amp;lt;tt&amp;gt;nout&amp;lt;/tt&amp;gt; within &amp;lt;tt&amp;gt;glam.nml&amp;lt;/tt&amp;gt;.  The three elements of this array contain intervals for point, 2d and 3d output (the first is no longer used).  The unit is years.  Note that GLAM will also output at the first (&amp;lt;tt&amp;gt;tstr&amp;lt;/tt&amp;gt;) and final (&amp;lt;tt&amp;gt;tstr+trun&amp;lt;/tt&amp;gt;) time step irrespective of these settings; the actual time integration loop runs from &amp;lt;tt&amp;gt;tstr+tinc&amp;lt;/tt&amp;gt; until &amp;lt;tt&amp;gt;trun&amp;lt;/tt&amp;gt; is exceeded.  The variable &amp;lt;tt&amp;gt;nstrv&amp;lt;/tt&amp;gt;  can be used to control when output starts in a time-dependent simulation; output will only be written after &amp;lt;tt&amp;gt;nstr&amp;lt;/tt&amp;gt; (in years).  This is useful if we are only interested in the equilibrium.&lt;br /&gt;
&lt;br /&gt;
The variables that are output can be selected by editing &amp;lt;tt&amp;gt;glam.out&amp;lt;/tt&amp;gt;.  This file contains two arrays (&amp;lt;tt&amp;gt;which2d&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;which3d&amp;lt;/tt&amp;gt;).   Output for a particular variable is selected if the appropriate entry in the array is 1 (otherwise set to zero).  The variables currently available for output are shown in Tables 1 and 2.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot;&lt;br /&gt;
|+ '''Table 1.  3d variables available from GLAM.'''&lt;br /&gt;
| || Variable || Grid || Units || MATLAB name&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Horizontal velocity in x || Staggered || m yr&amp;lt;sup&amp;gt;-1 &amp;lt;/sup&amp;gt;|| u&lt;br /&gt;
|-&lt;br /&gt;
| 2||Horizontal velocity in y||Staggered||m yr&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;||v&lt;br /&gt;
|-&lt;br /&gt;
| 3||Vertical velocity||Normal||m yr&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;||w| &lt;br /&gt;
|-&lt;br /&gt;
| 4||Vertical velocity of grid||Normal||m yr&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;||wg&lt;br /&gt;
|-&lt;br /&gt;
| 5||Glen’s A||Normal||Pa&amp;lt;sup&amp;gt;-3&amp;lt;/sup&amp;gt; yr&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;||a&lt;br /&gt;
|-&lt;br /&gt;
| 6||Temperature||Normal||deg. C||t&lt;br /&gt;
|-&lt;br /&gt;
| 7||Effective viscosity||Normal||Pa s||evs&lt;br /&gt;
|-&lt;br /&gt;
| 8||Effective stress||Normal||Pa||tau&lt;br /&gt;
|-&lt;br /&gt;
| 9||Vertical shear stress in x||Normal||Pa||txz&lt;br /&gt;
|-&lt;br /&gt;
| 10||Vertical shear stress in y||Normal||Pa||tyz&lt;br /&gt;
|-&lt;br /&gt;
| 11||Horizontal shear stress||Normal||Pa||txy&lt;br /&gt;
|-&lt;br /&gt;
| 12||Longitudinal stress deviator in x||Normal||Pa||txx&lt;br /&gt;
|-&lt;br /&gt;
| 13||Longitudinal stress deviator in y||Normal||Pa||tyy&lt;br /&gt;
|-&lt;br /&gt;
| 14||Gravitational driving stress in x||Normal||Pa||gdx&lt;br /&gt;
|-&lt;br /&gt;
| 15||Gravitational driving stress in y||Normal||Pa||gdy&lt;br /&gt;
|-&lt;br /&gt;
| ||Horizontal distances||Both||m|| xn yn xs ys&lt;br /&gt;
|-&lt;br /&gt;
| ||Vertical distances||Both||m||zn zs&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''Table 2. needs to be done'''&lt;br /&gt;
&lt;br /&gt;
== Viewing output from GLAM in MATLAB ==&lt;br /&gt;
&lt;br /&gt;
The GLAM output files can be loaded using MATLAB scripts &amp;lt;tt&amp;gt;glam2d.m&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;glam3d.m&amp;lt;/tt&amp;gt;.  Both are called using &amp;lt;tt&amp;gt;[a] = glam3d(N,PATH);&amp;lt;/tt&amp;gt; (where &amp;lt;tt&amp;gt;N&amp;lt;/tt&amp;gt; is the time step of interest and &amp;lt;tt&amp;gt;PATH&amp;lt;/tt&amp;gt; is the relative location of the output file, e.g. ‘.’ for same directory).  These scripts create a MATLAB structure that can be referenced as follows.  For 3d output, use &amp;lt;tt&amp;gt;a.NAME(I,J,K)&amp;lt;/tt&amp;gt; where &amp;lt;tt&amp;gt;NAME&amp;lt;/tt&amp;gt; is the variable’s MATLAB name (see Tables 1 and 2), &amp;lt;tt&amp;gt;I&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;J&amp;lt;/tt&amp;gt; are horizontal indices and &amp;lt;tt&amp;gt;K&amp;lt;/tt&amp;gt; the vertical index.  Note that it is often necessary to compress the 3d array to a 2d array for plotting purposes using &amp;lt;tt&amp;gt;squeeze()&amp;lt;/tt&amp;gt;.  The command &amp;lt;tt&amp;gt;imagesc(squeeze(a.txz(:,:,end)))&amp;lt;/tt&amp;gt; will produce an image of basal traction.&lt;/div&gt;</summary>
		<author><name>Tony-payne</name></author>
	</entry>
	<entry>
		<id>https://source.geography.bristol.ac.uk/mediawiki/index.php?title=Glam_output&amp;diff=3497</id>
		<title>Glam output</title>
		<link rel="alternate" type="text/html" href="https://source.geography.bristol.ac.uk/mediawiki/index.php?title=Glam_output&amp;diff=3497"/>
		<updated>2007-07-27T11:30:06Z</updated>

		<summary type="html">&lt;p&gt;Tony-payne: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:glam]]&lt;br /&gt;
&lt;br /&gt;
= Output from GLAM =&lt;br /&gt;
&lt;br /&gt;
== Selecting output from GLAM ==&lt;br /&gt;
&lt;br /&gt;
GLAM outputs 2d and 3d variables in files &amp;lt;tt&amp;gt;glam.2df&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;glam.3df&amp;lt;/tt&amp;gt;, respectively.  These files are binary and can be read with MATLAB scripts (see below).  The interval between output is selected using the variable &amp;lt;tt&amp;gt;nout&amp;lt;/tt&amp;gt; within &amp;lt;tt&amp;gt;glam.nml&amp;lt;/tt&amp;gt;.  The three elements of this array contain intervals for point, 2d and 3d output (the first is no longer used).  The unit is years.  Note that GLAM will also output at the first (&amp;lt;tt&amp;gt;tstr&amp;lt;/tt&amp;gt;) and final (&amp;lt;tt&amp;gt;tstr+trun&amp;lt;/tt&amp;gt;) time step irrespective of these settings; the actual time integration loop runs from &amp;lt;tt&amp;gt;tstr+tinc&amp;lt;/tt&amp;gt; until &amp;lt;tt&amp;gt;trun&amp;lt;/tt&amp;gt; is exceeded.  The variable &amp;lt;tt&amp;gt;nstrv&amp;lt;/tt&amp;gt;  can be used to control when output starts in a time-dependent simulation; output will only be written after &amp;lt;tt&amp;gt;nstr&amp;lt;/tt&amp;gt; (in years).  This is useful if we are only interested in the equilibrium.&lt;br /&gt;
&lt;br /&gt;
The variables that are output can be selected by editing &amp;lt;tt&amp;gt;glam.out&amp;lt;/tt&amp;gt;.  This file contains two arrays (&amp;lt;tt&amp;gt;which2d&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;which3d&amp;lt;/tt&amp;gt;).   Output for a particular variable is selected if the appropriate entry in the array is 1 (otherwise set to zero).  The variables currently available for output are shown in Tables 1 and 2.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot;&lt;br /&gt;
|+ '''Table 1.  3d variables available from GLAM.'''&lt;br /&gt;
| || Variable || Grid || Units || MATLAB name&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Horizontal velocity in x || Staggered || m yr&amp;lt;sup&amp;gt;-1 &amp;lt;/sup&amp;gt;|| u&lt;br /&gt;
|-&lt;br /&gt;
| 2||Horizontal velocity in y||Staggered||m yr&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;||v&lt;br /&gt;
|-&lt;br /&gt;
| 3||Vertical velocity||Normal||m yr&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;||w| &lt;br /&gt;
|-&lt;br /&gt;
| 4||Vertical velocity of grid||Normal||m yr&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;||wg&lt;br /&gt;
|-&lt;br /&gt;
| 5||Glen’s A||Normal||Pa&amp;lt;sup&amp;gt;-3&amp;lt;/sup&amp;gt; yr&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;||a&lt;br /&gt;
|-&lt;br /&gt;
| 6||Temperature||Normal||deg. C||t&lt;br /&gt;
|-&lt;br /&gt;
| 7||Effective viscosity||Normal||Pa s||evs&lt;br /&gt;
|-&lt;br /&gt;
| 8||Effective stress||Normal||Pa||tau&lt;br /&gt;
|-&lt;br /&gt;
| 9||Vertical shear stress in x||Normal||Pa||txz&lt;br /&gt;
|-&lt;br /&gt;
| 10||Vertical shear stress in y||Normal||Pa||tyz&lt;br /&gt;
|-&lt;br /&gt;
| 11||Horizontal shear stress||Normal||Pa||txy&lt;br /&gt;
|-&lt;br /&gt;
| 12||Longitudinal stress deviator in x||Normal||Pa||txx&lt;br /&gt;
|-&lt;br /&gt;
| 13||Longitudinal stress deviator in y||Normal||Pa||tyy&lt;br /&gt;
|-&lt;br /&gt;
| 14||Gravitational driving stress in x||Normal||Pa||gdx&lt;br /&gt;
|-&lt;br /&gt;
| 15||Gravitational driving stress in y||Normal||Pa||gdy&lt;br /&gt;
|-&lt;br /&gt;
| ||Horizontal distances||Both||m||vxn yn xs ys&lt;br /&gt;
|-&lt;br /&gt;
| ||Vertical distances||Both||m||zn zs&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''Table 2. needs to be done'''&lt;br /&gt;
&lt;br /&gt;
== Viewing output from GLAM in MATLAB ==&lt;br /&gt;
&lt;br /&gt;
The GLAM output files can be loaded using MATLAB scripts &amp;lt;tt&amp;gt;glam2d.m&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;glam3d.m&amp;lt;/tt&amp;gt;.  Both are called using &amp;lt;tt&amp;gt;[a] = glam3d(N,PATH);&amp;lt;/tt&amp;gt; (where &amp;lt;tt&amp;gt;N&amp;lt;/tt&amp;gt; is the time step of interest and &amp;lt;tt&amp;gt;PATH&amp;lt;/tt&amp;gt; is the relative location of the output file, e.g. ‘.’ for same directory).  These scripts create a MATLAB structure that can be referenced as follows.  For 3d output, use &amp;lt;tt&amp;gt;a.NAME(I,J,K)&amp;lt;/tt&amp;gt; where &amp;lt;tt&amp;gt;NAME&amp;lt;/tt&amp;gt; is the variable’s MATLAB name (see Tables 1 and 2), &amp;lt;tt&amp;gt;I&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;J&amp;lt;/tt&amp;gt; are horizontal indices and &amp;lt;tt&amp;gt;K&amp;lt;/tt&amp;gt; the vertical index.  Note that it is often necessary to compress the 3d array to a 2d array for plotting purposes using &amp;lt;tt&amp;gt;squeeze()&amp;lt;/tt&amp;gt;.  The command &amp;lt;tt&amp;gt;imagesc(squeeze(a.txz(:,:,end)))&amp;lt;/tt&amp;gt; will produce an image of basal traction.&lt;/div&gt;</summary>
		<author><name>Tony-payne</name></author>
	</entry>
	<entry>
		<id>https://source.geography.bristol.ac.uk/mediawiki/index.php?title=Glam&amp;diff=3496</id>
		<title>Glam</title>
		<link rel="alternate" type="text/html" href="https://source.geography.bristol.ac.uk/mediawiki/index.php?title=Glam&amp;diff=3496"/>
		<updated>2007-07-27T11:26:13Z</updated>

		<summary type="html">&lt;p&gt;Tony-payne: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:glam]]&lt;br /&gt;
&lt;br /&gt;
= Welcome to the '''glam''' wiki =&lt;br /&gt;
&lt;br /&gt;
== Information on running the code ==&lt;br /&gt;
&lt;br /&gt;
read about how to output from '''glam''' at [[Glam/output]].&lt;br /&gt;
&lt;br /&gt;
== Other information ==&lt;br /&gt;
&lt;br /&gt;
Read wikitext instructions at [[Help:Editing]]&lt;/div&gt;</summary>
		<author><name>Tony-payne</name></author>
	</entry>
	<entry>
		<id>https://source.geography.bristol.ac.uk/mediawiki/index.php?title=Glam&amp;diff=3495</id>
		<title>Glam</title>
		<link rel="alternate" type="text/html" href="https://source.geography.bristol.ac.uk/mediawiki/index.php?title=Glam&amp;diff=3495"/>
		<updated>2007-07-27T11:25:50Z</updated>

		<summary type="html">&lt;p&gt;Tony-payne: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:glam]]&lt;br /&gt;
&lt;br /&gt;
= Welcome to the '''glam''' wiki =&lt;br /&gt;
&lt;br /&gt;
= Information on running the code =&lt;br /&gt;
&lt;br /&gt;
read about how to output from '''glam''' at [[Glam/output]].&lt;br /&gt;
&lt;br /&gt;
= Other information =&lt;br /&gt;
&lt;br /&gt;
Read wikitext instructions at [[Help:Editing]]&lt;/div&gt;</summary>
		<author><name>Tony-payne</name></author>
	</entry>
	<entry>
		<id>https://source.geography.bristol.ac.uk/mediawiki/index.php?title=Glam&amp;diff=3494</id>
		<title>Glam</title>
		<link rel="alternate" type="text/html" href="https://source.geography.bristol.ac.uk/mediawiki/index.php?title=Glam&amp;diff=3494"/>
		<updated>2007-07-27T11:25:33Z</updated>

		<summary type="html">&lt;p&gt;Tony-payne: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:glam]]&lt;br /&gt;
&lt;br /&gt;
= Welcome to the '''glam''' wiki =&lt;br /&gt;
&lt;br /&gt;
= Information on running the code =&lt;br /&gt;
&lt;br /&gt;
read about how to output from '''glam''' [[Glam/output]].&lt;br /&gt;
&lt;br /&gt;
= Other information =&lt;br /&gt;
&lt;br /&gt;
Read wikitext instructions at [[Help:Editing]]&lt;/div&gt;</summary>
		<author><name>Tony-payne</name></author>
	</entry>
	<entry>
		<id>https://source.geography.bristol.ac.uk/mediawiki/index.php?title=Glam&amp;diff=3493</id>
		<title>Glam</title>
		<link rel="alternate" type="text/html" href="https://source.geography.bristol.ac.uk/mediawiki/index.php?title=Glam&amp;diff=3493"/>
		<updated>2007-07-27T11:24:41Z</updated>

		<summary type="html">&lt;p&gt;Tony-payne: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:glam]]&lt;br /&gt;
&lt;br /&gt;
= Welcome to the GLAM wiki =&lt;br /&gt;
&lt;br /&gt;
= Information on running the code =&lt;br /&gt;
&lt;br /&gt;
Output in GLAM [[Glam/output]].&lt;br /&gt;
&lt;br /&gt;
= Other information =&lt;br /&gt;
&lt;br /&gt;
Read wikitext instructions at [[Help:Editing]]&lt;/div&gt;</summary>
		<author><name>Tony-payne</name></author>
	</entry>
	<entry>
		<id>https://source.geography.bristol.ac.uk/mediawiki/index.php?title=Glam&amp;diff=3492</id>
		<title>Glam</title>
		<link rel="alternate" type="text/html" href="https://source.geography.bristol.ac.uk/mediawiki/index.php?title=Glam&amp;diff=3492"/>
		<updated>2007-07-27T11:24:23Z</updated>

		<summary type="html">&lt;p&gt;Tony-payne: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:glam]]&lt;br /&gt;
&lt;br /&gt;
= Welcome to the GLAM wiki =&lt;br /&gt;
&lt;br /&gt;
= Information on running the code =&lt;br /&gt;
&lt;br /&gt;
Output in GLAM [[Glam:output]].&lt;br /&gt;
&lt;br /&gt;
= Other information =&lt;br /&gt;
&lt;br /&gt;
Read wikitext instructions at [[Help:Editing]]&lt;/div&gt;</summary>
		<author><name>Tony-payne</name></author>
	</entry>
	<entry>
		<id>https://source.geography.bristol.ac.uk/mediawiki/index.php?title=Glam&amp;diff=3491</id>
		<title>Glam</title>
		<link rel="alternate" type="text/html" href="https://source.geography.bristol.ac.uk/mediawiki/index.php?title=Glam&amp;diff=3491"/>
		<updated>2007-07-27T11:22:42Z</updated>

		<summary type="html">&lt;p&gt;Tony-payne: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:glam]]&lt;br /&gt;
&lt;br /&gt;
= Welcome to the GLAM wiki =&lt;br /&gt;
&lt;br /&gt;
= Information on running the code =&lt;br /&gt;
&lt;br /&gt;
Output in GLAM [[output]].&lt;br /&gt;
&lt;br /&gt;
= Other information =&lt;br /&gt;
&lt;br /&gt;
Read wikitext instructions at [[Help:Editing]]&lt;/div&gt;</summary>
		<author><name>Tony-payne</name></author>
	</entry>
	<entry>
		<id>https://source.geography.bristol.ac.uk/mediawiki/index.php?title=Glam&amp;diff=3490</id>
		<title>Glam</title>
		<link rel="alternate" type="text/html" href="https://source.geography.bristol.ac.uk/mediawiki/index.php?title=Glam&amp;diff=3490"/>
		<updated>2007-07-27T11:21:01Z</updated>

		<summary type="html">&lt;p&gt;Tony-payne: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:glam]]&lt;br /&gt;
&lt;br /&gt;
= Welcome to the GLAM wiki =&lt;br /&gt;
&lt;br /&gt;
= Information on running the code =&lt;br /&gt;
&lt;br /&gt;
Output in GLAM [[Glam:output]]&lt;br /&gt;
&lt;br /&gt;
= Other information =&lt;br /&gt;
&lt;br /&gt;
Read wikitext instructions at [[Help:Editing]]&lt;/div&gt;</summary>
		<author><name>Tony-payne</name></author>
	</entry>
	<entry>
		<id>https://source.geography.bristol.ac.uk/mediawiki/index.php?title=Glam&amp;diff=3489</id>
		<title>Glam</title>
		<link rel="alternate" type="text/html" href="https://source.geography.bristol.ac.uk/mediawiki/index.php?title=Glam&amp;diff=3489"/>
		<updated>2007-07-27T11:20:41Z</updated>

		<summary type="html">&lt;p&gt;Tony-payne: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:glam]]&lt;br /&gt;
&lt;br /&gt;
= Welcome to the GLAM wiki =&lt;br /&gt;
&lt;br /&gt;
= Information on running the code =&lt;br /&gt;
&lt;br /&gt;
Output in GLAM [Glam:output]&lt;br /&gt;
&lt;br /&gt;
= Other information =&lt;br /&gt;
&lt;br /&gt;
Read wikitext instructions at [[Help:Editing]]&lt;/div&gt;</summary>
		<author><name>Tony-payne</name></author>
	</entry>
	<entry>
		<id>https://source.geography.bristol.ac.uk/mediawiki/index.php?title=Glam&amp;diff=3488</id>
		<title>Glam</title>
		<link rel="alternate" type="text/html" href="https://source.geography.bristol.ac.uk/mediawiki/index.php?title=Glam&amp;diff=3488"/>
		<updated>2007-07-27T11:19:45Z</updated>

		<summary type="html">&lt;p&gt;Tony-payne: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:glam]]&lt;br /&gt;
&lt;br /&gt;
= Welcome to the GLAM wiki =&lt;br /&gt;
&lt;br /&gt;
= Information on running the code =&lt;br /&gt;
&lt;br /&gt;
Output in GLAM [http://source.ggy.bris.ac.uk/mediawiki/index.php?title=Category:Glam&amp;amp;action=edit]&lt;br /&gt;
&lt;br /&gt;
Read wikitext instructions at [[Help:Editing]]&lt;/div&gt;</summary>
		<author><name>Tony-payne</name></author>
	</entry>
	<entry>
		<id>https://source.geography.bristol.ac.uk/mediawiki/index.php?title=Glam_output&amp;diff=3487</id>
		<title>Glam output</title>
		<link rel="alternate" type="text/html" href="https://source.geography.bristol.ac.uk/mediawiki/index.php?title=Glam_output&amp;diff=3487"/>
		<updated>2007-07-27T11:16:33Z</updated>

		<summary type="html">&lt;p&gt;Tony-payne: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:glam]]&lt;br /&gt;
&lt;br /&gt;
= Output from GLAM =&lt;br /&gt;
&lt;br /&gt;
== Selecting output from GLAM ==&lt;br /&gt;
&lt;br /&gt;
GLAM outputs 2d and 3d variables in files &amp;lt;tt&amp;gt;glam.2df&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;glam.3df&amp;lt;/tt&amp;gt;, respectively.  These files are binary and can be read with MATLAB scripts (see below).  The interval between output is selected using the variable &amp;lt;tt&amp;gt;nout&amp;lt;/tt&amp;gt; within &amp;lt;tt&amp;gt;glam.nml&amp;lt;/tt&amp;gt;.  The three elements of this array contain intervals for point, 2d and 3d output (the first is no longer used).  The unit is years.  Note that GLAM will also output at the first (&amp;lt;tt&amp;gt;tstr&amp;lt;/tt&amp;gt;) and final (&amp;lt;tt&amp;gt;tstr+trun&amp;lt;/tt&amp;gt;) time step irrespective of these settings; the actual time integration loop runs from &amp;lt;tt&amp;gt;tstr+tinc&amp;lt;/tt&amp;gt; until &amp;lt;tt&amp;gt;trun&amp;lt;/tt&amp;gt; is exceeded.  The variable &amp;lt;tt&amp;gt;nstrv&amp;lt;/tt&amp;gt;  can be used to control when output starts in a time-dependent simulation; output will only be written after &amp;lt;tt&amp;gt;nstr&amp;lt;/tt&amp;gt; (in years).  This is useful if we are only interested in the equilibrium.&lt;br /&gt;
&lt;br /&gt;
The variables that are output can be selected by editing &amp;lt;tt&amp;gt;glam.out&amp;lt;/tt&amp;gt;.  This file contains two arrays (&amp;lt;tt&amp;gt;which2d&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;which3d&amp;lt;/tt&amp;gt;).   Output for a particular variable is selected if the appropriate entry in the array is 1 (otherwise set to zero).  The variables currently available for output are shown in Tables 1 and 2.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot;&lt;br /&gt;
|+ '''Table 1.  3d variables available from GLAM.'''&lt;br /&gt;
| || Variable || Grid || Units || MATLAB name&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Horizontal velocity in x || Staggered || m yr&amp;lt;sup&amp;gt;-1 &amp;lt;/sup&amp;gt;|| u&lt;br /&gt;
|-&lt;br /&gt;
| 2||Horizontal velocity in y||Staggered||m yr&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;||v&lt;br /&gt;
|-&lt;br /&gt;
| 3||Vertical velocity||Normal||m yr&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;||w| &lt;br /&gt;
|-&lt;br /&gt;
| 4||Vertical velocity of grid||Normal||m yr&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;||wg&lt;br /&gt;
|-&lt;br /&gt;
| 5||Glen’s A||Normal||Pa&amp;lt;sup&amp;gt;-3&amp;lt;/sup&amp;gt; yr&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;||a&lt;br /&gt;
|-&lt;br /&gt;
| 6||Temperature||Normal||deg. C||t&lt;br /&gt;
|-&lt;br /&gt;
| 7||Effective viscosity||Normal||Pa s||evs&lt;br /&gt;
|-&lt;br /&gt;
| 8||Effective stress||Normal||Pa||tau&lt;br /&gt;
|-&lt;br /&gt;
| 9||Vertical shear stress in x||Normal||Pa||txz&lt;br /&gt;
|-&lt;br /&gt;
| 10||Vertical shear stress in y||Normal||Pa||tyz&lt;br /&gt;
|-&lt;br /&gt;
| 11||Horizontal shear||Normal||Pa||txy&lt;br /&gt;
|-&lt;br /&gt;
| 12||Longitudinal stress deviator in x||Normal||Pa||txx&lt;br /&gt;
|-&lt;br /&gt;
| 13||Longitudinal stress deviator in y||Normal||Pa||tyy&lt;br /&gt;
|-&lt;br /&gt;
| 14||Gravitational driving stress in x||Normal||Pa||gdx&lt;br /&gt;
|-&lt;br /&gt;
| 15||Gravitational driving stress in y||Normal||Pa||gdy&lt;br /&gt;
|-&lt;br /&gt;
| ||Horizontal distances||Both||m||vxn yn xs ys&lt;br /&gt;
|-&lt;br /&gt;
| ||Vertical distances||Both||m||zn zs&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''Table 2. needs to be done'''&lt;br /&gt;
&lt;br /&gt;
== Viewing output from GLAM in MATLAB ==&lt;br /&gt;
&lt;br /&gt;
The GLAM output files can be loaded using MATLAB scripts &amp;lt;tt&amp;gt;glam2d.m&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;glam3d.m&amp;lt;/tt&amp;gt;.  Both are called using &amp;lt;tt&amp;gt;[a] = glam3d(N,PATH);&amp;lt;/tt&amp;gt; (where &amp;lt;tt&amp;gt;N&amp;lt;/tt&amp;gt; is the time step of interest and &amp;lt;tt&amp;gt;PATH&amp;lt;/tt&amp;gt; is the relative location of the output file, e.g. ‘.’ for same directory).  These scripts create a MATLAB structure that can be referenced as follows.  For 3d output, use &amp;lt;tt&amp;gt;a.NAME(I,J,K)&amp;lt;/tt&amp;gt; where &amp;lt;tt&amp;gt;NAME&amp;lt;/tt&amp;gt; is the variable’s MATLAB name (see Tables 1 and 2), &amp;lt;tt&amp;gt;I&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;J&amp;lt;/tt&amp;gt; are horizontal indices and &amp;lt;tt&amp;gt;K&amp;lt;/tt&amp;gt; the vertical index.  Note that it is often necessary to compress the 3d array to a 2d array for plotting purposes using &amp;lt;tt&amp;gt;squeeze()&amp;lt;/tt&amp;gt;.  The command &amp;lt;tt&amp;gt;imagesc(squeeze(a.txz(:,:,end)))&amp;lt;/tt&amp;gt; will produce an image of basal traction.&lt;/div&gt;</summary>
		<author><name>Tony-payne</name></author>
	</entry>
	<entry>
		<id>https://source.geography.bristol.ac.uk/mediawiki/index.php?title=Glam_output&amp;diff=3486</id>
		<title>Glam output</title>
		<link rel="alternate" type="text/html" href="https://source.geography.bristol.ac.uk/mediawiki/index.php?title=Glam_output&amp;diff=3486"/>
		<updated>2007-07-27T11:15:12Z</updated>

		<summary type="html">&lt;p&gt;Tony-payne: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Output from GLAM =&lt;br /&gt;
&lt;br /&gt;
== Selecting output from GLAM ==&lt;br /&gt;
&lt;br /&gt;
GLAM outputs 2d and 3d variables in files &amp;lt;tt&amp;gt;glam.2df&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;glam.3df&amp;lt;/tt&amp;gt;, respectively.  These files are binary and can be read with MATLAB scripts (see below).  The interval between output is selected using the variable &amp;lt;tt&amp;gt;nout&amp;lt;/tt&amp;gt; within &amp;lt;tt&amp;gt;glam.nml&amp;lt;/tt&amp;gt;.  The three elements of this array contain intervals for point, 2d and 3d output (the first is no longer used).  The unit is years.  Note that GLAM will also output at the first (&amp;lt;tt&amp;gt;tstr&amp;lt;/tt&amp;gt;) and final (&amp;lt;tt&amp;gt;tstr+trun&amp;lt;/tt&amp;gt;) time step irrespective of these settings; the actual time integration loop runs from &amp;lt;tt&amp;gt;tstr+tinc&amp;lt;/tt&amp;gt; until &amp;lt;tt&amp;gt;trun&amp;lt;/tt&amp;gt; is exceeded.  The variable &amp;lt;tt&amp;gt;nstrv&amp;lt;/tt&amp;gt;  can be used to control when output starts in a time-dependent simulation; output will only be written after &amp;lt;tt&amp;gt;nstr&amp;lt;/tt&amp;gt; (in years).  This is useful if we are only interested in the equilibrium.&lt;br /&gt;
&lt;br /&gt;
The variables that are output can be selected by editing &amp;lt;tt&amp;gt;glam.out&amp;lt;/tt&amp;gt;.  This file contains two arrays (&amp;lt;tt&amp;gt;which2d&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;which3d&amp;lt;/tt&amp;gt;).   Output for a particular variable is selected if the appropriate entry in the array is 1 (otherwise set to zero).  The variables currently available for output are shown in Tables 1 and 2.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot;&lt;br /&gt;
|+ '''Table 1.  3d variables available from GLAM.'''&lt;br /&gt;
| || Variable || Grid || Units || MATLAB name&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Horizontal velocity in x || Staggered || m yr&amp;lt;sup&amp;gt;-1 &amp;lt;/sup&amp;gt;|| u&lt;br /&gt;
|-&lt;br /&gt;
| 2||Horizontal velocity in y||Staggered||m yr&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;||v&lt;br /&gt;
|-&lt;br /&gt;
| 3||Vertical velocity||Normal||m yr&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;||w| &lt;br /&gt;
|-&lt;br /&gt;
| 4||Vertical velocity of grid||Normal||m yr&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;||wg&lt;br /&gt;
|-&lt;br /&gt;
| 5||Glen’s A||Normal||Pa&amp;lt;sup&amp;gt;-3&amp;lt;/sup&amp;gt; yr&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;||a&lt;br /&gt;
|-&lt;br /&gt;
| 6||Temperature||Normal||deg. C||t&lt;br /&gt;
|-&lt;br /&gt;
| 7||Effective viscosity||Normal||Pa s||evs&lt;br /&gt;
|-&lt;br /&gt;
| 8||Effective stress||Normal||Pa||tau&lt;br /&gt;
|-&lt;br /&gt;
| 9||Vertical shear stress in x||Normal||Pa||txz&lt;br /&gt;
|-&lt;br /&gt;
| 10||Vertical shear stress in y||Normal||Pa||tyz&lt;br /&gt;
|-&lt;br /&gt;
| 11||Horizontal shear||Normal||Pa||txy&lt;br /&gt;
|-&lt;br /&gt;
| 12||Longitudinal stress deviator in x||Normal||Pa||txx&lt;br /&gt;
|-&lt;br /&gt;
| 13||Longitudinal stress deviator in y||Normal||Pa||tyy&lt;br /&gt;
|-&lt;br /&gt;
| 14||Gravitational driving stress in x||Normal||Pa||gdx&lt;br /&gt;
|-&lt;br /&gt;
| 15||Gravitational driving stress in y||Normal||Pa||gdy&lt;br /&gt;
|-&lt;br /&gt;
| ||Horizontal distances||Both||m||vxn yn xs ys&lt;br /&gt;
|-&lt;br /&gt;
| ||Vertical distances||Both||m||zn zs&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''Table 2. needs to be done'''&lt;br /&gt;
&lt;br /&gt;
== Viewing output from GLAM in MATLAB ==&lt;br /&gt;
&lt;br /&gt;
The GLAM output files can be loaded using MATLAB scripts &amp;lt;tt&amp;gt;glam2d.m&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;glam3d.m&amp;lt;/tt&amp;gt;.  Both are called using &amp;lt;tt&amp;gt;[a] = glam3d(N,PATH);&amp;lt;/tt&amp;gt; (where &amp;lt;tt&amp;gt;N&amp;lt;/tt&amp;gt; is the time step of interest and &amp;lt;tt&amp;gt;PATH&amp;lt;/tt&amp;gt; is the relative location of the output file, e.g. ‘.’ for same directory).  These scripts create a MATLAB structure that can be referenced as follows.  For 3d output, use &amp;lt;tt&amp;gt;a.NAME(I,J,K)&amp;lt;/tt&amp;gt; where &amp;lt;tt&amp;gt;NAME&amp;lt;/tt&amp;gt; is the variable’s MATLAB name (see Tables 1 and 2), &amp;lt;tt&amp;gt;I&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;J&amp;lt;/tt&amp;gt; are horizontal indices and &amp;lt;tt&amp;gt;K&amp;lt;/tt&amp;gt; the vertical index.  Note that it is often necessary to compress the 3d array to a 2d array for plotting purposes using &amp;lt;tt&amp;gt;squeeze()&amp;lt;/tt&amp;gt;.  The command &amp;lt;tt&amp;gt;imagesc(squeeze(a.txz(:,:,end)))&amp;lt;/tt&amp;gt; will produce an image of basal traction.&lt;/div&gt;</summary>
		<author><name>Tony-payne</name></author>
	</entry>
	<entry>
		<id>https://source.geography.bristol.ac.uk/mediawiki/index.php?title=Glam_output&amp;diff=3485</id>
		<title>Glam output</title>
		<link rel="alternate" type="text/html" href="https://source.geography.bristol.ac.uk/mediawiki/index.php?title=Glam_output&amp;diff=3485"/>
		<updated>2007-07-27T11:02:29Z</updated>

		<summary type="html">&lt;p&gt;Tony-payne: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Output from GLAM =&lt;br /&gt;
&lt;br /&gt;
== Selecting output from GLAM ==&lt;br /&gt;
&lt;br /&gt;
GLAM outputs 2d and 3d variables in files glam.2df and glam.3df, respectively.  These files are binary and can be read with MATLAB scripts (see below).  The interval between output is selected using the variable nout within glam.nml.  The three elements of this array contain intervals for point, 2d and 3d output (the first is no longer used).  The unit is years.  Note that GLAM will also at the first (tstr) and final (tstr+trun) time step irrespective of these settings; the actual time integration loop runs from tstr+tinc until trun is exceeded.  The variable nstr can be used to control when output starts in a time-dependent simulation; output will only be written after nstr (in years).  This is useful of we are only interested in the equilibrium.&lt;br /&gt;
&lt;br /&gt;
The variables that are output can be selected by editing glam.out.  This file contains set two arrays (which2d and which3d).   Output for a particular variable is selected if the appropriate entry in the array is 1 (otherwise set to zero).  The variables currently available for output are shown in Tables 1 and 2.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot;&lt;br /&gt;
|+ Table 1.  3d variables available from GLAM.&lt;br /&gt;
| || Variable || Grid || Units || MATLAB name&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Horizontal velocity in x || Staggered || m yr-1 || u&lt;br /&gt;
|-&lt;br /&gt;
| 2||Horizontal velocity in y||Staggered||m yr-1||v&lt;br /&gt;
|-&lt;br /&gt;
| 3||Vertical velocity	Normal||m yr-1||w| &lt;br /&gt;
|-&lt;br /&gt;
| 4||Vertical velocity of grid||Normal||m yr-1||wg&lt;br /&gt;
|-&lt;br /&gt;
| 5||Glen’s A||NormalvPa-3 yr-1||a&lt;br /&gt;
|-&lt;br /&gt;
| 6||Temperature||Normal||deg. C||t&lt;br /&gt;
|-&lt;br /&gt;
| 7||Effective viscosity||Normal||Pa s||evs&lt;br /&gt;
|-&lt;br /&gt;
| 8||Effective stress||Normal||Pa||tau&lt;br /&gt;
|-&lt;br /&gt;
| 9||Vertical shear stress in x||Normal||Pa||txz&lt;br /&gt;
|-&lt;br /&gt;
| 10||Vertical shear stress in y||Normal||Pa||tyz&lt;br /&gt;
|-&lt;br /&gt;
| 11||Horizontal shear||Normal||Pa||txy&lt;br /&gt;
|-&lt;br /&gt;
| 12||Longitudinal stress deviator in x||Normal||Pa||txx&lt;br /&gt;
|-&lt;br /&gt;
| 13||Longitudinal stress deviator in y||Normal||Pa||tyy&lt;br /&gt;
|-&lt;br /&gt;
| 14||Gravitational driving stress in x||Normal||Pa||gdx&lt;br /&gt;
|-&lt;br /&gt;
| 15||Gravitational driving stress in y||Normal||Pa||gdy&lt;br /&gt;
|-&lt;br /&gt;
| ||Horizontal distances||Both||m||vxn yn xs ys&lt;br /&gt;
|-&lt;br /&gt;
| ||Vertical distances||Both||m||zn zs&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Viewing output from GLAM in MATALB ==&lt;br /&gt;
&lt;br /&gt;
The GLAM output files can be loaded using MATLAB scripts glam2d.m and glam3d.m.  Both are called using [a] = glam3d(N,PATH); (where N is the time step of interest and PATH is the relative location of the output file, e.g. ‘.’ for same directory).  These scripts create a MATLAB structure that can be referenced as follows.  For 3d output, use a.NAME(I,J,K) where NAME is the variable’s MATLAB name (see Tables 1 and 2), I and J are horizontal indices and K the vertical index.  Note that it is often necessary to compress the 3d array to a 2d array for potting purposes using squeeze().  The command imagesc(squeeze(a.txz(:,:,end))) will produce an image of basal traction.&lt;/div&gt;</summary>
		<author><name>Tony-payne</name></author>
	</entry>
	<entry>
		<id>https://source.geography.bristol.ac.uk/mediawiki/index.php?title=Glam_output&amp;diff=3484</id>
		<title>Glam output</title>
		<link rel="alternate" type="text/html" href="https://source.geography.bristol.ac.uk/mediawiki/index.php?title=Glam_output&amp;diff=3484"/>
		<updated>2007-07-27T10:45:26Z</updated>

		<summary type="html">&lt;p&gt;Tony-payne: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Output from GLAM =&lt;br /&gt;
&lt;br /&gt;
== Selecting output from GLAM ==&lt;br /&gt;
&lt;br /&gt;
GLAM outputs 2d and 3d variables in files glam.2df and glam.3df, respectively.  These files are binary and can be read with MATLAB scripts (see below).  The interval between output is selected using the variable nout within glam.nml.  The three elements of this array contain intervals for point, 2d and 3d output (the first is no longer used).  The unit is years.  Note that GLAM will also at the first (tstr) and final (tstr+trun) time step irrespective of these settings; the actual time integration loop runs from tstr+tinc until trun is exceeded.  The variable nstr can be used to control when output starts in a time-dependent simulation; output will only be written after nstr (in years).  This is useful of we are only interested in the equilibrium.&lt;br /&gt;
&lt;br /&gt;
The variables that are output can be selected by editing glam.out.  This file contains set two arrays (which2d and which3d).   Output for a particular variable is selected if the appropriate entry in the array is 1 (otherwise set to zero).  The variables currently available for output are shown in Tables 1 and 2.&lt;br /&gt;
&lt;br /&gt;
Table 1.  3d variables available from GLAM.&lt;br /&gt;
&lt;br /&gt;
	Variable	Grid	Units	MATLAB name&lt;br /&gt;
1	Horizontal velocity in x	Staggered	m yr-1	u&lt;br /&gt;
2	Horizontal velocity in y	Staggered	m yr-1	v&lt;br /&gt;
3	Vertical velocity	Normal	m yr-1	w&lt;br /&gt;
4	Vertical velocity of grid	Normal	m yr-1	wg&lt;br /&gt;
5	Glen’s A	Normal	Pa-3 yr-1	a&lt;br /&gt;
6	Temperature	Normal	deg. C	t&lt;br /&gt;
7	Effective viscosity	Normal	Pa s	evs&lt;br /&gt;
8	Effective stress	Normal	Pa	tau&lt;br /&gt;
9	Vertical shear stress in x	Normal	Pa	txz&lt;br /&gt;
10	Vertical shear stress in y	Normal	Pa	tyz&lt;br /&gt;
11	Horizontal shear	Normal	Pa	txy&lt;br /&gt;
12	Longitudinal stress deviator in x	Normal	Pa	txx&lt;br /&gt;
13	Longitudinal stress deviator in y	Normal	Pa	tyy&lt;br /&gt;
14	Gravitational driving stress in x	Normal	Pa	gdx&lt;br /&gt;
15	Gravitational driving stress in y	Normal	Pa	gdy&lt;br /&gt;
	Horizontal distances	Both	m	xn yn xs ys&lt;br /&gt;
	Vertical distances	Both	m	zn zs&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Viewing output from GLAM in MATALB ==&lt;br /&gt;
&lt;br /&gt;
The GLAM output files can be loaded using MATLAB scripts glam2d.m and glam3d.m.  Both are called using [a] = glam3d(N,PATH); (where N is the time step of interest and PATH is the relative location of the output file, e.g. ‘.’ for same directory).  These scripts create a MATLAB structure that can be referenced as follows.  For 3d output, use a.NAME(I,J,K) where NAME is the variable’s MATLAB name (see Tables 1 and 2), I and J are horizontal indices and K the vertical index.  Note that it is often necessary to compress the 3d array to a 2d array for potting purposes using squeeze().  The command imagesc(squeeze(a.txz(:,:,end))) will produce an image of basal traction.&lt;/div&gt;</summary>
		<author><name>Tony-payne</name></author>
	</entry>
</feed>