<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.wiki.mohid.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=192.168.20.177&amp;*</id>
		<title>MohidWiki - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://www.wiki.mohid.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=192.168.20.177&amp;*"/>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Special:Contributions/192.168.20.177"/>
		<updated>2026-04-04T19:48:48Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.28.0</generator>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Ruby&amp;diff=823</id>
		<title>Ruby</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Ruby&amp;diff=823"/>
				<updated>2008-11-19T11:46:25Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.177: /* Irb */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Ruby is (said to be) a great language. People say that programming is fun again. Everything in Ruby is an object. Strings, floats, integers, regexps, arrays are all objects, and all have their methods and fields.&lt;br /&gt;
&lt;br /&gt;
==Starters==&lt;br /&gt;
# [http://www.ruby-lang.org/en/documentation/quickstart/ Ruby in 20 minute]&lt;br /&gt;
&lt;br /&gt;
Install ruby&lt;br /&gt;
 &amp;gt; sudo apt-get install ruby irb rdoc&lt;br /&gt;
&lt;br /&gt;
==Features==&lt;br /&gt;
Here we list the interesting features that make ruby so interesting, besides its interesting programming features. These are the extra tools that make working with [[ruby]] appealing and easy.&lt;br /&gt;
# interactive shell (irb),&lt;br /&gt;
# extension packages manager (gems),&lt;br /&gt;
# documentation generator from in-line comments (rdoc),&lt;br /&gt;
# unit-testing framework (utest),&lt;br /&gt;
# web-apps development framework (rails),&lt;br /&gt;
&lt;br /&gt;
[[Python]] also possesses all of these features built-in (ipython, install, pydoc, unit-tests and django).&lt;br /&gt;
&lt;br /&gt;
===Irb===&lt;br /&gt;
The most interesting thing in shell scripting ([[bash]], [[batch|dos]]) is that you can play right from the shell command line. This is what makes interpreted languages so interesting in the first place. Thus, like [[matlab]] or [[python]] (however, I'm not aware of one for [[perl]]), ruby has an interactive shell called [[#irb|irb]].&lt;br /&gt;
Interactive ruby allows to experiment and debug interactively in ruby. Similar (but not so powerful) to [[python|ipython]].&lt;br /&gt;
 &amp;gt; irb&lt;br /&gt;
 irb(main):001:0&amp;gt; puts &amp;quot;Hello world!&amp;quot;&lt;br /&gt;
 Hello world!&lt;br /&gt;
 =&amp;gt; nil&lt;br /&gt;
The most interesting method to call in irb is ''public_methods'' which lists all the object's available methods:&lt;br /&gt;
 irb(main):001:0&amp;gt; puts 11.public_methods.sort.join(&amp;quot; | &amp;quot;)&lt;br /&gt;
 % | &amp;amp; | * | ** | + | +@ | - | -@ | / | &amp;lt; | &amp;lt;&amp;lt; | &amp;lt;= | &amp;lt;=&amp;gt; &lt;br /&gt;
 | == | === | =~ | &amp;gt; | &amp;gt;= | &amp;gt;&amp;gt; | [] | ^ |  __id__ | __send__ &lt;br /&gt;
 | abs | between? | ceil | chr | class | clone | coerce &lt;br /&gt;
 | denominator | display |  div | divmod | downto | dup | eql? &lt;br /&gt;
 | equal? | extend | floor | freeze | frozen? | gcd | gcdlcm &lt;br /&gt;
 |  gem | hash | id | id2name | inspect | instance_eval | instance_of? &lt;br /&gt;
 | instance_variable_defined? |  instance_variable_get | instance_variable_set &lt;br /&gt;
 | instance_variables | integer? | is_a? | kind_of? |  lcm | method | methods &lt;br /&gt;
 | modulo | next | nil? | nonzero? | numerator | object_id | power! | prec &lt;br /&gt;
 |  prec_f | prec_i | pretty_inspect | pretty_print | pretty_print_cycle &lt;br /&gt;
 | pretty_print_inspect |  pretty_print_instance_variables | private_methods &lt;br /&gt;
 | protected_methods | public_methods | quo | rdiv | remainder | require &lt;br /&gt;
 | require_gem | respond_to? | round | rpower | send | singleton_method_added &lt;br /&gt;
 | singleton_methods | size | step | succ | taguri | taguri= | taint | tainted? &lt;br /&gt;
 | times | to_a | to_bn | to_f | to_i | to_int | to_r | to_s | to_sym | to_yaml &lt;br /&gt;
 | to_yaml_properties | to_yaml_style | truncate | type | untaint | upto | zero? | | | ~&lt;br /&gt;
 =&amp;gt; nil&lt;br /&gt;
&lt;br /&gt;
===[[Gems]]===&lt;br /&gt;
Requires [http://rubygems.org/ rubygems] to be installed. [[gems|Rubygems]] is the extension manager for ruby. Much like cpan is the extension manager for [[Perl]]. [[Gems]] is more than a packaging manager: it's a library versioning manager too!&lt;br /&gt;
[http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/132899 That is also it's achille's heel].&lt;br /&gt;
&lt;br /&gt;
===Rdoc===&lt;br /&gt;
Rdoc is the automatic html documentation generator for ruby scripts. Much like javadoc is for java. It requires [[#Starters|rdoc]] to be installed.&lt;br /&gt;
 &amp;gt; rdoc --main mywork/mywork.rb&lt;br /&gt;
&lt;br /&gt;
===Unit testing===&lt;br /&gt;
Unit tests are XP's method of choice to build safe long-lasting software. Still looking to see how these work...&lt;br /&gt;
&lt;br /&gt;
===Rails===&lt;br /&gt;
Hopefully we'll get there soon enough...&lt;br /&gt;
&lt;br /&gt;
===Ruby2exe===&lt;br /&gt;
[http://www.erikveen.dds.nl/rubyscript2exe/index.html#6.0.0 rubyscript2exe] allows to transform ruby scripts into full-bloated executable programs.&lt;br /&gt;
&lt;br /&gt;
 &amp;gt; gem install rubyscript2exe&lt;br /&gt;
&lt;br /&gt;
==Sample code==&lt;br /&gt;
&lt;br /&gt;
===loop===&lt;br /&gt;
&amp;lt;code lang=ruby &amp;gt;&lt;br /&gt;
object = Array.new([&amp;quot;one&amp;quot;, &amp;quot;two&amp;quot;, &amp;quot;three&amp;quot;, &amp;quot;four&amp;quot;])&lt;br /&gt;
object.each do |a|&lt;br /&gt;
  puts a + &amp;quot;\n&amp;quot;&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===array===&lt;br /&gt;
&amp;lt;code lang=ruby &amp;gt;&lt;br /&gt;
object = [&amp;quot;one&amp;quot;, &amp;quot;two&amp;quot;, &amp;quot;three&amp;quot;, &amp;quot;four&amp;quot;]&lt;br /&gt;
target = []&lt;br /&gt;
object.each { |a|&lt;br /&gt;
  target.push(a)&lt;br /&gt;
}&lt;br /&gt;
puts target&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===i/o===&lt;br /&gt;
&amp;lt;code lang=ruby &amp;gt;&lt;br /&gt;
if File.exist? &amp;quot;sample.txt&amp;quot;&lt;br /&gt;
  File.open(&amp;quot;sample.txt&amp;quot;, &amp;quot;r&amp;quot;) { |fs|&lt;br /&gt;
    while line = fs.gets&lt;br /&gt;
      puts &amp;quot;Line read was '#{line.chomp}'.\n&amp;quot;&lt;br /&gt;
    end&lt;br /&gt;
    fs.close&lt;br /&gt;
  }&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;code lang=ruby &amp;gt;&lt;br /&gt;
File.open(&amp;quot;sample.txt&amp;quot;, &amp;quot;w&amp;quot;) { |fw|&lt;br /&gt;
  fw.puts &amp;quot;Hi, this a new line.\n&amp;quot;&lt;br /&gt;
  fw.close&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===regexp===&lt;br /&gt;
&amp;lt;code lang=ruby &amp;gt;&lt;br /&gt;
pattern = Regexp.new(&amp;quot;[a-z]+&amp;quot;, &amp;quot;i&amp;quot;)&lt;br /&gt;
#or&lt;br /&gt;
pattern = /[a-z]+/i&lt;br /&gt;
if File.exist? &amp;quot;sample.txt&amp;quot;&lt;br /&gt;
  File.open(&amp;quot;sample.txt&amp;quot;, &amp;quot;r&amp;quot;) { |fs|&lt;br /&gt;
    while line = fs.gets&lt;br /&gt;
      if line.match(pattern)&lt;br /&gt;
        puts &amp;quot;Line read was '#{line.chomp}'.\n&amp;quot;&lt;br /&gt;
      end&lt;br /&gt;
    end&lt;br /&gt;
    fs.close&lt;br /&gt;
  }&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===method===&lt;br /&gt;
&amp;lt;code lang=ruby &amp;gt;&lt;br /&gt;
def whatisit?(arg1, arg2=&amp;quot;optional&amp;quot;)&lt;br /&gt;
  #Ducktyping: Does it walk like a duck? Does quacks like a duck?&lt;br /&gt;
  if arg1.responds_to? :capitalize&lt;br /&gt;
    puts &amp;quot;Then '#{arg1.capitalize}' must be a string.\n&amp;quot;&lt;br /&gt;
  else&lt;br /&gt;
    if arg1.responds_to? :modulo &amp;amp;&amp;amp; arg1.responds_to? :numerator&lt;br /&gt;
      puts &amp;quot;Then '#{arg1.to_s}' must be an integer.\n&amp;quot;&lt;br /&gt;
    else&lt;br /&gt;
      if arg1.responds_to? :modulo &amp;amp;&amp;amp; arg1.responds_to? :truncate&lt;br /&gt;
        puts &amp;quot;Then '#{arg1.to_s}' must be a float.\n&amp;quot;&lt;br /&gt;
      end&lt;br /&gt;
    end&lt;br /&gt;
  end&lt;br /&gt;
  puts &amp;quot;Input '#{arg2}' was completely optional.\n&amp;quot;&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===class===&lt;br /&gt;
&amp;lt;code lang=ruby &amp;gt;&lt;br /&gt;
#File checktype.rb&lt;br /&gt;
class Checktype&lt;br /&gt;
&lt;br /&gt;
  #Constructor&lt;br /&gt;
  def initialize(arg)&lt;br /&gt;
    #class Checktype field&lt;br /&gt;
    @variable = arg&lt;br /&gt;
  end&lt;br /&gt;
&lt;br /&gt;
  #class Checktype method&lt;br /&gt;
  def isWhat?(arg=@variable)&lt;br /&gt;
    #Ducktyping: Does it walk like a duck? Does it quack like a duck?&lt;br /&gt;
    if arg.responds_to? :capitalize&lt;br /&gt;
      puts &amp;quot;Then '#{arg.capitalize}' must be a string.\n&amp;quot;&lt;br /&gt;
    else&lt;br /&gt;
      if arg.responds_to? :modulo &amp;amp;&amp;amp; arg.responds_to? :numerator&lt;br /&gt;
        puts &amp;quot;Then '#{arg.to_s}' must be an integer.\n&amp;quot;&lt;br /&gt;
      else&lt;br /&gt;
        if arg.responds_to? :modulo &amp;amp;&amp;amp; arg.responds_to? :truncate&lt;br /&gt;
          puts &amp;quot;Then '#{arg.to_s}' must be a float.\n&amp;quot;&lt;br /&gt;
        end&lt;br /&gt;
      end&lt;br /&gt;
    end&lt;br /&gt;
  end&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=ruby &amp;gt;&lt;br /&gt;
require 'checktype'&lt;br /&gt;
somevar = Checktype(23)&lt;br /&gt;
somevar.isWhat?&lt;br /&gt;
#=&amp;gt; '23' must be an integer&lt;br /&gt;
Checktype.isWhat? &amp;quot;Hi&amp;quot;&lt;br /&gt;
#=&amp;gt; 'Hi' must be a string&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Complex examples===&lt;br /&gt;
*[[Ruby examples|RootTransform classes]]&lt;br /&gt;
&lt;br /&gt;
==External References==&lt;br /&gt;
*[http://www.ruby-lang.org/en/ ruby-lang],&lt;br /&gt;
*[http://www.ruby-doc.org/docs/ProgrammingRuby/ Programming Ruby]&lt;br /&gt;
&lt;br /&gt;
[[Category:programming]]&lt;br /&gt;
[[Category:linux]]&lt;br /&gt;
[[Category:ruby]]&lt;/div&gt;</summary>
		<author><name>192.168.20.177</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Hydrolight&amp;diff=336</id>
		<title>Hydrolight</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Hydrolight&amp;diff=336"/>
				<updated>2008-11-19T10:43:32Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.177: /* ABACBB */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
Hydrolight is a radiative transfer numerical model that solves the time - independent radiative transfer equation. In order to compute the radiance, Hydrolight requires the inherent optical properties of the water body (IOP's), a chlorophyll profile and the water depth. Hydrolight can be applied in different cases:&lt;br /&gt;
&lt;br /&gt;
* It can be run with modeled input values to generate in – water light fields, which are then used as input in primary productivity models or mixed – layer dynamics.&lt;br /&gt;
&lt;br /&gt;
* It can be run with the IOP’s of different water types to simulate in – water light fields for the purpose of selecting and designing instruments for use in various water types.&lt;br /&gt;
&lt;br /&gt;
* It can be run with assumed IOP’s as input in order to obtain estimates of the signals that would be received by various types or configurations of remote sensors, when flown over different water bodies and under different environmental conditions.&lt;br /&gt;
&lt;br /&gt;
* It can also be used to isolate and remove unwanted contributions to remotely sensed signatures. As spectrometers detect not only the water leaving radiance in which we are interested, but also the sky radiance reflected upward by the sea surface. As Hydrolight separately computes all of these components, it can be used to correct the detected signature for surface reflection effects.&lt;br /&gt;
&lt;br /&gt;
* It can be used in different configurations (IOP’s and boundary conditions) when analyzing experimental data in order to tighten up an existing parameterization. &lt;br /&gt;
&lt;br /&gt;
* It can be used to simulate optical signatures for the purpose of evaluating proposed remote – sensing algorithms for their ability to simulate different environments or for examining the sensitivity of algorithms to simulated noise in the signature. &lt;br /&gt;
&lt;br /&gt;
* It can be used to characterize the background environment in an image. When attempting to extract information about an object in the scene, all of the radiance of the natural environment may be considered noise, with the radiance from the object being the signal. The model can then be used to compute and remove the environmental contribution to the image.&lt;br /&gt;
&lt;br /&gt;
* Hydrolight can be run with historical (climatological) or modeled input data to provide estimates about the marine optical environment during times when remotely sensed or in situ data are not available.&lt;br /&gt;
&lt;br /&gt;
Due to the difference in scales in the ocean ( Lh &amp;gt;&amp;gt;&amp;gt;  Lv ), we can consider the ocean as consisting of optically independent patches  of waters. We thus obtain patches of homogeneous water body whose optical properties vary only with depth. We can then independently apply a one dimensional radiative transfer model at the center of each patch in order to simulate the entire, horizontally inhomogeneous water body. In the analysis of imaging spectrometer data, one might even apply such a model to the water patch associated with the pixel in the image.&lt;br /&gt;
&lt;br /&gt;
== Main characteristics of Hydrolight ==&lt;br /&gt;
&lt;br /&gt;
Hydrolight is/has &lt;br /&gt;
&lt;br /&gt;
*	Time – independent&lt;br /&gt;
&lt;br /&gt;
*	Horizontally homogeneous IOP’s and boundary conditions&lt;br /&gt;
&lt;br /&gt;
*	Arbitrary depth dependence of IOP’s&lt;br /&gt;
&lt;br /&gt;
*	Wavelengths between 350 &amp;amp; 800nm&lt;br /&gt;
&lt;br /&gt;
*	Capillary – wave – air – water surface&lt;br /&gt;
&lt;br /&gt;
*	Finite or infinitely deep (non – Lambertian) bottom&lt;br /&gt;
&lt;br /&gt;
*	Includes all orders of multiple scattering&lt;br /&gt;
&lt;br /&gt;
*	Includes Raman scatter by water&lt;br /&gt;
&lt;br /&gt;
*	Includes fluorescence by chlorophyll and CDOM&lt;br /&gt;
&lt;br /&gt;
*	Includes internal sources such as bioluminescence&lt;br /&gt;
&lt;br /&gt;
*	Does not include polarization&lt;br /&gt;
&lt;br /&gt;
*	Does not include gravity waves or white caps&lt;br /&gt;
&lt;br /&gt;
The fundamental quality that describes the time - independent, 1D light field in the ocean is the spectral radiance L(z,θ,Φ,λ)in (W/m2.sr.nm), with z the depth, θ the zenithal, polar angle of the sun, Φ  the azimuthal angle of the sun and λ the wavelength. An overview of the most important optic properties &amp;amp; their relationship to other variables is given by the figure below.&lt;br /&gt;
This figure also learns us we will have to provide Hydrolight with incident radiance, sea state, bottom condition, absorption coefficient a, scattering coefficient b and phase function. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;htm&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align:center;width:100%&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/6fe8430e-de53-4173-966a-510d61df5a0e/2008-11-11_1753.png&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;img src=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/6fe8430e-de53-4173-966a-510d61df5a0e/2008-11-11_1753.png&amp;quot; width=&amp;quot;502&amp;quot; height=&amp;quot;520&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Hydrolight standard quad layout has a nominal angular resolution of Δθ = 10º and ΔΦ = 15º. For mathematical reasons, there is no quad centered on the equator. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;htm&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align:center;width:100%&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/e5d89ca9-e4ae-46d7-8db4-50d30e5c44bc/2008-11-11_1805.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/e5d89ca9-e4ae-46d7-8db4-50d30e5c44bc/2008-11-11_1805.png&amp;quot; width=&amp;quot;358&amp;quot; height=&amp;quot;353&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== How to install Hydrolight ==&lt;br /&gt;
&lt;br /&gt;
# The Lahey Fortran 95 express compiler is a pre - requisite to Hydrolight. It has to be installed and registred before installing Hydrolight.&lt;br /&gt;
# Install Hydrolight.&lt;br /&gt;
# Paste the &amp;quot;novoteste.for&amp;quot; - file and the &amp;quot;teste.for&amp;quot; - file in the batch - map of the maincode directory.&lt;br /&gt;
# Paste the &amp;quot;runlist&amp;quot; - file into the run directory&lt;br /&gt;
# Paste the &amp;quot;Inovoteste&amp;quot; and the &amp;quot;Iteste&amp;quot; - files into the batch - map of the run - directory&lt;br /&gt;
&lt;br /&gt;
Done!&lt;br /&gt;
&lt;br /&gt;
== How to use Hydrolight ==&lt;br /&gt;
&lt;br /&gt;
When first using Hydrolight you will need to read the disclaimer and accept the license agreement.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;htm&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align:center;width:100%&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/78e68b34-98e3-45dd-9024-a080689bd3f6/2008-11-12_1535.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/78e68b34-98e3-45dd-9024-a080689bd3f6/2008-11-12_1535.png&amp;quot; width=&amp;quot;353&amp;quot; height=&amp;quot;394&amp;quot; border=&amp;quot;10&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then you will have to define a root name in the run identification form. It will be used for all files generated by Hydrolight in this run. You can also enter a descriptive title in this form. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;htm&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align:center;width:100%&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/80ec0140-88c1-49ab-b1c3-bada57eb5b0d/2008-11-12_1543.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/80ec0140-88c1-49ab-b1c3-bada57eb5b0d/2008-11-12_1543.png&amp;quot; width=&amp;quot;444&amp;quot; height=&amp;quot;412&amp;quot; border=&amp;quot;10&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The parametrization of Hydrolight can be changed by selecting &amp;quot;Change limits&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;htm&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align:center;width:100%&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/0037db04-75ff-4ea5-9f9f-b4fce826c1ef/2008-11-12_1623.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/0037db04-75ff-4ea5-9f9f-b4fce826c1ef/2008-11-12_1623.png&amp;quot; width=&amp;quot;498&amp;quot; height=&amp;quot;561&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then we have to select the most accurate calculation method for calculationg IOP's. The total IOP's of a water body are built up as a sum of IOP's attributable to the various components of a water nody. Thus the total absorption coefficient is given by:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;htm&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align:center;width:100%&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/98a1179c-af12-48e9-87a8-8f98473408b4/2008-11-17_1015.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/98a1179c-af12-48e9-87a8-8f98473408b4/2008-11-17_1015.png&amp;quot; width=&amp;quot;201&amp;quot; height=&amp;quot;56&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Although recent papers have proven that this assumption is no longer essential, Hydrolight distinguishes case 1. waters in with a high concentration of chlorophylle (in comparison to other particles) and case 2. waters in which in organic substances are dominant. The models proposed here will use different calculation methods to calculate the absorption a and the light scattering b. Absorption can be defined as the process in which radient (light) energy is converted into chemical (e.g. photosynthesis) or thermal energy. Lights scattering is the proces wherein the light changes direction (elastic scattering ) and / or wavelength. In case only the wavelength is modified we speak of inelastic scattering (e.g. Raman - scattering , chlorophylle fluorescence). It is thus paramount to understand the behaviour of light in the studied water column before selecting a calculation method and a phase function.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;htm&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align:center;width:100%&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/54469163-63eb-4ffa-92fb-68e8d28f1127/2008-11-17_1017.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/54469163-63eb-4ffa-92fb-68e8d28f1127/2008-11-17_1017.png&amp;quot; width=&amp;quot;453&amp;quot; height=&amp;quot;550&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;htm&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align:center;width:100%&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/215fe1ae-d1ae-4a8f-9b61-84a3a69c574e/2008-11-12_1542.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/215fe1ae-d1ae-4a8f-9b61-84a3a69c574e/2008-11-12_1542.png&amp;quot; width=&amp;quot;516&amp;quot; height=&amp;quot;514&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== ABCONST ===&lt;br /&gt;
&lt;br /&gt;
The ABCONST - option will consider a fixed total light absorption coefficient a and a fixed light - scattering coefficient b at a single wavelength for a homogeneous water body. This option should only be used in very shallow, homogeneous waters, where we can consider absorption and diffusion as constants (swimming pool case). It is particularly useful for studies in which the depth is measured as non - dimensional optical depth ζ rather than as geometric depth z in meters. When selecting this option we will also have to define a total light - scattering phase function (see also the figure below). Scattering is often modeled by a power law dependence on wavelength:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;htm&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align:center;width:100%&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/1c6eebc2-8d50-4e6c-adad-810fd4503776/2008-11-17_1658.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/1c6eebc2-8d50-4e6c-adad-810fd4503776/2008-11-17_1658.png&amp;quot; width=&amp;quot;236&amp;quot; height=&amp;quot;80&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt; &lt;br /&gt;
&lt;br /&gt;
With X the concentration, b,λ, m &amp;amp; n the model parameters. &lt;br /&gt;
We can choose between:&lt;br /&gt;
&lt;br /&gt;
* Isotropic diffusion phase function(equal in all directions)&lt;br /&gt;
&lt;br /&gt;
* Pure Water, Raleigh diffusion phase function                 (elastic scattering of light,diam &amp;lt;&amp;lt; λ)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;htm&amp;gt; &lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align:center;width:100%&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/3ebf7587-35fb-4fee-8a00-ef84a3a7b3b8/2008-11-14_1651.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/3ebf7587-35fb-4fee-8a00-ef84a3a7b3b8/2008-11-14_1651.png&amp;quot; width=&amp;quot;242&amp;quot; height=&amp;quot;116&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Average particle, [[Petzold phase - function]] &lt;br /&gt;
 &lt;br /&gt;
* USER - SUPPLIED file containing the discretised phase function &lt;br /&gt;
&lt;br /&gt;
* Have Hydrolight select a phase function with a bb/b value of ...(backscattering/ scattering relationship that indicates us the probability scattering will occur, When selecting this option. Hydrolight will use the backscatter fraction bb(z,λ)/b(z,λ) to generate a phase function having this backscatter fraction at each depth.)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;htm&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align:center;width:100%&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/2ca149a5-2a7b-41f1-bed8-a2c1f6fda8d9/2008-11-14_1653.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/2ca149a5-2a7b-41f1-bed8-a2c1f6fda8d9/2008-11-14_1653.png&amp;quot; width=&amp;quot;362&amp;quot; height=&amp;quot;61&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Furthermore, we will also have to specify a wavelength which will be used by bottom and sky models later on. &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;htm&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align:center;width:100%&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/78e85747-d2fa-4beb-8617-7faae226a5ea/2008-11-13_1428.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/78e85747-d2fa-4beb-8617-7faae226a5ea/2008-11-13_1428.png&amp;quot; width=&amp;quot;527&amp;quot; height=&amp;quot;577&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then we have to select whether the model has to apply bioluminescence. &lt;br /&gt;
In the ABCONST we can not chose to apply inelastic scattering in stead of bioluminescence. The equation for the elastic scattering is given by;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;htm&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align:center;width:100%&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/6ab6c0a7-280b-40b4-a58c-dc1cf2a970a0/2008-11-14_1712.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/6ab6c0a7-280b-40b4-a58c-dc1cf2a970a0/2008-11-14_1712.png&amp;quot; width=&amp;quot;270&amp;quot; height=&amp;quot;98&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;htm&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align:center;width:100%&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/9f839fd1-fd67-40dc-b66c-84087ed9b18d/2008-11-14_1458.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/9f839fd1-fd67-40dc-b66c-84087ed9b18d/2008-11-14_1458.png&amp;quot; width=&amp;quot;461&amp;quot; height=&amp;quot;464&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the next window we will have to define the Air - Water Surface Boundary Conditions. Whenever entering a new speed, we should press &amp;quot;update values&amp;quot; in order to confirm the newly entered value.&lt;br /&gt;
The sky - model part will enable us to parametrize the atmospheric effects on solar radiation. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;htm&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align:center;width:100%&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/83271ba3-0f4c-4fcb-a87c-fb114961a51b/2008-11-14_1500.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/83271ba3-0f4c-4fcb-a87c-fb114961a51b/2008-11-14_1500.png&amp;quot; width=&amp;quot;434&amp;quot; height=&amp;quot;437&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== ABCASE 1 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;htm&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align:center;width:100%&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/62a2acb8-bc8a-4c36-ad80-e29f80e10a2b/2008-11-17_1702.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/62a2acb8-bc8a-4c36-ad80-e29f80e10a2b/2008-11-17_1702.png&amp;quot; width=&amp;quot;497&amp;quot; height=&amp;quot;324&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;htm&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align:center;width:100%&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/387e9f18-0701-4d22-a8fe-77c6914ab170/2008-11-17_1703.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/387e9f18-0701-4d22-a8fe-77c6914ab170/2008-11-17_1703.png&amp;quot; width=&amp;quot;524&amp;quot; height=&amp;quot;361&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This model is based on a reformulation (Morel and Maritorena, 2000) of the historical Gordon - Morel Case 1 water model. The absorption coefficient is modeled as the sum of three components:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;htm&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align:center;width:100%&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/882bdbf4-5c8d-44d3-8e69-021c7f12f472/2008-11-17_1039.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/882bdbf4-5c8d-44d3-8e69-021c7f12f472/2008-11-17_1039.png&amp;quot; width=&amp;quot;315&amp;quot; height=&amp;quot;48&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With aw the absorption by pure water and ap the absorption by chlorophyll - bearing particles and ay the absorption by covarying yellow matter (CDOM). The particle absorption is given by:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;htm&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align:center;width:100%&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/54cfa4aa-4010-4d72-9387-f50bcaa408a0/2008-11-17_1045.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/54cfa4aa-4010-4d72-9387-f50bcaa408a0/2008-11-17_1045.png&amp;quot; width=&amp;quot;264&amp;quot; height=&amp;quot;49&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where Chl(z) is the user - specified chlorophyll profile in mg Chl /m3&lt;br /&gt;
and Achl(λ) is the non - dimensional chlorophyll  - specific absorption coefficient given in Prieur and Sathyentranath (1981). Absorption by yellow matter covaries with particle absorption according to&lt;br /&gt;
&lt;br /&gt;
&amp;lt;htm&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align:center;width:100%&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/335bca47-1487-4dbf-8c75-b50b7e2a3e5a/2008-11-17_1059.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/335bca47-1487-4dbf-8c75-b50b7e2a3e5a/2008-11-17_1059.png&amp;quot; width=&amp;quot;388&amp;quot; height=&amp;quot;44&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;htm&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align:center;width:100%&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/0309a950-a75b-4894-a39d-66b29c6acb2a/2008-11-17_1704.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/0309a950-a75b-4894-a39d-66b29c6acb2a/2008-11-17_1704.png&amp;quot; width=&amp;quot;565&amp;quot; height=&amp;quot;432&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Absorption by chlorophylle is determined by:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;htm&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align:center;width:100%&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/c0bb4a08-74ca-45b0-b092-a34054c68d40/2008-11-17_1705.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/c0bb4a08-74ca-45b0-b092-a34054c68d40/2008-11-17_1705.png&amp;quot; width=&amp;quot;538&amp;quot; height=&amp;quot;565&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The phase function consists either of a USER - SUPPLIED routine or is determined by Hydrolight by means of the bb/b - relationship.&lt;br /&gt;
&lt;br /&gt;
The scattering coefficient b for the particles is given by:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;htm&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align:center;width:100%&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/335bca47-1487-4dbf-8c75-b50b7e2a3e5a/2008-11-17_1059.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/335bca47-1487-4dbf-8c75-b50b7e2a3e5a/2008-11-17_1059.png&amp;quot; width=&amp;quot;388&amp;quot; height=&amp;quot;44&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and the yellow matter is assumed to be non - scattering. In this model, the pure water absorption is taken from Pope and Fry (1997), and the pure water scattering is from Smith and Baker (1981). The user must specify the chlorophyll concentration profile Chl(z) and the scattering phase function for the particles. Note that this model reduces to the pure water case if Chl = 0, which is slightly different than the formulation of Morel and Maritorena (2000), which includes a small amount of yellow matter even in the absence of phytoplankton.&lt;br /&gt;
&lt;br /&gt;
When selecting this option we will also have to define a total light -scattering phase function (see also the figure below). Scattering is often modeled by a power law dependence on wavelength:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;htm&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align:center;width:100%&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/1c6eebc2-8d50-4e6c-adad-810fd4503776/2008-11-17_1658.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/1c6eebc2-8d50-4e6c-adad-810fd4503776/2008-11-17_1658.png&amp;quot; width=&amp;quot;236&amp;quot; height=&amp;quot;80&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt; &lt;br /&gt;
&lt;br /&gt;
With X the concentration, b, λ, m &amp;amp; n the model parameters. The Gordon - Morel (1993)for chlorophyll bearing particles is a special case of the power law model with X = Chl, b0 = 0.3, λ0 = 550nm, m = 1 &amp;amp; n = 0.62.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;htm&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align:center;width:100%&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/aa7005a5-6d07-4046-aba1-ddf579a58c13/2008-11-17_1700.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/aa7005a5-6d07-4046-aba1-ddf579a58c13/2008-11-17_1700.png&amp;quot; width=&amp;quot;292&amp;quot; height=&amp;quot;59&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;     &lt;br /&gt;
&amp;lt;/html&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;htm&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align:center;width:100%&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/d88cc60e-6ec4-4ea1-998b-ede9d0a9f701/2008-11-17_1714.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/d88cc60e-6ec4-4ea1-998b-ede9d0a9f701/2008-11-17_1714.png&amp;quot; width=&amp;quot;462&amp;quot; height=&amp;quot;461&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Bioluminescence is included via a USER - SUPPLIED routine and inelastic scattering should be defined in function of the water type;&lt;br /&gt;
chlorophylle fluorescence for CASE 1 waters, CDOM fluorescence for CASE 2 waters and RAMAN - scattering for very clear water. Raman - scattering is the inelastic scattering of light between 550 &amp;amp; 650 nm by water molecules. It is described by :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;htm&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align:center;width:100%&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/e914ff82-fb72-4337-bfa5-771cf3cb3fdf/2008-11-18_1046.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/e914ff82-fb72-4337-bfa5-771cf3cb3fdf/2008-11-18_1046.png&amp;quot; width=&amp;quot;477&amp;quot; height=&amp;quot;39&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Raman absorption coefficient and Raman scattering coefficient are given by:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;htm&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align:center;width:100%&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/f0355b51-718d-49d9-99fe-47377293a97d/2008-11-18_1047.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/f0355b51-718d-49d9-99fe-47377293a97d/2008-11-18_1047.png&amp;quot; width=&amp;quot;386&amp;quot; height=&amp;quot;134&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next we will have to define the band of wavelengths. This can be done by either determining the minimum and the maximum wavelength and the wavelength band interval, by manually introducing wavelength band boundaries or by selecting wavelength bands to a particular ocean color sensor. If you want to validate Hydrolight data with satellite data the last option is recommendable.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;htm&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align:center;width:100%&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;a  href=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/d2f279fb-9082-4294-af56-fbb9d29143ab/2008-11-18_1053.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/d2f279fb-9082-4294-af56-fbb9d29143ab/2008-11-18_1053.png&amp;quot; width=&amp;quot;540&amp;quot; height=&amp;quot;574&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In order to execute a succesful run, Hydrolight must know the incident sky radiance on the sea surface. As this also depends on the state of the sea surface, we will have to provide Hydrolight with the wind speed. In order to calculate the surface radiation , we will have to define the sky model to be used. This can either be a semi - empirical sky model or an idealized sky model. The use of the idealized sky model is advisable in the case of homogeneous or heavily overcasted skies while the semi - empirical model allows for more variation. In the ABCASE 1 - routine we will only be allowed to use the semi - empirical sky model.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;htm&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align:center;width:100%&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/13b0a3fb-d574-484b-90ff-6fd0976e2b63/2008-11-18_1112.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/13b0a3fb-d574-484b-90ff-6fd0976e2b63/2008-11-18_1112.png&amp;quot; width=&amp;quot;709&amp;quot; height=&amp;quot;446&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/htm&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;htm&amp;gt; &lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align:center;width:100%&amp;quot;&amp;gt;  &lt;br /&gt;
&amp;lt;a href=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/c969c83c-02ed-4984-bd16-57208fdd96ca/2008-11-18_1058.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/c969c83c-02ed-4984-bd16-57208fdd96ca/2008-11-18_1058.png&amp;quot; width=&amp;quot;434&amp;quot; height=&amp;quot;439&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then we will have to specify the sky conditions to be used with the semi - empirical sky model. The position of the sun is either given by the zenith angle or by specifying our time and location on earth.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;htm&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align:center;width:100%&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/59d953af-02f0-4047-8c50-ae41a4e8571e/2008-11-18_1127.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/59d953af-02f0-4047-8c50-ae41a4e8571e/2008-11-18_1127.png&amp;quot; width=&amp;quot;567&amp;quot; height=&amp;quot;561&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If we choose to do so, we can also modify the atmospheric parameters used by the model by selecting the button &amp;quot;view atmospheric parameters&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;htm&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align:center;width:100%&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/93cd5d17-10f4-40b5-b43d-7d0fd957b418/2008-11-18_1130.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/93cd5d17-10f4-40b5-b43d-7d0fd957b418/2008-11-18_1130.png&amp;quot; width=&amp;quot;461&amp;quot; height=&amp;quot;488&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, in order to calculate the semi - empirical sky radiance, the model will require the sky irradiance which is either directly calculated by RADTRAN - model or read fron a USER SUPPLIED DATA FILE.&lt;br /&gt;
The angular pattern of the sky radiance will be acquired from a standard routine in the maincode directory&lt;br /&gt;
&lt;br /&gt;
&amp;lt;htm&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align:center;width:100%&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/2771ad37-3a2f-4802-b1a4-ebf082ecf917/2008-11-18_1132.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/2771ad37-3a2f-4802-b1a4-ebf082ecf917/2008-11-18_1132.png&amp;quot; width=&amp;quot;565&amp;quot; height=&amp;quot;465&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The path of light through the water will also be influenced by its depth and bottom type. If the bottom is indfinitely deep, we won't have to define a bottom reflectance, as all the light will be absorbed by the water column. In case of a finitely deep water column,we can define a percentage of the incident radiation that will always be reflected (reflection is thus independent of wavelength) or a reflectance dependent on the wavelengt supplied by a USER SUPPLIED FILE which is more realistic. This USER SUPPLIED FILE is mostly supplied bu the Hydrolight library which has a variety of files to describe different bottom types (corals, algae, seagrass).   &lt;br /&gt;
&lt;br /&gt;
&amp;lt;htm&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align:center;width:100%&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/f81886cf-f1df-4a12-b4f3-757885200f58/2008-11-18_1214.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/f81886cf-f1df-4a12-b4f3-757885200f58/2008-11-18_1214.png&amp;quot; width=&amp;quot;449&amp;quot; height=&amp;quot;359&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally, Hydrolight will also aks us to provide output depths. We can define up to 50 different output depths. These output depths can either be geometric or optical (though for comparison of data, geometric depths are the most advisable) and are defined by entering a maximum depth and a depth interval or they are manually defined. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;htm&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align:center;width:100%&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/c2afac10-0274-4f6c-b8f8-0c75fe54d005/2008-11-18_1213.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/c2afac10-0274-4f6c-b8f8-0c75fe54d005/2008-11-18_1213.png&amp;quot; width=&amp;quot;446&amp;quot; height=&amp;quot;562&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== ABCASE 1H ===&lt;br /&gt;
&lt;br /&gt;
Tha ABCASE 1H - model is an IOP - model based on Haltrin. It is written for Case 1 - waters and includes four components; pure water, large microbial particles, CDOM (colored dissolved organic matter with seperate contributions by fulvic and humic acids) and small mineral particles. The humic and fulvic acids are assumed to be non - scattering and the mineral particles are assumed to be non - absorbing. Each of these components (other than pure water) is parametrized by the chlorophyll concentration. The scattering phase functions for the large microbial (large.dpf) and small mineral (small.dpf) particles are based on Kopelevich:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;htm&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align:center;width:100%&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/fc5036d8-d770-467e-8d25-8f3e23f7b350/2008-11-17_1122.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/Nathalie_Verelst/folders/Jing/media/fc5036d8-d770-467e-8d25-8f3e23f7b350/2008-11-17_1122.png&amp;quot; width=&amp;quot;471&amp;quot; height=&amp;quot;338&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The user will thus only need to supply Hydrolight with the chlorophylle profile in this configuration. The Haltrin ABCASE 1H - model is quite new to the scientific society, as a consequence experience is little and it is important to note that its' calculated IOP's can be considerably different from the calculated IOP's of the ABCASE 1 model.&lt;br /&gt;
&lt;br /&gt;
=== ABCASE 2 model ===&lt;br /&gt;
&lt;br /&gt;
The ABCASE 2 model is a generic four component model that includes pure water, Chlorophylle - bearing particles, CDOM and mineral particles. The routine is designed to allow for a great user customization of the input. This flexibility rendering it suitable for many case 2 - waters. The routine also provides us with an alternative for modeling case 1 waters (e.g. by specifying the microbial and CDOM components as desired and setting the mineral conditions to zero).&lt;br /&gt;
&lt;br /&gt;
=== ABACBB ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We can also compute light fields using absorption and scattering coefficients as measured by the WETLabs ac - 9 or HiStar instrument. In this case we will have to use the ABACBB model. This IOP - model comprises two components; pure water and everything else (particles and dissolved substances detected by ac - 9). Hydrolight can read borth unfiltered and filtered ac - 9 files. The unfiltered ac - 9 file gives us the total absorption (particles + CDOM) whereas the filtered file only possesses the CDOM - absorption. Providing both files , thus allows us to seperate absorption into particulate and dissolved fractions, which gives important information about the ecosystem. Nonetheless, we should realize that light is only influenced by total absorption coefficient, total scattering coefficient and total phase function. If CDOM is assumed to be non - scattering, partioning the absorption into particulate and dissolved fractions does not change the total a, total b or phase function. Therefore it does not change the elastic scattering solution of radiative transfer equation. In abscence of fluorescence, the light field will thus be exactly the same. To quantify CDOM - fluorescence, we first need to know how the light was absorbed by the CDOM. This can be obtained by selecting the option of including CDOM - fluorescence in the Hydrolight - run. If this is the case, the user can optionally  define a data file which will come to contain a and c values from a filtered ac - 9.  In most cases, CDOM - fluorescence is merely a small contribution to the total light field. &lt;br /&gt;
Another important feature is the option of reading a file that contains backscatter coefficients bb(z,λ)as measured by instruments. If available, Hydrolight can use the backscatter fraction bb(z,λ)/b(z,λ) to generate a phase function having this backscatter fraction at each depth and wavelength.&lt;br /&gt;
When ac - 9 and instrument data are used to dynamically determine the phase function according to backscatter fraction, a Fournier - Forand phase function is used. This closed - form, analytical phase function is based on Mie - theory and is parametrized by the real index of refraction of the particles and the slope of the Junge size distribution. By varying the particle index of refraction and size distribution, phase functions can be generated with very small (0.0001)to very large backscatter (0.4) fractions. When dynamically determining the phase function, Hydrolight automatically interpolates within its phase function collection ti generate a phase function at each depth with the needed amount of backscatter.&lt;br /&gt;
The only problem with this option is that when solving the radiative transfer equation, Hydrolight considers extremely small steps through the water column. In general, the backscatter fraction will change with every depth step, so that a new phase function should be generated for each depth step. As this would greatly add to runtime, the user interface will require the user to secify a backscatter - change parameter.This is the amount by which the backscatter fraction must change before a new phase function is generated, the default is 0.005 (5%).&lt;br /&gt;
The Fournier - Forand phase functions are named by their backscatter fraction. For example the phase function on FFbb0001.dpf has a bb/b of 0.0001, whereas FFbb018.dpf has a bb/b of 0.018. &lt;br /&gt;
&lt;br /&gt;
Important remarks about this option:&lt;br /&gt;
&lt;br /&gt;
* Hydrolight always assumes your instrument data are flawless.&lt;br /&gt;
&lt;br /&gt;
* Even while measuring the IOP's directly, we will still need to provide Hydrolight with a chlorophylle - profile.&lt;br /&gt;
&lt;br /&gt;
[[Category:MOHID Water]]&lt;br /&gt;
[[Category:Biogeochemistry]]&lt;/div&gt;</summary>
		<author><name>192.168.20.177</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Batch&amp;diff=54</id>
		<title>Batch</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Batch&amp;diff=54"/>
				<updated>2008-11-11T17:51:15Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.177: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Batch]] files are the original ms-dos scripting language. A [[batch file]] is a script that contains a list of ms-dos commands, with one command per line. When you try to execute the batch file, it will execute the ms-dos commands, one after another, waiting for each command to finish before starting the next one.&lt;br /&gt;
==Examples==&lt;br /&gt;
===For===&lt;br /&gt;
The following example will output each line of the text file to the stdout:&lt;br /&gt;
 &amp;gt; FOR /F %i in (list.txt) DO @echo %~ni&lt;br /&gt;
&lt;br /&gt;
The following example will allow to parse and edit the environment variables:&lt;br /&gt;
 &amp;gt; for /F %i in ('dir /B /S *_1.dat') do @set fil=%i &amp;amp; copy /Y !fil! !fil:1=2!&lt;br /&gt;
'''If you want to write '''FOR''' loops in a batch file instead of the command line, then use '''%%i''' instead of '''%i'''.'''&lt;br /&gt;
&lt;br /&gt;
To place the first line of a file into a variable:&lt;br /&gt;
 &amp;gt; SET /P _MyVar=&amp;lt;MyFilename.txt&lt;br /&gt;
&lt;br /&gt;
To place the ''last'' line of a file into a variable:&lt;br /&gt;
 &amp;gt; FOR /F &amp;quot;tokens=*&amp;quot; %A IN (C:\boot.ini) DO SET TestVar=%A&lt;br /&gt;
&lt;br /&gt;
Nested FOR Loops&lt;br /&gt;
 &amp;gt; FOR /F %a IN (filelist.txt) DO (FOR /F %b IN (salinitytemperature.txt) DO echo %a %b)&lt;br /&gt;
&lt;br /&gt;
Nested FOR loops encapsulated in a batch file&lt;br /&gt;
 for /F %%a in (%1) do (&lt;br /&gt;
     for /R %%b in (../*) do (&lt;br /&gt;
         echo %%a&lt;br /&gt;
         echo %%b&lt;br /&gt;
     )&lt;br /&gt;
 )&lt;br /&gt;
&lt;br /&gt;
==Misc==&lt;br /&gt;
===Escaping characters===&lt;br /&gt;
&amp;amp;lt;,|,&amp;amp;gt; and % characters are special characters in dos. To escape them use the ^ character or a double %&lt;br /&gt;
 &amp;gt; echo ^&amp;lt;example^&amp;gt;&lt;br /&gt;
 &amp;lt;example&amp;gt;&lt;br /&gt;
===Displaying blank lines===&lt;br /&gt;
Use command echo to display a blank line instead of its default status result&lt;br /&gt;
 &amp;gt;echo.&lt;br /&gt;
&lt;br /&gt;
==Sample applications==&lt;br /&gt;
Here's a combination with a batch file, that creates a clean copy of a MOHID simulation:&lt;br /&gt;
&lt;br /&gt;
 &amp;gt; copysimulation MySimulation&lt;br /&gt;
&lt;br /&gt;
 #'''copysimulation.bat content'''&lt;br /&gt;
 #Input argument %1 stands for simulation name&lt;br /&gt;
 @echo off&lt;br /&gt;
 set COPYHOME=C:\Program Files\2gif&lt;br /&gt;
 xcopy %1\*.* %1_copy /E /EXCLUDE:%COPYHOME%\exclui.txt&lt;br /&gt;
 perl %COPYHOME%/replace.pl 's/%2/\.\.\/\.\./g' *&lt;br /&gt;
 perl %COPYHOME%/replace.pl 's/\\/\//g' *&lt;br /&gt;
 @echo on&lt;br /&gt;
&lt;br /&gt;
==External References==&lt;br /&gt;
*[http://www.robvanderwoude.com/ntfor.html Batch files tutorial];&lt;br /&gt;
*[http://www.ss64.com/nt/for.html for command reference];&lt;br /&gt;
*[http://www.ss64.com/nt/ windows nt command-line reference].&lt;br /&gt;
&lt;br /&gt;
[[Category:Windows]]&lt;br /&gt;
[[Category:Script]]&lt;/div&gt;</summary>
		<author><name>192.168.20.177</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Batch_file&amp;diff=56</id>
		<title>Batch file</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Batch_file&amp;diff=56"/>
				<updated>2008-11-11T17:50:57Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.177: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT[[Batch]]&lt;/div&gt;</summary>
		<author><name>192.168.20.177</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=How_to_create_MOHID_timeseries_outputs&amp;diff=326</id>
		<title>How to create MOHID timeseries outputs</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=How_to_create_MOHID_timeseries_outputs&amp;diff=326"/>
				<updated>2008-11-11T17:46:28Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.177: /* Run Kml2Mohid */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this tutorial we will continue to develop the [[How_to_configure_a_2D_model_forced_with_tide_with_MOHID|previously used]] test-case and we will configure the model so it returns a time serie with the water level at the coordinates of our choice on the domain. These time series can then be compared against tidal stations experimental measurements.&lt;br /&gt;
&lt;br /&gt;
==Step 1 - Define the data-acquisition stations==&lt;br /&gt;
&lt;br /&gt;
===Run Google Earth===&lt;br /&gt;
[[Google_Earth#Configure_Google_Earth|Make sure you have Google Earth correctly configured!!]]&lt;br /&gt;
&lt;br /&gt;
*With Google earth, choose the locations where there are tidal stations&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/cfbc9e9d-0b21-491a-a718-db046096bb10/2008-10-06_1608.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/cfbc9e9d-0b21-491a-a718-db046096bb10/2008-10-06_1608.png&amp;quot; width=&amp;quot;597&amp;quot; height=&amp;quot;443&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
Repeat the process for every tidal station.&lt;br /&gt;
&lt;br /&gt;
*Save the google earth placemarks as a kml file&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/2b66937c-6c87-46c4-a3af-08eb92dc3f13/2008-10-06_1612.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/2b66937c-6c87-46c4-a3af-08eb92dc3f13/2008-10-06_1612.png&amp;quot; width=&amp;quot;320&amp;quot; height=&amp;quot;252&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/8e8fa35f-bc08-4b1a-84ef-f72d7c559345/2008-10-06_1613.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/8e8fa35f-bc08-4b1a-84ef-f72d7c559345/2008-10-06_1613.png&amp;quot; width=&amp;quot;563&amp;quot; height=&amp;quot;412&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Run Kml2Mohid===&lt;br /&gt;
&lt;br /&gt;
*Get the [[Kml2Mohid]] program, edit a [[batch file]], and run the program&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;div style=&amp;quot;width:100%;text-align:center&amp;quot;&amp;gt;&amp;lt;img width=&amp;quot;70%&amp;quot; src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/4ed24f90-dd2b-49bb-8a12-4c94c4212ab4/2008-09-25_1847.png&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Successfully run [[Kml2Mohid]] program to convert the google earth placemarks into a points file.&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;div style=&amp;quot;width:100%;text-align:center&amp;quot;&amp;gt;&amp;lt;img width=&amp;quot;70%&amp;quot; src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/629db22c-73c4-4ef8-81b4-b73f94f0216a/2008-09-25_1852.png&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Sample points (.xyz) file. This what the resulting file should look like:&lt;br /&gt;
 &amp;lt;begin_xyz&amp;gt;&lt;br /&gt;
 -9.317324064466845 38.67641458263528 0&lt;br /&gt;
 &amp;lt;end_xyz&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Step 2 - Create time serie stations with Mohid GIS==&lt;br /&gt;
&lt;br /&gt;
===Import the xyz file containing the tidal stations===&lt;br /&gt;
&lt;br /&gt;
*In [[Mohid GIS]], from the ''Project'' menu, select ''open''&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/a576e3b7-c9a2-48d4-a8c8-0a622a905f40/2008-10-06_1550.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/a576e3b7-c9a2-48d4-a8c8-0a622a905f40/2008-10-06_1550.png&amp;quot; width=&amp;quot;320&amp;quot; height=&amp;quot;238&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Select the folder, select the saved GIS project, then click on ''Open'':&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/7deb018a-59f8-4c3d-aba0-85a35a8f270e/2008-10-06_1553.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/7deb018a-59f8-4c3d-aba0-85a35a8f270e/2008-10-06_1553.png&amp;quot; width=&amp;quot;563&amp;quot; height=&amp;quot;412&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Here's what the opened GIS project should look like&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/c407235c-d1da-4f72-8bbb-9f5966d0197e/2008-10-06_1621.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/c407235c-d1da-4f72-8bbb-9f5966d0197e/2008-10-06_1621.png&amp;quot; width=&amp;quot;736&amp;quot; height=&amp;quot;337&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*From the ''Data Items'' menu select ''Add Data Item''&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/f42a1aed-5f6d-4544-a48f-e800db151f07/2008-10-06_1605.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/f42a1aed-5f6d-4544-a48f-e800db151f07/2008-10-06_1605.png&amp;quot; width=&amp;quot;351&amp;quot; height=&amp;quot;221&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*????&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/fb9e5ca5-1216-4c46-bb6d-03d1af06070d/2008-10-06_1624.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/fb9e5ca5-1216-4c46-bb6d-03d1af06070d/2008-10-06_1624.png&amp;quot; width=&amp;quot;563&amp;quot; height=&amp;quot;412&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Drag'n drop the points layer to the top, then right-click on it, then select ''Properties''&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/bc03ca36-48e9-4906-8dd6-72eeb3636b74/2008-10-06_1627.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/bc03ca36-48e9-4906-8dd6-72eeb3636b74/2008-10-06_1627.png&amp;quot; width=&amp;quot;361&amp;quot; height=&amp;quot;197&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Set the pixel size to 5, then select ''Settings''&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/f44682b2-211f-4ce3-aae1-e9b72dd144ff/2008-10-06_1630.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/f44682b2-211f-4ce3-aae1-e9b72dd144ff/2008-10-06_1630.png&amp;quot; width=&amp;quot;430&amp;quot; height=&amp;quot;351&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Select a color and a pixel size for the points.&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/a313a211-46c1-44b5-bad3-8eafda3f322d/2008-10-06_1632.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/a313a211-46c1-44b5-bad3-8eafda3f322d/2008-10-06_1632.png&amp;quot; width=&amp;quot;496&amp;quot; height=&amp;quot;361&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Check that the point is well where it should be on the grid&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/49ac2701-6a2b-4a78-9165-9838ff9b3af5/2008-10-06_1635.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/49ac2701-6a2b-4a78-9165-9838ff9b3af5/2008-10-06_1635.png&amp;quot; width=&amp;quot;610&amp;quot; height=&amp;quot;292&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Create the MOHID time series===&lt;br /&gt;
&lt;br /&gt;
*From the ''Tools'' menu, select ''Create Grid Time Series''&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/2c13bdbb-9642-4f55-bdec-6ff36984de31/2008-10-06_1637.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/2c13bdbb-9642-4f55-bdec-6ff36984de31/2008-10-06_1637.png&amp;quot; width=&amp;quot;230&amp;quot; height=&amp;quot;355&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Select the grid data layer, select the correct xyz layer, define the folder and a new filename for the time series configuration file, define a 10 minute period outputs interval, then click on ''Ok''.&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/43c60c63-9cca-4b91-9c93-8d9358d4d408/2008-10-06_1640.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/43c60c63-9cca-4b91-9c93-8d9358d4d408/2008-10-06_1640.png&amp;quot; width=&amp;quot;368&amp;quot; height=&amp;quot;481&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Click ''Ok'' upon success!&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/b9814d5c-5f9b-4d2d-9083-0781cdc10710/2008-10-06_1645.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/b9814d5c-5f9b-4d2d-9083-0781cdc10710/2008-10-06_1645.png&amp;quot; width=&amp;quot;291&amp;quot; height=&amp;quot;119&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Here's a typical time series configuration file&lt;br /&gt;
 File generated by Mohid GIS&lt;br /&gt;
 &lt;br /&gt;
 DT_OUTPUT_TIME                :  600&lt;br /&gt;
 MAX_BUFFER_SIZE               :  10000&lt;br /&gt;
 &lt;br /&gt;
 Based on GridData file        : D:\Users\Soussou\GeneralData\kml2gis\cascais.dat&lt;br /&gt;
 &lt;br /&gt;
 Based on XYZ file             : D:\Users\Soussou\GeneralData\kml2gis\cascais.xyz&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;BeginTimeSerie&amp;gt;&lt;br /&gt;
 NAME                          : Station_ 0&lt;br /&gt;
 LOCALIZATION_I                :  65&lt;br /&gt;
 LOCALIZATION_J                :  127&lt;br /&gt;
 LOCALIZATION_K                :  1&lt;br /&gt;
 CENTER_CELL_X                 : -9.31735&lt;br /&gt;
 CENTER_CELL_Y                 :  38.67645&lt;br /&gt;
 ORIGINAL_X                    : -9.317324&lt;br /&gt;
 ORIGINAL_Y                    :  38.67641&lt;br /&gt;
 &amp;lt;EndTimeSerie&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Step 3 - Configure the model so as to output time series results==&lt;br /&gt;
&lt;br /&gt;
*Open the GUI project&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/cb12f137-4c9c-475d-a89d-ce75713122b0/2008-10-06_1700.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/cb12f137-4c9c-475d-a89d-ce75713122b0/2008-10-06_1700.png&amp;quot; width=&amp;quot;220&amp;quot; height=&amp;quot;175&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Select the MOHID project&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/9d400510-2d0f-49c6-aef0-530157e0aaf0/2008-10-06_1702.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/9d400510-2d0f-49c6-aef0-530157e0aaf0/2008-10-06_1702.png&amp;quot; width=&amp;quot;563&amp;quot; height=&amp;quot;412&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Open the Hydrodynamic module&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/97d24a5c-f192-449f-ba97-2b4406f2a27b/2008-10-06_1658.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/97d24a5c-f192-449f-ba97-2b4406f2a27b/2008-10-06_1658.png&amp;quot; width=&amp;quot;360&amp;quot; height=&amp;quot;214&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Add the following lines to the hydrodynamic configuration file, then save and close&lt;br /&gt;
 TIME_SERIE             : 1&lt;br /&gt;
 TIME_SERIE_LOCATION    : D:\Users\Soussou\GeneralData\TimeSeries\StLouisTimeSeries.dat&lt;br /&gt;
&lt;br /&gt;
==Step 4 - Run the model again and inspect the time-serie results==&lt;br /&gt;
&lt;br /&gt;
===Run the model===&lt;br /&gt;
If all is correctly configured, and all the input files are double-checked, we can hopefully start running our model!&lt;br /&gt;
&lt;br /&gt;
*Select ''Tools'' from menu, then ''Launch Mohid...''&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/6e5c5742-0f44-4538-8d57-9b25886c2acd/2008-10-06_1228.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/6e5c5742-0f44-4538-8d57-9b25886c2acd/2008-10-06_1228.png&amp;quot; width=&amp;quot;785&amp;quot; height=&amp;quot;231&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Select the ''Run_1'', then select ''Run Mohid'', then select ''Launch after Ok'', then click on ''Ok''&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/a4180c38-199d-48e8-8e40-e5d0684c0785/2008-10-06_1230.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/a4180c38-199d-48e8-8e40-e5d0684c0785/2008-10-06_1230.png&amp;quot; width=&amp;quot;616&amp;quot; height=&amp;quot;617&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Supervise the screen-outputs to check for any error, or to simply read the estimated end time of simulation&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/f536ea29-1ca2-4929-8dd4-3660f5a5bdb8/2008-10-06_1235.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/f536ea29-1ca2-4929-8dd4-3660f5a5bdb8/2008-10-06_1235.png&amp;quot; width=&amp;quot;668&amp;quot; height=&amp;quot;427&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Inspect the time-serie results===&lt;br /&gt;
*Click on the HDF analysis mode icon, then double-click on any new .srh file, which is a time serie result from the model that can be opened with the [[Time Series Editor]] program that comes bundled with the MOHID suite.&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/1ea6957c-2987-4d63-8653-ce588de76235/2008-10-06_1706.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/1ea6957c-2987-4d63-8653-ce588de76235/2008-10-06_1706.png&amp;quot; width=&amp;quot;467&amp;quot; height=&amp;quot;163&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Select ''elevation'' then click on ''Ok''&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/600af226-0e1e-49c9-b2a5-730d3ab427f2/2008-10-06_1912.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/600af226-0e1e-49c9-b2a5-730d3ab427f2/2008-10-06_1912.png&amp;quot; width=&amp;quot;400&amp;quot; height=&amp;quot;425&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Select the .srh file present, then click on ''Draw Chart''&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/1ea30144-725d-4ecb-a553-eb63d822d828/2008-10-06_1913.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/1ea30144-725d-4ecb-a553-eb63d822d828/2008-10-06_1913.png&amp;quot; width=&amp;quot;544&amp;quot; height=&amp;quot;407&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Inspect and admire the plotted time serie results :)&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/9ca0ca52-6ba6-4e9a-a709-c43156a30358/2008-10-06_1915.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/9ca0ca52-6ba6-4e9a-a709-c43156a30358/2008-10-06_1915.png&amp;quot; width=&amp;quot;576&amp;quot; height=&amp;quot;361&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Next steps==&lt;br /&gt;
*[[How to create discharges in MOHID]]&lt;br /&gt;
*[[How to use the Blumberg-Kantha radiation method]]&lt;br /&gt;
&lt;br /&gt;
==Previous steps==&lt;br /&gt;
*[[How_to_create_a_model_gridded_bathymetry%3F|How to create a model gridded bathymetry?]]&lt;br /&gt;
*[[How_to_generate_tide_for_Mohid%3F|How to generate tide for Mohid?]]&lt;br /&gt;
*[[How_to_configure_a_2D_model_forced_with_tide_with_MOHID|How to configure a MOHID 2D simulation with tide?]]&lt;br /&gt;
&lt;br /&gt;
==About the screen capturing tool==&lt;br /&gt;
The screen capturing tool used for this tutorial was the [http://www.jingproject.com/ Jing Project].&lt;br /&gt;
&lt;br /&gt;
[[Category:Graphical User Interfaces]]&lt;br /&gt;
[[Category:Help]]&lt;br /&gt;
[[Category:Mohid Water]]&lt;br /&gt;
[[Category:Exercises]]&lt;br /&gt;
[[Category:Example]]&lt;br /&gt;
[[Category:Tools]]&lt;br /&gt;
[[Category:How To]]&lt;/div&gt;</summary>
		<author><name>192.168.20.177</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=SmoothBatimNesting&amp;diff=857</id>
		<title>SmoothBatimNesting</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=SmoothBatimNesting&amp;diff=857"/>
				<updated>2008-11-04T12:37:38Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.177: &lt;/p&gt;
&lt;hr /&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>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=How_to_configure_a_2D_model_forced_with_tide_with_MOHID&amp;diff=324</id>
		<title>How to configure a 2D model forced with tide with MOHID</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=How_to_configure_a_2D_model_forced_with_tide_with_MOHID&amp;diff=324"/>
				<updated>2008-10-31T17:22:08Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.177: /* Step 5 - Inspect the results */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Before you start creating your own simulation, you may want to create a [[How_to_create_a_model_gridded_bathymetry%3F|bathymetry]] and [[How_to_generate_tide_for_Mohid%3F|tidal gauges]] first.&lt;br /&gt;
&lt;br /&gt;
==Step 1 - Create a new mohid GUI project==&lt;br /&gt;
*Create a new [[Mohid GUI]] project.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/06b8d3f5-6b83-4ce7-a5ed-e9779dcad6b5/2008-10-03_1031.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/06b8d3f5-6b83-4ce7-a5ed-e9779dcad6b5/2008-10-03_1031.png&amp;quot; width=&amp;quot;304&amp;quot; height=&amp;quot;208&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Name the project and select a location&lt;br /&gt;
&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/cca7b5ec-5944-4b1c-a6f7-d0a6a0a31d12/2008-10-03_1033.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/cca7b5ec-5944-4b1c-a6f7-d0a6a0a31d12/2008-10-03_1033.png&amp;quot; width=&amp;quot;408&amp;quot; height=&amp;quot;224&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Step 2 - Insert a new simulation and a new run==&lt;br /&gt;
*Right-click and select Insert Simulation&lt;br /&gt;
&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/f515d76f-6cf2-4f9f-9dd0-9b262d68c95c/2008-10-03_1036.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/f515d76f-6cf2-4f9f-9dd0-9b262d68c95c/2008-10-03_1036.png&amp;quot; width=&amp;quot;380&amp;quot; height=&amp;quot;199&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Name the simulation, browse and select a bathymetry file, browse and select a tidal gauge data&lt;br /&gt;
&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/47049e30-ae0d-4bc1-8d46-e4dd6ca01010/2008-10-03_1258.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/47049e30-ae0d-4bc1-8d46-e4dd6ca01010/2008-10-03_1258.png&amp;quot; width=&amp;quot;646&amp;quot; height=&amp;quot;354&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Right-click on the simulation and select ''New Run''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/77dc0705-8d6d-4ac9-ba05-39100a6f3297/2008-10-03_1307.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/77dc0705-8d6d-4ac9-ba05-39100a6f3297/2008-10-03_1307.png&amp;quot; width=&amp;quot;421&amp;quot; height=&amp;quot;182&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Edit at will the start date, the end date and the simulation time-step, then click ''Ok''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/581eedf9-ff18-4518-9a26-91f7a2c16802/2008-10-03_1309.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/581eedf9-ff18-4518-9a26-91f7a2c16802/2008-10-03_1309.png&amp;quot; width=&amp;quot;384&amp;quot; height=&amp;quot;296&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In order to choose an adequate time-step, &amp;lt;mathtex&amp;gt;\Delta t&amp;lt;/mathtex&amp;gt;, we recommend to aim to a 1D [http://en.wikipedia.org/wiki/Courant_number Courant number] of 15; &amp;lt;mathtex&amp;gt;Cr = c \frac{\Delta t}{\Delta x}&amp;lt;/mathtex&amp;gt;. In estuarine and shelf waters, you may estimate the system  maximum velocity, &amp;lt;mathtex&amp;gt;c&amp;lt;/mathtex&amp;gt;, with &lt;br /&gt;
&amp;lt;mathtex&amp;gt;c = \sqrt{g\,H} &amp;lt;/mathtex&amp;gt;&lt;br /&gt;
where &amp;lt;mathtex&amp;gt;H&amp;lt;/mathtex&amp;gt; is the maximum depth of your domain and &amp;lt;mathtex&amp;gt;g&amp;lt;/mathtex&amp;gt; is local gravitational field (approximately worth 10 m/s2). For example, with a 200 m resolution domain where maximum depth is 400 m, the approximate time step would be around 50 s.&lt;br /&gt;
&lt;br /&gt;
==Step 3 - Configure the modules==&lt;br /&gt;
To configure the modules simply double-click on the module icon in the GUI.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/00740582-0cc8-4ebb-9756-aa073c6eb6a6/2008-10-06_1057.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/00740582-0cc8-4ebb-9756-aa073c6eb6a6/2008-10-06_1057.png&amp;quot; width=&amp;quot;656&amp;quot; height=&amp;quot;208&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Warning: the configuration files are made of a list pairs of keywords and values. '''Only whitespaces are admitted.''' Any tabulation will yield in error during the reading of the keywords.&lt;br /&gt;
&lt;br /&gt;
===[[Module Model]]===&lt;br /&gt;
The module model determines the start and end times, as well as the model's time-step. It is probably already configured and should look like this:&lt;br /&gt;
&lt;br /&gt;
 START                         : 2008 10 28 12 0 0&lt;br /&gt;
 END                           : 2008 10 31 12 0 0&lt;br /&gt;
 DT                            : 50.&lt;br /&gt;
 VARIABLEDT                    : 0&lt;br /&gt;
 GMTREFERENCE                  : 0&lt;br /&gt;
 SPLITTING                     : Double_Splitting&lt;br /&gt;
&lt;br /&gt;
===[[Module Atmosphere]]===&lt;br /&gt;
The module atmosphere configures the atmospheric forcing such as wind, solar radiation, latent and sensible heat sea-air exchange, infrared radiation.&lt;br /&gt;
In this test-case, we have no atmospheric forcing, thus the file should be left in blank.&lt;br /&gt;
&lt;br /&gt;
===[[Module Geometry]]===&lt;br /&gt;
The module geometry describes the vertical discretization of the domain. In this test-case we have a single vertical layer, since the model is 2D.&lt;br /&gt;
&lt;br /&gt;
 MINIMUMDEPTH            : 0.1000&lt;br /&gt;
  &lt;br /&gt;
 &amp;lt;begindomain&amp;gt;&lt;br /&gt;
 ID                      : 1&lt;br /&gt;
 TYPE                    : SIGMA&lt;br /&gt;
 LAYERS                  : 1&lt;br /&gt;
 LAYERTHICKNESS          : 1.0000&lt;br /&gt;
 DOMAINDEPTH             : -99.00&lt;br /&gt;
 TOLERANCEDEPTH          : 0.0500&lt;br /&gt;
 &amp;lt;enddomain&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===[[Module InterfaceWaterAir]]===&lt;br /&gt;
This module parameterizes the exchanges of momentum, radiation, heat and salt between the atmosphere and the water. In this case, we simply need to define the surface rugosity.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;begin_rugosity&amp;gt;&lt;br /&gt;
 INITIALIZATION_METHOD        : CONSTANT&lt;br /&gt;
 DEFAULTVALUE                 : 0.0025&lt;br /&gt;
 &amp;lt;end_rugosity&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===[[Module InterfaceSedimentWater]]===&lt;br /&gt;
This module parameterizes the exchanges of momentum, mass and heat between the sediments and the water. In this case, we simply need to define the bottom rugosity.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;begin_rugosity&amp;gt;&lt;br /&gt;
 INITIALIZATION_METHOD        : CONSTANT&lt;br /&gt;
 DEFAULTVALUE                 : 0.0025&lt;br /&gt;
 &amp;lt;end_rugosity&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===[[Module Hydrodynamic]]===&lt;br /&gt;
This module parameterizes the numerical model solving the advection-diffusion equations of momentum combined with the continuity equation. It includes also boundary conditions definitions, as well as initialization conditions. Finally, assimilation schemes of U, V or water level. The momentum equations are also modularized, in the sense that each of its components may, or may not, be deactivated.&lt;br /&gt;
&lt;br /&gt;
In this case we are simply choosing a TVD spatial numerical scheme, while adding the Coriolis force to the momentum equations. Since the model is 2D and has homogeneous density, the baroclinic term in the pressure gradient is deactivated, for performance sake. The model starts at rest and has the water level forced with tide at the open-boundaries. The model outputs results every 3 hours. Furthermore it will also output residual (averaged) hydrodynamic results and a domain-integrated energy time-serie.&lt;br /&gt;
&lt;br /&gt;
 ADV_METHOD_H            : 4&lt;br /&gt;
 ADV_METHOD_V            : 4&lt;br /&gt;
 TVD_LIMIT_H             : 4&lt;br /&gt;
 TVD_LIMIT_V             : 4&lt;br /&gt;
 &lt;br /&gt;
 BAROCLINIC              : 0&lt;br /&gt;
 &lt;br /&gt;
 CORIOLIS                : 1&lt;br /&gt;
 &lt;br /&gt;
 TIDE                    : 1&lt;br /&gt;
 &lt;br /&gt;
 OUTPUT_TIME             : 0. 10800.&lt;br /&gt;
 &lt;br /&gt;
 RESIDUAL                : 1&lt;br /&gt;
 ENERGY                  : 1&lt;br /&gt;
&lt;br /&gt;
===[[Module Turbulence]]===&lt;br /&gt;
The module Turbulence configures how the horizontal and vertical sub-grid scale turbulent viscosities are calculated. In this case we opt for constant sub-grid scale viscosities.&lt;br /&gt;
&lt;br /&gt;
 VISCOSITY_V             : 0.0010&lt;br /&gt;
 VISCOSITY_H             : 20&lt;br /&gt;
&lt;br /&gt;
===[[Module WaterProperties]]===&lt;br /&gt;
The module Waterproperties applies the advection-diffusion equation to any eulerian tracer. It could be the salinity, the temperature, or any other property that is advected and diffused in the water. In this case we have a homogeneous density, thus we don't need to calculate the density field, thus there's no need to transport salinity or temperature or any other waterproperty for that matter. Hence we leave a blank file in the module Waterproperties in this test-case.&lt;br /&gt;
&lt;br /&gt;
==Step 4 - Running the model==&lt;br /&gt;
If all is correctly configured, and all the input files are double-checked, we can hopefully start running our model!&lt;br /&gt;
&lt;br /&gt;
*Select ''Tools'' from menu, then ''Launch Mohid...''&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/6e5c5742-0f44-4538-8d57-9b25886c2acd/2008-10-06_1228.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/6e5c5742-0f44-4538-8d57-9b25886c2acd/2008-10-06_1228.png&amp;quot; width=&amp;quot;785&amp;quot; height=&amp;quot;231&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Select the ''Run_1'', then select ''Run Mohid'', then select ''Launch after Ok'', then click on ''Ok''&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/a4180c38-199d-48e8-8e40-e5d0684c0785/2008-10-06_1230.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/a4180c38-199d-48e8-8e40-e5d0684c0785/2008-10-06_1230.png&amp;quot; width=&amp;quot;616&amp;quot; height=&amp;quot;617&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Supervise the screen-outputs to check for any error, or to simply read the estimated end time of simulation&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/f536ea29-1ca2-4929-8dd4-3660f5a5bdb8/2008-10-06_1235.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/f536ea29-1ca2-4929-8dd4-3660f5a5bdb8/2008-10-06_1235.png&amp;quot; width=&amp;quot;668&amp;quot; height=&amp;quot;427&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Step 5 - Inspect the results==&lt;br /&gt;
Once the model has finished running, (or while the model is running, after it has created a few HDF5 outputs), you will want to switch in analysis mode and graphically inspect the results to see if all went well (or is going well). We will proceed to visualize the instantaneous velocity as a vector field, and the instantaneous water level as a colormap field. The proceedings are exactly the same for any other variables.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/668b5840-a5eb-4763-adf4-91031475df86/2008-10-06_1248.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/668b5840-a5eb-4763-adf4-91031475df86/2008-10-06_1248.png&amp;quot; width=&amp;quot;725&amp;quot; height=&amp;quot;140&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Click on HDF file, then click on Grid HDF group&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/62494ac5-780c-40bf-a04d-117fab259c9a/2008-10-06_1252.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/62494ac5-780c-40bf-a04d-117fab259c9a/2008-10-06_1252.png&amp;quot; width=&amp;quot;633&amp;quot; height=&amp;quot;428&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Map the GridY, GridX, VerticalZ and Mapping with the Group items Latitude, Longitude, VerticalZ and OpenPoints, respectively.&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/a6311453-fd93-4ff4-8023-d1538e263330/2008-10-31_1715.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/a6311453-fd93-4ff4-8023-d1538e263330/2008-10-31_1715.png&amp;quot; width=&amp;quot;633&amp;quot; height=&amp;quot;428&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Map the time HDF Group to the Time selection button&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/1e8c0033-8310-407d-8806-84063acedda8/2008-10-06_1354.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/1e8c0033-8310-407d-8806-84063acedda8/2008-10-06_1354.png&amp;quot; width=&amp;quot;633&amp;quot; height=&amp;quot;428&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Map the Velocity U, Velocity V and Water level HDF results group's items to the Vector X, Vector Y and Color selection buttons, respectively&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/5d04934d-1e86-4423-9d4e-9911b1de98fa/2008-10-06_1407.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/5d04934d-1e86-4423-9d4e-9911b1de98fa/2008-10-06_1407.png&amp;quot; width=&amp;quot;633&amp;quot; height=&amp;quot;428&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*From the ''Action menu'', select ''Run OpenGL''&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/cd534e3b-85ce-4360-8d41-ced22a250d14/2008-10-06_1412.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/cd534e3b-85ce-4360-8d41-ced22a250d14/2008-10-06_1412.png&amp;quot; width=&amp;quot;380&amp;quot; height=&amp;quot;162&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Select ''settings''&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/85dfbcf2-0953-440f-ab04-dda08d871d05/2008-10-06_1417.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/85dfbcf2-0953-440f-ab04-dda08d871d05/2008-10-06_1417.png&amp;quot; width=&amp;quot;167&amp;quot; height=&amp;quot;254&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Select ''Color''&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/09e8730a-97bc-4c9a-9f05-4845044dadc3/2008-10-06_1419.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/09e8730a-97bc-4c9a-9f05-4845044dadc3/2008-10-06_1419.png&amp;quot; width=&amp;quot;302&amp;quot; height=&amp;quot;465&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Define the minimum water level (m) and the maximum water level (m). Then click on ''Ok''.&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/a6cc16ef-6a55-46e9-9087-0f91b5434cd9/2008-10-06_1433.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/a6cc16ef-6a55-46e9-9087-0f91b5434cd9/2008-10-06_1433.png&amp;quot; width=&amp;quot;302&amp;quot; height=&amp;quot;465&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Select ''Vectors''&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/e3980360-d91a-40fb-9f3d-494b69f3803e/2008-10-06_1421.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/e3980360-d91a-40fb-9f3d-494b69f3803e/2008-10-06_1421.png&amp;quot; width=&amp;quot;302&amp;quot; height=&amp;quot;465&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Define the vector ''Scale'' to 0.2 and the vector stepping along X and along Y to 6. Then click on ''Ok''.&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/38b5013e-19c3-484c-8f3d-b61bc6d6d702/2008-10-06_1434.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/38b5013e-19c3-484c-8f3d-b61bc6d6d702/2008-10-06_1434.png&amp;quot; width=&amp;quot;272&amp;quot; height=&amp;quot;360&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Render the results, frame by frame&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/af97e06b-aea2-468a-9a64-9de3fd4d290a/2008-10-06_1455.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/af97e06b-aea2-468a-9a64-9de3fd4d290a/2008-10-06_1455.png&amp;quot; width=&amp;quot;619&amp;quot; height=&amp;quot;463&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If all went well, you should see results with patterns and values as expected for the domain. Now you can try to add time series, or to improve the open boundary conditions ...&lt;br /&gt;
&lt;br /&gt;
==Next steps==&lt;br /&gt;
*[[How to create MOHID timeseries outputs]]&lt;br /&gt;
*[[How to create discharges in MOHID]]&lt;br /&gt;
*[[How to use the Blumberg-Kantha radiation method]]&lt;br /&gt;
&lt;br /&gt;
==Previous steps==&lt;br /&gt;
*[[How_to_create_a_model_gridded_bathymetry%3F|How to create a model gridded bathymetry?]]&lt;br /&gt;
*[[How_to_generate_tide_for_Mohid%3F|How to generate tide for Mohid?]]&lt;br /&gt;
&lt;br /&gt;
==About the screen capturing tool==&lt;br /&gt;
The screen capturing tool used for this tutorial was the [http://www.jingproject.com/ Jing Project].&lt;br /&gt;
&lt;br /&gt;
[[Category:Graphical User Interfaces]]&lt;br /&gt;
[[Category:Help]]&lt;br /&gt;
[[Category:Mohid Water]]&lt;br /&gt;
[[Category:Exercises]]&lt;br /&gt;
[[Category:Example]]&lt;br /&gt;
[[Category:Tools]]&lt;br /&gt;
[[Category:How To]]&lt;/div&gt;</summary>
		<author><name>192.168.20.177</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=How_to_create_discharges_in_MOHID&amp;diff=330</id>
		<title>How to create discharges in MOHID</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=How_to_create_discharges_in_MOHID&amp;diff=330"/>
				<updated>2008-10-31T17:19:42Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.177: /* Inspect the results */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this tutorial we will continue to work on the simulation we built on the [[How_to_configure_a_2D_model_forced_with_tide_with_MOHID|previous tutorial]] and we will show how to add an instantaneous discharge and a gradual discharge in the model, by setting up and configuring the [[Module Discharges]].&lt;br /&gt;
&lt;br /&gt;
==Step 1 - Identify the discharge location==&lt;br /&gt;
Right now we're going to identify exactly what are the discharges locations. We want to simulate an accidental instantaneous discharge of a passive tracer and a continuous discharge as a function of time nearby a dam.&lt;br /&gt;
&lt;br /&gt;
===In Google Earth===&lt;br /&gt;
[[Google_Earth#Configure_Google_Earth|Make sure you have Google Earth correctly configured!!]]&lt;br /&gt;
&lt;br /&gt;
*Select the placemark icon, give the discharge a name, and give it a position&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/7a8d87b3-eb5b-46aa-96d0-3b6ef894828d/2008-10-07_1210.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/7a8d87b3-eb5b-46aa-96d0-3b6ef894828d/2008-10-07_1210.png&amp;quot; width=&amp;quot;650&amp;quot; height=&amp;quot;436&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Repeat the procedure, for the point nearby the dam.&lt;br /&gt;
&lt;br /&gt;
*Save the location by right-clicking on them, and selecting ''save as...''&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/bcd3dd5f-869e-41a2-b89f-fc3e6fbbe64b/2008-10-07_1421.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/bcd3dd5f-869e-41a2-b89f-fc3e6fbbe64b/2008-10-07_1421.png&amp;quot; width=&amp;quot;326&amp;quot; height=&amp;quot;273&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Select a folder, choose a filename, select ''kml'' filetype, click on ''save'' button&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/5c224dd7-1089-433b-999c-2c838b7a94ef/2008-10-07_1423.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/5c224dd7-1089-433b-999c-2c838b7a94ef/2008-10-07_1423.png&amp;quot; width=&amp;quot;563&amp;quot; height=&amp;quot;412&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===In Mohid GIS===&lt;br /&gt;
&lt;br /&gt;
====Convert from kml to xyz====&lt;br /&gt;
*Get the [http://www.mohid.com/hydrogroup/data_sources/kml2mohid.exe kml2mohid.exe] program and save it next to the kml file, in the same folder, then type from the command line shell:&lt;br /&gt;
 &amp;gt; [http://www.mohid.com/hydrogroup/data_sources/kml2mohid.exe kml2mohid.exe] discharges.kml&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/feff4f5b-a082-4822-8f8a-9c9ba0f291bf/2008-10-07_1428.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/feff4f5b-a082-4822-8f8a-9c9ba0f291bf/2008-10-07_1428.png&amp;quot; width=&amp;quot;532&amp;quot; height=&amp;quot;167&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Add data as a points GIS layer, identify corresponding cell grids====&lt;br /&gt;
*Open the Mohid GIS, and open the GIS project we left before:&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/61ce1989-e762-4378-80ad-0d0d33bce34d/2008-10-07_1453.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/61ce1989-e762-4378-80ad-0d0d33bce34d/2008-10-07_1453.png&amp;quot; width=&amp;quot;220&amp;quot; height=&amp;quot;227&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/40b33990-b40d-4130-a2b6-de731493dca0/2008-10-07_1458.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/40b33990-b40d-4130-a2b6-de731493dca0/2008-10-07_1458.png&amp;quot; width=&amp;quot;459&amp;quot; height=&amp;quot;366&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Add new data item from the ''Data Items menu''&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/0f6a14a1-4606-49b2-a42b-bb8673bc4119/2008-10-07_1502.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/0f6a14a1-4606-49b2-a42b-bb8673bc4119/2008-10-07_1502.png&amp;quot; width=&amp;quot;256&amp;quot; height=&amp;quot;211&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/2ce6326b-71e2-409b-8d78-2a478fb46011/2008-10-07_1506.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/2ce6326b-71e2-409b-8d78-2a478fb46011/2008-10-07_1506.png&amp;quot; width=&amp;quot;563&amp;quot; height=&amp;quot;412&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Drag'n drop the xyz points data layer to the top, then right-click it and select ''Properties''&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/ebb9ebf0-e343-4f53-9464-59f0f267571c/2008-10-07_1519.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/ebb9ebf0-e343-4f53-9464-59f0f267571c/2008-10-07_1519.png&amp;quot; width=&amp;quot;329&amp;quot; height=&amp;quot;165&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Set size to 6, then select ''Pick Color''&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/8a2fd395-9ac0-468a-a72e-d7b4de394d2c/2008-10-07_1522.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/8a2fd395-9ac0-468a-a72e-d7b4de394d2c/2008-10-07_1522.png&amp;quot; width=&amp;quot;364&amp;quot; height=&amp;quot;156&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Pick a bright color, then click on ''Ok'', twice&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/de8f8f1c-0905-4c22-a3c4-aff4125aeee9/2008-10-07_1524.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/de8f8f1c-0905-4c22-a3c4-aff4125aeee9/2008-10-07_1524.png&amp;quot; width=&amp;quot;348&amp;quot; height=&amp;quot;349&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Check the grid layer, and make sure that it is on top of the grid data layer, so it is displayed in the view area of the MOHID GIS&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/08418f4b-d051-4753-adce-8bcef1c644b6/2008-10-07_1528.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/08418f4b-d051-4753-adce-8bcef1c644b6/2008-10-07_1528.png&amp;quot; width=&amp;quot;317&amp;quot; height=&amp;quot;84&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Select the ''area information'' icon, then select a small area containing the discharge point. Then read the I and J grid coordinates for later usage. Repeat this process for every discharge point.&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/26cbaf60-6738-4f88-bea9-ff84d917ee55/2008-10-07_1543.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/26cbaf60-6738-4f88-bea9-ff84d917ee55/2008-10-07_1543.png&amp;quot; width=&amp;quot;365&amp;quot; height=&amp;quot;414&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Step 2 - Create a time-serie simulating the discharge==&lt;br /&gt;
In order to create a time-serie that simulates a continuous discharge (to simulate, say, a river), you must open a new text file and format the data accordingly with this sample&lt;br /&gt;
&lt;br /&gt;
 TIME_UNITS  :  DAYS&lt;br /&gt;
 SERIE_INITIAL_DATA  :   2008    10   27   0   0   0&lt;br /&gt;
 &lt;br /&gt;
 Time  Flow     T     S&lt;br /&gt;
  days  m3/s     C   psu&lt;br /&gt;
     1     2     3     4&lt;br /&gt;
 &amp;lt;BeginTimeSerie&amp;gt;&lt;br /&gt;
 0  1520.00  11.4  0.0&lt;br /&gt;
 1  1440.00  11.3  0.0&lt;br /&gt;
 2  1340.00  11.2  0.0&lt;br /&gt;
 3  1290.00  11.2  0.0&lt;br /&gt;
 4  1270.00  11.1  0.0&lt;br /&gt;
 5  1200.00  11.1  0.0&lt;br /&gt;
 6  1160.00  11.0  0.0&lt;br /&gt;
 7  1190.00  10.9  0.0&lt;br /&gt;
 8  1320.00  10.9  0.0&lt;br /&gt;
 &amp;lt;EndTimeSerie&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, once you have created a time-serie with the flow discharge, you simply save it in your [[MohidWater]] project ''GeneralData'' folder.&lt;br /&gt;
&lt;br /&gt;
Notes: the time containing column should be composed of integers. Thus, adjust the TIME_UNITS parameter accordingly. The flow column is mandatory, whereas the T &lt;br /&gt;
(temperature) and S (salinity) columns in the example are optional.&lt;br /&gt;
&lt;br /&gt;
==Step 3 - Configure the Discharges module and run MohidWater==&lt;br /&gt;
&lt;br /&gt;
===Configure the [[Module Discharges]]===&lt;br /&gt;
&lt;br /&gt;
*Open the project from the [[How_to_configure_a_2D_model_forced_with_tide_with_MOHID|last tutorial]]&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/a51a3fd4-4a4f-4351-bc4e-c50de4058182/2008-10-07_1652.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/a51a3fd4-4a4f-4351-bc4e-c50de4058182/2008-10-07_1652.png&amp;quot; width=&amp;quot;224&amp;quot; height=&amp;quot;116&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/eb9ffe1b-7980-432a-9324-5627f50e6772/2008-10-07_1658.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/eb9ffe1b-7980-432a-9324-5627f50e6772/2008-10-07_1658.png&amp;quot; width=&amp;quot;563&amp;quot; height=&amp;quot;412&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Right-click the ''run_1'' and select ''Properties''&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/40c98f70-e478-44c5-b857-7b39a88dd761/2008-10-07_1700.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/40c98f70-e478-44c5-b857-7b39a88dd761/2008-10-07_1700.png&amp;quot; width=&amp;quot;280&amp;quot; height=&amp;quot;201&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Select in the ''associated modules'' the ''module discharges''&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/681ffdee-efd9-4ba4-9cfc-6cb2c28d5e15/2008-10-07_1721.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/681ffdee-efd9-4ba4-9cfc-6cb2c28d5e15/2008-10-07_1721.png&amp;quot; width=&amp;quot;357&amp;quot; height=&amp;quot;312&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Edit the [[Module Discharges]] according to the sample below, then save it. Notice we're adding two discharges: a continuous discharge, and an accidental discharge. Notice also that we're adding a single property, salinity. Properties are optional; there could be several as well as there could be none.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;begindischarge&amp;gt;&lt;br /&gt;
 NAME                    : Dam discharge&lt;br /&gt;
 DESCRIPTION             : Daily timeserie for the year 2008&lt;br /&gt;
 I_CELL                  : 280&lt;br /&gt;
 J_CELL                  : 222&lt;br /&gt;
 DISCHARGE_UNIFORM       : 1&lt;br /&gt;
 DATA_BASE_FILE          : D:\Aplica\Senegal-Test\GeneralData\Discharges\river_discharge_sample2.srw&lt;br /&gt;
 FLOW_COLUMN             : 2&lt;br /&gt;
 TIME_SERIE_COLUMN       : 1&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginproperty&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                   : salinity&lt;br /&gt;
 UNITS                  : psu&lt;br /&gt;
 DESCRIPTION            : freshwater accidental discharge&lt;br /&gt;
 CONSTANT_CONC          : 1&lt;br /&gt;
 DEFAULTVALUE           : 0.01&lt;br /&gt;
 &amp;lt;&amp;lt;endproperty&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;enddischarge&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;begindischarge&amp;gt;&lt;br /&gt;
 NAME                   : Accidental discharge&lt;br /&gt;
 DESCRIPTION            : Daily timeserie for the year 2008&lt;br /&gt;
 I_CELL                 : 131&lt;br /&gt;
 J_CELL                 : 165&lt;br /&gt;
 DISCHARGE_UNIFORM      : 1&lt;br /&gt;
 DATA_BASE_FILE         : D:\Aplica\Senegal-Test\GeneralData\Discharges\river_discharge_sample2.srw&lt;br /&gt;
 FLOW_COLUMN            : 2&lt;br /&gt;
 TIME_SERIE_COLUMN      : 1&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginproperty&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                   : salinity&lt;br /&gt;
 UNITS                  : psu&lt;br /&gt;
 DESCRIPTION            : freshwater accidental discharge&lt;br /&gt;
 CONSTANT_CONC          : 1&lt;br /&gt;
 DEFAULTVALUE           : 0.01&lt;br /&gt;
 &amp;lt;&amp;lt;endproperty&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;enddischarge&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Edit the [[Module Hydrodynamic]], add the following line, then save it&lt;br /&gt;
 WATER_DISCHARGES        : 1&lt;br /&gt;
&lt;br /&gt;
*If there's a property in the discharge (in occurence, there's salinity), then edit the [[Module WaterProperties]], and add the following lines, then save it. The single most relevant pair parameter/value for discharges in the module WaterProperties is '''DISCHARGES : 1'''.&lt;br /&gt;
&lt;br /&gt;
''Notes: Relatively to the project from the [[How_to_configure_a_2D_model_forced_with_tide_with_MOHID|last tutorial]], we're adding the salinity property as a passive tracer. It will be advected with the same advection-diffusion method used for momentum and it will also yield a time serie for the same locations as the hydrodynamic's and it will also results every three hours in another HDF5 file. The initial model salinity will be homogeneous, with its default value.''&lt;br /&gt;
&lt;br /&gt;
 OUTPUT_TIME             : 0 10800.&lt;br /&gt;
 &lt;br /&gt;
 ADV_METHOD_H            : 4&lt;br /&gt;
 ADV_METHOD_V            : 4&lt;br /&gt;
 TVD_LIMIT_H             : 4&lt;br /&gt;
 TVD_LIMIT_V             : 4&lt;br /&gt;
 &lt;br /&gt;
 TIME_SERIE              : 1&lt;br /&gt;
 TIME_SERIE_LOCATION     : D:\Users\Soussou\GeneralData\TimeSeries\StLouisTimeSeries.dat&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;beginproperty&amp;gt;&lt;br /&gt;
 NAME                        : salinity&lt;br /&gt;
 UNITS                       : ºC&lt;br /&gt;
 DESCRIPTION                 : salinity by default is 36&lt;br /&gt;
 DEFAULTVALUE                : 36&lt;br /&gt;
 &lt;br /&gt;
 ADVECTION_DIFFUSION         : 1&lt;br /&gt;
 OUTPUT_HDF                  : 1&lt;br /&gt;
 DISCHARGES                  : 1&lt;br /&gt;
 &lt;br /&gt;
 TIME_SERIE                  : 1&lt;br /&gt;
 &amp;lt;endproperty&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Run Mohid and inspect the results===&lt;br /&gt;
If all is correctly configured, and all the input files are double-checked, we can hopefully start running our model!&lt;br /&gt;
&lt;br /&gt;
====Run Mohid====&lt;br /&gt;
*Select ''Tools'' from menu, then ''Launch Mohid...''&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/6e5c5742-0f44-4538-8d57-9b25886c2acd/2008-10-06_1228.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/6e5c5742-0f44-4538-8d57-9b25886c2acd/2008-10-06_1228.png&amp;quot; width=&amp;quot;785&amp;quot; height=&amp;quot;231&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Select the ''Run_1'', then select ''Run Mohid'', then select ''Launch after Ok'', then click on ''Ok''&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/a4180c38-199d-48e8-8e40-e5d0684c0785/2008-10-06_1230.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/a4180c38-199d-48e8-8e40-e5d0684c0785/2008-10-06_1230.png&amp;quot; width=&amp;quot;616&amp;quot; height=&amp;quot;617&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Supervise the screen-outputs to check for any error, or to simply read the estimated end time of simulation&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/f536ea29-1ca2-4929-8dd4-3660f5a5bdb8/2008-10-06_1235.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/f536ea29-1ca2-4929-8dd4-3660f5a5bdb8/2008-10-06_1235.png&amp;quot; width=&amp;quot;668&amp;quot; height=&amp;quot;427&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Inspect the results====&lt;br /&gt;
&lt;br /&gt;
Once the model has finished running, (or while the model is running, after it has created a few HDF5 outputs), you will want to switch in analysis mode and graphically inspect the results to see if all went well (or is going well). We will proceed to visualize the instantaneous velocity as a vector field, and the instantaneous water level as a colormap field. The proceedings are exactly the same for any other variables.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/668b5840-a5eb-4763-adf4-91031475df86/2008-10-06_1248.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/668b5840-a5eb-4763-adf4-91031475df86/2008-10-06_1248.png&amp;quot; width=&amp;quot;725&amp;quot; height=&amp;quot;140&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Click on HDF file, then click on Grid HDF group&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/62494ac5-780c-40bf-a04d-117fab259c9a/2008-10-06_1252.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/62494ac5-780c-40bf-a04d-117fab259c9a/2008-10-06_1252.png&amp;quot; width=&amp;quot;633&amp;quot; height=&amp;quot;428&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Map the GridY, GridX, VerticalZ and Mapping with the Group items Latitude, Longitude, VerticalZ and OpenPoints, respectively.&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/a6311453-fd93-4ff4-8023-d1538e263330/2008-10-31_1715.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/a6311453-fd93-4ff4-8023-d1538e263330/2008-10-31_1715.png&amp;quot; width=&amp;quot;633&amp;quot; height=&amp;quot;428&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Map the time HDF Group to the Time selection button&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/1e8c0033-8310-407d-8806-84063acedda8/2008-10-06_1354.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/1e8c0033-8310-407d-8806-84063acedda8/2008-10-06_1354.png&amp;quot; width=&amp;quot;633&amp;quot; height=&amp;quot;428&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Map the Velocity U, Velocity V and Water level HDF results group's items to the Vector X, Vector Y and Color selection buttons, respectively&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/5d04934d-1e86-4423-9d4e-9911b1de98fa/2008-10-06_1407.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/5d04934d-1e86-4423-9d4e-9911b1de98fa/2008-10-06_1407.png&amp;quot; width=&amp;quot;633&amp;quot; height=&amp;quot;428&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*From the ''Action menu'', select ''Run OpenGL''&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/cd534e3b-85ce-4360-8d41-ced22a250d14/2008-10-06_1412.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/cd534e3b-85ce-4360-8d41-ced22a250d14/2008-10-06_1412.png&amp;quot; width=&amp;quot;380&amp;quot; height=&amp;quot;162&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
*Select ''settings''&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/85dfbcf2-0953-440f-ab04-dda08d871d05/2008-10-06_1417.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/85dfbcf2-0953-440f-ab04-dda08d871d05/2008-10-06_1417.png&amp;quot; width=&amp;quot;167&amp;quot; height=&amp;quot;254&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Select ''Color''&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/09e8730a-97bc-4c9a-9f05-4845044dadc3/2008-10-06_1419.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/09e8730a-97bc-4c9a-9f05-4845044dadc3/2008-10-06_1419.png&amp;quot; width=&amp;quot;302&amp;quot; height=&amp;quot;465&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Define the minimum water level (m) and the maximum water level (m). Then click on ''Ok''.&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/a6cc16ef-6a55-46e9-9087-0f91b5434cd9/2008-10-06_1433.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/a6cc16ef-6a55-46e9-9087-0f91b5434cd9/2008-10-06_1433.png&amp;quot; width=&amp;quot;302&amp;quot; height=&amp;quot;465&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Select ''Vectors''&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/e3980360-d91a-40fb-9f3d-494b69f3803e/2008-10-06_1421.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/e3980360-d91a-40fb-9f3d-494b69f3803e/2008-10-06_1421.png&amp;quot; width=&amp;quot;302&amp;quot; height=&amp;quot;465&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Define the vector ''Scale'' to 0.2 and the vector stepping along X and along Y to 6. Then click on ''Ok''.&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/38b5013e-19c3-484c-8f3d-b61bc6d6d702/2008-10-06_1434.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/38b5013e-19c3-484c-8f3d-b61bc6d6d702/2008-10-06_1434.png&amp;quot; width=&amp;quot;272&amp;quot; height=&amp;quot;360&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If all went well, you should see results with patterns and values as expected for the domain.&lt;br /&gt;
&lt;br /&gt;
*Here is the result of discharging water in a river&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/e5b5b20b-3fdc-48d8-bfef-90612aec0a19/2008-10-08_1057.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/e5b5b20b-3fdc-48d8-bfef-90612aec0a19/2008-10-08_1057.png&amp;quot; width=&amp;quot;507&amp;quot; height=&amp;quot;356&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Now, in order to render the results with the salinity map, you need to close the current post-processor rendering&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/d45e6644-21f5-4bbf-8d31-f20011b6876c/2008-10-09_1205.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/d45e6644-21f5-4bbf-8d31-f20011b6876c/2008-10-09_1205.png&amp;quot; width=&amp;quot;167&amp;quot; height=&amp;quot;254&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*delete all the color layer instants of waterlevel, &lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/a29f6bbd-1c56-45f8-9fd2-4ba7643fe3de/2008-10-09_1208.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/a29f6bbd-1c56-45f8-9fd2-4ba7643fe3de/2008-10-09_1208.png&amp;quot; width=&amp;quot;633&amp;quot; height=&amp;quot;428&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*open the waterproperties hdf5 file, &lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/aa6cdde3-5fef-4992-ae56-a4c7d6449b8f/2008-10-09_1211.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/aa6cdde3-5fef-4992-ae56-a4c7d6449b8f/2008-10-09_1211.png&amp;quot; width=&amp;quot;184&amp;quot; height=&amp;quot;165&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/e5ae6f7a-6ae3-48b8-9de0-f0576843a6fc/2008-10-09_1214.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/e5ae6f7a-6ae3-48b8-9de0-f0576843a6fc/2008-10-09_1214.png&amp;quot; width=&amp;quot;563&amp;quot; height=&amp;quot;412&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*load the salinity property as a color layer, &lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/088bdb4e-b673-442f-be8d-2ff9e29db9f3/2008-10-09_1218.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/088bdb4e-b673-442f-be8d-2ff9e29db9f3/2008-10-09_1218.png&amp;quot; width=&amp;quot;633&amp;quot; height=&amp;quot;428&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*re-run in OpenGL mode&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/48d4a2b3-436c-434d-8e2e-542477472af8/2008-10-09_1221.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/48d4a2b3-436c-434d-8e2e-542477472af8/2008-10-09_1221.png&amp;quot; width=&amp;quot;205&amp;quot; height=&amp;quot;155&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Edit the color layer settings to a minimum of 0 and a maximum of 36.5 (as salinity in this case varies between these extrema). &lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/59392676-6cfe-42c3-8472-0c1ce9abb3b5/2008-10-09_1223.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/59392676-6cfe-42c3-8472-0c1ce9abb3b5/2008-10-09_1223.png&amp;quot; width=&amp;quot;167&amp;quot; height=&amp;quot;254&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/f0f3cf2f-50bd-4165-8428-613640c72646/2008-10-09_1224.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/f0f3cf2f-50bd-4165-8428-613640c72646/2008-10-09_1224.png&amp;quot; width=&amp;quot;171&amp;quot; height=&amp;quot;126&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/b1284e35-4589-40e5-93f9-45ecca595422/2008-10-09_1225.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/b1284e35-4589-40e5-93f9-45ecca595422/2008-10-09_1225.png&amp;quot; width=&amp;quot;272&amp;quot; height=&amp;quot;417&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Once you apply with the settings, you can now render each frame and watch the freshwater discharge flow along your simulation. Thus, here is the result of an accidental freshwater discharge&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/5f5e6468-a7ad-4884-9511-b0bd02c5e6f0/2008-10-08_1246.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/5f5e6468-a7ad-4884-9511-b0bd02c5e6f0/2008-10-08_1246.png&amp;quot; width=&amp;quot;541&amp;quot; height=&amp;quot;345&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Next steps==&lt;br /&gt;
*[[How to use the Blumberg-Kantha radiation method]]&lt;br /&gt;
&lt;br /&gt;
==Previous steps==&lt;br /&gt;
*[[Software to run Mohid]]&lt;br /&gt;
*[[How_to_create_a_model_gridded_bathymetry%3F|How to create a model gridded bathymetry?]]&lt;br /&gt;
*[[How_to_generate_tide_for_Mohid%3F|How to generate tide for Mohid?]]&lt;br /&gt;
*[[How_to_configure_a_2D_model_forced_with_tide_with_MOHID|How to configure a MOHID 2D simulation with tide?]]&lt;br /&gt;
*[[How_to_create_MOHID_timeseries_outputs|How to create MOHID time series outputs?]]&lt;br /&gt;
&lt;br /&gt;
==About the screen capturing tool==&lt;br /&gt;
The screen capturing tool used for this tutorial was the [http://www.jingproject.com/ Jing Project].&lt;br /&gt;
&lt;br /&gt;
[[Category:Graphical User Interfaces]]&lt;br /&gt;
[[Category:Help]]&lt;br /&gt;
[[Category:Mohid Water]]&lt;br /&gt;
[[Category:Exercises]]&lt;br /&gt;
[[Category:Example]]&lt;br /&gt;
[[Category:Tools]]&lt;br /&gt;
[[Category:How To]]&lt;/div&gt;</summary>
		<author><name>192.168.20.177</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Software_to_run_Mohid&amp;diff=863</id>
		<title>Software to run Mohid</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Software_to_run_Mohid&amp;diff=863"/>
				<updated>2008-10-29T16:40:39Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.177: /* Tutorials */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In order to run Mohid you need the following software&lt;br /&gt;
&lt;br /&gt;
==System requirements==&lt;br /&gt;
* Windows XP or Vista&lt;br /&gt;
* 1 GB ram (2 GB recommended)&lt;br /&gt;
* Hardware graphical accelerator&lt;br /&gt;
* 250 MB of free hard-disk space (1 GB or more is recommended)&lt;br /&gt;
* Internet access (for documentation and support)&lt;br /&gt;
&lt;br /&gt;
'''WORD OF CAUTION: You need to configure the windows settings so that the decimal separator be a point. For example: 4.1516 is correct but 4,1516 is incorrect. If the separator isn't a point, then importing data files into MOHID GIS may yield errors.'''&lt;br /&gt;
&lt;br /&gt;
'''WORD OF CAUTION2: Google earth must effectuate the points in decimal values as well, instead of the typical degrees, minutes, seconds.'''&lt;br /&gt;
&lt;br /&gt;
==Downloads==&lt;br /&gt;
* Register, login, download and install the latest version of the Mohid package [http://www.mohid.com/MembersArea/index.asp here]. It will include:&lt;br /&gt;
** [[MohidWater]], [[Mohid GIS|GIS]], [[Mohid GUI|GUI]], [[Mohid PostProcessor]], [[Mohid Time Series Editor]]&lt;br /&gt;
&lt;br /&gt;
* Download and install [http://earth.google.com/ Google earth].&lt;br /&gt;
* Download and store the [http://www.mohid.com/hydrogroup/data_sources/kml2mohid.exe kml2mohid.exe] program.&lt;br /&gt;
&lt;br /&gt;
* Download and uncompress the [http://www.mohid.com/hydrogroup/data_sources/convert.zip ConvertToXyz] program.&lt;br /&gt;
* Download and store the [http://www.ngdc.noaa.gov/mgg/global/etopo2.html ETOPO2V2] bathymetry data in '''raw binary format''', '''cell centered''', '''little-endian'''.&lt;br /&gt;
&lt;br /&gt;
*Download and uncompress the [http://maretec.mohid.com/PublicData/products/Software/Mohid-Tide_v0.4.zip Mohid-Tide] program.&lt;br /&gt;
* Download and store the [http://www.legos.obs-mip.fr/en/share/soa/cgi/getarc/v0.0/index.pl.cgi?contexte=SOA&amp;amp;donnees=maree&amp;amp;produit=modele_fes Fes2004] tide solution. '''Data access''', '''fes2004''', '''tide''', '''tide.fes2004.nce'''.&lt;br /&gt;
&lt;br /&gt;
==Tutorials==&lt;br /&gt;
Once you downloaded and installed everything above, you can read the following tutorials. Note that they are in the recommended order:&lt;br /&gt;
&lt;br /&gt;
#[[How_to_create_a_model_gridded_bathymetry%3F|How to create a model gridded bathymetry in Mohid?]]&lt;br /&gt;
#[[How_to_generate_tide_for_Mohid%3F|How to generate tide for Mohid?]]&lt;br /&gt;
#[[How_to_configure_a_2D_model_forced_with_tide_with_MOHID|How to configure a 2D model with Mohid?]]&lt;br /&gt;
#[[How_to_create_MOHID_timeseries_outputs|How to create MOHID timeseries outputs?]]&lt;br /&gt;
#[[How_to_create_discharges_in_MOHID|How to create discharges in MOHID?]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Tools]]&lt;br /&gt;
[[Category:How To]]&lt;/div&gt;</summary>
		<author><name>192.168.20.177</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=How_to_create_a_model_gridded_bathymetry%3F&amp;diff=990</id>
		<title>How to create a model gridded bathymetry?</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=How_to_create_a_model_gridded_bathymetry%3F&amp;diff=990"/>
				<updated>2008-10-29T16:37:44Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.177: /* Previous steps */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;How to create a model gridded bathymetry?&lt;br /&gt;
&lt;br /&gt;
==Step 1 - Extract Ocean bathymetry data from ETOPO 2'==&lt;br /&gt;
&lt;br /&gt;
=== Google Earth===&lt;br /&gt;
[[Google_Earth#Configure_Google_Earth|Make sure you have Google Earth correctly configured!!]]&lt;br /&gt;
*Define the ETOPO 2' extraction domain limits&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;div style=&amp;quot;width:100%;text-align:center&amp;quot;&amp;gt;&amp;lt;img width=&amp;quot;70%&amp;quot; src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/091fbeaa-1c4a-445a-a501-970eec891e3c/2008-09-25_1729.png&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Etopo data file ===&lt;br /&gt;
*The internet address where to download the data is http://www.ngdc.noaa.gov/mgg/global/global.html; Download the ETOPO2V2 raw binary data to use with the [[ConvertToXYZ]] program.&lt;br /&gt;
*The intranet address is ''\\kepler\DataCenter1\DataCenter\DadosBase\Oceanografia\Batimetria\Etopo\Etopo2\Data''&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;div style=&amp;quot;width:100%;text-align:center&amp;quot;&amp;gt;&amp;lt;img width=&amp;quot;70%&amp;quot; src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/c8db4980-a1dd-4215-b82f-d61475fc9169/2008-09-25_1734.png&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A sample configuration file '''ConvertToXYZ.dat''' is:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;begin_window&amp;gt;&lt;br /&gt;
 FILE_TYPE                   : 2&lt;br /&gt;
 INPUT_FILENAME              : \\kepler\DataCenter1\DataCenter\DadosBase\Oceanografia\Batimetria\Etopo\Etopo2\Data\etopo2.dat&lt;br /&gt;
 OUTPUT_FILENAME             : SLouisCoast_ETOPO2.xyz&lt;br /&gt;
 TOP                         : 17&lt;br /&gt;
 BOTTOM                      : 14&lt;br /&gt;
 LEFT                        : -18&lt;br /&gt;
 RIGHT                       : -14&lt;br /&gt;
 MAXIMUM                     : 1&lt;br /&gt;
 MINIMUM                     : -9999&lt;br /&gt;
 WRITE_AS_BATHYMETRY         : 1&lt;br /&gt;
 CONVERT_TO_HDF5             : 0&lt;br /&gt;
 &amp;lt;end_window&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;div style=&amp;quot;width:100%;text-align:center&amp;quot;&amp;gt;&amp;lt;img width=&amp;quot;70%&amp;quot; src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/2c6039ac-06d7-4190-a22b-e0bb3b1cc69f/2008-09-25_1738.png&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;div style=&amp;quot;width:100%;text-align:center&amp;quot;&amp;gt;&amp;lt;img width=&amp;quot;70%&amp;quot; src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/eccf1818-ac75-4528-b819-a059a410fdc2/2008-09-25_1755.png&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Sample of XYZ data extracted from ETOPO 2'. How the bathymetry XYZ file should look like.&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;div style=&amp;quot;width:100%;text-align:center&amp;quot;&amp;gt;&amp;lt;img width=&amp;quot;70%&amp;quot; src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/2ec3a00d-857b-4116-8d2d-c0f7116e325d/2008-09-25_1812.png&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== MOHID GIS ===&lt;br /&gt;
&lt;br /&gt;
*Open new project in Mohid GIS&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;div style=&amp;quot;width:100%;text-align:center&amp;quot;&amp;gt;&amp;lt;img width=&amp;quot;70%&amp;quot; src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/be419508-098a-402f-8c0a-a1f3e1bae1d6/2008-09-25_1758.png&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Give name and location to new project, then save&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;div style=&amp;quot;width:100%;text-align:center&amp;quot;&amp;gt;&amp;lt;img width=&amp;quot;70%&amp;quot; src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/7ceffc83-b6ae-4bba-95cd-d8cea4b7434b/2008-09-25_1759.png&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Add new data item&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;div style=&amp;quot;width:100%;text-align:center&amp;quot;&amp;gt;&amp;lt;img width=&amp;quot;70%&amp;quot; src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/2711bd08-8603-410d-bdee-b5a4a47ac7e9/2008-09-25_1801.png&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Select data item and open&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;div style=&amp;quot;width:100%;text-align:center&amp;quot;&amp;gt;&amp;lt;img width=&amp;quot;70%&amp;quot; src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/82f96607-836d-4a02-9327-966830d2f8d1/2008-09-25_1803.png&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Right-click data, zoom select, right-click, properties&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;div style=&amp;quot;width:100%;text-align:center&amp;quot;&amp;gt;&amp;lt;img width=&amp;quot;70%&amp;quot; src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/2c754098-c707-4bd3-80f6-cbb0fc595df4/2008-09-25_1805.png&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Click on settings to set the colar palette and color range&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;div style=&amp;quot;width:100%;text-align:center&amp;quot;&amp;gt;&amp;lt;img width=&amp;quot;70%&amp;quot; src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/b9d0d1ac-5387-4260-9ac0-687282513d1e/2008-09-25_1817.png&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Choose min depth (negative if above sea level), max depth and color palette&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;div style=&amp;quot;width:100%;text-align:center&amp;quot;&amp;gt;&amp;lt;img width=&amp;quot;70%&amp;quot; src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/a0295c41-2935-4a63-a69f-7765c0b0ecaa/2008-09-25_1820.png&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*IMPORTANT: Click ''Save All'' from the ''Data Items'' menu. Otherwise you risk to loose all your work!&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;div style=&amp;quot;width:100%;text-align:center&amp;quot;&amp;gt;&amp;lt;img width=&amp;quot;70%&amp;quot; src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/fa43bb14-6b40-41c5-8fcb-7f8427e8c905/2008-09-25_1837.png&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Step 2 - Create a coast line ==&lt;br /&gt;
&lt;br /&gt;
=== Create coast line in Google Earth ===&lt;br /&gt;
&lt;br /&gt;
*Create a polygon shaped like the line of the coast&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;div style=&amp;quot;width:100%;text-align:center&amp;quot;&amp;gt;&amp;lt;img width=&amp;quot;70%&amp;quot; src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/6ea1a270-cb13-4060-9084-ab8717058c2e/2008-09-25_2015.png&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Right-click on polygon, then &amp;quot;save as&amp;quot;&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;div style=&amp;quot;width:100%;text-align:center&amp;quot;&amp;gt;&amp;lt;img width=&amp;quot;70%&amp;quot; src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/3320aa3b-f3c0-4bf9-a8a0-573b1c4dd2ce/2008-09-25_1832.png&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Save the file in Kml format (NOT in Kmz format)&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;div style=&amp;quot;width:100%;text-align:center&amp;quot;&amp;gt;&amp;lt;img width=&amp;quot;70%&amp;quot; src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/ee02f2ac-7d98-455a-8109-dfd34b64ffe1/2008-09-25_1834.png&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Run Kml2mohid ===&lt;br /&gt;
&lt;br /&gt;
*Get the [[Kml2Mohid]] program, edit a batch file, and run the program&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;div style=&amp;quot;width:100%;text-align:center&amp;quot;&amp;gt;&amp;lt;img width=&amp;quot;70%&amp;quot; src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/4ed24f90-dd2b-49bb-8a12-4c94c4212ab4/2008-09-25_1847.png&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Successfully run [[Kml2Mohid]] program.&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;div style=&amp;quot;width:100%;text-align:center&amp;quot;&amp;gt;&amp;lt;img width=&amp;quot;70%&amp;quot; src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/629db22c-73c4-4ef8-81b4-b73f94f0216a/2008-09-25_1852.png&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Sample polygon (.xy) file&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;div style=&amp;quot;width:100%;text-align:center&amp;quot;&amp;gt;&amp;lt;img width=&amp;quot;70%&amp;quot; src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/f775b5a4-096d-4c4c-b7a1-1912a64d9834/2008-09-25_1854.png&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Import coastline polygon in Mohid ===&lt;br /&gt;
&lt;br /&gt;
*Click ''Data Items'' menu, then select ''Add Data Items...''&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;div style=&amp;quot;width:100%;text-align:center&amp;quot;&amp;gt;&amp;lt;img width=&amp;quot;70%&amp;quot; src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/cf323931-065d-413d-861b-d0b629894908/2008-09-25_1858.png&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Select folder, select polygon file type, select file and click open&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;div style=&amp;quot;width:100%;text-align:center&amp;quot;&amp;gt;&amp;lt;img width=&amp;quot;70%&amp;quot; src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/034730fe-19e5-4f29-bfbc-aee611411d29/2008-09-25_1901.png&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Right-click polygon data, then select ''Properties''&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;div style=&amp;quot;width:100%;text-align:center&amp;quot;&amp;gt;&amp;lt;img width=&amp;quot;70%&amp;quot; src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/08500fa8-23c6-48b0-bd03-a03c0dc9e025/2008-09-25_1905.png&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Click on settings&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;div style=&amp;quot;width:100%;text-align:center&amp;quot;&amp;gt;&amp;lt;img width=&amp;quot;70%&amp;quot; src=&amp;quot;&amp;lt;htm&amp;gt;&amp;lt;div style=&amp;quot;width:100%;text-align:center&amp;quot;&amp;gt;&amp;lt;img width=&amp;quot;70%&amp;quot; src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/8e606f02-8ad9-46ab-b2eb-82d72164b322/2008-09-25_1907.png&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Select ''Constant'' and choose a color&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;div style=&amp;quot;width:100%;text-align:center&amp;quot;&amp;gt;&amp;lt;img width=&amp;quot;70%&amp;quot; src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/7dbec8eb-e7e3-45ef-b785-58035f416da1/2008-09-25_1908.png&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Very important: ''Save All'' from the ''Data Items'' menu&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;div style=&amp;quot;width:100%;text-align:center&amp;quot;&amp;gt;&amp;lt;img width=&amp;quot;70%&amp;quot; src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/8b3323bb-0fef-47b8-afa5-acabdc5cf8dd/2008-09-25_1957.png&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*General look of ETOPO points data layer and coastline polygon layer&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;div style=&amp;quot;width:100%;text-align:center&amp;quot;&amp;gt;&amp;lt;img width=&amp;quot;70%&amp;quot; src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/2173549d-71f1-42a5-a79b-4609575e2baa/2008-09-25_2020.png&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Step 3 - Create the model domain regular grid in MOHID GIS ==&lt;br /&gt;
&lt;br /&gt;
=== Define the grid ===&lt;br /&gt;
&lt;br /&gt;
*Choose bottom-left origin for the model domain&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;div style=&amp;quot;width:100%;text-align:center&amp;quot;&amp;gt;&amp;lt;img width=&amp;quot;70%&amp;quot; src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/14187bbb-1bb9-4f88-9cdc-c24ea63fc7bc/2008-09-25_2032.png&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Choose model domain grid resolution with [[Google Earth]]&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;div style=&amp;quot;width:100%;text-align:center&amp;quot;&amp;gt;&amp;lt;img width=&amp;quot;70%&amp;quot; src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/bd31b051-8358-4bce-8408-3861318924b3/2008-09-25_1942.png&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Click on ''Data Item'' menu, then select ''New Data Item''&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;div style=&amp;quot;width:100%;text-align:center&amp;quot;&amp;gt;&amp;lt;img width=&amp;quot;70%&amp;quot; src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/caf030f5-a5d3-45cb-80ea-08bc2f9e2b39/2008-09-25_1917.png&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Select ''Simple Grid'', then click on ''Browse''&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;div style=&amp;quot;width:100%;text-align:center&amp;quot;&amp;gt;&amp;lt;img width=&amp;quot;70%&amp;quot; src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/1bbe5e5f-021c-4e4c-b308-7891c341223b/2008-09-25_1920.png&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Give name, select ''Grid file'' as file type, click on ''Save''&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;div style=&amp;quot;width:100%;text-align:center&amp;quot;&amp;gt;&amp;lt;img width=&amp;quot;70%&amp;quot; src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/65818878-26de-493d-b0fa-34282d0c9fa6/2008-09-25_1921.png&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Click ''Ok''&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;div style=&amp;quot;width:100%;text-align:center&amp;quot;&amp;gt;&amp;lt;img width=&amp;quot;70%&amp;quot; src=&amp;quot;&amp;lt;htm&amp;gt;&amp;lt;div style=&amp;quot;width:100%;text-align:center&amp;quot;&amp;gt;&amp;lt;img width=&amp;quot;70%&amp;quot; src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/5881fb84-70d9-4fae-b857-a8e7ae15f315/2008-09-25_1924.png&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Right-click the Grid layer, then select ''Properties'' from the menu&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;div style=&amp;quot;width:100%;text-align:center&amp;quot;&amp;gt;&amp;lt;img width=&amp;quot;70%&amp;quot; src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/4fa42c28-082c-421a-aae1-98615bb100e9/2008-09-25_1925.png&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Define origin, define resolution, define grid size, choose ''Simple Geographic'' coordinates type (and NOT ''Geographic'' as seen in the figure. CAUTION!)&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;div style=&amp;quot;width:100%;text-align:center&amp;quot;&amp;gt;&amp;lt;img width=&amp;quot;70%&amp;quot; src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/8ee49234-c066-47cd-b82b-47f52bc5a465/2008-09-25_1930.png&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Very important: ''Save All'' from the ''Data Items'' menu&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;div style=&amp;quot;width:100%;text-align:center&amp;quot;&amp;gt;&amp;lt;img width=&amp;quot;70%&amp;quot; src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/8b3323bb-0fef-47b8-afa5-acabdc5cf8dd/2008-09-25_1957.png&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*General look of a bathymetry points data from ETOPO, a coastline and land polygon, and a model domain grid&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;div style=&amp;quot;width:100%;text-align:center&amp;quot;&amp;gt;&amp;lt;img width=&amp;quot;70%&amp;quot; src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/b7936c41-8f29-4838-9993-bdff4cb7abad&lt;br /&gt;
/2008-09-25_1938.png&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Create Digital Terrain from Mohid GIS===&lt;br /&gt;
&lt;br /&gt;
*Click on menu ''Tools'', select ''Create Digital Terrain ...''&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;div style=&amp;quot;width:100%;text-align:center&amp;quot;&amp;gt;&amp;lt;img width=&amp;quot;70%&amp;quot; src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/26403c0a-f816-4b63-bc0c-404821742e3b/2008-09-25_1947.png&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Select grid layer, data points layers, land polygon layers. Then click ''Browse''&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;div style=&amp;quot;width:100%;text-align:center&amp;quot;&amp;gt;&amp;lt;img width=&amp;quot;70%&amp;quot; src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/17deee31-bb92-4934-8e6b-1572057c6071/2008-09-25_1949.png&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Choose ''Options'' menu, select ''Triangulation'', select ''All points'', click on ''Run''&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;div style=&amp;quot;width:100%;text-align:center&amp;quot;&amp;gt;&amp;lt;img width=&amp;quot;70%&amp;quot; src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/10fe5ab0-8df2-47e5-9eba-306956653b30/2008-09-25_1953.png&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Successful ''Done'' message&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;div style=&amp;quot;width:100%;text-align:center&amp;quot;&amp;gt;&amp;lt;img width=&amp;quot;70%&amp;quot; src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/bd17559d-c349-47be-b0f1-29096dd98a08/2008-09-26_1609.png&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Admire the result==&lt;br /&gt;
You can now proceed to create a model simulation after you [[How to generate tide for Mohid?|create the tidal gauges]]&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;div style=&amp;quot;width:100%;text-align:center&amp;quot;&amp;gt;&amp;lt;img width=&amp;quot;70%&amp;quot; src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/4d8b4943-0201-4a20-908d-88beb0327c03/2008-09-25_2022.png&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Next steps==&lt;br /&gt;
*[[How_to_generate_tide_for_Mohid%3F|How to generate tide for Mohid?]]&lt;br /&gt;
&lt;br /&gt;
==Previous steps==&lt;br /&gt;
*[[Software to run Mohid]]&lt;br /&gt;
&lt;br /&gt;
==About the screen capturing tool==&lt;br /&gt;
The screen capturing tool used for this tutorial was the [http://www.jingproject.com/ Jing Project].&lt;br /&gt;
&lt;br /&gt;
[[Category:Graphical User Interfaces]]&lt;br /&gt;
[[Category:Help]]&lt;br /&gt;
[[Category:Mohid Water]]&lt;br /&gt;
[[Category:Exercises]]&lt;br /&gt;
[[Category:Example]]&lt;br /&gt;
[[Category:How To]]&lt;/div&gt;</summary>
		<author><name>192.168.20.177</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=*NIX_platforms&amp;diff=976</id>
		<title>*NIX platforms</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=*NIX_platforms&amp;diff=976"/>
				<updated>2008-10-22T13:54:05Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.177: /* Building MohidWater */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Installing ==&lt;br /&gt;
&lt;br /&gt;
=== Prerequisites ===&lt;br /&gt;
&lt;br /&gt;
''NOTE'': this article was written assuming the fortran compiler is ''Intel''. If this is not the case then change where there is written &amp;quot;ifort&amp;quot; with the fortran compiler in use (ex: pgf90, g90, etc...).&lt;br /&gt;
&lt;br /&gt;
==== HDF5 libraries ====&lt;br /&gt;
To compile Mohid it is mandatory to have the HDF5 [http://hdf.ncsa.uiuc.edu/HDF5/] libraries compiled. In HDF5's web page it is possible to obtain both binary distribuitions and the source code. Most of the times it is necessary to build from source which  takse the following steps:&lt;br /&gt;
# download the source code, e. g. hdf5-1.6.5.tar.gz;&lt;br /&gt;
# &amp;lt;code&amp;gt; &amp;gt; tar -zxvf hdf5-1.6.5.tar.gz&amp;lt;/code&amp;gt;&lt;br /&gt;
# &amp;lt;code&amp;gt; &amp;gt; cd hdf5-1.6.5&amp;lt;/code&amp;gt;&lt;br /&gt;
# &amp;lt;code&amp;gt; &amp;gt; F9X=ifort ./configure --enable-fortran (--prefix=$HDF5ROOTDIR --enable-parallel)&amp;lt;/code&amp;gt;&lt;br /&gt;
# &amp;lt;code&amp;gt; &amp;gt; make&amp;lt;/code&amp;gt;&lt;br /&gt;
# &amp;lt;code&amp;gt; &amp;gt; make check&amp;lt;/code&amp;gt;&lt;br /&gt;
# &amp;lt;code&amp;gt; &amp;gt; make install&amp;lt;/code&amp;gt;&lt;br /&gt;
Libraries may be found in ./hdf5/lib/ and, typically, in /opt/hdf5/hdf5/lib. Detailed information may be found in file ./release_docs/INSTALL .&lt;br /&gt;
&lt;br /&gt;
==== Zlib libraries ====&lt;br /&gt;
To use the HDF5 libraries it is mandatory to have installed the zlib libraries. So install the zlib package for your linux distro. Also, keep a record of where the libz.a library is installed (it might come in handy later on).#&lt;br /&gt;
&lt;br /&gt;
==== Netcdf libraries ====&lt;br /&gt;
The netcdf libraries are optional since they are not required to run [[MohidWater]]. However they are useful for other modules of the Mohid Suite such as [[ConvertToHDF5]]. You can get them from the [http://www.unidata.ucar.edu/software/netcdf/ official site]. Here's the [[netcdf|report]] on how to build them for windows.&lt;br /&gt;
&lt;br /&gt;
==== Makefiles ====&lt;br /&gt;
Make sure you always have the latest version of the Makefiles from the [[SourceSafe]]. Or,&lt;br /&gt;
get a [http://www.mohid.com/hydrogroup/archive.xml test version] of the makefiles from the [http://www.mohid.com/hydrogroup/index.xml hydrogroup page].&lt;br /&gt;
&lt;br /&gt;
==== [[sos|Soscmd]] (optional) ====&lt;br /&gt;
The Source-Off site is a program that allows you to obtain the latest version of the code. This is for advanced users only. If you already have a mohid distro with the source code, then don't bother with this.&lt;br /&gt;
&lt;br /&gt;
To obtain the [[sos|soscmd]] client go to [http://www.sourcegear.com/sos/downloads.html this] page.&lt;br /&gt;
&lt;br /&gt;
To obtain the latest Mohid version&lt;br /&gt;
#configure the file &amp;lt;code&amp;gt; &amp;gt; makefiles/nix.sos&amp;lt;/code&amp;gt;&lt;br /&gt;
##Give it the server name usually &amp;lt;code&amp;gt;SERVER=sos.mohid.com&amp;lt;/code&amp;gt;&lt;br /&gt;
##Type in your sourcesafe username and password in &amp;lt;code&amp;gt;USER&amp;lt;/code&amp;gt; and in &amp;lt;code&amp;gt;PASS&amp;lt;/code&amp;gt;&lt;br /&gt;
##Type in you home directory where the ''.iky'' and ''.key'' files are enclosed. That's it for the configuration!&lt;br /&gt;
 #--------Users: fill these lines with your sourcesafe data-------------&lt;br /&gt;
 SERVER  := &lt;br /&gt;
 USER    := &lt;br /&gt;
 PASS    := &lt;br /&gt;
 SOSHOME := &lt;br /&gt;
 PROJECT := $(basename $(TARGET))&lt;br /&gt;
 GET     := soscmd -command GetFile \&lt;br /&gt;
           -server $(SERVER):8890 \&lt;br /&gt;
           -name $(USER) -password $(PASS) \ &lt;br /&gt;
           -database &amp;quot;W:\SourceSafe\Mohid_v4\srcsafe.ini&amp;quot; \&lt;br /&gt;
            -project $(PROJECT) \&lt;br /&gt;
            -soshome $(SOSHOME) \&lt;br /&gt;
            -file&lt;br /&gt;
 S       := sos&lt;br /&gt;
 #--------End of sourcesafe data------------- &lt;br /&gt;
&lt;br /&gt;
# type &amp;lt;code&amp;gt; &amp;gt; make nix.sos&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Building MohidWater ===&lt;br /&gt;
To compile MohidWater using the makefiles from the main path, first make sure the source file ending is capitalized (F90, not f90). Afterwards, execute the compilation steps:&lt;br /&gt;
# &amp;lt;code&amp;gt; &amp;gt; for i in `find . | grep .f90 | grep -v 'GOTMvar'`; do  mv $i `echo $i | sed -e 's/f90/F90/'`;done&amp;lt;/code&amp;gt;&lt;br /&gt;
# &amp;lt;code&amp;gt; &amp;gt; source /opt/intel/fc/9.0/bin/ifortvars.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
# &amp;lt;code&amp;gt; &amp;gt; make nix&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The first line is required because linux is sensitive to capitalization whereas windows wasn't. The second line is required in order to properly configure intel fortran 9.0 to work. It may be unnecessary in future versions of intel fortran.&lt;br /&gt;
&lt;br /&gt;
To clean the distribution, type:&lt;br /&gt;
# &amp;lt;code&amp;gt; &amp;gt; make nix.clean&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Developping [[makefile]]s ==&lt;br /&gt;
&lt;br /&gt;
To develop new makefiles for future or current modules, edit the [[makefile]] in the [[Module Shell]] from the [[Mohid]] [[SourceSafe]]. Please bear in mind that it must work under&lt;br /&gt;
in windows, as well as under linux.&lt;br /&gt;
&lt;br /&gt;
=== Using [[sos|SourceOffSite]] in the [[makefile]] ===&lt;br /&gt;
&lt;br /&gt;
An interesting feature of the makefiles would be that they automatically access the [[SourceSafe]]&lt;br /&gt;
repository. To do so one can use the [[sos|soscmd]] command line client. An example can be found on the [[*NIX platforms|Sample makefile]].&lt;br /&gt;
&lt;br /&gt;
To use it type:&lt;br /&gt;
# &amp;lt;code&amp;gt; &amp;gt; make nix.sos&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== TroubleShooting ==&lt;br /&gt;
&lt;br /&gt;
'''Q: the makefile keeps giving me errors :('''&lt;br /&gt;
&lt;br /&gt;
A:Here's a list of what could be causing these errors:&lt;br /&gt;
#Open the makefiles and check that fields are properly filled.&lt;br /&gt;
#Make sure that '''mod''' and '''bin''' directories exist in the module's folder. Otherwise simply make them with the mkdir command.&lt;br /&gt;
#Make sure that &amp;quot;ifort&amp;quot; is a valid command. If it isn't then you probably didn't loaded its environment variables. Type &amp;quot;source /opt/intel/fc/9.0/bin/ifortvars.sh&amp;quot; for that.&lt;br /&gt;
#Make sure that the intel fortran compiler was properly installed.&lt;br /&gt;
&lt;br /&gt;
'''Q: the makefile complains when compiling ModuleGOTM.f90'''&lt;br /&gt;
&lt;br /&gt;
A: Probably you have to rename &lt;br /&gt;
: GOTM'''V'''ariables_in.'''f90''' ---&amp;gt; GOTM'''v'''ariables_in.'''f90'''&lt;br /&gt;
: GOTM'''V'''ariables_out.'''f90''' ---&amp;gt; GOTM'''v'''ariables_out.'''f90'''. &lt;br /&gt;
This error shows up in linux because it's case-sensitive whereas windows isn't. Also, make sure that the extension is written in lower case.&lt;br /&gt;
&lt;br /&gt;
'''Q: By the time i'm linking the final MohidWater binary I get some error about&lt;br /&gt;
unreferenced functions &amp;quot;compress2&amp;quot; and others in HDF5 files...'''&lt;br /&gt;
&lt;br /&gt;
A: Probably you need to specify  to link against the libz.a library. Identify the exactly&lt;br /&gt;
the location of libz.a (ex: in my system it can be found at /opt/zlib/lib/libz.a)&lt;br /&gt;
then add the following line in MohidWater makefile:&lt;br /&gt;
&lt;br /&gt;
 LIBS_NIX = \&lt;br /&gt;
           $(BASE2LIB) \&lt;br /&gt;
           $(BASE1LIB) \&lt;br /&gt;
           $(LIB_HDF5_NIX)/libhdf5_fortran.a \&lt;br /&gt;
           $(LIB_HDF5_NIX)/libhdf5.a \&lt;br /&gt;
           $(LIB_HDF5_NIX)/libhdf5_hl.a \&lt;br /&gt;
           $(LIB_NETCDF_NIX)/libnetcdf.a \&lt;br /&gt;
           /opt/zlib/lib/libz.a&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Makefile]]&lt;br /&gt;
*[[Mohid Makefile]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Technology]]&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:Makefile]]&lt;/div&gt;</summary>
		<author><name>192.168.20.177</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Thredds&amp;diff=893</id>
		<title>Thredds</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Thredds&amp;diff=893"/>
				<updated>2008-10-22T12:25:16Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.177: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Thredds]] (Thematic Realtime Environmental Distributed Data Services) is a tomcat servlet that serves xml catalogs of [[openDAP]] datasets.&lt;br /&gt;
&lt;br /&gt;
==Setup==&lt;br /&gt;
A working [[tomcat]] server is a prerequisite. Simply '''copy the thredds.war file''' obtained from the thredds homepage '''into the''' [[tomcat]] '''webapps directory'''.&lt;br /&gt;
&lt;br /&gt;
===data.mohid.com===&lt;br /&gt;
*'''How do I restart the [[tomcat]] and thredds server in data.mohid.com?'''&lt;br /&gt;
 &amp;gt; cd /home/guillaume/Software/las7/tomcat/tomcat/bin&lt;br /&gt;
 &amp;gt; ./Tomcat5.sh start&lt;br /&gt;
&lt;br /&gt;
*'''How do I know if tomcat is running?''':&lt;br /&gt;
 &amp;gt; netstat -tlnap | grep 8080&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Directory tree structure==&lt;br /&gt;
&lt;br /&gt;
===$TOMCAT_HOME/content/thredds===&lt;br /&gt;
*'''catalog.xml''': catalog file containing all the netcdf datasets.&lt;br /&gt;
&lt;br /&gt;
==Building thredds urls==&lt;br /&gt;
===Dataset===&lt;br /&gt;
* Viewing a ${catalog} file tree named ${catalog}.xml: &lt;br /&gt;
 http://data.mohid.com:8080/thredds/${catalog}.html&lt;br /&gt;
&lt;br /&gt;
* Viewing a specific ${dataset} thredds metadata:&lt;br /&gt;
 http://data.mohid.com:8080/thredds/${catalog}.html?dataset=${dataset.id}&lt;br /&gt;
&lt;br /&gt;
* Viewing a specific ${dataset}:&lt;br /&gt;
 http://data.mohid.com:8080/${dataset.service.base}/${dataset.urlpath}&lt;br /&gt;
&lt;br /&gt;
===DatasetScan===&lt;br /&gt;
* Viewing a particular ${datasetscan} tree from any ${catalog} in the thredds server:&lt;br /&gt;
 http://data.mohid.com:8080/thredds/catalog/${datasetscan.path}/catalog.html&lt;br /&gt;
&lt;br /&gt;
* Viewing a specific ${datasetscan.filteredfilename} thredds metadata:&lt;br /&gt;
 http://data.mohid.com:8080/thredds/catalog/${datasetscan.path}/catalog.html?dataset=${datasetscan.id}/${datasetscan.filteredfilename}.nc.html&lt;br /&gt;
&lt;br /&gt;
* Viewing a specific ${datasetscan.filteredfilename} dataset:&lt;br /&gt;
 http://data.mohid.com:8080/${datasetscan.service.base}/${datasetscan.path}/${datasetscan.filteredfilename}.nc.html&lt;br /&gt;
&lt;br /&gt;
==A sample catalog file==&lt;br /&gt;
&amp;lt;code&amp;gt;[XML]&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;catalog name=&amp;quot;MOHID THREDDS Server Catalog&amp;quot;&lt;br /&gt;
        xmlns=&amp;quot;http://www.unidata.ucar.edu/namespaces/thredds/InvCatalog/v1.0&amp;quot;&lt;br /&gt;
        xmlns:xlink=&amp;quot;http://www.w3.org/1999/xlink&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
  &amp;lt;service name=&amp;quot;MOHID DODS&amp;quot; serviceType=&amp;quot;OpenDAP&amp;quot; base=&amp;quot;/thredds/dodsC/&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;datasetRoot path=&amp;quot;test&amp;quot; location=&amp;quot;content/testdata/&amp;quot;/&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
  &amp;lt;dataset name=&amp;quot;Test Single Dataset&amp;quot; ID=&amp;quot;testDataset&amp;quot; serviceName=&amp;quot;MOHID DODS&amp;quot;&lt;br /&gt;
           urlPath=&amp;quot;test/testData.nc&amp;quot;/&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
  &amp;lt;datasetScan name=&amp;quot;Test all files in a directory&amp;quot; ID=&amp;quot;testDatasetScan&amp;quot;&lt;br /&gt;
               path=&amp;quot;testAll&amp;quot; location=&amp;quot;content/testdata&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
    &amp;lt;metadata inherited=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;serviceName&amp;gt;MOHID DODS&amp;lt;/serviceName&amp;gt;&lt;br /&gt;
    &amp;lt;/metadata&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
    &amp;lt;filter&amp;gt;&lt;br /&gt;
      &amp;lt;include wildcard=&amp;quot;*.nc&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;/filter&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
  &amp;lt;/datasetScan&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
  &amp;lt;catalogRef xlink:title=&amp;quot;Test Enhanced Catalog&amp;quot; xlink:href=&amp;quot;enhancedCatalog.xml&amp;quot; name=&amp;quot;&amp;quot;/&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;/catalog&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Tomcat]]&lt;br /&gt;
*[[OpenDAP]]&lt;br /&gt;
*[[LAS]]&lt;br /&gt;
&lt;br /&gt;
==External references==&lt;br /&gt;
*[http://www.unidata.ucar.edu/projects/THREDDS/tech/tutorial/GettingStarted.html Getting started]&lt;br /&gt;
*[http://data.mohid.com:8080/thredds/catalog.html MOHID Thredds data server]&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;/div&gt;</summary>
		<author><name>192.168.20.177</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Tomcat&amp;diff=909</id>
		<title>Tomcat</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Tomcat&amp;diff=909"/>
				<updated>2008-10-22T12:18:02Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.177: /* Faqs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The apache tomcat is a jsp (java servlet pages) server. It's similar to an http server like the apache server, only it serves jsp. It is required in order to use [[Thredds]] or [[LAS]].&lt;br /&gt;
&lt;br /&gt;
==Setting up==&lt;br /&gt;
 &amp;gt; cd /home/guillaume/Software/las7&lt;br /&gt;
 &amp;gt; mkdir tomcat&lt;br /&gt;
 &amp;gt; cd tomcat&lt;br /&gt;
 &amp;gt; wget http://neacm.fe.up.pt/pub/apache/tomcat/tomcat-5/v5.5.26/bin/apache-tomcat-5.5.26.tar.gz&lt;br /&gt;
 &amp;gt; tar -xzf apache-tomcat-5.5.25.tar.gz&lt;br /&gt;
 &amp;gt; ln -s apache-tomcat-5.5.25/ tomcat&lt;br /&gt;
&lt;br /&gt;
Edit the &amp;lt;code&amp;gt;apache-tomcat-5.5.25/conf/server.xml&amp;lt;/code&amp;gt; and change the ports (default:8080) if needed.&lt;br /&gt;
&lt;br /&gt;
To run the tomcat as a daemon service, one needs to compile the &amp;lt;code&amp;gt;jsvc&amp;lt;/code&amp;gt; program:&lt;br /&gt;
 &amp;gt; cd ./tomcat/bin&lt;br /&gt;
 &amp;gt; tar xvfz jsvc.tar.gz&lt;br /&gt;
 &amp;gt; cd jsvc-src&lt;br /&gt;
 &amp;gt; ./configure --with-java=/usr/java&lt;br /&gt;
 &amp;gt; make&lt;br /&gt;
 &amp;gt; cp jsvc ..&lt;br /&gt;
 &amp;gt; cd ..&lt;br /&gt;
&lt;br /&gt;
==The tomcat files tree==&lt;br /&gt;
===/bin===&lt;br /&gt;
* '''./jsvc''' : the loader that runs tomcat as a daemon ( &amp;gt; jsvc -help)&lt;br /&gt;
* '''[[tomcat bash|./Tomcat5.sh start|stop]]''': the custom bash script that starts or stops the tomcat server&lt;br /&gt;
&lt;br /&gt;
===/conf===&lt;br /&gt;
* '''server.xml''': where one defines which ports for tomcat to use.&lt;br /&gt;
* '''tomcat-users.xml''': where one defines who are the valid users for the tomcat server and what are their roles (privileges)&lt;br /&gt;
&lt;br /&gt;
===/log===&lt;br /&gt;
* '''catalina.out''': where one can check the logs and errors issued by the boot and running of the tomcat server.&lt;br /&gt;
&lt;br /&gt;
===/webapps===&lt;br /&gt;
Webapps the root directory where all the .war files (the tomcat servlets) go. Ex: [[thredds]].&lt;br /&gt;
&lt;br /&gt;
==Faqs==&lt;br /&gt;
*'''How do I restart the tomcat and thredds server in data.mohid.com?'''&lt;br /&gt;
 &amp;gt; cd /home/guillaume/Software/las7/tomcat/tomcat/bin&lt;br /&gt;
 &amp;gt; ./Tomcat5.sh start&lt;br /&gt;
&lt;br /&gt;
*'''How do I know if tomcat is running?''':&lt;br /&gt;
 &amp;gt; netstat -tlnap | grep 8080&lt;br /&gt;
&lt;br /&gt;
==External references==&lt;br /&gt;
*[http://tomcat.apache.org/tomcat-5.5-doc/introduction.html tomcat homepage]&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;/div&gt;</summary>
		<author><name>192.168.20.177</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Fecal_coliforms&amp;diff=236</id>
		<title>Fecal coliforms</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Fecal_coliforms&amp;diff=236"/>
				<updated>2008-10-17T10:19:05Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.177: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A lot can be said about fecal coliforms. Basically they're a pollutant that is found in sewer discharges in large quantities.&lt;br /&gt;
&lt;br /&gt;
==Stats==&lt;br /&gt;
&lt;br /&gt;
*typical concentrations at a local discharge: '''1e7 to 1e8 coli/100 mL'''&lt;br /&gt;
*typical discharge flow: '''1 m3/s per 250,000''' inhabitants. Guia de Cascais is 2 m3/s.&lt;br /&gt;
*typical decay time (decimation):&lt;br /&gt;
**Summer sunny day: 30 min&lt;br /&gt;
**Night: 24h&lt;br /&gt;
**'''Average: 2 h'''&lt;br /&gt;
*Clean bathing water treshold issued by the European Bathing Water Directive: '''100 coli/100 mL'''&lt;/div&gt;</summary>
		<author><name>192.168.20.177</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Fecal_coliformes&amp;diff=234</id>
		<title>Fecal coliformes</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Fecal_coliformes&amp;diff=234"/>
				<updated>2008-10-17T10:18:58Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.177: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Fecal coliforms]]&lt;/div&gt;</summary>
		<author><name>192.168.20.177</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Google_Earth&amp;diff=286</id>
		<title>Google Earth</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Google_Earth&amp;diff=286"/>
				<updated>2008-10-10T15:05:16Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.177: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Google Earth]] is the openGL GIS client program that maps all the worlds orthophotomaps. It's an important tool to extract coastlines and other baseline georeferenced data in [[kml]] format.&lt;br /&gt;
&lt;br /&gt;
==Configure Google Earth==&lt;br /&gt;
*From the ''tools'' menu, select ''options''&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/1406fee0-feba-4a4d-812f-16a3585219c4/2.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/1406fee0-feba-4a4d-812f-16a3585219c4/2.png&amp;quot; width=&amp;quot;404&amp;quot; height=&amp;quot;218&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Select ''decimal degrees'', then ''apply'' and click ''ok''&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/d1b89d8b-de12-4f48-9ea5-58c888dae3cf/2008-10-10_1611.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/d1b89d8b-de12-4f48-9ea5-58c888dae3cf/2008-10-10_1611.png&amp;quot; width=&amp;quot;737&amp;quot; height=&amp;quot;519&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==External links==&lt;br /&gt;
*[http://earth.google.com Google Earth]&lt;br /&gt;
&lt;br /&gt;
[[Category:Google]]&lt;/div&gt;</summary>
		<author><name>192.168.20.177</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=ConvertToXYZ&amp;diff=146</id>
		<title>ConvertToXYZ</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=ConvertToXYZ&amp;diff=146"/>
				<updated>2008-10-07T13:03:38Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.177: /* SRTM30 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[ConvertToXYZ]] is a small tool that extracts baseline three-dimensional data into [[XYZ points |XYZ points files]]. It is useful, for instance, to extract baseline data to create bathymetries.&lt;br /&gt;
&lt;br /&gt;
== Quick Start ==&lt;br /&gt;
#Map a network drive to the data file (ETOPO, GEBCO, NOAA etc...).&lt;br /&gt;
#Create and edit a ''ConvertToXYZ.dat'' file. Save it in the same path of the executable.&lt;br /&gt;
#Run the executable.&lt;br /&gt;
&lt;br /&gt;
== Options file ==&lt;br /&gt;
&lt;br /&gt;
'' '''WARNING:''' Only use integer coordinate lat/lon numbers''.&lt;br /&gt;
&lt;br /&gt;
===ETOPO2'===&lt;br /&gt;
&lt;br /&gt;
Here's what the options ''ConvertToXYZ.dat'' file looks like:&lt;br /&gt;
 &amp;lt;begin_window&amp;gt;&lt;br /&gt;
 FILE_TYPE                   : 2&lt;br /&gt;
 INPUT_FILENAME              : Z:\etopo2.dat&lt;br /&gt;
 OUTPUT_FILENAME             : WestIberiaET2.xyz&lt;br /&gt;
 TOP                         : 46&lt;br /&gt;
 BOTTOM                      : 33&lt;br /&gt;
 LEFT                        : -14&lt;br /&gt;
 RIGHT                       : -5&lt;br /&gt;
 MAXIMUM                     : 1&lt;br /&gt;
 MINIMUM                     : -9999&lt;br /&gt;
 WRITE_AS_BATHYMETRY         : 1&lt;br /&gt;
 CONVERT_TO_HDF5             : 0&lt;br /&gt;
 &amp;lt;end_window&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===SRTM30===&lt;br /&gt;
''Caution: make sure the ORIGIN_X and ORIGIN_Y correspond to the origin of the srtm30 original source file!''&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;begin_window&amp;gt;&lt;br /&gt;
 FILE_TYPE                   : 7&lt;br /&gt;
 TOP                         : 46&lt;br /&gt;
 BOTTOM                      : 33&lt;br /&gt;
 LEFT                        : -14&lt;br /&gt;
 RIGHT                       : -5&lt;br /&gt;
 MAXIMUM                     : 1&lt;br /&gt;
 MINIMUM                     : -9999&lt;br /&gt;
 INPUT_FILE                  : \\kepler\DataCenter1\DataCenter\DadosBase\Oceanografia\Batimetria\SRTM30\Data\w020n40.Bathmetry.srtm&lt;br /&gt;
 XYZ_OUTPUT_FILENAME         : WestIberiaSRTM.xyz&lt;br /&gt;
 ORIGIN_X                    : -20&lt;br /&gt;
 ORIGIN_Y                    : 40&lt;br /&gt;
 &amp;lt;end_window&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Digital_Terrain_Creator|Digital Terrain Creator]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Tools]]&lt;/div&gt;</summary>
		<author><name>192.168.20.177</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Module_Discharges&amp;diff=526</id>
		<title>Module Discharges</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Module_Discharges&amp;diff=526"/>
				<updated>2008-10-07T10:09:13Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.177: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Overview ==&lt;br /&gt;
Module Discharges handles all the point discharges in Mohid Water Modelling System. These discharges can be simple water discharges but can also have properties such as substances concentration (temperature, salinity, nutrients, contaminants, etc) and/or momentum.&lt;br /&gt;
&lt;br /&gt;
== Main features ==&lt;br /&gt;
&lt;br /&gt;
=== ID ===&lt;br /&gt;
&lt;br /&gt;
=== Location ===&lt;br /&gt;
&lt;br /&gt;
=== Database file ===&lt;br /&gt;
&lt;br /&gt;
=== Properties === &lt;br /&gt;
&lt;br /&gt;
== User manual ==&lt;br /&gt;
&lt;br /&gt;
===Sample discharge===&lt;br /&gt;
Here's what a configuration file of the [[Module Discharges]] should look like for a single river run-off. Note that you are previously required to build a time serie .srw with the flow, the temperature and the salinity in order to correctly implement the discharge.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;begindischarge&amp;gt;&lt;br /&gt;
 NAME                    : Loire&lt;br /&gt;
 DESCRIPTION             : Daily timeserie for the year 2004&lt;br /&gt;
 I_CELL                  : 144&lt;br /&gt;
 J_CELL                  : 220&lt;br /&gt;
 DEPTHBYGRID             : 1&lt;br /&gt;
 K_CELL                  : 38&lt;br /&gt;
 DEFAULT_FLOW_VALUE      : 300&lt;br /&gt;
 DATA_BASE_FILE          : M:\Biscay\GeneralData\Level2\rivers\Loire.srw&lt;br /&gt;
 FLOW_COLUMN             : 2&lt;br /&gt;
 TIME_SERIE_COLUMN       : 1&lt;br /&gt;
 DISCHARGE_UNIFORM       : 1&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginproperty&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                    : temperature&lt;br /&gt;
 UNITS                   : celcius&lt;br /&gt;
 DESCRIPTION             : temperature in the tagus river&lt;br /&gt;
 CONSTANT_CONC           : 0&lt;br /&gt;
 DEFAULTVALUE            : 19.9&lt;br /&gt;
 TIME_SERIE_COLUMN       : 3&lt;br /&gt;
 &amp;lt;&amp;lt;endproperty&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginproperty&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                    : salinity&lt;br /&gt;
 UNITS                   : psu&lt;br /&gt;
 DESCRIPTION            : salinity in the tagus river&lt;br /&gt;
 CONSTANT_CONC          : 1&lt;br /&gt;
 DEFAULTVALUE           : 0.01&lt;br /&gt;
 &amp;lt;&amp;lt;endproperty&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;enddischarge&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
[[Category:Modules]]&lt;br /&gt;
[[Category:MOHID Base 1]]&lt;/div&gt;</summary>
		<author><name>192.168.20.177</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Ajudas_de_custo&amp;diff=30</id>
		<title>Ajudas de custo</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Ajudas_de_custo&amp;diff=30"/>
				<updated>2008-10-06T16:09:04Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.177: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==2008==&lt;br /&gt;
*Extracto do regulamento de despesas do IST&lt;br /&gt;
&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/3b6d8cdb-dff4-4aa6-bda2-90d336f7698d/2008-10-06_1716.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/3b6d8cdb-dff4-4aa6-bda2-90d336f7698d/2008-10-06_1716.png&amp;quot; width=&amp;quot;727&amp;quot; height=&amp;quot;286&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Extracto da folha de excel da Filipa&lt;br /&gt;
&lt;br /&gt;
&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/bf9f100d-b37a-47a2-b528-54c214d561e9/2008-10-06_1717.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/bf9f100d-b37a-47a2-b528-54c214d561e9/2008-10-06_1717.png&amp;quot; width=&amp;quot;656&amp;quot; height=&amp;quot;384&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;&lt;/div&gt;</summary>
		<author><name>192.168.20.177</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=How_to_generate_tide_for_Mohid%3F&amp;diff=992</id>
		<title>How to generate tide for Mohid?</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=How_to_generate_tide_for_Mohid%3F&amp;diff=992"/>
				<updated>2008-10-03T09:05:32Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.177: /* That's it! */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Once you [[How_to_create_a_model_gridded_bathymetry%3F|created a gridded bathymetry]], before you run the model simulation, you may want to generate the tidal gauges that will generate the tide at the open-boundaries during the simulation.&lt;br /&gt;
&lt;br /&gt;
==Step 1 - Create the tidal gauges points in the GIS==&lt;br /&gt;
&lt;br /&gt;
===Create a new points layer in GIS===&lt;br /&gt;
*Make sure that you already have created your bathymetric gridded data file and that it's currently open in your GIS project. Now, simply add a new data item from the menu:&lt;br /&gt;
&amp;lt;htm&amp;gt;&lt;br /&gt;
&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/eb1787b2-17a3-44e8-9afd-6ebffd39b685/2008-09-30_1338.png&amp;quot; &amp;gt;&amp;lt;/img&amp;gt;&lt;br /&gt;
&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Select ''XYZ'' type, then click on ''Browse''&lt;br /&gt;
&amp;lt;htm&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/c9537831-a605-445f-a0a9-0bdc06906b83/2008-09-30_1458.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/c9537831-a605-445f-a0a9-0bdc06906b83/2008-09-30_1458.png&amp;quot; width=&amp;quot;408&amp;quot; height=&amp;quot;201&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Choose a name for the tidal gauge points, then hit save:&lt;br /&gt;
&amp;lt;htm&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/be0f8565-672b-4cba-a0eb-2d4e0740f380/2008-09-30_1501.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/be0f8565-672b-4cba-a0eb-2d4e0740f380/2008-09-30_1501.png&amp;quot; width=&amp;quot;563&amp;quot; height=&amp;quot;412&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Hit the Ok button&lt;br /&gt;
&amp;lt;htm&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/b8297648-3a07-4420-b8e3-b116ba98b09b/2008-09-30_1503.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/b8297648-3a07-4420-b8e3-b116ba98b09b/2008-09-30_1503.png&amp;quot; width=&amp;quot;408&amp;quot; height=&amp;quot;201&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Edit the points layer===&lt;br /&gt;
&lt;br /&gt;
*Type ''4'' in the size text-box, and then select settings:&lt;br /&gt;
&amp;lt;htm&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/bf8b6f9c-bcc7-466d-9d35-754f02dfffad/2008-09-30_1514.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/bf8b6f9c-bcc7-466d-9d35-754f02dfffad/2008-09-30_1514.png&amp;quot; width=&amp;quot;744&amp;quot; height=&amp;quot;457&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Select option ''Constant'', then click on Pick Color (a new window pops up), then select a bright color and hit Ok on the new window (it will make the new window close), then click on Ok, and the new configuration will be enabled.&lt;br /&gt;
&amp;lt;htm&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/9af53612-cdcc-42a2-8446-754cfdf804d8/2008-09-30_1520.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/9af53612-cdcc-42a2-8446-754cfdf804d8/2008-09-30_1520.png&amp;quot; width=&amp;quot;557&amp;quot; height=&amp;quot;349&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Close and comply with changes by hitting the Ok button&lt;br /&gt;
&amp;lt;htm&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/163854df-1db9-432a-b279-e1867a45ce25/2008-09-30_1530.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/163854df-1db9-432a-b279-e1867a45ce25/2008-09-30_1530.png&amp;quot; width=&amp;quot;463&amp;quot; height=&amp;quot;153&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Add the tidal gauges to the points layer===&lt;br /&gt;
&lt;br /&gt;
*Select the ''TideGaugesTest.xyz'' points layer, then select the add a point command:&lt;br /&gt;
&amp;lt;htm&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/3134eee5-3701-4f8f-9bb0-a47c93c96694/2008-09-30_1535.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/3134eee5-3701-4f8f-9bb0-a47c93c96694/2008-09-30_1535.png&amp;quot; width=&amp;quot;641&amp;quot; height=&amp;quot;224&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Hit Ok ...&lt;br /&gt;
&amp;lt;htm&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/c0d2df5d-4eb1-4e46-b868-acc7018ffea6/2008-09-30_1543.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/c0d2df5d-4eb1-4e46-b868-acc7018ffea6/2008-09-30_1543.png&amp;quot; width=&amp;quot;300&amp;quot; height=&amp;quot;129&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Click to add points all along the open boundaries, roughly 10 cells wide apart:&lt;br /&gt;
&amp;lt;htm&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/36056d54-9fe7-4c84-88db-7aead37b98e1/2008-09-30_1548.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/36056d54-9fe7-4c84-88db-7aead37b98e1/2008-09-30_1548.png&amp;quot; width=&amp;quot;467&amp;quot; height=&amp;quot;304&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Keep adding those points alternatively on each side of the open-boundary&lt;br /&gt;
&amp;lt;htm&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/2eeb79f5-2b64-4939-af45-15a71a3218af/2008-09-30_1552.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/2eeb79f5-2b64-4939-af45-15a71a3218af/2008-09-30_1552.png&amp;quot; width=&amp;quot;806&amp;quot; height=&amp;quot;471&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Final look:&lt;br /&gt;
&amp;lt;htm&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/208fa9ed-3cd2-4d8a-bc1b-439f38a7c3a9/2008-09-30_1555.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/208fa9ed-3cd2-4d8a-bc1b-439f38a7c3a9/2008-09-30_1555.png&amp;quot; width=&amp;quot;550&amp;quot; height=&amp;quot;532&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Save the tidal gauges points layer===&lt;br /&gt;
&lt;br /&gt;
*From the ''Data Items'' menu, select the ''Save All'' option&lt;br /&gt;
&amp;lt;htm&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/59c74f4a-e0b3-4972-8373-aa2a17f45c63/2008-09-30_1558.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/59c74f4a-e0b3-4972-8373-aa2a17f45c63/2008-09-30_1558.png&amp;quot; width=&amp;quot;610&amp;quot; height=&amp;quot;293&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Step 2 - Generate the tidal gauges from FES2004==&lt;br /&gt;
&lt;br /&gt;
In order to generate tidal gauges from FES2004, you will need to obtain the data file and the program that performs the extraction into MOHID tidal-gauge format. [[Fes2004|Here]] you will find details about that.&lt;br /&gt;
&lt;br /&gt;
*Get the [http://maretec.mohid.com/PublicData/products/Software/Mohid-Tide_v0.4.zip mohid-tide] package and extract it somewhere on your disk;&lt;br /&gt;
&amp;lt;htm&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/d0f50330-735c-4f46-98c2-ac0b2d2837fc/2008-09-30_1759.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/d0f50330-735c-4f46-98c2-ac0b2d2837fc/2008-09-30_1759.png&amp;quot; width=&amp;quot;455&amp;quot; height=&amp;quot;237&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Transfer the xyz file to the mohid-tide folder. ''WARNING: Remove any blank lines from the xyz file!''&lt;br /&gt;
&amp;lt;htm&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/f46bb001-c0a6-4550-856c-f289c69444f8/2008-09-30_1818.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/f46bb001-c0a6-4550-856c-f289c69444f8/2008-09-30_1818.png&amp;quot; width=&amp;quot;432&amp;quot; height=&amp;quot;455&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Edit the run-tide.bat accordingly to the following example:&lt;br /&gt;
 &amp;gt;mohid-tide ..\fes2004data\tide.nc TideGaugesTest.xyz output.dat 0 2.08&lt;br /&gt;
&amp;lt;htm&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/02c18beb-569b-4a07-82a9-52a7bc824b41/2008-09-30_1810.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/02c18beb-569b-4a07-82a9-52a7bc824b41/2008-09-30_1810.png&amp;quot; width=&amp;quot;939&amp;quot; height=&amp;quot;404&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Run the batch file. This will create the tidal gauge file.&lt;br /&gt;
&amp;lt;htm&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/fd5be2bd-445a-4baf-a412-10111385c3d2/2008-09-30_1831.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/fd5be2bd-445a-4baf-a412-10111385c3d2/2008-09-30_1831.png&amp;quot; width=&amp;quot;674&amp;quot; height=&amp;quot;417&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Verify if your tidal gauge file is correctly formed. Edit it and inspect.&lt;br /&gt;
&amp;lt;htm&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/639f1a32-a94a-4107-b287-863ae152a039/2008-09-30_1838.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/639f1a32-a94a-4107-b287-863ae152a039/2008-09-30_1838.png&amp;quot; width=&amp;quot;673&amp;quot; height=&amp;quot;556&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===That's it!===&lt;br /&gt;
If all went well, then you have a valid gridded bathymetry for the domain and you have tidal gauges extracted from the [[Fes2004]] solution that will generate tide to the model. You're ok to start building a project using [[Mohid GUI]].&lt;br /&gt;
&lt;br /&gt;
==Next steps==&lt;br /&gt;
*Read the [[Mohid GUI]] to create a new simulation project then,&lt;br /&gt;
*[[How to configure a 2D model forced with tide with MOHID]]&lt;br /&gt;
&lt;br /&gt;
==About the screen capturing tool==&lt;br /&gt;
The screen capturing tool used for this tutorial was the [http://www.jingproject.com/ Jing Project].&lt;br /&gt;
&lt;br /&gt;
[[Category:Graphical User Interfaces]]&lt;br /&gt;
[[Category:Help]]&lt;br /&gt;
[[Category:Mohid Water]]&lt;br /&gt;
[[Category:Exercises]]&lt;br /&gt;
[[Category:Example]]&lt;br /&gt;
[[Category:Tools]]&lt;br /&gt;
[[Category:How To]]&lt;/div&gt;</summary>
		<author><name>192.168.20.177</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=How_to_create_a_bathymetry&amp;diff=328</id>
		<title>How to create a bathymetry</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=How_to_create_a_bathymetry&amp;diff=328"/>
				<updated>2008-09-26T11:40:52Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.177: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#Redirect [[How_to_create_a_model_gridded_bathymetry%3F]]&lt;/div&gt;</summary>
		<author><name>192.168.20.177</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Tide_Preview&amp;diff=895</id>
		<title>Tide Preview</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Tide_Preview&amp;diff=895"/>
				<updated>2008-09-24T13:58:08Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.177: /* See also */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Tide Preview]] allows to generate a tide timeserie from the harmonic consituents of a given tidal gauge.&lt;br /&gt;
&lt;br /&gt;
Configuration of the '''TidePrevInput.dat''' file:&lt;br /&gt;
&lt;br /&gt;
   START                       : YYYY MM DD HH MM SS -         !Start time to compute water level&lt;br /&gt;
   END                         : YYYY MM DD HH MM SS -         !End time to compute water level&lt;br /&gt;
   DT                          : real              -           !Time step to compute water level&lt;br /&gt;
   EXPORT_TO_XYZ               : 0/1               0           !Create a XYZ file with gauge locations&lt;br /&gt;
   XYZ_FILE                    : char              -           !Name of XYZ file to be created&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;begintideprev&amp;gt;&lt;br /&gt;
   IN_TIDES                    : char              -           !Path to gauge file&lt;br /&gt;
   OUT_FILE                    : char              -           !Path to output water level time serie file &lt;br /&gt;
 &amp;lt;endtideprev&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Sample IN_TIDES file:&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;begingauge&amp;gt;&lt;br /&gt;
 NAME        : nth test&lt;br /&gt;
 LONGITUDE   : -16.0000 33.0000 15.0000&lt;br /&gt;
 LATITUDE    : 15.0000 44.0000 35.0000&lt;br /&gt;
 METRIC_X    : -16.5543&lt;br /&gt;
 METRIC_Y    : 15.7432&lt;br /&gt;
 REF_LEVEL   :         2.08000&lt;br /&gt;
 TIME_REF    :        0.000000&lt;br /&gt;
 M2          :         0.432953       -88.0402&lt;br /&gt;
 S2          :         0.166823       -51.6513&lt;br /&gt;
 K1          :        0.0566607       -4.53947&lt;br /&gt;
 K2          :        0.0460439       -54.6424&lt;br /&gt;
 N2          :        0.0820980       -108.615&lt;br /&gt;
 2N2         :        0.0104858       -129.940&lt;br /&gt;
 O1          :        0.0396148       -104.233&lt;br /&gt;
 Q1          :        0.0186481       -4.40105&lt;br /&gt;
 P1          :        0.0121636       -161.633&lt;br /&gt;
 M4          :         0.000000       0.000000&lt;br /&gt;
 Mf          :        0.0140184       -1.40625&lt;br /&gt;
 Mm          :       0.00688141       -4.94457&lt;br /&gt;
 Mtm         :       0.00290994        2.06745&lt;br /&gt;
 MSqm        :      0.000401051        4.38925&lt;br /&gt;
 &amp;lt;endgauge&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Tools]]&lt;/div&gt;</summary>
		<author><name>192.168.20.177</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Tideprev&amp;diff=897</id>
		<title>Tideprev</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Tideprev&amp;diff=897"/>
				<updated>2008-09-24T13:20:58Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.177: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Tide Preview]]&lt;/div&gt;</summary>
		<author><name>192.168.20.177</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Mohid_Support_Tools&amp;diff=643</id>
		<title>Mohid Support Tools</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Mohid_Support_Tools&amp;diff=643"/>
				<updated>2008-09-23T14:09:19Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.177: /* Pre-processing */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Overview ==&lt;br /&gt;
&lt;br /&gt;
MOHID Water Modelling System has a large variety of support tools used to help creating simulations, preparing and processing input and output data files. Below is a list of the support tools built around MOHID. &lt;br /&gt;
&lt;br /&gt;
== Pre-processing ==&lt;br /&gt;
*[[AssimilationPreProcessor]]&lt;br /&gt;
*[[AssimilationZones]]&lt;br /&gt;
*[[BasinDelimiter]]&lt;br /&gt;
*[[Box2GridData]]&lt;br /&gt;
*[[ConvertToHDF5]]&lt;br /&gt;
*[[ConvertToXYZ]]&lt;br /&gt;
*[[CopyMohidProject]]&lt;br /&gt;
*[[Digital Terrain Creator]]&lt;br /&gt;
*[[FillMatrix]]&lt;br /&gt;
*[[Fes95]]&lt;br /&gt;
*[[Fes2004]]&lt;br /&gt;
*[[FilterBathymetry]]&lt;br /&gt;
*[[GenerateGrid]]&lt;br /&gt;
*[[HydrodynamicAnalyser]]&lt;br /&gt;
*[[InvertedBarometer]]&lt;br /&gt;
*[[Kml2Mohid]]&lt;br /&gt;
*[[NOAAnetcdfTOhdf5]]&lt;br /&gt;
*[[SmoothBatimNesting]]&lt;br /&gt;
*[[Tide Preview]]&lt;br /&gt;
*[[TimeSeriesCreator]]&lt;br /&gt;
&lt;br /&gt;
== Post-processing ==&lt;br /&gt;
*[[ConvertToTimeSerie]]&lt;br /&gt;
*[[MovingTimeSerie]]&lt;br /&gt;
*[[MovingProfile]]&lt;br /&gt;
*[[TidalGaugeCharts]]&lt;br /&gt;
*[[Convert2netcdf]]&lt;br /&gt;
&lt;br /&gt;
== HDF5 tools ==&lt;br /&gt;
*[[HDF5Extractor]]&lt;br /&gt;
*[[HDF5Exporter]]&lt;br /&gt;
*[[HDF5Operator]]&lt;br /&gt;
*[[HDF5Statistics]]&lt;br /&gt;
&lt;br /&gt;
== [[MatLab]] Tools ==&lt;br /&gt;
*[[MatLab_Tools|Various tools]]: includes reading and plotting MOHID HDF5.&lt;br /&gt;
*[[MatLab_Timeseries|Timeseries]]&lt;br /&gt;
*[[MatLab_TideAnalyser|TideAnalyser]]&lt;br /&gt;
&lt;br /&gt;
== Time Series tools ==&lt;br /&gt;
*[[Mohid Statistics Analyser]]&lt;br /&gt;
*[[JoinTimeSeries]]&lt;br /&gt;
&lt;br /&gt;
== Others ==&lt;br /&gt;
*[[CoordTrans]]&lt;br /&gt;
*[[MohidReservoirOptimization]]&lt;br /&gt;
*[[SWAT Link]]&lt;br /&gt;
&lt;br /&gt;
== Not developed by the MOHID team ==&lt;br /&gt;
*[[Sos|Source OffSite]]&lt;br /&gt;
*[[SourceSafe]]&lt;br /&gt;
*[[OpenDAP]]&lt;br /&gt;
*[[LAS]]&lt;br /&gt;
*[[Wiki]]&lt;br /&gt;
*[[H5DUMP]]&lt;br /&gt;
*[[SeaDAS]]&lt;br /&gt;
*[[Notepadplus]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Tools]]&lt;br /&gt;
[[Category:Hdf5]]&lt;/div&gt;</summary>
		<author><name>192.168.20.177</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Kml2Mohid&amp;diff=382</id>
		<title>Kml2Mohid</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Kml2Mohid&amp;diff=382"/>
				<updated>2008-09-23T10:58:05Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.177: /* Other platforms */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Kml2Mohid]] is a little program that converts [[Google Earth]] [[kml]] files into Mohid [[GIS]] data files. It's quite useful to quickly create coastlines in [[Google Earth]].&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
Open a command-line window and type:&lt;br /&gt;
&lt;br /&gt;
 &amp;gt; [http://www.mohid.com/hydrogroup/data_sources/kml2mohid.exe kml2mohid.exe] MyGEDataFile.kml&lt;br /&gt;
&lt;br /&gt;
It may output a point file (.xyz), a line file (.lin) and/or a polygon file (.xy) depending if it finds relevant data in the [[kml]] file.&lt;br /&gt;
&lt;br /&gt;
==Other platforms==&lt;br /&gt;
Alternatively, you may install [[ruby]] and use the ruby [http://www.mohid.com/hydrogroup/data_sources/kml2mohid.rb source code] (~80 lines). Eventually one may create a local executable with the [[ruby#Features|rubyscript2exe]] module.&lt;br /&gt;
&lt;br /&gt;
 &amp;gt; ruby [http://www.mohid.com/hydrogroup/data_sources/kml2mohid.rb kml2mohid.rb] MyGEDataFile.kml&lt;br /&gt;
&lt;br /&gt;
[[Category:Programming]]&lt;br /&gt;
[[Category:Tools]]&lt;/div&gt;</summary>
		<author><name>192.168.20.177</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Kml&amp;diff=380</id>
		<title>Kml</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Kml&amp;diff=380"/>
				<updated>2008-09-22T20:28:32Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.177: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[KML]] is the Keyhole Markup Language. It's an [[xml]]-based language that allows to create content for Google Earth and Google Maps.&lt;br /&gt;
&lt;br /&gt;
It allows to create [[viewpoints]], [[placemarks]], [[paths]], [[shapes]], [[image overlays]] and [[3D buildings]]. It also allows to embed customized [[html]] code in the [[placemarks]].&lt;br /&gt;
&lt;br /&gt;
==Sample kml file==&lt;br /&gt;
&lt;br /&gt;
=== Placemarks with custom html code ===&lt;br /&gt;
[http://maps.google.com/maps?f=q&amp;amp;q=http%3A%2F%2Fnfist.ist.utl.pt%2F%7Eguillaume%2FMohidBeachcams_NetL.kml&amp;amp;btnG=Search+Maps Here's] a simple [[kml]] file that adds a [[placemark]], a [[viewpoint]] for it, and embeds some custom html code:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
 &amp;lt;kml xmlns=&amp;quot;http://earth.google.com/kml/2.2&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;Document&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
  &amp;lt;name&amp;gt;MohidBeachCams.kml&amp;lt;/name&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
  &amp;lt;visibility&amp;gt;1&amp;lt;/visibility&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
  &amp;lt;Folder&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
    &amp;lt;name&amp;gt;Portugal Beach Cams&amp;lt;/name&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
    &amp;lt;visibility&amp;gt;1&amp;lt;/visibility&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
    &amp;lt;description&amp;gt;&lt;br /&gt;
     &amp;lt;![CDATA[&lt;br /&gt;
      Live data from &amp;lt;a href=&amp;quot;http://cams.beachcam.pt/&amp;quot;&amp;gt;Beachcam_PT&amp;lt;/a&amp;gt; &lt;br /&gt;
      and &amp;lt;a href=&amp;quot;http://www.surftotal.com/webcams2/Default.htm&amp;quot;&amp;gt;SurfTotal webcams&amp;lt;/a&amp;gt;.&lt;br /&gt;
      Best viewed when using GE built-in web browser.&lt;br /&gt;
      Tools -&amp;gt; Options -&amp;gt; Preferences -&amp;gt; Navigation bar -&amp;gt; Uncheck &amp;quot;Show web results in external  browser&amp;quot;.&lt;br /&gt;
    ]]&amp;gt;&lt;br /&gt;
    &amp;lt;/description&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
    &amp;lt;LookAt&amp;gt;&lt;br /&gt;
      &amp;lt;longitude&amp;gt;-9.285977261935919&amp;lt;/longitude&amp;gt;&lt;br /&gt;
      &amp;lt;latitude&amp;gt;38.7380813109443&amp;lt;/latitude&amp;gt;&lt;br /&gt;
      &amp;lt;range&amp;gt;47801.2002729008&amp;lt;/range&amp;gt;&lt;br /&gt;
      &amp;lt;tilt&amp;gt;2.43637162447063e-011&amp;lt;/tilt&amp;gt;&lt;br /&gt;
      &amp;lt;heading&amp;gt;0.01425072853298695&amp;lt;/heading&amp;gt;&lt;br /&gt;
    &amp;lt;/LookAt&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
    &amp;lt;Placemark&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
      &amp;lt;name&amp;gt;Praia do Guincho&amp;lt;/name&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
      &amp;lt;LookAt&amp;gt;&lt;br /&gt;
        &amp;lt;longitude&amp;gt;-9.470984593789977&amp;lt;/longitude&amp;gt;&lt;br /&gt;
        &amp;lt;latitude&amp;gt;38.73175408910536&amp;lt;/latitude&amp;gt;&lt;br /&gt;
        &amp;lt;range&amp;gt;1421.36386586457&amp;lt;/range&amp;gt;&lt;br /&gt;
        &amp;lt;tilt&amp;gt;2.897405864852683e-010&amp;lt;/tilt&amp;gt;&lt;br /&gt;
        &amp;lt;heading&amp;gt;-0.08870325629105799&amp;lt;/heading&amp;gt;&lt;br /&gt;
      &amp;lt;/LookAt&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
      &amp;lt;styleUrl&amp;gt;#camneutra&amp;lt;/styleUrl&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
      &amp;lt;Point&amp;gt;&lt;br /&gt;
        &amp;lt;coordinates&amp;gt;-9.472970249051258,38.73236056451183,0&amp;lt;/coordinates&amp;gt;&lt;br /&gt;
      &amp;lt;/Point&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
      &amp;lt;description&amp;gt;&lt;br /&gt;
         &amp;lt;![CDATA[&lt;br /&gt;
          Looking from Praia do Guincho.&lt;br /&gt;
          &amp;lt;img src=&amp;quot;&amp;lt;code&amp;gt;http://cams.beachcam.pt//camaxis/guincho_00001.jpg&amp;lt;/code&amp;gt;&amp;quot;&amp;gt;&lt;br /&gt;
          Surf report &amp;lt;a href=&amp;quot;http://cams.beachcam.pt/praias_beachcams.php?id=18&amp;quot;&amp;gt;here&amp;lt;/a&amp;gt;.&lt;br /&gt;
          Live cam &amp;lt;a href=&amp;quot;http://www.surftotal.com/webcams2/guincho_cam.asp?id=25&amp;quot;&amp;gt;here&amp;lt;/a&amp;gt;.&lt;br /&gt;
         ]]&amp;gt;&lt;br /&gt;
      &amp;lt;/description&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
    &amp;lt;/Placemark&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
  &amp;lt;/Folder&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;/Document&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;/kml&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Network links ===&lt;br /&gt;
[[Network links]] can be very useful when providing early releases of beta services. This way, the developper may continue to upgrade the production version of the [[kml]] file, by providing to the users a file that contains a link to it.&lt;br /&gt;
&lt;br /&gt;
[http://maps.google.com/maps?f=q&amp;amp;q=http%3A%2F%2Fnfist.ist.utl.pt%2F%7Eguillaume%2FMohidBeachcams_NetL.kml&amp;amp;btnG=Search+Maps Here's] a simple kml file that adds a [[network link]] to another [[kml]] file:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
 &amp;lt;kml xmlns=&amp;quot;http://earth.google.com/kml/2.2&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;NetworkLink&amp;gt;&lt;br /&gt;
        &amp;lt;name&amp;gt;MohidBeachcams&amp;lt;/name&amp;gt;&lt;br /&gt;
        &amp;lt;open&amp;gt;1&amp;lt;/open&amp;gt;&lt;br /&gt;
        &amp;lt;flyToView&amp;gt;1&amp;lt;/flyToView&amp;gt;&lt;br /&gt;
        &amp;lt;Url&amp;gt;&lt;br /&gt;
                &amp;lt;href&amp;gt;http://nfist.ist.utl.pt/~guillaume/BeachCams_PT.kml&amp;lt;/href&amp;gt;&lt;br /&gt;
                &amp;lt;refreshMode&amp;gt;onInterval&amp;lt;/refreshMode&amp;gt;&lt;br /&gt;
                &amp;lt;refreshInterval&amp;gt;50&amp;lt;/refreshInterval&amp;gt;&lt;br /&gt;
                &amp;lt;viewRefreshMode&amp;gt;onRegion&amp;lt;/viewRefreshMode&amp;gt;&lt;br /&gt;
        &amp;lt;/Url&amp;gt;&lt;br /&gt;
 &amp;lt;/NetworkLink&amp;gt;&lt;br /&gt;
 &amp;lt;/kml&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Image overlays ===&lt;br /&gt;
&lt;br /&gt;
=== Regions ===&lt;br /&gt;
&lt;br /&gt;
=== Time ===&lt;br /&gt;
&lt;br /&gt;
==Kml2Mohid==&lt;br /&gt;
&lt;br /&gt;
[[Kml2Mohid]] is a little [[ruby]] program that converts [[Google Earth]] [[kml]] files into Mohid [[GIS]] data files.&lt;br /&gt;
&lt;br /&gt;
==External References==&lt;br /&gt;
*[http://code.google.com/apis/kml/documentation/index.html Kml reference documentation]&lt;br /&gt;
*[http://maps.google.com/maps?f=q&amp;amp;q=http%3A%2F%2Fnfist.ist.utl.pt%2F%7Eguillaume%2FMohidBeachcams_NetL.kml&amp;amp;btnG=Search+Maps MohidBeachCams]&lt;br /&gt;
*[http://earth.google.com Google Earth]&lt;br /&gt;
*[http://maps.google.com Google Maps]&lt;br /&gt;
*[http://maps.google.com/maps/mm?mapprev=1 Google Mapplets]&lt;br /&gt;
&lt;br /&gt;
[[Category:Technology]]&lt;br /&gt;
[[Category:Windows]]&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:Google]]&lt;/div&gt;</summary>
		<author><name>192.168.20.177</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Convert2netcdf&amp;diff=138</id>
		<title>Convert2netcdf</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Convert2netcdf&amp;diff=138"/>
				<updated>2008-09-11T11:19:19Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.177: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Overview ==&lt;br /&gt;
'''Convert2netcdf''' is a tool to convert MOHID results files written in [[HDF5]] format into [[netcdf]]. &lt;br /&gt;
This tool makes use of [[ModuleNETCDF]] (under development and to be included in [[MOHID Base 1]]). Optionally, you can extract only specified datasets.&lt;br /&gt;
&lt;br /&gt;
== Input data file == &lt;br /&gt;
The input data file must be placed in the working folder and must be named ''Convert2netcdf.dat''. &lt;br /&gt;
&lt;br /&gt;
 HDF_FILE             : [char]    !Path to the HDF5 file to be converted&lt;br /&gt;
 HDF_SIZE_GROUP       : [char]    !HDF group containing the HDF dataset from where &lt;br /&gt;
                                  !the dimensions will be read&lt;br /&gt;
 HDF_SIZE_DATASET     : [char]    !Name of the HDF dataset from where the dimensions&lt;br /&gt;
                                  !will be read&lt;br /&gt;
 HDF_TIME_VAR         : [char]    !Name of the HDF group containing the &lt;br /&gt;
                                  !time values&lt;br /&gt;
 HDF_READ_LATLON      : int       !Type of projection (0 - metric, 1 - lat/lon)&lt;br /&gt;
 HDF_READ_SIGMA       : int       !Type of vertical coordinate (0 - cartesian, 1 - sigma)&lt;br /&gt;
 &lt;br /&gt;
 IMPOSE_MASK          : bool      !In case we want to specify the mask variable.&lt;br /&gt;
 HDF_MASK             : [char]    !If we chose to specify a mask variable, then we define here&lt;br /&gt;
                                  !the variable name&lt;br /&gt;
 HDF_MASK_IS_3D       : bool      !Is the mask variable 3D? yes or no.&lt;br /&gt;
 RESULTS_ARE_2D       : bool      !Sometimes the mask variable is 3D, but the results&lt;br /&gt;
 &lt;br /&gt;
 CONVERT_EVERYTHING   : int       !0 - Don't convert everything, 1 - Convert everything&lt;br /&gt;
 VGROUP_TO_CONVERT    : [char]    !Path to dataset(s) to converto. (e.g. /Results/water level)&lt;br /&gt;
 &lt;br /&gt;
 NETCDF_FILE          : [char]    !netcdf file to be created&lt;br /&gt;
 NETCDF_TITLE         : [char]    !netcdf file title &lt;br /&gt;
 NETCDF_CONVENTION    : [char]    !netcdf naming convention   &lt;br /&gt;
 NETCDF_VERSION       : [char]    !netcdf library version&lt;br /&gt;
 NETCDF_HISTORY       : [char]    !netcdf file history&lt;br /&gt;
 NETCDF_SOURCE        : [char]    !netcdf file source &lt;br /&gt;
 NETCDF_INSTITUTION   : [char]    !netcdf institution&lt;br /&gt;
 NETCDF_REFERENCES    : [char]    !netcdf references&lt;br /&gt;
 NETCDF_DATE          : int       !current year&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
 HDF_FILE             : WaterProperties_1.hdf5&lt;br /&gt;
 HDF_SIZE_GROUP       : /Grid&lt;br /&gt;
 HDF_SIZE_DATASET     : WaterPoints3D&lt;br /&gt;
 HDF_TIME_VAR         : Time&lt;br /&gt;
 HDF_READ_LATLON      : 1&lt;br /&gt;
 CONVERT_EVERYTHING   : 0&lt;br /&gt;
 VGROUP_TO_CONVERT    : /Results/salinity&lt;br /&gt;
 &lt;br /&gt;
 NETCDF_FILE          : WaterProperties_1.nc&lt;br /&gt;
 NETCDF_TITLE         : WaterProperties file converted to netcdf &lt;br /&gt;
 NETCDF_CONVENTION    : CF-1.0&lt;br /&gt;
 NETCDF_VERSION       : 3.6.1&lt;br /&gt;
 NETCDF_HISTORY       : Converted from hdf5&lt;br /&gt;
 NETCDF_SOURCE        : File created by MOHID-Convert2ncdf&lt;br /&gt;
 NETCDF_INSTITUTION   : Instituto Superior Técnico (IST)&lt;br /&gt;
 NETCDF_REFERENCES    : http://www.mohid.com/&lt;br /&gt;
 NETCDF_DATE          : 2006&lt;br /&gt;
&lt;br /&gt;
[[Category:Tools]]&lt;/div&gt;</summary>
		<author><name>192.168.20.177</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Google_ajax_api&amp;diff=288</id>
		<title>Google ajax api</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Google_ajax_api&amp;diff=288"/>
				<updated>2008-09-08T14:25:33Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.177: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Here's a sample usage of the [[Google ajax api]]. This api is best combined with [[jQuery]].&lt;br /&gt;
&lt;br /&gt;
 jQuery.get(http://ajax.googleapis.com/ajax/services/search/web?v=1.0&amp;amp;q=cocu&amp;amp;btnI=kudos)&lt;br /&gt;
 =&amp;gt;&lt;br /&gt;
 {   &amp;quot;responseData&amp;quot;: {&lt;br /&gt;
        &amp;quot;results&amp;quot;:[{&lt;br /&gt;
            &amp;quot;GsearchResultClass&amp;quot;:&amp;quot;GwebSearch&amp;quot;,&lt;br /&gt;
            &amp;quot;unescapedUrl&amp;quot;:&amp;quot;http://en.wikipedia.org/wiki/Phillip_Cocu&amp;quot;,&lt;br /&gt;
            &amp;quot;url&amp;quot;:&amp;quot;http://en.wikipedia.org/wiki/Phillip_Cocu&amp;quot;,&lt;br /&gt;
            &amp;quot;visibleUrl&amp;quot;:&amp;quot;en.wikipedia.org&amp;quot;,&lt;br /&gt;
            &amp;quot;cacheUrl&amp;quot;:&amp;quot;http://www.google.com/search?q\u003dcache:ffIT9MMI2OgJ:en.wikipedia.org&amp;quot;,&lt;br /&gt;
            &amp;quot;title&amp;quot;:&amp;quot;Phillip \u003cb\u003eCocu\u003c/b\u003e - Wikipedia, the free encyclopedia&amp;quot;,&lt;br /&gt;
            &amp;quot;titleNoFormatting&amp;quot;:&amp;quot;Phillip Cocu - Wikipedia, the free encyclopedia&amp;quot;,&lt;br /&gt;
            &amp;quot;content&amp;quot;:&amp;quot;Phillip John William \u003cb\u003eCocu\u003c/b\u003e (born October 29, 1970 in Eindhoven, Noord-Brabant) is   a former Dutch football midfielder who is currently an assistant manager of \u003cb\u003e...\u003c/b\u003e&amp;quot;&lt;br /&gt;
        }, {&lt;br /&gt;
            &amp;quot;GsearchResultClass&amp;quot;:&amp;quot;GwebSearch&amp;quot;,&lt;br /&gt;
            &amp;quot;unescapedUrl&amp;quot;:&amp;quot;http://french.about.com/library/weekly/aa020901t.htm&amp;quot;,&lt;br /&gt;
            &amp;quot;url&amp;quot;:&amp;quot;http://french.about.com/library/weekly/aa020901t.htm&amp;quot;,&lt;br /&gt;
            &amp;quot;visibleUrl&amp;quot;:&amp;quot;french.about.com&amp;quot;,&lt;br /&gt;
            &amp;quot;cacheUrl&amp;quot;:&amp;quot;http://www.google.com/search?q\u003dcache:doki3cm1bD4J:french.about.com&amp;quot;,&lt;br /&gt;
            &amp;quot;title&amp;quot;:&amp;quot;\u003cb\u003eCocu\u003c/b\u003e - Gestes français - French Gestures&amp;quot;,&lt;br /&gt;
            &amp;quot;titleNoFormatting&amp;quot;:&amp;quot;Cocu - Gestes français - French Gestures&amp;quot;,&lt;br /&gt;
            &amp;quot;content&amp;quot;:&amp;quot;\u003cb\u003eCocu\u003c/b\u003e literally means \u0026quot;cuckold.\u0026quot;  Hold your index fingers up next to your ears and   wiggle them up and down. Register - vulgar \u003cb \u003e...\u003c/b\u003e&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[[Category:Google]]&lt;br /&gt;
[[Category:Programming]]&lt;/div&gt;</summary>
		<author><name>192.168.20.177</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Google&amp;diff=284</id>
		<title>Google</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Google&amp;diff=284"/>
				<updated>2008-09-08T14:24:02Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.177: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Search|Searching google]] can be an art. You can search this [[wiki]] too.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;csegoogle&amp;gt;007941234899421137885:xtadckhl66k&amp;lt;/csegoogle&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Finding certain file types==&lt;br /&gt;
 filetype:mp3&lt;br /&gt;
 filetype:pdf&lt;br /&gt;
 filetype:xspf&lt;br /&gt;
 filetype:m3u&lt;br /&gt;
&lt;br /&gt;
==[[Google ajax api|Ajax api]]==&lt;br /&gt;
How to use the [[Google ajax api]].&lt;br /&gt;
&lt;br /&gt;
==External References==&lt;br /&gt;
*[http://www.google.com/ Google]&lt;br /&gt;
&lt;br /&gt;
[[Category:Web]]&lt;/div&gt;</summary>
		<author><name>192.168.20.177</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Mod-python&amp;diff=492</id>
		<title>Mod-python</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Mod-python&amp;diff=492"/>
				<updated>2008-09-05T17:01:16Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.177: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Mod-python]] is a module for the apache web server that allows to run [[python]] scripts and publish html.&lt;br /&gt;
&lt;br /&gt;
==Configuring==&lt;br /&gt;
&lt;br /&gt;
Edit ''/etc/httpd/conf.d/python.conf'' or the ''/etc/httpd/conf/httpd.conf''&lt;br /&gt;
&lt;br /&gt;
 LoadModule python_module modules/mod_python.so&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;Directory /var/www/html/python&amp;gt;&lt;br /&gt;
    AddHandler mod_python .py&lt;br /&gt;
    PythonHandler mod_python.publisher&lt;br /&gt;
    PythonDebug On&lt;br /&gt;
 &amp;lt;/Directory&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also add the following lines in the ''.htaccess'' file from the local user's ''public_html'' directory:&lt;br /&gt;
    AddHandler mod_python .py&lt;br /&gt;
    PythonHandler mod_python.publisher&lt;br /&gt;
    PythonDebug On&lt;br /&gt;
&lt;br /&gt;
==Testing==&lt;br /&gt;
&lt;br /&gt;
/var/www/html/test.html&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;html&amp;gt;&lt;br /&gt;
 &amp;lt;head&amp;gt;&lt;br /&gt;
   &amp;lt;title&amp;gt;A simple &amp;quot;get month&amp;quot; script&amp;lt;/title&amp;gt;&lt;br /&gt;
 &amp;lt;/head&amp;gt;&lt;br /&gt;
   &amp;lt;body&amp;gt;&lt;br /&gt;
   &amp;lt;form method=&amp;quot;POST&amp;quot; '''action=&amp;quot;python/getMonth.py/getMonth&amp;quot;'''&amp;gt;&lt;br /&gt;
   Show which month for 2005&lt;br /&gt;
   &amp;lt;select name=&amp;quot;month&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;option value=&amp;quot;1&amp;quot;&amp;gt;January&amp;lt;/option&amp;gt;&lt;br /&gt;
      &amp;lt;option value=&amp;quot;2&amp;quot;&amp;gt;February&amp;lt;/option&amp;gt;&lt;br /&gt;
      &amp;lt;option value=&amp;quot;3&amp;quot;&amp;gt;March&amp;lt;/option&amp;gt;&lt;br /&gt;
      &amp;lt;option value=&amp;quot;4&amp;quot;&amp;gt;April&amp;lt;/option&amp;gt;&lt;br /&gt;
      &amp;lt;option value=&amp;quot;5&amp;quot;&amp;gt;May&amp;lt;/option&amp;gt;&lt;br /&gt;
      &amp;lt;option value=&amp;quot;6&amp;quot;&amp;gt;June&amp;lt;/option&amp;gt;&lt;br /&gt;
      &amp;lt;option value=&amp;quot;7&amp;quot;&amp;gt;July&amp;lt;/option&amp;gt;&lt;br /&gt;
      &amp;lt;option value=&amp;quot;8&amp;quot;&amp;gt;August&amp;lt;/option&amp;gt;&lt;br /&gt;
      &amp;lt;option value=&amp;quot;9&amp;quot;&amp;gt;September&amp;lt;/option&amp;gt;&lt;br /&gt;
      &amp;lt;option value=&amp;quot;10&amp;quot;&amp;gt;October&amp;lt;/option&amp;gt;&lt;br /&gt;
      &amp;lt;option value=&amp;quot;11&amp;quot;&amp;gt;November&amp;lt;/option&amp;gt;&lt;br /&gt;
      &amp;lt;option value=&amp;quot;12&amp;quot;&amp;gt;December&amp;lt;/option&amp;gt;&lt;br /&gt;
   &amp;lt;/select&amp;gt;&lt;br /&gt;
   &amp;lt;input type=&amp;quot;submit&amp;quot; value=&amp;quot;Show Month&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;/form&amp;gt;&lt;br /&gt;
   &amp;lt;/body&amp;gt;&lt;br /&gt;
 &amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
/var/www/html/python/getMonth.py&lt;br /&gt;
&lt;br /&gt;
 #!/usr/bin/env python&lt;br /&gt;
 # A simple script to output a calendar month based off input&lt;br /&gt;
 # from a web form.&lt;br /&gt;
 #&lt;br /&gt;
 import calendar&lt;br /&gt;
 from mod_python import apache&lt;br /&gt;
 def getMonth(req,month):&lt;br /&gt;
    req.write(calendar.month(2005, int(month),2,3))&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&lt;br /&gt;
  &amp;quot;&amp;quot;&amp;quot; Publisher example &amp;quot;&amp;quot;&amp;quot;&lt;br /&gt;
  def say(req, what=&amp;quot;NOTHING&amp;quot;):&lt;br /&gt;
      return &amp;quot;I am saying %s&amp;quot; % what&lt;br /&gt;
&lt;br /&gt;
Usage: http://host.com/hello.py/say?what=hi&lt;br /&gt;
&lt;br /&gt;
[[Category:Programming]]&lt;br /&gt;
[[Category:Internet]]&lt;br /&gt;
[[Category:Python]]&lt;/div&gt;</summary>
		<author><name>192.168.20.177</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Python&amp;diff=791</id>
		<title>Python</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Python&amp;diff=791"/>
				<updated>2008-09-05T16:30:32Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.177: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Python]] is a rather popular interpreted language allowing object-oriented programming. Built under a modular open philosophy similar to [[Perl|Perl's]], it has a distinct opposite-minded philosophy to the ''There's more than one way to do it'' [[Perl]] moto, which is rather like ''There's one - and no more - obvious way to do it''. This produces uncluttered, clean and readable code.&lt;br /&gt;
&lt;br /&gt;
==Installing modules==&lt;br /&gt;
Here's a sample command line for fetching and installing a python module under a bash shell:&lt;br /&gt;
 &amp;gt; cd ''mymodules''&lt;br /&gt;
 &amp;gt; wget http://''addressofmodule''/''module''.tar.gz&lt;br /&gt;
 &amp;gt; tar -xvf ''module''.tar.gz&lt;br /&gt;
 &amp;gt; cd ''module''&lt;br /&gt;
 &amp;gt; python setup.py build&lt;br /&gt;
 &amp;gt; sudo python setup.py install&lt;br /&gt;
&lt;br /&gt;
Should you not be able to &amp;quot;sudo&amp;quot;, then you need to install the module in your personal python module path (remember to define the &amp;lt;code&amp;gt;$PYTHONPATH&amp;lt;/code&amp;gt; environment variable)&lt;br /&gt;
 &amp;gt; python setup.py install --home ~/python/imports&lt;br /&gt;
&lt;br /&gt;
===[[Mod-python]]===&lt;br /&gt;
[[Mod-Python]] is a module for the apache web server that allows to run python scripts and publish html.&lt;br /&gt;
&lt;br /&gt;
===Numpy and scipy===&lt;br /&gt;
====Windows====&lt;br /&gt;
Check out this [http://www.scipy.org/Installing_SciPy/Windows link for windows]. &lt;br /&gt;
====Linux====&lt;br /&gt;
=====FC5=====&lt;br /&gt;
For Fedora Core 5 (which makes NumPy 0.9.5 and NumPy 0.9.6 available via the fedora-extras yum repository):&lt;br /&gt;
   yum install numpy&lt;br /&gt;
   yum install lapack-devel blas-devel&lt;br /&gt;
Then download and unzip scipy-0.4.8 to, for example, /usr/local/src/. This version of SciPy is compatible with NumPy 0.9.5 and NumPy 0.9.6.&lt;br /&gt;
   cd /usr/local/src/scipy-0.4.8&lt;br /&gt;
   python setup.py install  &amp;gt;&amp;amp; install.log&lt;br /&gt;
&lt;br /&gt;
The install log will contain some errors about not finding atlas libraries, and recommending that you set the ATLAS environment variable. But doing this doesn't seem to make any difference, even if the atlas package is installed.&lt;br /&gt;
&lt;br /&gt;
=====FC6=====&lt;br /&gt;
Numpy 1.0.1 and SciPy 0.5.2 are available in the fedora-extras yum repository. Installing the SciPy package should automatically cause the various dependencies (including NumPy) to be installed:&lt;br /&gt;
   yum install scipy&lt;br /&gt;
&lt;br /&gt;
====Test====&lt;br /&gt;
Once the binary are installed, test them with&lt;br /&gt;
 &amp;gt;&amp;gt;&amp;gt; import numpy, scipy&lt;br /&gt;
 &amp;gt;&amp;gt;&amp;gt; numpy.test()&lt;br /&gt;
 &amp;gt;&amp;gt;&amp;gt; scipy.test()&lt;br /&gt;
&lt;br /&gt;
===Not a root user?===&lt;br /&gt;
Should you not be granted root to the machine and still need to install a python module then add in your .bash_profile file the following code&lt;br /&gt;
&lt;br /&gt;
 &amp;gt; vim ~/.bash_profile&lt;br /&gt;
 .bash_profile&amp;gt; PYTHONPATH=$PYTHONPATH:~/python/imports/lib/python&lt;br /&gt;
 .bash_profile&amp;gt; export PYTHONPATH&lt;br /&gt;
&lt;br /&gt;
==Best Practices==&lt;br /&gt;
Here we shortly define good practices and conventions that are advised to be followed when developping in Python. These will allow easy scalability of Python's code.&lt;br /&gt;
&lt;br /&gt;
===Coding Conventions===&lt;br /&gt;
We'll try to keep them simple, short and concise.&lt;br /&gt;
When defining '''classes''':&lt;br /&gt;
* Name them with a '''capital letter''',&lt;br /&gt;
When defining '''data attributes''':&lt;br /&gt;
* Use a '''noun''',&lt;br /&gt;
When defining '''method attributes''':&lt;br /&gt;
* Use a '''verb'''.&lt;br /&gt;
&lt;br /&gt;
===Documenting and commenting===&lt;br /&gt;
It's highly advisable to make use of Python's '''pydoc''' command that auto-generates man pages for Python's scripts and modules. Documentation must be inserted between '''&amp;quot;&amp;quot;&amp;quot;''' tags.&lt;br /&gt;
&lt;br /&gt;
 &amp;gt; pydoc pymodule&lt;br /&gt;
&lt;br /&gt;
===[http://en.wikipedia.org/wiki/Unit_test Unit testing]===&lt;br /&gt;
Following the latest hype at Google stating that ''Debugging sucks :( Testing rocks :)'', it's advisable to make use of python's built-in unit testing engine, '''doctest'''.&lt;br /&gt;
simply copy and paste python command-line's inputs with the expected outputs inside the documentation tags ('''&amp;quot;&amp;quot;&amp;quot;''').&lt;br /&gt;
&lt;br /&gt;
 &amp;gt; python pymodule.py -v&lt;br /&gt;
&lt;br /&gt;
===Exploring new modules===&lt;br /&gt;
It is recommended to use iPython to easily and quickly inspect new modules in Python. It comes natively with standard major *nix distros. Basically one can then use tabbing for autocompletion in a python command-line environment.&lt;br /&gt;
 &amp;gt; ipython&lt;br /&gt;
&lt;br /&gt;
===Python best-practice template===&lt;br /&gt;
&lt;br /&gt;
====[http://refactormycode.com/codes/51-classtemplate The script]====&lt;br /&gt;
Here's a template python script ('''classtemplate.py''') that makes use of all of the above described coding conventions,&lt;br /&gt;
&amp;lt;code&amp;gt;[python,Y]&lt;br /&gt;
 #! /usr/bin/python&lt;br /&gt;
 &amp;quot;&amp;quot;&amp;quot; A python primer. pydoc, doctest and classes.&lt;br /&gt;
 &lt;br /&gt;
 Syntax:&lt;br /&gt;
  To generate man pages:&lt;br /&gt;
  &amp;gt; pydoc classtemplate&lt;br /&gt;
 &lt;br /&gt;
  To try all the tests in doctest (and execute the script):&lt;br /&gt;
  &amp;gt; python classtemplate.py -v&lt;br /&gt;
 &amp;quot;&amp;quot;&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 #Class definition&lt;br /&gt;
 class Table:&lt;br /&gt;
         &amp;quot;&amp;quot;&amp;quot;Class Table.&lt;br /&gt;
 &lt;br /&gt;
         Doctest: here we insert python command lines inputs and outputs.&lt;br /&gt;
         &amp;gt;&amp;gt;&amp;gt; print Table.database&lt;br /&gt;
         http://access.com/db&lt;br /&gt;
         &amp;quot;&amp;quot;&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
         #Data attributes here&lt;br /&gt;
         database='http://access.com/db'&lt;br /&gt;
 &lt;br /&gt;
         #Method attributes here&lt;br /&gt;
         def __init__(self,id,text):&lt;br /&gt;
                 &amp;quot;&amp;quot;&amp;quot;Initializes the id and textlabel data attributes.&lt;br /&gt;
 &lt;br /&gt;
                 Doctest: Testing more data attributes defined at construction time&lt;br /&gt;
                 &amp;gt;&amp;gt;&amp;gt; x = Table(1,'coucou')&lt;br /&gt;
                 &amp;gt;&amp;gt;&amp;gt; print x.id&lt;br /&gt;
                 1&lt;br /&gt;
                 &amp;gt;&amp;gt;&amp;gt; print x.textlabel&lt;br /&gt;
                coucou&lt;br /&gt;
                 &amp;quot;&amp;quot;&amp;quot;&lt;br /&gt;
                 self.id=id&lt;br /&gt;
                 self.textlabel=text&lt;br /&gt;
 &lt;br /&gt;
 #doctest -- &amp;quot;Debugging sucks :( Testing rocks :)&amp;quot;&lt;br /&gt;
 def _test():&lt;br /&gt;
         &amp;quot;&amp;quot;&amp;quot;Inline Doctest activated. Cool! :D&lt;br /&gt;
          This means that whenever the module is called in python&lt;br /&gt;
  &lt;br /&gt;
         &amp;gt; python thismodule.py -v&lt;br /&gt;
  &lt;br /&gt;
         the doctest function will try all the tests implemented in doctest.&lt;br /&gt;
         &amp;quot;&amp;quot;&amp;quot;&lt;br /&gt;
         import doctest&lt;br /&gt;
         doctest.testmod()&lt;br /&gt;
 &lt;br /&gt;
 if __name__ == &amp;quot;__main__&amp;quot;:&lt;br /&gt;
         _test()&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== The man page ====&lt;br /&gt;
Here's the generated documentation&lt;br /&gt;
&lt;br /&gt;
 &amp;gt; pydoc classtemplate&lt;br /&gt;
&lt;br /&gt;
 Help on module classtemplate:&lt;br /&gt;
 &lt;br /&gt;
 NAME&lt;br /&gt;
     classtemplate - A python primer. pydoc, doctest and classes.&lt;br /&gt;
 &lt;br /&gt;
 FILE&lt;br /&gt;
     /users/left/guillaume/python/classtemplate.py&lt;br /&gt;
 &lt;br /&gt;
 DESCRIPTION&lt;br /&gt;
     Syntax:&lt;br /&gt;
      To generate man pages:&lt;br /&gt;
      &amp;gt; pydoc classtemplate&lt;br /&gt;
 &lt;br /&gt;
      To try all the tests in doctest.&lt;br /&gt;
      &amp;gt; python classtemplate.py -v&lt;br /&gt;
 &lt;br /&gt;
 CLASSES&lt;br /&gt;
     Table&lt;br /&gt;
 &lt;br /&gt;
     class Table&lt;br /&gt;
      |  Class Table.&lt;br /&gt;
      |&lt;br /&gt;
      |  Doctest: here we insert python command lines inputs and outputs.&lt;br /&gt;
      |  &amp;gt;&amp;gt;&amp;gt; print Table.database&lt;br /&gt;
      |  http://access.com/db&lt;br /&gt;
      |&lt;br /&gt;
      |  Methods defined here:&lt;br /&gt;
      |&lt;br /&gt;
      |  __init__(self, id, text)&lt;br /&gt;
      |      Initializes the id and textlabel data attributes.&lt;br /&gt;
      |&lt;br /&gt;
      |      Doctest: Testing more data attributes defined at construction time&lt;br /&gt;
      |      &amp;gt;&amp;gt;&amp;gt; x = Table(1,'coucou')&lt;br /&gt;
      |      &amp;gt;&amp;gt;&amp;gt; print x.id&lt;br /&gt;
      |      1&lt;br /&gt;
      |      &amp;gt;&amp;gt;&amp;gt; print x.textlabel&lt;br /&gt;
      |      coucou&lt;br /&gt;
      |&lt;br /&gt;
      |  ----------------------------------------------------------------------&lt;br /&gt;
      |  Data and other attributes defined here:&lt;br /&gt;
      |&lt;br /&gt;
      |  database = 'http://access.com/db'&lt;br /&gt;
&lt;br /&gt;
==== The unittests results ====&lt;br /&gt;
Here are the verbose output from the unit-tests (using doctest):&lt;br /&gt;
 &amp;gt; python classtemplate.py -v&lt;br /&gt;
&lt;br /&gt;
 Trying:&lt;br /&gt;
     print Table.database&lt;br /&gt;
 Expecting:&lt;br /&gt;
     http://access.com/db&lt;br /&gt;
 ok&lt;br /&gt;
 Trying:&lt;br /&gt;
     x = Table(1,'coucou')&lt;br /&gt;
 Expecting nothing&lt;br /&gt;
 ok&lt;br /&gt;
 Trying:&lt;br /&gt;
     print x.id&lt;br /&gt;
 Expecting:&lt;br /&gt;
     1&lt;br /&gt;
 ok&lt;br /&gt;
 Trying:&lt;br /&gt;
     print x.textlabel&lt;br /&gt;
 Expecting:&lt;br /&gt;
     coucou&lt;br /&gt;
 ok&lt;br /&gt;
 2 items had no tests:&lt;br /&gt;
     __main__&lt;br /&gt;
     __main__._test&lt;br /&gt;
 2 items passed all tests:&lt;br /&gt;
    1 tests in __main__.Table&lt;br /&gt;
    3 tests in __main__.Table.__init__&lt;br /&gt;
 4 tests in 4 items.&lt;br /&gt;
 4 passed and 0 failed.&lt;br /&gt;
 Test passed.&lt;br /&gt;
&lt;br /&gt;
==Relevant modules for shell-alike scripting==&lt;br /&gt;
Here's a list of interesting module for interacting with the OS.&lt;br /&gt;
 import os   # getcwd, chdir&lt;br /&gt;
 import shutil # file manip utilities: move, copyfile&lt;br /&gt;
 import glob # file wildcards&lt;br /&gt;
 import sys # command-line arguments processing, error, stderror redirection&lt;br /&gt;
 import re # pattern matching, regexp&lt;br /&gt;
 import math # mathematical functions&lt;br /&gt;
 import urllib # http addressing. gets and posts method&lt;br /&gt;
 import smtplib # send emails&lt;br /&gt;
 import poplib # read emails&lt;br /&gt;
 from datetime import date # date time manipulations&lt;br /&gt;
 from timeit import Timer # performance timer&lt;br /&gt;
 import unittest # unit testing --&amp;gt; agile, eXtreme development&lt;br /&gt;
 import xmlrpclib # xml get, extract and parse.&lt;br /&gt;
 from xml.dom import minidom&lt;br /&gt;
&lt;br /&gt;
==Sample code==&lt;br /&gt;
'''NOTE: All samples should be corrected with tabulations when performing copy/paste actions!'''&lt;br /&gt;
&lt;br /&gt;
===Celsius===&lt;br /&gt;
Transforms fahrenheits degrees into celsius degrees:&lt;br /&gt;
&lt;br /&gt;
 #!/usr/bin/python&lt;br /&gt;
 import string, sys&lt;br /&gt;
 &lt;br /&gt;
 # If no arguments were given, print a helpful message&lt;br /&gt;
 if len(sys.argv)==1:&lt;br /&gt;
         print 'Usage: celsius temp1 temp2 ...'&lt;br /&gt;
         sys.exit(0)&lt;br /&gt;
 &lt;br /&gt;
 # Loop over the arguments&lt;br /&gt;
 for i in sys.argv[1:]:&lt;br /&gt;
         try:&lt;br /&gt;
                 fahrenheit=float(string.atoi(i))&lt;br /&gt;
         except string.atoi_error:&lt;br /&gt;
                 print repr(i), &amp;quot;not a numeric value&amp;quot;&lt;br /&gt;
         else:&lt;br /&gt;
                 celsius=(fahrenheit-32)*5.0/9.0&lt;br /&gt;
                 print '%i\260F = %i\260C' % (int(fahrenheit), int(celsius+.5))&lt;br /&gt;
&lt;br /&gt;
===Twitter===&lt;br /&gt;
Gets a list of users in the [[Twitter]] PublicTimeline. Requires the [[Twitter]] Api module.&lt;br /&gt;
&lt;br /&gt;
 #!/usr/bin/python&lt;br /&gt;
 import twitter&lt;br /&gt;
 &lt;br /&gt;
 api = twitter.Api()&lt;br /&gt;
 statuses = api.GetPublicTimeline()&lt;br /&gt;
 print [s.user.name for s in statuses]&lt;br /&gt;
&lt;br /&gt;
===Xspf extract===&lt;br /&gt;
&amp;lt;code&amp;gt;[python,Y]&lt;br /&gt;
 #! /usr/bin/python&lt;br /&gt;
 &amp;quot;&amp;quot;&amp;quot; Scrap mp3 files from xspf playlist&lt;br /&gt;
 &amp;quot;&amp;quot;&amp;quot;&lt;br /&gt;
 import sys, string, urllib&lt;br /&gt;
 from xml.dom import minidom&lt;br /&gt;
 &lt;br /&gt;
 url=sys.argv[1]&lt;br /&gt;
 feed=urllib.urlopen(url)&lt;br /&gt;
 #feed=url&lt;br /&gt;
 xspf=minidom.parse(feed)&lt;br /&gt;
 locations=xspf.getElementsByTagName('location')&lt;br /&gt;
 for location in locations:&lt;br /&gt;
         track_url=string.strip(location.firstChild.data)&lt;br /&gt;
         print track_url&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==re - Regular Expressions==&lt;br /&gt;
===Web-scrapping===&lt;br /&gt;
Here are some web-scraping guidelines in Python:&lt;br /&gt;
&lt;br /&gt;
 #Here's a generic html code snippet:&lt;br /&gt;
 In [298]: print string&lt;br /&gt;
 &amp;lt;description hrel=&amp;quot;come here&amp;quot; &amp;gt;Coucou Here &amp;lt;a href=&amp;quot;&amp;quot; &amp;gt;I&amp;lt;/a&amp;gt; am&amp;lt;/description&amp;gt;&amp;lt;description  hrel=&amp;quot;come here&amp;quot; &amp;gt;Coucou Here &amp;lt;a href=&amp;quot;&amp;quot; &amp;gt;I&amp;lt;/a&amp;gt; am&amp;lt;/description&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 #Let's isolate the content of ''description'' tags:&lt;br /&gt;
 In [301]: subtr = re.sub(r'&amp;lt;description.*?&amp;gt;(.*?)&amp;lt;/description&amp;gt;',r'\1&amp;amp;',string)    &lt;br /&gt;
 In [302]: print subtr&lt;br /&gt;
 Coucou Here &amp;lt;a href=&amp;quot;&amp;quot; &amp;gt;I&amp;lt;/a&amp;gt; am&amp;amp;Coucou Here &amp;lt;a href=&amp;quot;&amp;quot; &amp;gt;I&amp;lt;/a&amp;gt; am&amp;amp;&lt;br /&gt;
 &lt;br /&gt;
 #Let's purge the content from html formatting:&lt;br /&gt;
 In [303]: re.sub(r&amp;quot;&amp;lt;.*?&amp;gt;&amp;quot;,&amp;quot;&amp;quot;,subtr)&lt;br /&gt;
 Out[303]: 'Coucou Here I am&amp;amp;Coucou Here I am&amp;amp;'&lt;br /&gt;
&lt;br /&gt;
==External References==&lt;br /&gt;
*[http://docs.python.org/tut/ Python tutorial],&lt;br /&gt;
*[http://en.wikipedia.org/wiki/Python_(programming_language) Python@wikipedia],&lt;br /&gt;
*[http://www.scipy.org/ Scientific Python],&lt;br /&gt;
*[http://refactormycode.com/codes/51-classtemplate Refactormycode template].&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:Python]]&lt;br /&gt;
[[Category:Script]]&lt;br /&gt;
[[Category:Programming]]&lt;/div&gt;</summary>
		<author><name>192.168.20.177</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Rails&amp;diff=803</id>
		<title>Rails</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Rails&amp;diff=803"/>
				<updated>2008-09-04T15:27:42Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.177: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Rails or [[Ruby]] on Rails is a web-development framework in [[ruby]] that uses the [http://en.wikipedia.org/wiki/Model-view-controller model-view-controller (MVC)] pattern.&lt;br /&gt;
&lt;br /&gt;
==Install==&lt;br /&gt;
You need to have ruby and gems installed. Sqlite is also recommended.&lt;br /&gt;
&lt;br /&gt;
 &amp;gt; sudo yum install sqlite3 sqlite3-devel&lt;br /&gt;
 &amp;gt; sudo gem install rails&lt;br /&gt;
&lt;br /&gt;
==Your first rails app==&lt;br /&gt;
&lt;br /&gt;
 &amp;gt; rails mywebapp&lt;br /&gt;
 &amp;gt; cd mywebapp&lt;br /&gt;
 &amp;gt; script/controller welcome hello&lt;br /&gt;
 edit, then save, the ''mywebapp/app/views/welcome/hello.html.erb'' ...&lt;br /&gt;
 &amp;gt; script/server&lt;br /&gt;
&lt;br /&gt;
Open up in your browser ''http://localhost:3000/welcome/hello''. That's it!&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Ruby]]&lt;br /&gt;
*[[Python]]&lt;br /&gt;
*[[Perl]]&lt;br /&gt;
&lt;br /&gt;
==External links==&lt;br /&gt;
*[http://wiki.rubyonrails.org/rails/pages/Tutorial Rails tutorial]&lt;br /&gt;
&lt;br /&gt;
[[Category:Programming]]&lt;/div&gt;</summary>
		<author><name>192.168.20.177</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Qrcode&amp;diff=793</id>
		<title>Qrcode</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Qrcode&amp;diff=793"/>
				<updated>2008-09-03T15:35:19Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.177: /* Python */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[http://en.wikipedia.org/wiki/QR_Code Qrcode] is a non-proprietary encoding of information into 2d codes. 2d codes are bidimensional matrices that encode information much like the traditional barcodes you find in supermarket products. Widely spread in Japan for some years now, it allows users with cameras on their mobile phones to scan the 2d code and extract the information. If it's a hyperlink, then the scanner software may open the phone's web browser and open the hyperlink page.&lt;br /&gt;
&lt;br /&gt;
==Hello world example==&lt;br /&gt;
&lt;br /&gt;
http://farm4.static.flickr.com/3093/2824480513_cb08e32b3b_m.jpg&lt;br /&gt;
&lt;br /&gt;
===Python===&lt;br /&gt;
You can easily use the [[python]] library [http://www.pedemonte.eu/wiki/index.php/Documentation:PyQrCodec PyQrCodec] (depends on the [http://www.pythonware.com/products/pil/ PIL] library)&lt;br /&gt;
&lt;br /&gt;
 &amp;gt; sudo yum install opencv opencv-devel opencv-python&lt;br /&gt;
&lt;br /&gt;
 &amp;gt; wget http://effbot.org/downloads/Imaging-1.1.6.tar.gz&lt;br /&gt;
 &amp;gt; tar -xvf Imaging-1.1.6.tar.gz&lt;br /&gt;
 &amp;gt; cd Imaging-1.1.6&lt;br /&gt;
 &amp;gt; python setup.py build&lt;br /&gt;
 &amp;gt; sudo python setup.py install&lt;br /&gt;
&lt;br /&gt;
 &amp;gt; wget http://www.pedemonte.eu:81/pyqr/files/PyQrcodec_Linux.tar.gz&lt;br /&gt;
 &amp;gt; tar -xvf PyQrcodec_Linux.tar.gz&lt;br /&gt;
 &amp;gt; cd PyQrcodec&lt;br /&gt;
 &amp;gt; python setup.py build&lt;br /&gt;
 &amp;gt; sudo python setup.py install&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;[python]&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; import PyQrCodec&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; size, image = PyQrCodec.encode(&amp;quot;Hello world!&amp;quot;)&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; image.save(&amp;quot;helloworld.jpg&amp;quot;)&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==External links==&lt;br /&gt;
*[http://en.wikipedia.org/wiki/QR_Code QR code in wikipedia]&lt;br /&gt;
===Encoders/decoders===&lt;br /&gt;
*[http://semapedia.org Semapedia]&lt;br /&gt;
*[http://qrcode.kaywa.com/ Kaywa]&lt;br /&gt;
*[http://www.neoreader.com/code.html Neoreader]&lt;br /&gt;
&lt;br /&gt;
[[Category:internet]]&lt;/div&gt;</summary>
		<author><name>192.168.20.177</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Lagged_correlation&amp;diff=386</id>
		<title>Lagged correlation</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Lagged_correlation&amp;diff=386"/>
				<updated>2008-08-28T10:25:21Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.177: /* Matlab functions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Convolution]] or [[cross-correlation]] are similar operands that can be applied to any square-integrable real functions &amp;lt;mathtex&amp;gt;f&amp;lt;/mathtex&amp;gt; and &amp;lt;mathtex&amp;gt;g&amp;lt;/mathtex&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==Convolution==&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;mathtex&amp;gt; \left( f \, * \, g \right)(\tau) \equiv \int_{-\infty}^{\infty} f(t) \, g(\tau-t) \,dt  &amp;lt;/mathtex&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==Cross-correlation==&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;mathtex&amp;gt; \left( f \, \star \, g \right)(\tau) \equiv \int_{-\infty}^{\infty} f^{*}(t) \, g(\tau+t) \,dt \equiv C_{fg}(\tau)&amp;lt;/mathtex&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
: In particular &amp;lt;mathtex&amp;gt; f \, \star \, f &amp;lt;/mathtex&amp;gt; is designated the [http://mathworld.wolfram.com/Autocorrelation.html autocorrelation].&lt;br /&gt;
&lt;br /&gt;
===Normalized===&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;mathtex&amp;gt;\widehat{C}_{fg}(\tau) \equiv \frac{\int_{-\infty}^{\infty} F^{*}(t) \, G(\tau+t) \,dt}{\int_{-\infty}^{\infty} F^{*}(t) \, F(t) \,dt \, \int_{-\infty}^{\infty} G^{*}(t) \, G(t) \,dt} = \left&amp;lt; \frac{F(t)}{\|F\|} ,\, \frac{G(\tau+t)}{\|G\|} \right&amp;gt;&amp;lt;/mathtex&amp;gt;, where &amp;lt;mathtex&amp;gt; F \equiv f - \overline{f} &amp;lt;/mathtex&amp;gt;. The idea is to remove the average and, optionally, other linear or physical trends from &amp;lt;mathtex&amp;gt; f &amp;lt;/mathtex&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
: In particular we have &lt;br /&gt;
&lt;br /&gt;
: &amp;lt;mathtex&amp;gt;\widehat{C}_{fg}(0) = \left&amp;lt; \frac{F}{\|F\|} ,\, \frac{G}{\|G\|} \right&amp;gt;&amp;lt;/mathtex&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;mathtex&amp;gt;\widehat{C}_{ff}(0) = 1 &amp;lt;/mathtex&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Discretized===&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;mathtex&amp;gt;\widehat{C}_{fg}(k) \equiv \frac{1}{n-1} \sum_{i} \frac{ \left( f_i - \overline{f} \right)^{*} \left( g_{k+i} - \overline{g} \right) }{\sigma_f \sigma_g} &amp;lt;/mathtex&amp;gt;, where &amp;lt;mathtex&amp;gt;\sigma_f&amp;lt;/mathtex&amp;gt; is the variance of &amp;lt;mathtex&amp;gt;f&amp;lt;/mathtex&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
: In particular &amp;lt;mathtex&amp;gt; \widehat{C}_{fg}(0) &amp;lt;/mathtex&amp;gt; is the famous [http://en.wikipedia.org/wiki/Correlation correlation] coefficient.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&lt;br /&gt;
When both &amp;lt;mathtex&amp;gt;f&amp;lt;/mathtex&amp;gt; and &amp;lt;mathtex&amp;gt;g&amp;lt;/mathtex&amp;gt; are [http://en.wikipedia.org/wiki/Even_and_odd_functions even] functions then the [[convolution]] and [[cross-correlation]] products are rigorously equivalent. Below, we show these products when applied to box functions (left figure) and to gaussian functions (right figure). In both cases, they are [http://en.wikipedia.org/wiki/Even_and_odd_functions even] functions. &amp;lt;mathtex&amp;gt;f&amp;lt;/mathtex&amp;gt; is represented by the red line, &amp;lt;mathtex&amp;gt;g&amp;lt;/mathtex&amp;gt; is represented by the blue line, the product &amp;lt;mathtex&amp;gt;f(t) \, g(\tau - t)&amp;lt;/mathtex&amp;gt; is represented by the solid blue line. The solid blue area is the convolution product for lag-time &amp;lt;mathtex&amp;gt;\tau&amp;lt;/mathtex&amp;gt; and the whole convolution product function (for all &amp;lt;mathtex&amp;gt;\tau&amp;lt;/mathtex&amp;gt;) is represented by the green line.&lt;br /&gt;
&lt;br /&gt;
http://mathworld.wolfram.com/images/gifs/convrect.gif http://mathworld.wolfram.com/images/gifs/convgaus.gif&lt;br /&gt;
&lt;br /&gt;
The big conclusions we can make is that if &amp;lt;mathtex&amp;gt;f&amp;lt;/mathtex&amp;gt; and &amp;lt;mathtex&amp;gt;g&amp;lt;/mathtex&amp;gt; are the same functions, but with a lag of &amp;lt;mathtex&amp;gt;\epsilon&amp;lt;/mathtex&amp;gt; between them, then the [[cross-correlation]] product is maximum when &amp;lt;mathtex&amp;gt;\tau = \epsilon&amp;lt;/mathtex&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==Matlab functions==&lt;br /&gt;
&lt;br /&gt;
===xcorr===&lt;br /&gt;
Calculates the cross correlation from two signals.&lt;br /&gt;
&lt;br /&gt;
 %Consider arrays t, y1(t), y2(t)&lt;br /&gt;
 N=length(t);&lt;br /&gt;
 tlag = linspace(-t(N/2), t(N/2), N+1);&lt;br /&gt;
 crosscorr = xcorr( y1, y2, N/2, 'coeff');&lt;br /&gt;
 plot(tlag,crosscorr); xlabel('Phase in time units');ylabel('coefficient');&lt;br /&gt;
&lt;br /&gt;
===cpsd===&lt;br /&gt;
Calculates the cross power spectral density (PSD) function of signals &amp;lt;mathtex&amp;gt; x(t)&amp;lt;/mathtex&amp;gt; and &amp;lt;mathtex&amp;gt; y(t)&amp;lt;/mathtex&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===periodogram or pwelch===&lt;br /&gt;
Calculates the power spectral density (PSD) function of signal &amp;lt;mathtex&amp;gt; x(t)&amp;lt;/mathtex&amp;gt;. The [[#periodogram|periodogram]] may use several window functions as option. The [[#pwelch|pwelch]] will use the welch window.&lt;br /&gt;
&lt;br /&gt;
===mscoherence===&lt;br /&gt;
Calculates the coherence-squared spectrum function. If you apply an inverse Fourier transform (IFT), then you get the cross-correlation function in a very efficient way.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[http://mathworld.wolfram.com/Cross-Correlation.html Cross-correlation in MathWorld],&lt;br /&gt;
*[http://mathworld.wolfram.com/Convolution.html Convolution in MathWorld],&lt;br /&gt;
*[http://en.wikipedia.org/wiki/Phase_correlation Phase correlation on Wikipedia]&lt;/div&gt;</summary>
		<author><name>192.168.20.177</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Fes2004&amp;diff=240</id>
		<title>Fes2004</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Fes2004&amp;diff=240"/>
				<updated>2008-08-27T09:11:50Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.177: /* Building fes2004 from scratch under windows */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Fes2004 is the tide level and harmonic predictor for tide of POC-LEGOS. Development credits go to Thierry Letellier and Florent Lyard.&lt;br /&gt;
&lt;br /&gt;
An open discussion started around [http://www.mohid.com/hydrogroup/presentations/HG_060419_fes2004.ppt this] presentation.&lt;br /&gt;
&lt;br /&gt;
== TODOs ==&lt;br /&gt;
#Include in Mohid the new tide components missing in fes95.&lt;br /&gt;
#Make simple tests close to the coast and far away from the coast. Compare them with fes95.&lt;br /&gt;
#Update this wiki.&lt;br /&gt;
&lt;br /&gt;
== Quick start ==&lt;br /&gt;
Get the [http://maretec.mohid.com/PublicData/products/Software/Mohid-Tide_v0.4.zip package]. Unpack it and read the readme-1st file for instructions. If you're working within [[MARETEC]] or [[HIDROMOD]] then map a network drive (say, ''X:'') to ''\\kepler\DataCenter1\DataCenter\Modelos_2(2)\FES\fes2004data''. If not, get the datasets [http://www.aviso.oceanobs.com/en/data/products/auxiliary-products/global-tide-fes2004-fes99/index.html fes2004 here] and install them somewhere in your network with read permissions.&lt;br /&gt;
&lt;br /&gt;
=== Mohid-tide ===&lt;br /&gt;
Here's what the input file should look like (CAUTION: it's longitude latitude null!):&lt;br /&gt;
CAUTION: The file MUST END with &amp;lt;end_xyz&amp;gt;! Otherwise results will be erroneous. NO BLANK LINES ARE ALLOWED!&lt;br /&gt;
 longitude latitude null&lt;br /&gt;
*Sample input:&lt;br /&gt;
 &amp;lt;begin_xyz&amp;gt;&lt;br /&gt;
 -61.410     -38.995   0.&lt;br /&gt;
 -61.41      -39.00    0. &lt;br /&gt;
 -61.41001   -38.99    0.&lt;br /&gt;
 -61.41001   -38.7     0.&lt;br /&gt;
 -61.41      -39.38    0.&lt;br /&gt;
 -70.2       -56.2     0.&lt;br /&gt;
 &amp;lt;end_xyz&amp;gt;&lt;br /&gt;
*The command line is :&lt;br /&gt;
 mohid-tide X:\tide.nc input_mohid-tide.dat output.dat   0 2.08&lt;br /&gt;
In this example, the input file is called ''input_mohid-tide.dat''. The output file is called ''output.dat''. The data file is called ''tide.nc'' and it's path is ''X:\''. The ''0'' and the ''2.08'' are respectively the time reference and the water level reference. Change all these parameters accordingly to your situation.&lt;br /&gt;
*Sample output&lt;br /&gt;
 &amp;lt;begingauge&amp;gt;&lt;br /&gt;
 NAME        : nth test&lt;br /&gt;
 LONGITUDE   : -7.00000 49.0000 51.0000&lt;br /&gt;
 LATITUDE    : 33.0000 35.0000 26.0000&lt;br /&gt;
 METRIC_X    : -7.83090&lt;br /&gt;
 METRIC_Y    : 33.5906&lt;br /&gt;
 REF_LEVEL   :         2.08000&lt;br /&gt;
 TIME_REF    :        0.000000&lt;br /&gt;
 M2          :         0.996598        52.7018&lt;br /&gt;
 S2          :         0.350935        77.8265&lt;br /&gt;
 K1          :        0.0661576        49.9613&lt;br /&gt;
 K2          :        0.0950913        71.3380&lt;br /&gt;
 N2          :         0.214260        36.6291&lt;br /&gt;
 2N2         :        0.0317467        16.2234&lt;br /&gt;
 O1          :        0.0591364       -50.3478&lt;br /&gt;
 Q1          :        0.0218185        49.4025&lt;br /&gt;
 P1          :        0.0182365       -99.5383&lt;br /&gt;
 M4          :         0.000000       0.000000&lt;br /&gt;
 Mf          :       0.00237638       -7.58905&lt;br /&gt;
 Mm          :      0.000951622       -38.4179&lt;br /&gt;
 Mtm         :      0.000819045        24.8848&lt;br /&gt;
 MSqm        :      0.000119478        33.8243&lt;br /&gt;
 &amp;lt;endgauge&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Building fes2004 from scratch under windows ==&lt;br /&gt;
&lt;br /&gt;
=== Prerequisites ===&lt;br /&gt;
&lt;br /&gt;
#Get the [http://www6.in.tum.de/~kiss/WinGsl.htm WinGSL] distribution. Unpack at least the dll.&lt;br /&gt;
#Get the [http://www.unidata.ucar.edu/downloads/netcdf/ftp/contrib/win32/netcdf-3.6.1-win32.zip netcdf] distribution. Unpack at least the dll.&lt;br /&gt;
#Get the [http://www.legos.obs-mip.fr/en/soa/cgi/getarc/v0.0/index.pl.cgi?donnees=maree&amp;amp;produit=modele_fes fes2004 distribution].&lt;br /&gt;
#Get the [ftp://ftp.legos.obs-mip.fr/pub/soa/maree/tide_model/global_solution/fes2004/tide/tide.fes2004.nc data] file(~600MB) and rename it to tide.nc (or get it at ''\\kepler\DataCenter1\DataCenter\Modelos_2(2)\FES\fes2004data'').&lt;br /&gt;
&lt;br /&gt;
== fes2004 vs fes95 ==&lt;br /&gt;
Essentially fes2004 contains 4 new relevant tidal components. And it supports higher resolution,&lt;br /&gt;
allowing extraction of tidal gauges closer to the coast. These two reasons alone make it a very interesting asset to include in Mohid.&lt;br /&gt;
&lt;br /&gt;
== Documents ==&lt;br /&gt;
#Kick start [http://www.mohid.com/hydrogroup/presentations/HG_060419_fes2004.ppt powerpoint].&lt;br /&gt;
#Reference [http://www.springerlink.com/content/j8v764349t7j4523/ paper] for the Fes2004 solution.&lt;br /&gt;
#Beta-version [http://maretec.mohid.com/PublicData/products/Software/Mohid-Tide_v0.4.zip package].&lt;br /&gt;
#Guillaume's project at '''\\guillaume\projectos\fes2004'''&lt;br /&gt;
#The [ftp://ftp.legos.obs-mip.fr/pub/soa/maree/tide_model/global_solution/fes2004/tide/tide.fes2004.nc data] file (~600MB) or you can get at ''\\kepler\DataCenter1\DataCenter\Modelos_2(2)\FES\fes2004data''.&lt;br /&gt;
&lt;br /&gt;
==Related links==&lt;br /&gt;
*[[MatLab_TideAnalyser]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Tools]]&lt;/div&gt;</summary>
		<author><name>192.168.20.177</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Cross-correlation&amp;diff=174</id>
		<title>Cross-correlation</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Cross-correlation&amp;diff=174"/>
				<updated>2008-08-20T13:23:15Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.177: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT[[Lagged correlation]]&lt;/div&gt;</summary>
		<author><name>192.168.20.177</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Convolution&amp;diff=148</id>
		<title>Convolution</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Convolution&amp;diff=148"/>
				<updated>2008-08-20T13:21:30Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.177: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT[[Cross-correlation]]&lt;/div&gt;</summary>
		<author><name>192.168.20.177</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Geometry_diagnostic&amp;diff=278</id>
		<title>Geometry diagnostic</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Geometry_diagnostic&amp;diff=278"/>
				<updated>2008-08-01T10:22:08Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.177: /* LowerLayer */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Once the vertical discretization or [[Module Geometry|geometry]] is imposed and the bathymetry is chosen, the bottom layer can yield stability problems when using shaved cells. You can have very thin bottom cell next to a very wide bottom cell. To diagnose the existence of such problematic cells, a [[geometry diagnostic]] tool was developed.&lt;br /&gt;
&lt;br /&gt;
==Source-safe whereabouts==&lt;br /&gt;
The latest source code is in the '''Mohid_V4''' repository, inside the '''small tools\GeometryDiagnostic''' folder.&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
&lt;br /&gt;
The inputs required are a bathymetry [[Grid Data|grid data]] file, a [[Module Geometry|geometry]] file, an hdf5 output filename and a [[Grid Data|grid data]] output filename.&lt;br /&gt;
&lt;br /&gt;
===Nomfich.dat===&lt;br /&gt;
&lt;br /&gt;
 IN_MODEL    : GeometryDiagnostics.dat&lt;br /&gt;
&lt;br /&gt;
===GeometryDiagnostics.dat===&lt;br /&gt;
&lt;br /&gt;
 BATIM    : Biscay_Level2__.new2&lt;br /&gt;
 GEOMETRY : D:\Aplica\BiscayAplica\GeneralData\Ocean\Geometry\Level2\Geometry.dat&lt;br /&gt;
 OUT_FILE       : geomdiag_new2.hdf5&lt;br /&gt;
 OUT_GRIDDATA3D : geomdiag_new2.dat&lt;br /&gt;
&lt;br /&gt;
== Outputs ==&lt;br /&gt;
The outputs are an hdf5 file and a three-dimensional [[Grid Data|grid data]] file.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;htm&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/0522d989-f1b1-4475-8496-38d8f66356df/2008-08-01_1102.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/0522d989-f1b1-4475-8496-38d8f66356df/2008-08-01_1102.png&amp;quot; width=&amp;quot;633&amp;quot; height=&amp;quot;428&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===LowerLayerThickness===&lt;br /&gt;
&lt;br /&gt;
For all horizontal cells ''i'', ''j'', there is one bottom layer ''kbottom'' that defines the bottom layer thickness ''DWZ(i, j, kbottom)''; where ''DWZ'' is the 3D matrix that defines the layers thickness for every water column.&lt;br /&gt;
&lt;br /&gt;
 LowerLayerThickness(i,j) = DWZ(i,j, kbottom)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;htm&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/86accff2-ee8e-4a6a-8056-59e73a0aec22/2008-08-01_1115.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/86accff2-ee8e-4a6a-8056-59e73a0aec22/2008-08-01_1115.png&amp;quot; width=&amp;quot;562&amp;quot; height=&amp;quot;426&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===LowerLayerThicknessGradU===&lt;br /&gt;
Is the ratio of neighboring cells bottom layer thickness along the X axis.&lt;br /&gt;
&lt;br /&gt;
 aux = DWZ(i,j, kbottom)/DWZ(i,j-1, kbottom)&lt;br /&gt;
 LowerLayerThicknessGradU(i,j) = min( aux, 1/aux)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===LowerLayerThicknessGradV===&lt;br /&gt;
Is the ratio of neighboring cells bottom layer thickness along the Y axis.&lt;br /&gt;
&lt;br /&gt;
 aux = DWZ(i,j, kbottom)/DWZ(i-1,j, kbottom)&lt;br /&gt;
 LowerLayerThicknessGradV(i,j) = min( aux, 1/aux)&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Module Geometry]]&lt;br /&gt;
&lt;br /&gt;
[[Category: Tools]]&lt;/div&gt;</summary>
		<author><name>192.168.20.177</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=DrawFluxesInHDF5&amp;diff=210</id>
		<title>DrawFluxesInHDF5</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=DrawFluxesInHDF5&amp;diff=210"/>
				<updated>2008-08-01T10:10:57Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.177: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[DrawFluxesInHDF5]] is a little tool that reads the boxes fluxes time series (.BXF and .BXM) and returns an HDF5 file with vector fields representing the fluxes between the boxes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Source-safe whereabouts==&lt;br /&gt;
The latest source code is in the '''Mohid_V4''' repository, inside the '''SmallTools\DrawFluxesInHDF5''' folder.&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
&lt;br /&gt;
===Nomfich.dat===&lt;br /&gt;
The nomfich file contains a single line pointing to the configuration file.&lt;br /&gt;
 IN_MODEL : CreateHDF5Boxes.dat&lt;br /&gt;
&lt;br /&gt;
===CreateHDF5Boxes.dat===&lt;br /&gt;
Here's a sample configuration file (CreateHDF5Boxes.dat):&lt;br /&gt;
&lt;br /&gt;
 HDF5BOXES_INFILE : Boxes.hdf5&lt;br /&gt;
 HDF5BOXES_OUFILE : OutBoxes.hdf5&lt;br /&gt;
 BOXESSALINITYFILE : salinity.bxm&lt;br /&gt;
 BOXESWATERFILE : water.bxm&lt;br /&gt;
 BOXESWATERFLUXFILE : water.bxf&lt;br /&gt;
 INDEXESFILE : BoxesFluxesIndexes.txt&lt;br /&gt;
 INDEXESLENGTH : 436&lt;br /&gt;
&lt;br /&gt;
# The first line contains the input boxes.hdf5 file. They represent the index map of the boxes created with the [[BoxHDF5]] tool.&lt;br /&gt;
# The second line tells the output filename.&lt;br /&gt;
# The third line contains the salinity inside the boxes.&lt;br /&gt;
# The fourth line contains the boxes water volumes timeseries.&lt;br /&gt;
# The fifth line contains the fluxes between boxes timeseries.&lt;br /&gt;
# The sixth line contains three columns displaying the column number, the source box index and the destination box index. Each row represents a flux of the water fluxes timeseries.&lt;br /&gt;
# The seventh and last line contains the total number of fluxes available in the water fluxes timeseries.&lt;br /&gt;
&lt;br /&gt;
==BoxesFluxesIndexes.txt==&lt;br /&gt;
Here's a sample of the indexes file:&lt;br /&gt;
 9 1 2&lt;br /&gt;
 10 2 3&lt;br /&gt;
 11 5 6&lt;br /&gt;
 12 6 7&lt;br /&gt;
 13 6 38&lt;br /&gt;
 14 7 1&lt;br /&gt;
 15 7 8&lt;br /&gt;
 16 7 39&lt;br /&gt;
 17 8 2&lt;br /&gt;
 18 8 9&lt;br /&gt;
 19 8 40&lt;br /&gt;
 20 9 3&lt;br /&gt;
# First column: column index number.&lt;br /&gt;
# Second column: source box index.&lt;br /&gt;
# Third column: target box index.&lt;br /&gt;
&lt;br /&gt;
==Example output==&lt;br /&gt;
&amp;lt;htm&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/9a4a7e12-6de7-4ca9-b5e2-5537f9679bd2/2008-07-25_1746.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/9a4a7e12-6de7-4ca9-b5e2-5537f9679bd2/2008-07-25_1746.png&amp;quot; width=&amp;quot;500&amp;quot; height=&amp;quot;400&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Troubleshoot==&lt;br /&gt;
'''Q: Too many columns?'''&lt;br /&gt;
&lt;br /&gt;
A: Add the following preprocessor directives in Module [[Mohid Base 1]]:&lt;br /&gt;
 _BIG_MAX_COLUMNS,_EXTRA_LONG_LINE_LENGTH&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Boxes]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Mohid]]&lt;br /&gt;
[[Category:Tools]]&lt;/div&gt;</summary>
		<author><name>192.168.20.177</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Module_Geometry&amp;diff=540</id>
		<title>Module Geometry</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Module_Geometry&amp;diff=540"/>
				<updated>2008-08-01T09:43:19Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.177: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Overview ==&lt;br /&gt;
Module Geometry handles the vertical discretization in MOHID. It was designed to divide the water column (in MOHID Water) or the soil compartment (in MOHID Land) in different vertical coordinates: Sigma, Cartesian, Lagrangian, Fixed Spacing, Harmonic, etc. A subdivision of the vertical domain into different sub-domains using different vertical coordinate systems is also possible.&lt;br /&gt;
&lt;br /&gt;
== General options ==&lt;br /&gt;
*Minimum depth&lt;br /&gt;
&lt;br /&gt;
== Vertical coordinate system ==&lt;br /&gt;
&lt;br /&gt;
=== Sigma ===&lt;br /&gt;
[[Image:SZZ.gif|center|425px|thumb|Vertical sigma mesh]]&lt;br /&gt;
&lt;br /&gt;
=== Cartesian ===&lt;br /&gt;
The Cartesian coordinate can be used with or without [[shaved cells]].&lt;br /&gt;
&lt;br /&gt;
=== Fixspacing ===&lt;br /&gt;
The [[Fixed Spacing coordinates|Fixed Spacing]] coordinate allows the user to study flows close to the bottom.&lt;br /&gt;
&lt;br /&gt;
=== Lagrangian ===&lt;br /&gt;
The [[Lagrangian coordinate]] moves the upper and lower faces with the vertical flow velocity. &lt;br /&gt;
&lt;br /&gt;
=== Harmonic === &lt;br /&gt;
The Harmonic coordinate works like the Cartesian coordinate, just that the horizontal faces close to the surface expand and collapse depending on the variation of the surface elevation. This coordinate was implemented in the geometry module to simulate reservoirs.&lt;br /&gt;
&lt;br /&gt;
=== Fixsediment ===&lt;br /&gt;
&lt;br /&gt;
=== SigmaTop ===&lt;br /&gt;
&lt;br /&gt;
=== Cartesiantop ===&lt;br /&gt;
&lt;br /&gt;
== Distances ==&lt;br /&gt;
[[Image:Mohid_distances.JPG|center|250px|thumb|MOHID syntax for distances]]&lt;br /&gt;
===Public routines===&lt;br /&gt;
; ModuleHorizontalGrid: GetHorizontalGrid(HorizontalGridID, XX_IE, YY_IE, XX_Z, YY_Z,XX_U, YY_U, XX_V, YY_V, XX_Cross, YY_Cross, DXX, DYY, DZX, DZY, DUX, DUY, DVX, DVY, XX, YY, XX2D_Z, YY2D_Z, STAT)&lt;br /&gt;
; ModuleGeometry: GetGeometryDistances(GeometryID, SZZ, DZZ, DWZ, DUZ, DVZ, DZI, DZE,ZCellCenter, ActualTime, STAT)&lt;br /&gt;
&lt;br /&gt;
== Areas ==&lt;br /&gt;
&lt;br /&gt;
== Volumes ==&lt;br /&gt;
[[Image:VolumeDeControlo.gif|center|250px|thumb|Single T-cell control volume]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;htm&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/cf704a90-e3ba-4068-8843-8cae69f38bbc/Arakawa C grid.png&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://content.screencast.com/users/GRiflet/folders/Jing/media/cf704a90-e3ba-4068-8843-8cae69f38bbc/Arakawa C grid.png&amp;quot; width=&amp;quot;544&amp;quot; height=&amp;quot;191&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/htm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Bathymetry consistency diagnostic ==&lt;br /&gt;
&lt;br /&gt;
Once the vertical discretization is imposed and the bathymetry is chosen, the bottom layer can yield stability problems when using shaved cells. You can have very thin bottom cell next to a very wide bottom cell. To diagnose the existence of such problematic cells, a [[geometry diagnostic]] tool was developed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Modules]]&lt;br /&gt;
[[Category:MOHID Base 2]]&lt;br /&gt;
&lt;br /&gt;
== Input data file ==&lt;/div&gt;</summary>
		<author><name>192.168.20.177</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Energy&amp;diff=220</id>
		<title>Energy</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Energy&amp;diff=220"/>
				<updated>2008-07-31T18:50:17Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.177: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Energy]] calculates a domain averaged timeseries of the following diagnostic properties: &lt;br /&gt;
&lt;br /&gt;
;Kinetic energy : is the mass with squared velocity modulus product integration.&lt;br /&gt;
&lt;br /&gt;
;Potential energy : is the mass with gravitic constant and hydrographic zero distance product integration.&lt;br /&gt;
&lt;br /&gt;
;Enstrophy : Is the squared velocity curl integral.&lt;br /&gt;
&lt;br /&gt;
; Volume : is the integral of all wet [[Module_Geometry#Volumes|T-cells]] volumes.&lt;br /&gt;
&lt;br /&gt;
;Mass : is the density with [[Module_Geometry#Volumes|T-cells]] volume product integration.&lt;br /&gt;
&lt;br /&gt;
The diagnostic properties computation can be found in the routine '''ComputeSystemEnergy''' inside the [[Module Hydrodynamic]]. All the properties were interpolated to type [[Module_Geometry#Volumes|T-Cells]].&lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
&lt;br /&gt;
 Energy: 1&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Module Hydrodynamic]]&lt;br /&gt;
&lt;br /&gt;
[[Category:MOHID Water]]&lt;/div&gt;</summary>
		<author><name>192.168.20.177</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=ImposedSolution&amp;diff=344</id>
		<title>ImposedSolution</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=ImposedSolution&amp;diff=344"/>
				<updated>2008-07-31T17:16:52Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.177: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The idea behind the imposed solution, is the ability to run lagrangian tracers in offline mode. But it can also be used to calculate [[Residual|residual fields]] of velocity and water level, as well as the [[Energy|energy]] timeserie, given hydrodynamics and waterproperties from hdf5 files.&lt;br /&gt;
&lt;br /&gt;
==Sample configuration==&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Evolution]]&lt;br /&gt;
&lt;br /&gt;
[[Category:MOHID Water]]&lt;/div&gt;</summary>
		<author><name>192.168.20.177</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Evolution&amp;diff=230</id>
		<title>Evolution</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Evolution&amp;diff=230"/>
				<updated>2008-07-31T17:00:53Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.177: /* External links */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;There are several ways of running MOHID water hydrodynamics. The keyword that controls these several ways is [[Evolution|EVOLUTION]] from the [[module Hydrodynamic]] file.&lt;br /&gt;
&lt;br /&gt;
Here's the list of possible options for this keyword:&lt;br /&gt;
&lt;br /&gt;
#[[Solve_Equations]] : Default value, it solves the Primitive Ocean Equations.&lt;br /&gt;
#[[Read_File]] : Reads the solution from a file&lt;br /&gt;
#[[No_hydrodynamic]] : Doesn't calculates the hydrodynamic at all&lt;br /&gt;
#[[Residual_hydrodynamic]] : ??&lt;br /&gt;
#[[Run_Off]] : ??&lt;br /&gt;
#[[ImposedSolution]] : Uses a reference solution for U, V and level.&lt;br /&gt;
#[[Vertical1D]] : Used when modelling a simple 1D vertical model. It takes into account the Ekman spiral, provided the model is forced with wind stress at the surface, or with friction at the bottom.&lt;br /&gt;
&lt;br /&gt;
==Example ==&lt;br /&gt;
&lt;br /&gt;
 EVOLUTION : [[Vertical1D]]&lt;br /&gt;
&lt;br /&gt;
==External links==&lt;br /&gt;
*[http://www.mohid.com/IHS Mohid Keywords database]&lt;br /&gt;
&lt;br /&gt;
[[Category:MOHID Water]]&lt;/div&gt;</summary>
		<author><name>192.168.20.177</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=2gif&amp;diff=8</id>
		<title>2gif</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=2gif&amp;diff=8"/>
				<updated>2008-07-29T15:01:41Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.177: /* Make colors transparent */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[2gif]] is a nice little utility used to create gif animations.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
Please put the executable directory in the &amp;lt;code&amp;gt;PATH&amp;lt;/code&amp;gt; environment variable.&lt;br /&gt;
&lt;br /&gt;
The following syntax allows to create an animated gif ''anim.gif'' from ''bmp'' files with a delay of 500 ms between each frame:&lt;br /&gt;
 $ 2gif.exe s=*.bmp -namegen=anim.gif -unite -Delay500&lt;br /&gt;
&lt;br /&gt;
== Make colors transparent ==&lt;br /&gt;
&lt;br /&gt;
 $ 2gif.exe s=&amp;quot;C:\Source Images\*.*&amp;quot; d=&amp;quot;C:\out&amp;quot; -totranspm(255,255,255)&lt;br /&gt;
&lt;br /&gt;
== Command line tips ==&lt;br /&gt;
Producing large amounts of snapshots and creating animations can be very time-consuming. Here are a few tips for speeding up with the commandline:&lt;br /&gt;
*Get the [[2gif]] utility and add the folder to the ''PATH'' environment variable.&lt;br /&gt;
*Get the ''winzip'' utility and add the folder to the ''PATH'' environment variable.&lt;br /&gt;
The idea is basically inside your figures folder, to create a subfolder with the number of the run, and save inside the images and animations. The goal is to keep the same structure for each run, thus  allowing more efficiency.&lt;br /&gt;
&lt;br /&gt;
Open a command line window and go to the figures folder:&lt;br /&gt;
 $ xcopy /T /E Run_1 Run_New&lt;br /&gt;
 $ cd Run_New&lt;br /&gt;
 Now create a snapshot of the results, and save the images and the animation&lt;br /&gt;
 $ 2gif.exe s=*.bmp -namegen=anim.gif -unite -Delay1000&lt;br /&gt;
 $ winzip32 -min -m images.zip *.bmp&lt;br /&gt;
 $ move *.* This_snap&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Useful references==&lt;br /&gt;
*[[2eps]]&lt;br /&gt;
*[[Convert]]&lt;br /&gt;
*[[Jpeg2ps]]&lt;br /&gt;
*[[Winzip]]&lt;br /&gt;
*[[2jpeg]]&lt;/div&gt;</summary>
		<author><name>192.168.20.177</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Boxes&amp;diff=82</id>
		<title>Boxes</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Boxes&amp;diff=82"/>
				<updated>2008-07-24T14:55:48Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.177: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Overview ==&lt;br /&gt;
A box file is used to define an area, which can be 2D or 3D. These areas can be used to initialize properties fields or integrate values in time and space inside and between boxes, allowing computing global and zonal budgets for almost every modeled variables. [[Module BoxDif]] is the module responsible for handling and interpreting the boxes files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Boxes file ==&lt;br /&gt;
Boxes files can be automatically generated by [[Mohid_GIS#Create_Boxes|MOHID GIS]] based on a [[bathymetry]] file and on a [[polygon]] file. &lt;br /&gt;
&lt;br /&gt;
A box file requires the definition polygons. These polygons are defined by vertices indicated by the grid cell [i,j] indexes. Thus, a box file is always specific of a certain [[grid]] file. Please note that in [[polygon]] files, used in MOHID GIS, the polygon vertices are defined by real coordinates [x,y]. &lt;br /&gt;
&lt;br /&gt;
In a box file, several boxes can be defined. An ID number is given to each box, based on the order in which the box file is read. Box 1 is the first block in the file, Box 2 the second and so on. By default a Box 0 (zero) is always created, corresponding to the box containing all the grid points that were not included inside the boxes. This way if box integration is requested and no boxes are defined, the output will be the integration of the entire domain.&lt;br /&gt;
&lt;br /&gt;
When used to integrate values, the correspondent outputs are written in [[Time Series]] format. Thus, in the box file needs information on the time step to write results, which is given by keyword: &lt;br /&gt;
&lt;br /&gt;
 DT_OUTPUT_TIME                :  3600&lt;br /&gt;
&lt;br /&gt;
As a safety feature, a [[Grid Data]] file can be written in the beginning of a simulation, where in to each grid cell, the index of the corresponding box is written. This can be done by defining keyword: &lt;br /&gt;
&lt;br /&gt;
 WRITE_BOXES                   : 1&lt;br /&gt;
&lt;br /&gt;
and then the name of the output file to be written: &lt;br /&gt;
&lt;br /&gt;
 OUTPUT_FILE                   : ..\GeneralData\Boxes\BoxesFileInGridDataFormat.dat&lt;br /&gt;
&lt;br /&gt;
== Sample ==&lt;br /&gt;
This example shows the definition of a box with 4 vertices. By default [[Module BoxDif]] automatically introduces an extra vertice at the end of the list which is equal to the first vertex, thus insuring the polygon is closed. &lt;br /&gt;
&lt;br /&gt;
=== 2D box file ===&lt;br /&gt;
&lt;br /&gt;
 DT_OUTPUT_TIME                :  3600&lt;br /&gt;
 WRITE_BOXES                   : 0&lt;br /&gt;
 &lt;br /&gt;
 '''&amp;lt;beginpolygon&amp;gt;''' &lt;br /&gt;
  &amp;lt;&amp;lt;beginvertix&amp;gt;&amp;gt;&lt;br /&gt;
  44 39&lt;br /&gt;
  33 77&lt;br /&gt;
  71 88&lt;br /&gt;
  82 49&lt;br /&gt;
  &amp;lt;&amp;lt;endvertix&amp;gt;&amp;gt;&lt;br /&gt;
 '''&amp;lt;endpolygon&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== 3D box file ===&lt;br /&gt;
This example shows the definition of two boxes, defined by the same polygon, but which integrate in the vertical direction, from layer 1 to 5, and from layer 6 to 10. &lt;br /&gt;
&lt;br /&gt;
 DT_OUTPUT_TIME                :  3600&lt;br /&gt;
 WRITE_BOXES                   : 0&lt;br /&gt;
 &lt;br /&gt;
 '''&amp;lt;beginpolygon&amp;gt;'''&lt;br /&gt;
  &amp;lt;&amp;lt;beginvertix&amp;gt;&amp;gt;&lt;br /&gt;
   44 39&lt;br /&gt;
   33 77&lt;br /&gt;
   71 88&lt;br /&gt;
   82 49&lt;br /&gt;
  &amp;lt;&amp;lt;endvertix&amp;gt;&amp;gt;&lt;br /&gt;
  &amp;lt;&amp;lt;beginverticallayer&amp;gt;&amp;gt;&lt;br /&gt;
   1  5&lt;br /&gt;
   6  10&lt;br /&gt;
  &amp;lt;&amp;lt;endverticallayer&amp;gt;&amp;gt;&lt;br /&gt;
 '''&amp;lt;endpolygon&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[DrawFluxesInHDF5]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Input Data Formats]]&lt;/div&gt;</summary>
		<author><name>192.168.20.177</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Matlab&amp;diff=482</id>
		<title>Matlab</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Matlab&amp;diff=482"/>
				<updated>2008-07-08T18:25:11Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.177: /* How to run matlab from the command line? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;MATLAB is a numerical computing environment and programming language. Created by the [http://www.mathworks.com MathWorks], MATLAB allows easy matrix manipulation, plotting of functions and data, implementation of algorithms, creation of user interfaces, and interfacing with programs in other languages.&lt;br /&gt;
&lt;br /&gt;
== How to install Matlab from IST ? ==&lt;br /&gt;
Go to [https://delta.ist.utl.pt/software/matlab.php delta.ist.utl.pt] and follow the instructions there. You should obtain the license files in your email after you fill up a form.&lt;br /&gt;
&lt;br /&gt;
== MOHID and MATLAB ==&lt;br /&gt;
Since release 7.4(R2007a) it supports reading and writing MOHID [[HDF5]] files.&lt;br /&gt;
&lt;br /&gt;
There are [[Mohid_Support_Tools#MatLab_Tools|several tools]] available to [[MOHID]] users and developers in the [[SourceSafe]] database &amp;quot;OtherTools/MatLab&amp;quot;. Detailed information of these tools can be found [[Mohid_Support_Tools#MatLab_Tools|here]]&lt;br /&gt;
&lt;br /&gt;
== How to run matlab from the command line? ==&lt;br /&gt;
Make sure you end the script you want to invoke from the command line with ''exit'' (type ''help exit'' at the matlab prompt then add ''exit'' as the last line in the script).&lt;br /&gt;
&lt;br /&gt;
=== Windows ===&lt;br /&gt;
Assuming ''script.m'' is a valid matlab script that finishes with the ''exit'' command, typing from the dos command line&lt;br /&gt;
 $ matlab -r script(arguments)&lt;br /&gt;
will open matlab, execute the script and then exit matlab.&lt;br /&gt;
&lt;br /&gt;
New version of Matlab needs the ''-wait'' option, otherwise it may not function properly in batchfiles:&lt;br /&gt;
 $ matlab -r -wait script(arguments)&lt;br /&gt;
&lt;br /&gt;
=== Unix ===&lt;br /&gt;
To run matlab in text mode only type:&lt;br /&gt;
 &amp;gt; matlab -nodesktop -nojvm -nodisplay&lt;br /&gt;
&lt;br /&gt;
To run matlab in background type:&lt;br /&gt;
 &amp;gt; nohup matlab -nodesktop -nojvm (-nodisplay) &amp;lt; script.m &amp;gt; _matlab.log &amp;amp;&lt;br /&gt;
This last line will run matlab in background, execute ''script.m'' and kill the matlab process.&lt;br /&gt;
&lt;br /&gt;
== [[Netcdf]] package ==&lt;br /&gt;
&lt;br /&gt;
===install===&lt;br /&gt;
==== Windows ====&lt;br /&gt;
===== R2007a and R2007b =====&lt;br /&gt;
This installation is described only for the R2007a to R2007b versions of Matlab:&lt;br /&gt;
*Prerequisites:&lt;br /&gt;
**[http://mexcdf.sourceforge.net/downloads/ mexnc R2007a or R2007b]&lt;br /&gt;
**[http://mexcdf.sourceforge.net/downloads/ snctools], (here for [[snctools]] wiki article),&lt;br /&gt;
**[http://www.eos.ubc.ca/~rich/private/mapug.html m_map]&lt;br /&gt;
*Steps:&lt;br /&gt;
*#Download all the above packages,&lt;br /&gt;
*#Transfer the netcdf.dll shipped with mexnc to the windows system path,&lt;br /&gt;
*#Add in the matlab path setup the paths to mexnc,&lt;br /&gt;
*#Save and restart matlab,&lt;br /&gt;
*#Open Matlab, &lt;br /&gt;
*#[OPTIONAL]: to enable opendap, you must install the netcdf [ftp://ftp.unidata.ucar.edu/pub/netcdf-java/v4.0/ toolsUI jar file]. Installation instructions are available [http://mexcdf.sourceforge.net/tutorial/ch02.html here].&lt;br /&gt;
*#[OPTIONAL]: add the path and filename of toolsUI jar file in the classpath.txt in the /toolbox/local directory of your matlab installation,&lt;br /&gt;
*#Go to the tests folder in snctools and launch test_snctools.m, &lt;br /&gt;
*#That's it!&lt;br /&gt;
For the m_map package instructions go to http://www.eos.ubc.ca/~rich/private/mapug.html. For the high-res coastline and bathymetry datasets goto http://www.eos.ubc.ca/~rich/private/mapug.html#p9.&lt;br /&gt;
&lt;br /&gt;
NOTE: You can check http://mexcdf.sourceforge.net/tutorial/ch02.html for a quick alternative netcdf installation...&lt;br /&gt;
&lt;br /&gt;
NOTE: If the following error occurs, make sure you have installed the netcdf.dll file, shipped with mexnc, in your windows system path:&lt;br /&gt;
 ??? Invalid MEX-file&lt;br /&gt;
&lt;br /&gt;
=====R12 to R14=====&lt;br /&gt;
This installation is described only for the R12 to R14 versions of Matlab:&lt;br /&gt;
*Prerequisites:&lt;br /&gt;
**[http://www.opendap.org/download/libdap++.html libdap-prerequisites3.7.3]&lt;br /&gt;
**[http://www.opendap.org/download/ml-structs.html ml-structs]&lt;br /&gt;
**[http://mexcdf.sourceforge.net/downloads/ mexnc R14 or R12]&lt;br /&gt;
**[http://www.marine.csiro.au/sw/matlab-netcdf.html#Installation matlab_netCDF_OPeNDAP]&lt;br /&gt;
**[http://www.eos.ubc.ca/~rich/private/mapug.html m_map]&lt;br /&gt;
*Steps:&lt;br /&gt;
*#Download all the above packages,&lt;br /&gt;
*#Copy the dll files from libdap-prerequisites3.7.3 to the ml-structs folder.&lt;br /&gt;
*#Add in the matlab path setup the paths to ml-structs, matlab_netCDF_OPeNDAP and mexnc R14 or R12,&lt;br /&gt;
*#Save and restart matlab,&lt;br /&gt;
*#Open Matlab, go to the tests folder in mexnc R14 or R12 and launch test_mexnc.m,&lt;br /&gt;
*#Next, go to the tests folder in matlab_netCDF_OPeNDAP and launch test_all.m,&lt;br /&gt;
*#That's it!&lt;br /&gt;
Check out this page for more detailed instructions: http://www.marine.csiro.au/sw/matlab-netcdf.html. For the m_map package instructions go to http://www.eos.ubc.ca/~rich/private/mapug.html. For the high-res coastline and bathymetry datasets goto http://www.eos.ubc.ca/~rich/private/mapug.html#p9.&lt;br /&gt;
&lt;br /&gt;
NOTE: If using Matlab R13, then use the mexnc R12 release and not the mexnc R14 release!&lt;br /&gt;
&lt;br /&gt;
NOTE: If the following error occur during the test_all.m, then edit the compare_mats_getnc.m file at line 45 and replace {} with (). Rerun the test_all.m. That should do it!&lt;br /&gt;
 Error: File: C:\MATLAB6p5\toolbox\matlab_netCDF_OPeNDAP\test\compare_mats_getnc.m Line: 45 Column: 59&lt;br /&gt;
 Functions cannot be indexed using {} or . indexing.&lt;br /&gt;
&lt;br /&gt;
NOTE: If the following error occurs, make sure you have installed the netcdf.dll file, shipped with mexnc, in your windows system path:&lt;br /&gt;
 ??? Invalid MEX-file &lt;br /&gt;
&lt;br /&gt;
==== Unix ====&lt;br /&gt;
*To install the netcdf package you first require to install the netcdf libraries. Get the latest ''netcdf.tar.gz'' and unpack them in a temporary directory. Then type:&lt;br /&gt;
 &amp;gt; ./configure --enable-fortran (--enable-64) --prefix=/usr/local/netcdf --exec-prefix=/usr/local/netcdf&lt;br /&gt;
Next edit the ''macros.make'' file and add the ''-fpic'' option to both ''CFLAGS'' and ''CXXFLAGS''&lt;br /&gt;
 &amp;gt; vim macros.make&lt;br /&gt;
 CFLAGS      = -g -O2 -fpic&lt;br /&gt;
 CXXFLAGS    = -g -O2 -fpic&lt;br /&gt;
Then type make&lt;br /&gt;
 &amp;gt; make&lt;br /&gt;
 &amp;gt; sudo make install&lt;br /&gt;
This will install the netcdf libraries in the &amp;lt;code&amp;gt;/usr/local/netcdf&amp;lt;/code&amp;gt; directory.&lt;br /&gt;
&lt;br /&gt;
*Next, get the latest ''mexnc.tar.gz'' files and unpack them the ''matlab/toolbox'' temporary directory. Then copy the &amp;lt;code&amp;gt;mexopts.sh&amp;lt;/code&amp;gt; file from the matlab root directory into the temporary directory and add the following lines at the end:&lt;br /&gt;
&lt;br /&gt;
 #############################################################################&lt;br /&gt;
 #&lt;br /&gt;
 # Architecture independent lines:&lt;br /&gt;
 #&lt;br /&gt;
 #     Set and uncomment any lines which will apply to all architectures.&lt;br /&gt;
 #&lt;br /&gt;
 #----------------------------------------------------------------------------&lt;br /&gt;
 	NETCDF=&amp;quot;/usr/local/netcdf&amp;quot; &lt;br /&gt;
 	EXTRA_CFLAGS=&amp;quot;-I${NETCDF}/include&amp;quot;&lt;br /&gt;
 	EXTRA_CLIBS=&amp;quot;-L${NETCDF}/lib -lnetcdf &amp;quot;&lt;br /&gt;
 	CFLAGS=&amp;quot;-g $CFLAGS ${EXTRA_CFLAGS}&amp;quot;&lt;br /&gt;
 	CLIBS=&amp;quot;$CLIBS ${EXTRA_CLIBS} &amp;quot;&lt;br /&gt;
 #----------------------------------------------------------------------------&lt;br /&gt;
 #############################################################################&lt;br /&gt;
Then run make:&lt;br /&gt;
 &amp;gt; make&lt;br /&gt;
Finally add the ''matlab/toolbox/mexnc'' path to the matlab environment.&lt;br /&gt;
&lt;br /&gt;
*Continuing, to have opendap accessible installation of the opendap client libraries is required:&lt;br /&gt;
 &amp;gt; yum install libdap&lt;br /&gt;
 &amp;gt; yum install libnc-dap&lt;br /&gt;
&lt;br /&gt;
===Usage===&lt;br /&gt;
==== [[snctools]] ====&lt;br /&gt;
&lt;br /&gt;
===== nc_dump =====&lt;br /&gt;
  NC_DUMP:  a Matlab counterpart to the NetCDF utility 'ncdump'.&lt;br /&gt;
      NC_DUMP(NCFILE) prints metadata about the netCDF file NCFILE.  &lt;br /&gt;
      NC_DUMP(NCFILE,VARNAME) prints metadata about just the one netCDF variable&lt;br /&gt;
      named VARNAME.&lt;br /&gt;
&lt;br /&gt;
===== nc_varget =====&lt;br /&gt;
  NC_VARGET:  Retrieve data from a netCDF variable.&lt;br /&gt;
 &lt;br /&gt;
  DATA = NC_VARGET(NCFILE,VARNAME) retrieves all the data from the &lt;br /&gt;
  variable VARNAME in the netCDF file NCFILE.&lt;br /&gt;
 &lt;br /&gt;
  DATA = NC_VARGET(NCFILE,VARNAME,START,COUNT) retrieves the contiguous&lt;br /&gt;
  portion of the variable specified by the index vectors START and &lt;br /&gt;
  COUNT.  Remember that SNCTOOLS indexing is zero-based, not &lt;br /&gt;
  one-based.  Specifying a -1 in COUNT means to retrieve everything &lt;br /&gt;
  along that dimension from the START coordinate.&lt;br /&gt;
 &lt;br /&gt;
  DATA = NC_VARGET(NCFILE,VARNAME,START,COUNT,STRIDE) retrieves &lt;br /&gt;
  a non-contiguous portion of the dataset.  The amount of&lt;br /&gt;
  skipping along each dimension is given through the STRIDE vector.&lt;br /&gt;
 &lt;br /&gt;
  NCFILE can also be an OPeNDAP URL if the proper SNCTOOLS backend is&lt;br /&gt;
  installed.  See the README for details.&lt;br /&gt;
  &lt;br /&gt;
  NC_VARGET tries to be intelligent about retrieving the data.&lt;br /&gt;
  Since most general matlab operations are done in double precision,&lt;br /&gt;
  retrieved numeric data will be cast to double precision, while &lt;br /&gt;
  character data remains just character data.  &lt;br /&gt;
 &lt;br /&gt;
  Singleton dimensions are removed from the output data.  &lt;br /&gt;
 &lt;br /&gt;
  A '_FillValue' attribute is honored by flagging those datums as NaN.&lt;br /&gt;
  A 'missing_value' attribute is honored by flagging those datums as &lt;br /&gt;
  NaN.  The exception to this is for NC_CHAR variables, as mixing &lt;br /&gt;
  character data and NaN doesn't really seem to work in matlab.&lt;br /&gt;
 &lt;br /&gt;
  If the named NetCDF variable has valid scale_factor and add_offset &lt;br /&gt;
  attributes, then the data is scaled accordingly.  &lt;br /&gt;
 &lt;br /&gt;
  EXAMPLE:&lt;br /&gt;
  #1.  In this case, the variable in question has rank 2, and has size &lt;br /&gt;
       500x700.  We want to retrieve starting at row 300, column 250.&lt;br /&gt;
       We want 100 contiguous rows, 200 contiguous columns.&lt;br /&gt;
  &lt;br /&gt;
       vardata = nc_varget ( file, variable_name, [300 250], [100 200] );&lt;br /&gt;
&lt;br /&gt;
==== &amp;lt;strike&amp;gt;getnc&amp;lt;/strike&amp;gt; ====&lt;br /&gt;
  &amp;gt; values = getnc(file, varid, -1, -1, -1, -1, change_miss, new_miss);&lt;br /&gt;
&lt;br /&gt;
  &amp;gt; x.file = 'fred.nc';&lt;br /&gt;
  &amp;gt; x.varid = 'foo';&lt;br /&gt;
  &amp;gt; x.change_miss = 1;&lt;br /&gt;
  &amp;gt; values = getnc(x);&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Matlab samples]]&lt;br /&gt;
*[[Netcdf]]&lt;br /&gt;
*[[OpenDAP]]&lt;br /&gt;
&lt;br /&gt;
==External References==&lt;br /&gt;
*[https://delta.ist.utl.pt/software/matlab.php Matlab @ delta.ist.utl.pt]&lt;br /&gt;
*[http://www.mathworks.com MathWorks],&lt;br /&gt;
*[http://www.bme.utexas.edu/research/informatics/policies2/topic.aspx?topicid=5#111 matlab from command line],&lt;br /&gt;
*[http://www.egr.msu.edu/decs/facilities/software/matlab.php#Background Matlab in background],&lt;br /&gt;
*[http://www.stanford.edu/~jichien/matlab.html Matlab in background 2].&lt;br /&gt;
&lt;br /&gt;
[[Category:Tools]]&lt;br /&gt;
[[Category:Windows]]&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:Technology]]&lt;br /&gt;
[[Category:Matlab]]&lt;br /&gt;
[[Category:Netcdf]]&lt;/div&gt;</summary>
		<author><name>192.168.20.177</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Matlab_samples&amp;diff=484</id>
		<title>Matlab samples</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Matlab_samples&amp;diff=484"/>
				<updated>2008-07-08T09:14:53Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.177: /* Read and write netcdf files */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article compiles some useful [[matlab]] samples to use with the MOHID converted [[netcdf]] files.&lt;br /&gt;
&lt;br /&gt;
==Netcdf MOHID vector plot==&lt;br /&gt;
Sample code for the Portuguese coast application. It integrates several layers of the horizontal velocity. And plots and saves it.&lt;br /&gt;
&lt;br /&gt;
 file='F:\Results200606\20060601_Hydrodynamic_1.nc';&lt;br /&gt;
 nc_dump(file)&lt;br /&gt;
 &lt;br /&gt;
 lon = nc_varget(file,'lon')&lt;br /&gt;
 lat = nc_varget(file,'lat')&lt;br /&gt;
 depth = nc_varget(file,'depth')&lt;br /&gt;
 &lt;br /&gt;
 siz = [length(lon)-1 length(lat)-1];&lt;br /&gt;
 lon2d = zeros(siz); &lt;br /&gt;
 lat2d = zeros(siz);&lt;br /&gt;
 &lt;br /&gt;
 for i=1:siz(1) &lt;br /&gt;
 for j=1:siz(2)&lt;br /&gt;
    lon2d(i,j) = lon(i); &lt;br /&gt;
    lat2d(i,j) = lat(j);&lt;br /&gt;
 end&lt;br /&gt;
 end&lt;br /&gt;
  &lt;br /&gt;
 SumVelX = 0; &lt;br /&gt;
 SumVelY = 0;&lt;br /&gt;
 &lt;br /&gt;
 for k=35:42  &lt;br /&gt;
 &lt;br /&gt;
    Vel_xk = nc_varget(file,'Vel_X',[k 1 1],[1 116 176]);    &lt;br /&gt;
    SumVelX = SumVelX + Vel_xk * (depth(k+1) - depth(k)) / (depth(43) - depth(36));    &lt;br /&gt;
 &lt;br /&gt;
    Vel_yk = nc_varget(file,'Vel_Y',[k 1 1],[1 116 176]);    &lt;br /&gt;
    SumVelY = SumVelY + Vel_yk * (depth(k+1) - depth(k)) / (depth(43) - depth(36));&lt;br /&gt;
 &lt;br /&gt;
 end&lt;br /&gt;
  &lt;br /&gt;
 %plot arrows&lt;br /&gt;
 m_proj('miller', 'lon', [min(lon) max(lon)], 'lat', [min(lat) max(lat)]);&lt;br /&gt;
 m_quiver(lon2d(1:3:end), lat2d(1:3:end), Vel_xk(1:3:end), Vel_yk(1:3:end), 0, 'k');&lt;br /&gt;
 hold on;&lt;br /&gt;
 m_grid('box','fancy','linestyle','none','fontsize', 7);&lt;br /&gt;
 m_usercoast('[http://www.mohid.com/HydroGroup/data_sources/coastline.mat coastline.mat]','patch', [.5 .5 .5]);       &lt;br /&gt;
 %plot scale&lt;br /&gt;
 m_quiver(-8.5, 37.5, .1,  0.0, 0, 'k');&lt;br /&gt;
 htv5 = text(.015, .69, '10 cm s^{-1}');&lt;br /&gt;
 set(htv5,'FontSize',8);&lt;br /&gt;
 &lt;br /&gt;
 %save figure as a png file&lt;br /&gt;
 saveas(gcf, 'MyArrowsFigure.png', 'png');&lt;br /&gt;
&lt;br /&gt;
==Read and write netcdf files==&lt;br /&gt;
&lt;br /&gt;
 %Read level2 residual fields&lt;br /&gt;
 %%%%%%%%%%%% 3D results %%%%%%%%%%%%%%%%%%%%%&lt;br /&gt;
 file = 'BiscayResidual.nc';&lt;br /&gt;
 u = nc_varget(file,'Vel_X');&lt;br /&gt;
 v = nc_varget(file,'Vel_Y');&lt;br /&gt;
 lon = nc_varget(file,'lon');&lt;br /&gt;
 lat = nc_varget(file, 'lat');&lt;br /&gt;
 depth = nc_varget(file, 'depth');&lt;br /&gt;
 level = nc_varget(file, 'Lev_Z');&lt;br /&gt;
 &lt;br /&gt;
 %Create level1 residual fields&lt;br /&gt;
 out = 'MOHIDresidual3D.nc';&lt;br /&gt;
 nc_create_empty(out, nc_write_mode);&lt;br /&gt;
 nc_add_dimension(out, 'lon', length(lon));&lt;br /&gt;
 nc_add_dimension(out, 'lat', length(lat));&lt;br /&gt;
 nc_add_dimension(out, 'deptht', length(depth));&lt;br /&gt;
 &lt;br /&gt;
 s_ncvars = struct ( 'Name', ...&lt;br /&gt;
                        {   'lon',...&lt;br /&gt;
                            'lat',...&lt;br /&gt;
                            'deptht',...&lt;br /&gt;
                            'u',...&lt;br /&gt;
                            'v',...&lt;br /&gt;
                            'elevation'}, ...&lt;br /&gt;
                   'Nctype', ...&lt;br /&gt;
                        {   'float',...&lt;br /&gt;
                            'float',...&lt;br /&gt;
                            'float',...&lt;br /&gt;
                            'float',...&lt;br /&gt;
                            'float',...&lt;br /&gt;
                            'float'}, ...&lt;br /&gt;
                   'Dimension', ...&lt;br /&gt;
                        {   {'lon'},...&lt;br /&gt;
                            {'lat'},...&lt;br /&gt;
                            {'deptht'},...&lt;br /&gt;
                            {'deptht' 'lat' 'lon'},...&lt;br /&gt;
                            {'deptht' 'lat' 'lon'},...&lt;br /&gt;
                            {'lat' 'lon'}}, ...&lt;br /&gt;
                   'Attribute', ...&lt;br /&gt;
                        {   struct( 'Name','units',...&lt;br /&gt;
                                    'Value','degrees_east' ), ...&lt;br /&gt;
                            struct( 'Name','units',...&lt;br /&gt;
                                    'Value','degrees_north' ), ...&lt;br /&gt;
                            struct( 'Name','units',...&lt;br /&gt;
                                    'Value','m' ), ...&lt;br /&gt;
                            struct( 'Name','units',...&lt;br /&gt;
                                    'Value','m s-1' ), ...&lt;br /&gt;
                            struct( 'Name','units',...&lt;br /&gt;
                                    'Value','m s-1' ), ...&lt;br /&gt;
                            struct( 'Name','units',...&lt;br /&gt;
                                    'Value','m' ), ...&lt;br /&gt;
                         })&lt;br /&gt;
 &lt;br /&gt;
 for i=1:length(s_ncvars)                     &lt;br /&gt;
    nc_addvar(out, s_ncvars(i));&lt;br /&gt;
 end&lt;br /&gt;
 &lt;br /&gt;
 nc_dump(out);&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Matlab]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Matlab]]&lt;/div&gt;</summary>
		<author><name>192.168.20.177</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Polynomial_interpolation&amp;diff=771</id>
		<title>Polynomial interpolation</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Polynomial_interpolation&amp;diff=771"/>
				<updated>2008-06-27T10:52:07Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.177: /* &amp;lt;mathtex&amp;gt;p&amp;lt;/mathtex&amp;gt;-th derivative of polynomial interpolation of real function &amp;lt;mathtex&amp;gt;f&amp;lt;/mathtex&amp;gt; */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Given &amp;lt;mathtex&amp;gt;n&amp;lt;/mathtex&amp;gt; nodes of known values of any real function &amp;lt;mathtex&amp;gt;f&amp;lt;/mathtex&amp;gt;, the '''unisolvence theorem''' states that there exists a unique polynomial of degree &amp;lt;mathtex&amp;gt;n-1&amp;lt;/mathtex&amp;gt; that interpolates the nodes. Such a polynomial &amp;lt;mathtex&amp;gt;P&amp;lt;/mathtex&amp;gt; is easily constructed for low degrees and is easily generalized to any degree.&lt;br /&gt;
&lt;br /&gt;
==Polynomial interpolation of real function &amp;lt;mathtex&amp;gt;f&amp;lt;/mathtex&amp;gt;==&lt;br /&gt;
By increasing degree:&lt;br /&gt;
* &amp;lt;mathtex&amp;gt;P^{1}(x) = f(x_1) \frac{  \left( x - x_2 \right) }{ \left( x_1 - x_2 \right) } + f(x_2) \frac{  \left( x - x_1 \right) }{ \left( x_2 - x_1 \right) } &amp;lt;/mathtex&amp;gt;&lt;br /&gt;
* &amp;lt;mathtex&amp;gt;P^{2}(x) = f(x_1) \frac{  \left( x - x_2 \right) \left( x - x_3 \right) }{ \left( x_1 - x_2 \right) \left( x_1 - x_3 \right)} + f(x_2) \frac{  \left( x - x_1 \right) \left( x - x_3 \right) }{ \left( x_2 - x_1 \right) \left( x_2 - x_3 \right) } + f(x_3) \frac{  \left( x - x_1 \right) \left( x - x_2 \right) }{ \left( x_3 - x_1 \right) \left( x_3 - x_2 \right) } &amp;lt;/mathtex&amp;gt;&lt;br /&gt;
* ...&lt;br /&gt;
* &amp;lt;mathtex&amp;gt;P^{n-1}(x) = \sum_{i=1}^{n} \frac{ f(x_i) \prod_{j \neq i}^n \left( x - x_j \right) }{ \prod_{j \neq i}^n \left( x_i - x_j \right) } &amp;lt;/mathtex&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;mathtex&amp;gt;x_1,\, x_2,\, \ldots \, x_n,&amp;lt;/mathtex&amp;gt; are the nodes where &amp;lt;mathtex&amp;gt;f&amp;lt;/mathtex&amp;gt; is known.&lt;br /&gt;
&lt;br /&gt;
==&amp;lt;mathtex&amp;gt;p&amp;lt;/mathtex&amp;gt;-th derivative of polynomial interpolation of real function &amp;lt;mathtex&amp;gt;f&amp;lt;/mathtex&amp;gt;==&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;mathtex&amp;gt;P^{1}(x)^{(1)} =  f(x_1) \frac{  1 }{ \left( x_1 - x_2 \right) } +  f(x_2) \frac{  1 }{ \left( x_2 - x_1 \right) } &amp;lt;/mathtex&amp;gt;&lt;br /&gt;
* &amp;lt;mathtex&amp;gt;P^{2}(x)^{(1)} = f(x_1) \frac{  \left( x - x_2 \right) + \left( x - x_3 \right) }{ \left( x_1 - x_2 \right) \left( x_1 - x_3 \right)} + f(x_2) \frac{  \left( x - x_1 \right) + \left( x - x_3 \right) }{ \left( x_2 - x_1 \right) \left( x_2 - x_3 \right) } + f(x_3) \frac{  \left( x - x_1 \right) + \left( x - x_2 \right) }{ \left( x_3 - x_1 \right) \left( x_3 - x_2 \right) } &amp;lt;/mathtex&amp;gt;&lt;br /&gt;
* &amp;lt;mathtex&amp;gt;P^{2}(x)^{(2)} = f(x_1) \frac{  2 }{ \left( x_1 - x_2 \right) \left( x_1 - x_3 \right)} + f(x_2) \frac{  2 }{ \left( x_2 - x_1 \right) \left( x_2 - x_3 \right) } + f(x_3) \frac{ 2 }{ \left( x_3 - x_1 \right) \left( x_3 - x_2 \right) } &amp;lt;/mathtex&amp;gt;&lt;br /&gt;
* ...&lt;br /&gt;
* &amp;lt;mathtex&amp;gt; P^{n-1}(x)^{(p)} = \sum_{\alpha_1=1}^{n} \frac{ f(x_{\alpha_1}) \sum_{\alpha_{i+1} \neq \alpha_i,\,(i)}^{n,\,(p)} \prod_{\alpha_{p+2} \neq \alpha_{p+1}}^n \left( x - x_{\alpha_{p+2}} \right) }{ \prod_{\alpha_2 \neq \alpha_1}^n \left( x_{\alpha_1} - x_{\alpha_2} \right) } &amp;lt;/mathtex&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In particular, if &amp;lt;mathtex&amp;gt;n-1 = p&amp;lt;/mathtex&amp;gt; we have,&lt;br /&gt;
* &amp;lt;mathtex&amp;gt; P^{p}(x)^{(p)} = \sum_{i=1}^{n} f(x_{i}) \frac{ p }{ \prod_{j \neq i}^n \left( x_{i} - x_{j} \right) } &amp;lt;/mathtex&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===[[Compound sum]]===&lt;br /&gt;
* &amp;lt;mathtex&amp;gt;\sum^{(p)} = \underbrace{ \sum \circ \sum \circ \ldots \circ \sum }_{p-\text{times}}&amp;lt;/mathtex&amp;gt;,&lt;br /&gt;
* &amp;lt;mathtex&amp;gt; \sum^{(0)} = id &amp;lt;/mathtex&amp;gt;,&lt;br /&gt;
* &amp;lt;mathtex&amp;gt; \sum^{n,\,(p)}_{\alpha_{i+1}=1,\,(i)} = \underbrace{  \sum^{n}_{\alpha_2=1} \circ \sum^{n}_{\alpha_3=1} \circ \ldots \circ \sum^{n}_{\alpha_{p+1}=1} }_{p-\text{times}}&amp;lt;/mathtex&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
==External references==&lt;br /&gt;
*[http://en.wikipedia.org/wiki/Polynomial_interpolation Polynomial interpolation article in wikipedia]&lt;br /&gt;
&lt;br /&gt;
[[Category:Science]]&lt;/div&gt;</summary>
		<author><name>192.168.20.177</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Compound_sum&amp;diff=130</id>
		<title>Compound sum</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Compound_sum&amp;diff=130"/>
				<updated>2008-06-26T21:29:36Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.177: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* &amp;lt;mathtex&amp;gt;\sum^{(p)} = \underbrace{ \sum \circ \sum \circ \ldots \circ \sum }_{p-\text{times}}&amp;lt;/mathtex&amp;gt;,&lt;br /&gt;
* &amp;lt;mathtex&amp;gt; \sum^{(0)} = id &amp;lt;/mathtex&amp;gt;,&lt;br /&gt;
* &amp;lt;mathtex&amp;gt; \sum^{n,\,(p)}_{\alpha_{i+1}=1,\,(i)} = \underbrace{  \sum^{n}_{\alpha_2=1} \circ \sum^{n}_{\alpha_3=1} \circ \ldots \circ \sum^{n}_{\alpha_{p+1}=1} }_{p-\text{times}}&amp;lt;/mathtex&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
[[Category:Science]]&lt;br /&gt;
[[Category:Maths]]&lt;/div&gt;</summary>
		<author><name>192.168.20.177</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Module_LagrangianGlobal&amp;diff=567</id>
		<title>Module LagrangianGlobal</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Module_LagrangianGlobal&amp;diff=567"/>
				<updated>2008-06-25T10:11:03Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.177: /* Overview */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Overview ==&lt;br /&gt;
The LagrangianGlobal module is a module very similar to the [[Module Lagrangian|Lagrangian module]]. The input data file keywords are exactly the same. The modules give the same lagrangian result if the user only runs one model (no nesting). &lt;br /&gt;
In the case of the first module when are run several nesting levels. The user only define one lagrangian input data file in the data file of the first nesting level (first model in the tree.dat). Each lagrangian tracer will use the hydrodynamic field with the higher priority depending on the tracer position. By default the priority is define  inverting the tree.dat order. &lt;br /&gt;
The user can specify the oder using a block define in the lagrangian input file where the user can define the model priority:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;BeginModelPriority&amp;gt; &lt;br /&gt;
 Model name x&lt;br /&gt;
 Model name y&lt;br /&gt;
 &amp;lt;EndModelPriority&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The first model are the one with the higher priority.&lt;br /&gt;
&lt;br /&gt;
If the mohid user wants to activate this module it needs to predefined a preprocessor symbol called _LAGRANGIAN_GLOBAL_ in the compilation phase of the mohid.&lt;br /&gt;
&lt;br /&gt;
== Relative position of tracer in a generic cell ==&lt;br /&gt;
&lt;br /&gt;
A fundamental in the &amp;quot;MOHID system&amp;quot; lagrangian approach is to know the relative position of the tracer in the hydrodynamic cell to speed up the interpolation procedure. This is quite easy for square cells however this not the case for cells of curvilinear grids . In this case was develop a subroutine that is able to compute the generic position of a tracer in a generic cell (see subroutine RelativePosition4VertPolygon in module functions). The algorithm used is described below.&lt;br /&gt;
&lt;br /&gt;
[[Image:FromGenericToSquare.jpg|850px|thumb|center|'''Relative position of tracer in a generic cell''']]&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; y_1  = a_1  + b_1 x_1  \wedge a_1  = {{x_d y_c  - x_c y_d } \over {x_d  - x_c }} \wedge b_1  = {{y_d  - y{}_c} \over {x_d  - x_c }} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; y_2  = a_2  + b_2 x_2  \wedge a_2  = {{x_b y_a  - x_a y_b } \over {x_b  - x_a }} \wedge b_2  = {{y_b  - y{}_a} \over {x_b  - x_a }} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; y_3  = a_3  + b_3 x_3  \wedge a_3  = {{x_a y_c  - x_c y_a } \over {x_a  - x_c }} \wedge b_3  = {{x_a  - x_c } \over {y_a  - y{}_c}} &amp;lt;/math&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; y_4  = a_4  + b_4 x_4  \wedge a_4  = {{x_b y_d  - x_d y_b } \over {x_b  - x_d }} \wedge b_4  = {{x_b  - x_d } \over {y_b  - y{}_d}} &amp;lt;/math&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; y_g  = {{a_3  - a_4 } \over {b_4  - b_3 }} \wedge x_g  = a_3  + b_3 y_g &amp;lt;/math&amp;gt; &lt;br /&gt;
&lt;br /&gt;
 if (b1==b2) then&lt;br /&gt;
 &amp;lt;math&amp;gt; tg\alpha  = b_2&amp;lt;/math&amp;gt;  &lt;br /&gt;
 else&lt;br /&gt;
 &amp;lt;math&amp;gt; x_f  = {{a_1  - a_2 } \over {b_2  - b_1 }} \wedge y_f  = a_1  + b_1 x_f &amp;lt;/math&amp;gt; &lt;br /&gt;
 &amp;lt;math&amp;gt; tg\alpha  = {{y_e  - y_f } \over {x_e  - x_f }} &amp;lt;/math&amp;gt; &lt;br /&gt;
 endif&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; y_h  = {{y_e  + \left( {a_3  - x_e } \right)Tg\alpha } \over {1 - b_3 Tg\alpha }} \wedge x_h  = a_3  + b_3 y_h &amp;lt;/math&amp;gt; &lt;br /&gt;
&lt;br /&gt;
 if (b3==b4) then&lt;br /&gt;
 &amp;lt;math&amp;gt; tg\beta  = b_3 &amp;lt;/math&amp;gt;  &lt;br /&gt;
 else&lt;br /&gt;
 &amp;lt;math&amp;gt; x_g  = {{a_3  - a_4 } \over {b_4  - b_3 }} \wedge y_g  = a_3  + b_3 x_g &amp;lt;/math&amp;gt;  &lt;br /&gt;
 &amp;lt;math&amp;gt; tg\beta  = {{y_e  - y_g } \over {x_e  - x_g }} &amp;lt;/math&amp;gt; &lt;br /&gt;
 endif&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; y_i  = {{y_e  + \left( {a_1  - x_e } \right)Tg\beta } \over {1 - b_1 Tg\beta }} \wedge x_i  = a_1  + b_1 y_i &amp;lt;/math&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; seg\_ac = \sqrt {\left( {x_a  - x_c } \right)^2  + \left( {y_a  - y_c } \right)^2 } &amp;lt;/math&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; seg\_dc = \sqrt {\left( {x_d  - x_c } \right)^2  + \left( {y_d  - y_c } \right)^2 } &amp;lt;/math&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; seg\_ic = \sqrt {\left( {x_i  - x_c } \right)^2  + \left( {y_i  - y_c } \right)^2 } &amp;lt;/math&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; seg\_hc = \sqrt {\left( {x_h  - x_c } \right)^2  + \left( {y_h  - y_c } \right)^2 } &amp;lt;/math&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; x_e^'  = {{Seg\_ic} \over {Seg\_dc}} &amp;lt;/math&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; y_e^'  = {{Seg\_hc} \over {Seg\_ac}} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Modules]]&lt;br /&gt;
[[Category:MOHID Water]]&lt;/div&gt;</summary>
		<author><name>192.168.20.177</name></author>	</entry>

	</feed>