<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.wiki.mohid.com/index.php?action=history&amp;feed=atom&amp;title=Grid_Data</id>
		<title>Grid Data - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://www.wiki.mohid.com/index.php?action=history&amp;feed=atom&amp;title=Grid_Data"/>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Grid_Data&amp;action=history"/>
		<updated>2026-04-05T00:46:19Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.28.0</generator>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Grid_Data&amp;diff=299&amp;oldid=prev</id>
		<title>Guillaume: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Grid_Data&amp;diff=299&amp;oldid=prev"/>
				<updated>2008-12-03T10:27:07Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 10:27, 3 December 2008&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan='2' style='text-align: center;' lang='en'&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Guillaume</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Grid_Data&amp;diff=298&amp;oldid=prev</id>
		<title>192.168.20.177: /* Grid Data 3D */</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Grid_Data&amp;diff=298&amp;oldid=prev"/>
				<updated>2008-01-31T16:55:38Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Grid Data 3D&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Overview ==&lt;br /&gt;
Grid Data items relate to 2D or 3D information referenced to a grid. Grid data is stored in an ASCII text file and has multiple and flexible formatting options. In order to view a Grid Data file in [[Mohid GIS]] the file must contain [[grid]] information. In Mohid, the grid information is not used  except for [[bathymetry file]] to [[Mohid Water]], or the input [[topography]] file to [[Mohid Land]] where the simulation domain is defined. Grid Data items can be used to initialize 2D or 3D fields (e.g. temperature, salinity) via [[Module_FillMatrix#ASCII_Grid_Data_file|Module FillMatrix]].&lt;br /&gt;
&lt;br /&gt;
== Header Section ==&lt;br /&gt;
The header section contains some specifications on the type of organization of the information.&lt;br /&gt;
&lt;br /&gt;
 [[FILL_VALUE]]         : -9.9e15    &lt;br /&gt;
 [[TYPE_ZUV]]           : z         &lt;br /&gt;
&lt;br /&gt;
[[FILL_VALUE]] specifies a value for points with no data.&lt;br /&gt;
&lt;br /&gt;
[[TYPE_ZUV]] specifies if the data is located in the center of the grid cell or referenced to the faces of the grid cell. It can be '''z''' for centered data, '''u''' for east-west faces or '''v''' for north-south faces.&lt;br /&gt;
&lt;br /&gt;
== Data Section ==&lt;br /&gt;
&lt;br /&gt;
=== Grid Data 2D ===&lt;br /&gt;
The data section contains the values of the Grid Data item. The data is stored inside a block defined by the following keywords: '''&amp;lt;BeginGridData2D&amp;gt;''' and '''&amp;lt;EndGridData2D&amp;gt;'''. Note that these keywords are case sensitive.&lt;br /&gt;
&lt;br /&gt;
====Filling data for all grid cells====&lt;br /&gt;
You can specify the values by giving a list of all values of all the grid cells. Each value must be stored in a single line. The values are read from the lower left corner to the upper right corner of the grid that is values reading is done by row-column order. The first grid data values are read in the following order: (ILB, JLB), (ILB, JLB+1), … (ILB, JUB), (ILB+1, JLB), …, (IUB, JUB-1), (IUB, JUB). Note that the index “i” refers to the Y-axis and the “j” index to the X-Axis. In this case, if you have a (IUB x JUB) grid then the list must have (IUB x JUB) values.&lt;br /&gt;
&lt;br /&gt;
 '''&amp;lt;BeginGridData2D&amp;gt;'''&lt;br /&gt;
 12.5&lt;br /&gt;
 13.1&lt;br /&gt;
 10.2&lt;br /&gt;
 ...&lt;br /&gt;
 ...&lt;br /&gt;
 '''&amp;lt;EndGridData2D&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
====Filling data for some grid cells only====&lt;br /&gt;
If you don't want to define all the values in the grid but only in a subset of cells in the grid (for example, if you want to simulate a bump in a flat bathymetry. Everywhere is 1000 m depth except in the bump area, so you want to define only the bump area); then you can also use '''''&amp;quot;i j value(i,j,:)&amp;quot;'''''. Values not specified in the list will be given the [[DEFAULTVALUE]].&lt;br /&gt;
&lt;br /&gt;
 '''&amp;lt;BeginGridData2D&amp;gt;'''&lt;br /&gt;
 2   1   12.8&lt;br /&gt;
 2   2   13.4&lt;br /&gt;
 5   1   11.3&lt;br /&gt;
 ..  ..  ..&lt;br /&gt;
 '''&amp;lt;EndGridData2D&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
If the array is 3D and you wish to specify that in the vertical direction all the values are constant then use '''''i j value(i,j,:)'''''. In the following example, if you have 3 layers, then grid cells (1,1,1), (1,1,2) and (1,1,3) will all be given the value of 10.2. Values not specified in the list will be given the [[DEFAULTVALUE]].&lt;br /&gt;
&lt;br /&gt;
 '''&amp;lt;BeginGridData2D&amp;gt;'''&lt;br /&gt;
 2   1   12.8&lt;br /&gt;
 2   2   13.4&lt;br /&gt;
 5   1   11.3&lt;br /&gt;
 ..  ..  ..&lt;br /&gt;
 '''&amp;lt;EndGridData2D&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
=== Grid Data 3D ===&lt;br /&gt;
&lt;br /&gt;
The data section contains the values of the Grid Data item. The data is stored inside a block defined by the following keywords: &amp;lt;BeginGridData3D&amp;gt; and &amp;lt;EndGridData3D&amp;gt;. Note that these keywords are case sensitive.&lt;br /&gt;
&lt;br /&gt;
Between these keywords, for each grid cell, a value must be supplied (.e.g. for the [[bathymetry file]] write the bathymetry value). &lt;br /&gt;
&lt;br /&gt;
If the array is 3D and you which to specify that in the vertical direction the values are constant then use ''&amp;quot;i j value(i,j,:)&amp;quot;''. In the following example, if you have 3 layers, then grid cells (1,1,1), (1,1,2) and (1,1,3) will all be given the value of 10.2. Values not specified in the list will be given the [[DEFAULTVALUE]].&lt;br /&gt;
&lt;br /&gt;
 '''&amp;lt;BeginGridData3D&amp;gt;''' &lt;br /&gt;
     1   1   10.2&lt;br /&gt;
     1   2   12.3&lt;br /&gt;
     2   5   10.7&lt;br /&gt;
     ..  ..  ..&lt;br /&gt;
 '''&amp;lt;EndGridData3D&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
If the array is 3D and you wish to specify to each grid cell a specific value the use ''i j k value(i,j,k)''. Values not specified in the list will be given the [[DEFAULTVALUE]].&lt;br /&gt;
&lt;br /&gt;
 '''&amp;lt;BeginGridData3D&amp;gt;'''&lt;br /&gt;
     1   1   1   10.2&lt;br /&gt;
     1   1   2   10.1&lt;br /&gt;
     1   1   3   9.9&lt;br /&gt;
     1   2   1   12.3&lt;br /&gt;
     ..  ..  ..  ..&lt;br /&gt;
 '''&amp;lt;EndGridData3D&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
You can also specify the values by giving a list of all values of all the grid cells. In this case, if you have a (IUB x JUB x KUB) grid then the list must have (IUB x JUB x KUB) values.&lt;br /&gt;
&lt;br /&gt;
  '''&amp;lt;BeginGridData3D&amp;gt;'''&lt;br /&gt;
     10.2&lt;br /&gt;
     10.1&lt;br /&gt;
     9.9&lt;br /&gt;
     12.3&lt;br /&gt;
     12.1&lt;br /&gt;
     ...&lt;br /&gt;
  '''&amp;lt;EndGridData3D&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
[[Category:Input Data Formats]]&lt;/div&gt;</summary>
		<author><name>192.168.20.177</name></author>	</entry>

	</feed>
<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
  ga('create', 'UA-56589921-5', 'auto');
  ga('send', 'pageview');
</script>