<?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=SmoothBatimNesting</id>
		<title>SmoothBatimNesting - 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=SmoothBatimNesting"/>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=SmoothBatimNesting&amp;action=history"/>
		<updated>2026-04-05T00:45:21Z</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=SmoothBatimNesting&amp;diff=858&amp;oldid=prev</id>
		<title>Guillaume: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=SmoothBatimNesting&amp;diff=858&amp;oldid=prev"/>
				<updated>2008-12-03T10:39:05Z</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:39, 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=SmoothBatimNesting&amp;diff=857&amp;oldid=prev</id>
		<title>192.168.20.177 at 12:37, 4 November 2008</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=SmoothBatimNesting&amp;diff=857&amp;oldid=prev"/>
				<updated>2008-11-04T12:37:38Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Image:SmoothBathimNesting.gif|300px|thumb|Animation consisting of three frames showing respectively i) the father bathymetry, ii) the son bathym, iii) and the interpolated bathym.]]&lt;br /&gt;
This program creates a new sub-model bathimetry to allow a smooth transition in the  boundary between the coarser model and the high resolution model. See also [[SmoothBatimCoefs]].&lt;br /&gt;
&lt;br /&gt;
== Quick start ==&lt;br /&gt;
#Create the father and son bathymetries (you may use [[Mohid GIS]]).&lt;br /&gt;
#Create the SmoothCoeficients [[Grid Data | griddata file]] (you may use [[SmoothBatimCoefs]]).&lt;br /&gt;
#Create and edit the options ''SmoothBatimNesting.dat'' file and save it in the same path as the executable.&lt;br /&gt;
#Run the executable.&lt;br /&gt;
&lt;br /&gt;
== Options file ==&lt;br /&gt;
Here's what the options file ''SmoothBatimNesting.dat'' looks like:&lt;br /&gt;
 FATHER_BATIM                : ..\..\WestIberiaTide\GridData.dat&lt;br /&gt;
 SON_BATIM                   : ..\GridData_2.dat&lt;br /&gt;
 SMOOTH_COEF                 : SmoothCoef.dat&lt;br /&gt;
 NEW_SON_BATIM               : SmoothData.dat&lt;br /&gt;
&lt;br /&gt;
== Smoothing algorithm ==&lt;br /&gt;
Let it be &amp;lt;math&amp;gt;X \in \mathcal{F}\equiv\left\{F,\,S,\,I\right\}&amp;lt;/math&amp;gt;, as an element of the father, the son and the interpolated bathymetries discrete fields. Let it be &amp;lt;math&amp;gt;I_X : \mathbb{N}^2 \longrightarrow \mathbb{R}^2 &amp;lt;/math&amp;gt; as the respective index mapping function. Let it be &amp;lt;math&amp;gt; X^{\prime}: \mathbb{R}^2 \longrightarrow \mathbb{R}&amp;lt;/math&amp;gt;, a continuous map, so that &amp;lt;math&amp;gt;X \equiv X^\prime\circ I_X,\;\forall X \in \mathcal{F}&amp;lt;/math&amp;gt;. Let &amp;lt;math&amp;gt;r_X \subset \mathbb{R}^2&amp;lt;/math&amp;gt; define the work domain of &amp;lt;math&amp;gt;X^\prime \in \mathcal{F}^\prime&amp;lt;/math&amp;gt;. In particular, &amp;lt;math&amp;gt;X^\prime&amp;lt;/math&amp;gt; verifies &amp;lt;math&amp;gt;X^\prime(\overline{r_X})\equiv 0&amp;lt;/math&amp;gt;. The son grid is the same as the interpolated grid, meaning &amp;lt;math&amp;gt;I_S = I_I&amp;lt;/math&amp;gt;. However, the father field is completely independent from the other fields, meaning that &amp;lt;math&amp;gt;r_{FS}\equiv\left(r_F \cap r_S\right) \subseteq \mathbb{R}^2&amp;lt;/math&amp;gt;. The smoothing algorithm is a simple linear interpolation of the father and son fields:&lt;br /&gt;
:&amp;lt;math&amp;gt;I^\prime = \left(1 - C^\prime\right) F^\prime + C^\prime\,S^\prime&amp;lt;/math&amp;gt;&lt;br /&gt;
where the smoothing coefficient is given by &amp;lt;math&amp;gt;C^\prime: \mathbb{R}^2 \longrightarrow \left[0\;1\right]&amp;lt;/math&amp;gt;. Thus, the smoothing coefficient gridded counterpart &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt; is defined; and its index mapping function &amp;lt;math&amp;gt;I_C&amp;lt;/math&amp;gt; is equal to the son's; meaning &amp;lt;math&amp;gt;I_C = I_S&amp;lt;/math&amp;gt;. Let us define the grid &amp;lt;math&amp;gt;G \subseteq \mathbb{N}^2&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;I_S(G)\subseteq r_S&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;I_S(G)\rightarrow r_S&amp;lt;/math&amp;gt;. Thus the smoothing coefficient &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt; needs can be defined in &amp;lt;math&amp;gt; G &amp;lt;/math&amp;gt;. Concretely speaking, &amp;lt;math&amp;gt;G \mapsto (I_S(G),C(I_S(G)))&amp;lt;/math&amp;gt; is the smoothing coefficient's [[Grid Data]] file described above, thus it leaves to the modeller the choice of the smoothing coefficient field.&lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
Let us define a collection of four-vertices polygons taken from the father grid:&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{matrix} V : &amp;amp; \mathbb{N}^2 \longrightarrow \mathbb{R}^8 \\ &amp;amp; \left(i,\,j\right) \mapsto (I_{F\;i\,j},\,I_{F\;i+1\,j},\,I_{F\;i\,j+1},\,I_{F\;i+1\,j+1})\end{matrix} &amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;D\left(V_{i\,j}\right)\subset \mathbb{R}^2&amp;lt;/math&amp;gt; is the subdomain defined by the vertices of &amp;lt;math&amp;gt;V_{i\,j}&amp;lt;/math&amp;gt;.&lt;br /&gt;
Let us define an auxiliary grid of the son grid given by:&lt;br /&gt;
:&amp;lt;math&amp;gt;\forall\; _{ij} \in \mathbb{N}^2,\;\tilde{I}_{S\;i\,j}=\frac{1}{4}\left(I_{S\;i\,j}+I_{S\;i+1\,j}+I_{S\;i\,j+1} +I_{S\;i+1\,j+1}\right)&amp;lt;/math&amp;gt;.&lt;br /&gt;
Let us define a new mapping into a subset of &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt;'s image:&lt;br /&gt;
:\&amp;lt;math&amp;gt;\forall\;_{i\,j} \in \mathbb{N}^2\quad \exists !\;_{u\,v} \in \mathbb{N}^2\; :\quad \tilde{I}_{S\;i\,j} \in D(V_{u\,v}) \wedge \tilde{F}_{i\,j}=F_{u\,v} &amp;lt;/math&amp;gt;.&lt;br /&gt;
Here's the implemented smoothing algorithm:&lt;br /&gt;
:&amp;lt;math&amp;gt;I_{i\,j} = \left(1 - C_{i\,j}\right) \tilde{F}_{i\,j} + C_{i\,j}\,S_{i\,j}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Test image ==&lt;br /&gt;
[[Image:SmoothBathimNesting.gif|540px|thumb|center|Animation consisting of three frames showing respectively i) the father bathymetry, ii) the son bathym, iii) and the interpolated bathym.]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Tools]]&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>