<?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=Anatrancoso</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=Anatrancoso"/>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Special:Contributions/Anatrancoso"/>
		<updated>2026-04-05T01:16:12Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.28.0</generator>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Libfproj4&amp;diff=6836</id>
		<title>Libfproj4</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Libfproj4&amp;diff=6836"/>
				<updated>2013-12-10T02:49:09Z</updated>
		
		<summary type="html">&lt;p&gt;Anatrancoso: /* External Links */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;libfproj4 is a Fortran wrapper for [[PROJ4]] library. It was developed as of the [http://www.cbcb.umd.edu/software/glimmer/ GLIMMER] project and can be found in [http://forge.nesc.ac.uk/download.php/10/libfproj4-1.0.tar.gz libfproj4-1.0.tar.gz]. &lt;br /&gt;
This wrapper is necessary if we want to call PROJ4 conversion subroutines (in C) from a Fortran program. &lt;br /&gt;
It is used in MOHID by the ConvertToHDF5 tool to be able to deal with different projections from other models.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Compilation (Static Library)=&lt;br /&gt;
&lt;br /&gt;
libfproj4 it's a library build on top of [[PROJ4]]. It can se used dynamically or statically. Here, only the static compilation is explained, as the instructions for dynamic compilation are included in the library source code. The first steps in compiling are:&lt;br /&gt;
&lt;br /&gt;
*Download libfproj4 source code from [http://forge.nesc.ac.uk/download.php/10/libfproj4-1.0.tar.gz] or \\kepler\Software\PROJ4\libfproj4-1.0.tar.&lt;br /&gt;
*Download proj4 source code from [http://download.osgeo.org/proj/proj-4.7.0.tar.gz] or \\kepler\Software\PROJ4\proj-4.7.0.tar.&lt;br /&gt;
*Extract all contents to a place in your computer, from now referred to as ROOT_DIR.&lt;br /&gt;
&lt;br /&gt;
==Windows==&lt;br /&gt;
&lt;br /&gt;
===Compaq Visual Studio===&lt;br /&gt;
&lt;br /&gt;
(Already compiled in \\kepler\Software\PROJ4\libfproj4.lib)&lt;br /&gt;
&lt;br /&gt;
#New project W32 static lib&lt;br /&gt;
#Add fort-proj.c (from libfproj4-1.0.tar.gz) and all *.c files (from proj4 source), except all that have main function : css2css, geod, nad2bin, nad2nad, proj.c.&lt;br /&gt;
#Project Settings / C/C++ / General / Preprocessor definitions : VISUAL_CPLUSPLUS ou IFORT&lt;br /&gt;
#Project Settings / C/C++ / Preprocessor / include : whatever\proj-4.6.0\src (the folder that has projects.h, because of directives #include &amp;lt;projects.h&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
===Visual Studio 2008 with Intel Fortran===&lt;br /&gt;
&lt;br /&gt;
(Already compiled in [http://mohid.codeplex.com] ExternalLibs/Proj4)&lt;br /&gt;
&lt;br /&gt;
#Open Visual Studio and select File/New/Project/Visual C++/W32/Win32 Console Application. Name it libfproj4, and select location as $ROOT_DIR\libfproj4-1.0. Click ok.&lt;br /&gt;
#In the wizard, click Next and then choose &amp;quot;Console application&amp;quot; and &amp;quot;Empty project&amp;quot; in the following window. Then click Finish.&lt;br /&gt;
#Go to Project / Properties / Configuration Properties / Configuration Type and select &amp;quot;Static Library (.lib)&amp;quot;. Click ok. (we don't choose this type in the project creation because if so VS2008 automatic header files that we don't want).&lt;br /&gt;
#Go to Project / Add Existing Item. Add $ROOT_DIR\libfproj4-1.0\fort-proj.c.&lt;br /&gt;
#Go to Project / Add Existing Item. Add all *.c files in $ROOT_DIR\proj-4.7.0\src except the ones that have the main function: cs2cs.c, geod.c, nad2bin.c, nad2nad.c, proj.c.&lt;br /&gt;
#Rename proj_config.h.in to proj_config.h in ROOT_DIR\proj-4.7.0\src&lt;br /&gt;
#Go to Project / libfproj4 Properties:&lt;br /&gt;
#*C/C++ / General / Additional Include Directories: ..\..\..\proj-4.7.0\src (where the *.h files are)&lt;br /&gt;
#*C/C++ / Preprocessor / Preprocessor Definitions: IFORT&lt;br /&gt;
#*C/C++ / Code Generation / Runtime Library : Multi-threaded Debug (/MTd) (para versao Debug)&lt;br /&gt;
#*C/C++ / Code Generation / Runtime Library : Multi-threaded (/MT) (para versao Release)&lt;br /&gt;
#Build Solution&lt;br /&gt;
&lt;br /&gt;
==Linux==&lt;br /&gt;
&lt;br /&gt;
Prepare files and folders:&lt;br /&gt;
 cd $ROOT_DIR&lt;br /&gt;
 tar -zxvf proj-4.7.0.tar.gz&lt;br /&gt;
 tar -zxvf libfproj4-1.0.tar.gz&lt;br /&gt;
 mkdir src&lt;br /&gt;
 cp libfproj4-1.0/fort-proj.c src/&lt;br /&gt;
 cp libfproj4-1.0/cfortran.h src/&lt;br /&gt;
 cp -r proj-4.7.0/src/*.c src/&lt;br /&gt;
 cp -r proj-4.7.0/src/*.h src/&lt;br /&gt;
 cp proj-4.7.0/src/proj_config.h.in src/proj_config.h&lt;br /&gt;
&lt;br /&gt;
Compile:&lt;br /&gt;
 &lt;br /&gt;
 cd $ROOT_DIR/src&lt;br /&gt;
 rm -rf cs2cs.c geod.c nad2nad.c nad2bin.c proj.c  # with main functions&lt;br /&gt;
 icc -DIFORT -c *.c&lt;br /&gt;
 ar rc libfproj4.a *.o&lt;br /&gt;
&lt;br /&gt;
Install:&lt;br /&gt;
&lt;br /&gt;
 cd $ROOT_DIR&lt;br /&gt;
 mkdir lib&lt;br /&gt;
 mkdir include&lt;br /&gt;
 cp src/libfproj4.a lib/&lt;br /&gt;
 cp libfproj4-1.0/proj4.inc include&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
==Windows==&lt;br /&gt;
&lt;br /&gt;
#Create $ROOT_DIR\teste&lt;br /&gt;
#Copy test-proj.f90, proj4.f90 and proj4.inc from $ROOT_DIR\libfproj4-1.0 to $ROOT_DIR\teste.&lt;br /&gt;
#Copy libfproj4.lib from $ROOT_DIR\libfproj4-1.0\libfproj4\Debug to $ROOT_DIR\teste.&lt;br /&gt;
#Open Visual Studio and select File/New/Project/Intel(R) Visual Fortran / Console Application / Empty Project. Name it teste and select location as $ROOT_DIR\teste. Click ok.&lt;br /&gt;
#Project / Add Existing Item: Add test-proj.f90 and proj4.f90&lt;br /&gt;
#Project / Properties:&lt;br /&gt;
#*Linker / General / Additional Library Directories: ..\..\..\teste (or where libfproj4.lib file is).&lt;br /&gt;
#*Linker / Input / Additional Dependencies: libfproj4.lib&lt;br /&gt;
&lt;br /&gt;
==Linux==&lt;br /&gt;
    &lt;br /&gt;
 cd $ROOT_DIR/&lt;br /&gt;
 mkdir teste&lt;br /&gt;
 cd teste&lt;br /&gt;
 cp ../libfproj4-1.0/test-proj.f90 .&lt;br /&gt;
 cp ../libfproj4-1.0/proj4.f90 .&lt;br /&gt;
 cp ../libfproj4-1.0/proj4.inc .&lt;br /&gt;
 cp ../src/libfproj4.a .&lt;br /&gt;
 ifort -c proj4.f90      #-I../libfproj4-1.0       # needs proj4.inc&lt;br /&gt;
 ifort -c test-proj.f90&lt;br /&gt;
 ifort proj4.o test-proj.o libfproj4.a -o test-proj.exe&lt;br /&gt;
 ./test-proj.exe&lt;br /&gt;
&lt;br /&gt;
=InternalLinks=&lt;br /&gt;
&lt;br /&gt;
*[[PROJ4]]&lt;br /&gt;
*[[ConvertToHDF5]]&lt;br /&gt;
&lt;br /&gt;
=External Links=&lt;br /&gt;
*[http://forge.nesc.ac.uk/download.php/10/libfproj4-1.0.tar.gz libfproj4-1.0.tar.gz] (deprecated)&lt;br /&gt;
*[https://github.com/mhagdorn/proj4-fortran proj4-fortran] (new link)&lt;br /&gt;
[[Category:Tools]]&lt;/div&gt;</summary>
		<author><name>Anatrancoso</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Libfproj4&amp;diff=6835</id>
		<title>Libfproj4</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Libfproj4&amp;diff=6835"/>
				<updated>2013-12-10T02:48:45Z</updated>
		
		<summary type="html">&lt;p&gt;Anatrancoso: /* External Links */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;libfproj4 is a Fortran wrapper for [[PROJ4]] library. It was developed as of the [http://www.cbcb.umd.edu/software/glimmer/ GLIMMER] project and can be found in [http://forge.nesc.ac.uk/download.php/10/libfproj4-1.0.tar.gz libfproj4-1.0.tar.gz]. &lt;br /&gt;
This wrapper is necessary if we want to call PROJ4 conversion subroutines (in C) from a Fortran program. &lt;br /&gt;
It is used in MOHID by the ConvertToHDF5 tool to be able to deal with different projections from other models.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Compilation (Static Library)=&lt;br /&gt;
&lt;br /&gt;
libfproj4 it's a library build on top of [[PROJ4]]. It can se used dynamically or statically. Here, only the static compilation is explained, as the instructions for dynamic compilation are included in the library source code. The first steps in compiling are:&lt;br /&gt;
&lt;br /&gt;
*Download libfproj4 source code from [http://forge.nesc.ac.uk/download.php/10/libfproj4-1.0.tar.gz] or \\kepler\Software\PROJ4\libfproj4-1.0.tar.&lt;br /&gt;
*Download proj4 source code from [http://download.osgeo.org/proj/proj-4.7.0.tar.gz] or \\kepler\Software\PROJ4\proj-4.7.0.tar.&lt;br /&gt;
*Extract all contents to a place in your computer, from now referred to as ROOT_DIR.&lt;br /&gt;
&lt;br /&gt;
==Windows==&lt;br /&gt;
&lt;br /&gt;
===Compaq Visual Studio===&lt;br /&gt;
&lt;br /&gt;
(Already compiled in \\kepler\Software\PROJ4\libfproj4.lib)&lt;br /&gt;
&lt;br /&gt;
#New project W32 static lib&lt;br /&gt;
#Add fort-proj.c (from libfproj4-1.0.tar.gz) and all *.c files (from proj4 source), except all that have main function : css2css, geod, nad2bin, nad2nad, proj.c.&lt;br /&gt;
#Project Settings / C/C++ / General / Preprocessor definitions : VISUAL_CPLUSPLUS ou IFORT&lt;br /&gt;
#Project Settings / C/C++ / Preprocessor / include : whatever\proj-4.6.0\src (the folder that has projects.h, because of directives #include &amp;lt;projects.h&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
===Visual Studio 2008 with Intel Fortran===&lt;br /&gt;
&lt;br /&gt;
(Already compiled in [http://mohid.codeplex.com] ExternalLibs/Proj4)&lt;br /&gt;
&lt;br /&gt;
#Open Visual Studio and select File/New/Project/Visual C++/W32/Win32 Console Application. Name it libfproj4, and select location as $ROOT_DIR\libfproj4-1.0. Click ok.&lt;br /&gt;
#In the wizard, click Next and then choose &amp;quot;Console application&amp;quot; and &amp;quot;Empty project&amp;quot; in the following window. Then click Finish.&lt;br /&gt;
#Go to Project / Properties / Configuration Properties / Configuration Type and select &amp;quot;Static Library (.lib)&amp;quot;. Click ok. (we don't choose this type in the project creation because if so VS2008 automatic header files that we don't want).&lt;br /&gt;
#Go to Project / Add Existing Item. Add $ROOT_DIR\libfproj4-1.0\fort-proj.c.&lt;br /&gt;
#Go to Project / Add Existing Item. Add all *.c files in $ROOT_DIR\proj-4.7.0\src except the ones that have the main function: cs2cs.c, geod.c, nad2bin.c, nad2nad.c, proj.c.&lt;br /&gt;
#Rename proj_config.h.in to proj_config.h in ROOT_DIR\proj-4.7.0\src&lt;br /&gt;
#Go to Project / libfproj4 Properties:&lt;br /&gt;
#*C/C++ / General / Additional Include Directories: ..\..\..\proj-4.7.0\src (where the *.h files are)&lt;br /&gt;
#*C/C++ / Preprocessor / Preprocessor Definitions: IFORT&lt;br /&gt;
#*C/C++ / Code Generation / Runtime Library : Multi-threaded Debug (/MTd) (para versao Debug)&lt;br /&gt;
#*C/C++ / Code Generation / Runtime Library : Multi-threaded (/MT) (para versao Release)&lt;br /&gt;
#Build Solution&lt;br /&gt;
&lt;br /&gt;
==Linux==&lt;br /&gt;
&lt;br /&gt;
Prepare files and folders:&lt;br /&gt;
 cd $ROOT_DIR&lt;br /&gt;
 tar -zxvf proj-4.7.0.tar.gz&lt;br /&gt;
 tar -zxvf libfproj4-1.0.tar.gz&lt;br /&gt;
 mkdir src&lt;br /&gt;
 cp libfproj4-1.0/fort-proj.c src/&lt;br /&gt;
 cp libfproj4-1.0/cfortran.h src/&lt;br /&gt;
 cp -r proj-4.7.0/src/*.c src/&lt;br /&gt;
 cp -r proj-4.7.0/src/*.h src/&lt;br /&gt;
 cp proj-4.7.0/src/proj_config.h.in src/proj_config.h&lt;br /&gt;
&lt;br /&gt;
Compile:&lt;br /&gt;
 &lt;br /&gt;
 cd $ROOT_DIR/src&lt;br /&gt;
 rm -rf cs2cs.c geod.c nad2nad.c nad2bin.c proj.c  # with main functions&lt;br /&gt;
 icc -DIFORT -c *.c&lt;br /&gt;
 ar rc libfproj4.a *.o&lt;br /&gt;
&lt;br /&gt;
Install:&lt;br /&gt;
&lt;br /&gt;
 cd $ROOT_DIR&lt;br /&gt;
 mkdir lib&lt;br /&gt;
 mkdir include&lt;br /&gt;
 cp src/libfproj4.a lib/&lt;br /&gt;
 cp libfproj4-1.0/proj4.inc include&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
==Windows==&lt;br /&gt;
&lt;br /&gt;
#Create $ROOT_DIR\teste&lt;br /&gt;
#Copy test-proj.f90, proj4.f90 and proj4.inc from $ROOT_DIR\libfproj4-1.0 to $ROOT_DIR\teste.&lt;br /&gt;
#Copy libfproj4.lib from $ROOT_DIR\libfproj4-1.0\libfproj4\Debug to $ROOT_DIR\teste.&lt;br /&gt;
#Open Visual Studio and select File/New/Project/Intel(R) Visual Fortran / Console Application / Empty Project. Name it teste and select location as $ROOT_DIR\teste. Click ok.&lt;br /&gt;
#Project / Add Existing Item: Add test-proj.f90 and proj4.f90&lt;br /&gt;
#Project / Properties:&lt;br /&gt;
#*Linker / General / Additional Library Directories: ..\..\..\teste (or where libfproj4.lib file is).&lt;br /&gt;
#*Linker / Input / Additional Dependencies: libfproj4.lib&lt;br /&gt;
&lt;br /&gt;
==Linux==&lt;br /&gt;
    &lt;br /&gt;
 cd $ROOT_DIR/&lt;br /&gt;
 mkdir teste&lt;br /&gt;
 cd teste&lt;br /&gt;
 cp ../libfproj4-1.0/test-proj.f90 .&lt;br /&gt;
 cp ../libfproj4-1.0/proj4.f90 .&lt;br /&gt;
 cp ../libfproj4-1.0/proj4.inc .&lt;br /&gt;
 cp ../src/libfproj4.a .&lt;br /&gt;
 ifort -c proj4.f90      #-I../libfproj4-1.0       # needs proj4.inc&lt;br /&gt;
 ifort -c test-proj.f90&lt;br /&gt;
 ifort proj4.o test-proj.o libfproj4.a -o test-proj.exe&lt;br /&gt;
 ./test-proj.exe&lt;br /&gt;
&lt;br /&gt;
=InternalLinks=&lt;br /&gt;
&lt;br /&gt;
*[[PROJ4]]&lt;br /&gt;
*[[ConvertToHDF5]]&lt;br /&gt;
&lt;br /&gt;
=External Links=&lt;br /&gt;
*[http://forge.nesc.ac.uk/download.php/10/libfproj4-1.0.tar.gz libfproj4-1.0.tar.gz] (deprecated)&lt;br /&gt;
*[https://github.com/mhagdorn/proj4-fortran] (new link)&lt;br /&gt;
[[Category:Tools]]&lt;/div&gt;</summary>
		<author><name>Anatrancoso</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Visual_Studio_Configuration&amp;diff=6400</id>
		<title>Visual Studio Configuration</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Visual_Studio_Configuration&amp;diff=6400"/>
				<updated>2012-10-22T10:50:24Z</updated>
		
		<summary type="html">&lt;p&gt;Anatrancoso: Created page with &amp;quot;In Visual Studio, a configuration contains all the compiler and linker settings pre-saved, in order to build a solution (compile + link). It also may contain pre and post-build s...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In Visual Studio, a configuration contains all the compiler and linker settings pre-saved, in order to build a solution (compile + link). It also may contain pre and post-build steps, such as copying the target executable.&lt;br /&gt;
&lt;br /&gt;
==Mohid configuration policy==&lt;br /&gt;
&lt;br /&gt;
Mohid configurations used to be only &amp;quot;Release&amp;quot; and &amp;quot;Debug&amp;quot;. But soon, they multiplied with different options, such as double, openmp, mpi, openmi.&lt;br /&gt;
&lt;br /&gt;
This means that each configuration MOHIDWater or MOHIDLand (or any other MOHID tool) executable will behave differently. In order to allow the user of pre-built binaries, each executable will have a suffix that identifies which platform/configuration was it that built it.&lt;br /&gt;
&lt;br /&gt;
Hence, here's the current list of configuration/platforms suffixes:&lt;br /&gt;
&lt;br /&gt;
* debug_single&lt;br /&gt;
* debug_double&lt;br /&gt;
* debug_single_openmp&lt;br /&gt;
* debug_double_openmp&lt;br /&gt;
* debug_single_openmi&lt;br /&gt;
* debug_double_phreeqc&lt;br /&gt;
* release_single&lt;br /&gt;
* release_double&lt;br /&gt;
* release_single_openmp&lt;br /&gt;
* release_double_openmp&lt;br /&gt;
* release_double_openmp_phreeqc&lt;br /&gt;
* x64_debug_single&lt;br /&gt;
* x64_debug_double&lt;br /&gt;
* x64_debug_single_openmp&lt;br /&gt;
* x64_debug_double_openmp&lt;br /&gt;
* x64_debug_single_openmi&lt;br /&gt;
* x64_debug_double_phreeqc&lt;br /&gt;
* x64_release_single&lt;br /&gt;
* x64_release_double&lt;br /&gt;
* x64_release_single_openmp&lt;br /&gt;
* x64_release_double_openmp&lt;br /&gt;
* x64_release_double_openmp_phreeqc&lt;br /&gt;
&lt;br /&gt;
[[Category:programming]]&lt;/div&gt;</summary>
		<author><name>Anatrancoso</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Compiling_with_IFC_11&amp;diff=6271</id>
		<title>Compiling with IFC 11</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Compiling_with_IFC_11&amp;diff=6271"/>
				<updated>2012-05-23T17:03:09Z</updated>
		
		<summary type="html">&lt;p&gt;Anatrancoso: /* Creating a new project */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Please follow these instructions step by step and until the end:&lt;br /&gt;
&lt;br /&gt;
== Creating a new project ==&lt;br /&gt;
#Make sure you have installed in your computer Microsoft Visual Studio 2008 and Intel Fortran Compiler 11.1. If you don’t have both installed, please install them.&lt;br /&gt;
#Make sure you have downloaded the last version of the code and solutions from codeplex ([[CodePlex]] or http://mohid.codeplex.com) for example via tortoise software.&lt;br /&gt;
#Your folder structure will look like this after the download: [[Image:CodePlexFolderStructure.png|425px|thumb|center|CodePlex local folder structure]]&lt;br /&gt;
#Open Microsoft Visual Studio 2008. &lt;br /&gt;
#Open the solution from the CODEPLEX structure above under folder &amp;gt; Solutions &amp;gt; VisualStudio2008_IntelFortran11&lt;br /&gt;
#All the setting are already done.&lt;br /&gt;
&lt;br /&gt;
== Build Solution ==&lt;br /&gt;
#Select &amp;quot;Build...Build Solution&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Build Solution in x64 ==&lt;br /&gt;
&lt;br /&gt;
=== Pre-requisite ===&lt;br /&gt;
If it is the firt time you build for the x64 architecture, then you must first install the x64 platform on Visual Studio 2008.&lt;br /&gt;
# Close any opened instance of Visual Studio 2008.&lt;br /&gt;
# Load the dvd iso file of Visual Studio 2008 (found in \\kepler\Software\VS2008\VisualStudio_Pro_2008_Eng.iso) with the [http://www.daemon-tools.cc/eng/home Daemon Tools] utility. This will install a &amp;quot;virtual&amp;quot; dvd drive with Visual Studio 2008 loaded in your system files.&lt;br /&gt;
# Go to ''Control Panel --&amp;gt; Uninstall or change a program --&amp;gt; Microsoft Visual Studio 2008 Professional Edition --&amp;gt; Double click(win 7)|Add/Repair(win xp)''.&lt;br /&gt;
# Install the ''x64 Compiler tools'' from the Visual Studio 2008 dvd.[[Image:VisualStudiox64.png|600px|thumb|center|Visual Studion 2008 Installation Options]]&lt;br /&gt;
# Open a new instance of Visual Studio 2008. Then select ''Tools --&amp;gt; Options --&amp;gt; Intel Visual Fortran --&amp;gt; Compilers --&amp;gt; Platforms''. If the installation went ok, you should see a ''x64'' platform. Select it and then click ''ok''. You are now able to select and compile any configuration of Intel Fortran projects with the x64 platform. [[Image:Verifying-x64-architecture-is-available-IFC-VS2008.PNG|600px|thumb|center|Verifying the x64 architecture in Visual Studio project is available]].&lt;br /&gt;
&lt;br /&gt;
=== Building Solution in x64 ===&lt;br /&gt;
# Select the [[Visual Studion Configuration|configuration]] of choice (Debug, Release, Release Double, etc...).&lt;br /&gt;
# Select the [[Visual Studio Platform|platform]] x64. [[Image:X64-platform-in-vs2008.PNG|600px|thumb|center|Selecting the x64 archicture in a Visual Studio project]]&lt;br /&gt;
# If the configuration isn't well configured please configure it as described below. Select ''Build''... ''Build Solution''.&lt;br /&gt;
&lt;br /&gt;
==== Manually configuring a project configuration to build with x64 Hdf5 1.8.6 libraries. ====&lt;br /&gt;
These instructions are prepared for the MohidWater in the ''Release'' configuration for the ''x64'' platform, but the same steps can be reproduced for MohidLand and MohidRiver. Insert the text in bold in the yellow areas in your project as signaled in the images below.&lt;br /&gt;
* MohidBase1: '''..\..\..\..\ExternalLibs\HDF5_1.8.6_x64\include\fortran; ..\..\..\..\ExternalLibs\Proj4\Include'''&lt;br /&gt;
[[Image:Properties-Fortran-AdditionalIncludeDirectories.PNG|600px|thumb|center|''..\..\..\..\ExternalLibs\HDF5_1.8.6_x64\include\fortran; ..\..\..\..\ExternalLibs\Proj4\Include'']] &lt;br /&gt;
* MohidBase2: '''..\..\..\..\Solutions\VisualStudio2008_IntelFortran11\MOHIDNumerics\MOHIDBase1\x64\Release'''&lt;br /&gt;
[[Image:Properties-Fortran-AdditionalIncludeDirectories.PNG|600px|thumb|center|''..\..\..\..\Solutions\VisualStudio2008_IntelFortran11\MOHIDNumerics\MOHIDBase1\x64\Release'']].&lt;br /&gt;
* MohidWater: '''..\..\..\..\Solutions\VisualStudio2008_IntelFortran11\MOHIDNumerics\MOHIDBase1\x64\Release;'''&lt;br /&gt;
'''..\..\..\..\Solutions\VisualStudio2008_IntelFortran11\MOHIDNumerics\MOHIDBase2\x64\Release;'''&lt;br /&gt;
'''..\..\..\..\ExternalLibs\HDF5_1.8.6_x64\lib'''&lt;br /&gt;
[[Image:Properties-Fortran-AdditionalIncludeDirectories.PNG|600px|thumb|center|''..\..\..\..\Solutions\VisualStudio2008_IntelFortran11\MOHIDNumerics\MOHIDBase1\x64\Release;&lt;br /&gt;
..\..\..\..\Solutions\VisualStudio2008_IntelFortran11\MOHIDNumerics\MOHIDBase2\x64\Release;&lt;br /&gt;
..\..\..\..\ExternalLibs\HDF5_1.8.6_x64\lib'']]&lt;br /&gt;
'''..\..\..\..\Solutions\VisualStudio2008_IntelFortran11\MOHIDNumerics\MOHIDBase1\x64\Release; ..\..\..\..\Solutions\VisualStudio2008_IntelFortran11\MOHIDNumerics\MOHIDBase2\x64\Release'''&lt;br /&gt;
[[Image:Properties-Linker-General-AdditionalLibraryDirectories.PNG|600px|thumb|center|''..\..\..\..\Solutions\VisualStudio2008_IntelFortran11\MOHIDNumerics\MOHIDBase1\x64\Release; ..\..\..\..\Solutions\VisualStudio2008_IntelFortran11\MOHIDNumerics\MOHIDBase2\x64\Release'']]&lt;br /&gt;
'''MOHIDBase1.lib MOHIDBase2.lib hdf5.lib  hdf5_fortran.lib hdf5_f90cstub.lib zlib.lib libszip.lib''' in ''Additional Dependencies'' and '''msvcrt.lib''' in ''Ignore Specific Libraries''&lt;br /&gt;
[[Image:Properties-Linker-Input-AdditionalDependencies.PNG|600px|thumb|center|''MOHIDBase1.lib MOHIDBase2.lib hdf5.lib  hdf5_fortran.lib hdf5_f90cstub.lib zlib.lib libszip.lib'' in ''Additional Dependencies'' and ''msvcrt.lib'' in ''Ignore Specific Libraries'']]&lt;br /&gt;
&lt;br /&gt;
=== Present limitations for building some Mohid tool in x64 architecture in Windows ===&lt;br /&gt;
* Currently, only the Hdf5 1.8.6 libraries in 64bits are available in the [[codeplex]]. The [[Proj4]] and the [[netcdf]] libraries in 64bits are currently unavailable on the [[codeplex]]. This affects namely the [[ConvertToHdf5]], [[Convert2netcdf]] and [[ConvertToXYZ]] tools.&lt;br /&gt;
&lt;br /&gt;
== Optional compilation settings ==&lt;br /&gt;
#To perform optional compilation, just add the compilation pre-processor keywords in &amp;quot;Properties...Fortran...PreProcessor&amp;quot;, in the &amp;quot;Preprocessor Definitions&amp;quot; text box.&lt;br /&gt;
&lt;br /&gt;
=== Exclude modules ===&lt;br /&gt;
Some modules can be completely excluded from compilation. If your simulations do not use these modules you can use this pre-processor keywords.&lt;br /&gt;
&lt;br /&gt;
 '''_LAGRANGIAN_'''	   excludes Modules Lagrangian + Jet + Oil&lt;br /&gt;
 '''_AIR_'''	           excludes Modules InterfaceWaterAir + Atmosphere&lt;br /&gt;
 '''_WAVES_'''	           excludes Module Waves&lt;br /&gt;
 '''_SEDIMENT_'''	   excludes Modules SedimentProperties + Consolidation&lt;br /&gt;
&lt;br /&gt;
=== Other options ===&lt;br /&gt;
Other keywords can also be used.&lt;br /&gt;
&lt;br /&gt;
 '''_USE_MPI'''           includes MPI code&lt;br /&gt;
 '''_SHORT_LINE_LENGTH''' sets line_length = 64  (default line_length is 256)&lt;br /&gt;
 '''_LONG_LINE_LENGTH'''  sets line_length = 1024(default line_length is 256)&lt;br /&gt;
 '''_GUI_'''              includes GUI code&lt;br /&gt;
&lt;br /&gt;
A more thorough explanation can be found on [[compilation preprocessor settings]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Programming]]&lt;br /&gt;
[[Category:Compiling]]&lt;/div&gt;</summary>
		<author><name>Anatrancoso</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=H5utils&amp;diff=6206</id>
		<title>H5utils</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=H5utils&amp;diff=6206"/>
				<updated>2012-05-08T14:03:16Z</updated>
		
		<summary type="html">&lt;p&gt;Anatrancoso: Created page with &amp;quot;[http://ab-initio.mit.edu/wiki/index.php/H5utils H5utils] are open-source command-line tools to manipulate HDF5 files. They can be downloadaded from [http://ab-initio.mit.edu/h5u...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[http://ab-initio.mit.edu/wiki/index.php/H5utils H5utils] are open-source command-line tools to manipulate HDF5 files. They can be downloadaded from [http://ab-initio.mit.edu/h5utils/h5utils-1.12.1.tar.gz h5utils-1.12.1.tar.gz].&lt;br /&gt;
&lt;br /&gt;
== h5totxt ==&lt;br /&gt;
&lt;br /&gt;
'''h5totxt''' is an alternative to [[H5dump]] , with the advantage of being quicker and produce single value or csv output. Examples are:&lt;br /&gt;
&lt;br /&gt;
* Export matrix to csv file:&lt;br /&gt;
&lt;br /&gt;
   h5totxt -. 5 -d &amp;quot;/Grid/Bathymetry&amp;quot; 2006/MM5_Tejo200m_2006-01-01_2006-04-01.hdf5 &amp;gt; bat.csv&lt;br /&gt;
&lt;br /&gt;
* Extract single value:&lt;br /&gt;
&lt;br /&gt;
   h5totxt -. 6 -x i -y j -d &amp;quot;/Grid/Bathymetry&amp;quot; 2006/MM5_Tejo200m_2006-01-01_2006-04-01.hdf5&lt;br /&gt;
&lt;br /&gt;
where (i,j) start in 0 and correspond to MOHID (LOCATION_J - 1, LOCATION_I - 1).&lt;br /&gt;
&lt;br /&gt;
This is the alternative to:&lt;br /&gt;
&lt;br /&gt;
   h5dump -d &amp;quot;/Grid/Bathymetry&amp;quot; -s &amp;quot;i,j&amp;quot; -c &amp;quot;1,1&amp;quot; MM5_Tejo200m_2006-01-01_2006-04-01.hdf5 | grep '(i'&lt;br /&gt;
&lt;br /&gt;
== External References ==&lt;br /&gt;
&lt;br /&gt;
*[http://ab-initio.mit.edu/wiki/index.php/H5utils H5utils Homepage]&lt;br /&gt;
*[http://www.hdfgroup.org/products/hdf5_tools/ HDF5 Tools]&lt;br /&gt;
&lt;br /&gt;
[[Category:Technology]]&lt;br /&gt;
[[Category:Tools]]&lt;br /&gt;
[[Category:Hdf5]]&lt;/div&gt;</summary>
		<author><name>Anatrancoso</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Mohid_Support_Tools&amp;diff=6205</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=6205"/>
				<updated>2012-05-08T13:46:17Z</updated>
		
		<summary type="html">&lt;p&gt;Anatrancoso: /* Not developed by the MOHID team */&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;
*[[WOAnetcdfTOhdf5]]&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;
*[[h5utils]]&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>Anatrancoso</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Tide_Preview&amp;diff=3906</id>
		<title>Tide Preview</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Tide_Preview&amp;diff=3906"/>
				<updated>2010-12-29T19:15:08Z</updated>
		
		<summary type="html">&lt;p&gt;Anatrancoso: &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. The harmonic components are given by the [[Fes95]] or the [[Fes2004]] solution, and tidal gauges can be extracted for points near the boundary. &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>Anatrancoso</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=ConvertToHDF5&amp;diff=3293</id>
		<title>ConvertToHDF5</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=ConvertToHDF5&amp;diff=3293"/>
				<updated>2010-09-10T14:48:48Z</updated>
		
		<summary type="html">&lt;p&gt;Anatrancoso: /* CONVERT WRF FORMAT */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The '''ConvertToHDF5''' is an application which allows the making of several operations, called '''actions''', involving HDF5 files: conversion of data in other formats (e.g. NETCDF) to HDF5, grid interpolation, concatenation of several files.&lt;br /&gt;
&lt;br /&gt;
Running options for this application are specified by the user in a input file named [[ConvertToHDF5#Input file (ConvertToHDF5Action.dat)|'''ConvertToHDF5Action.dat''']]. Several actions can be specified in the same input file, being processed sequentially by the ConvertToHDF5 application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Introduction=&lt;br /&gt;
The operations involving HDF5 files performed by ConvertToHDF5, specified individually by an action, can be organized in:&lt;br /&gt;
&lt;br /&gt;
* [[#file management|file management]]&lt;br /&gt;
* [[#grid interpolation|grid interpolation]] and &lt;br /&gt;
* [[#format conversion|format conversion]]. &lt;br /&gt;
&lt;br /&gt;
These types and the respective actions are detailed in the next sections. &lt;br /&gt;
&lt;br /&gt;
The input file specification for each action can be found bellow in the [[#Input file (ConvertToHDF5Action.dat)|Input file (ConvertToHDF5Action.dat)]] section.&lt;br /&gt;
&lt;br /&gt;
==File management==&lt;br /&gt;
&lt;br /&gt;
===Glue files===&lt;br /&gt;
This action consists in joining or glue in a single HDF5 file two or more HDF5 files having the same HDF5 data groups and referring to time periods which come in sequence. Both sets of 2D and 3D HDF5 files can be glued.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Glue MOHID Water results files from several runs produced in continuous running of the model, for storage space economy reasons. Can be used to join data from other origins (e.g. results of meteorological models) as long as the HDF5 format is the one supported by MOHID Water.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 files to be glued. &amp;quot;Grid&amp;quot; and &amp;quot;Results&amp;quot; data groups should be equal in all these files.&lt;br /&gt;
&lt;br /&gt;
'''Output:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with glued &amp;quot;Results&amp;quot; data. &amp;quot;Residual&amp;quot; and &amp;quot;Statistics&amp;quot; HDF5 data groups are not copied to the output file since they are time period specific (different values potentially occour in each file). General statistics can be calculated for the glued HDF5 file data using tool [[HDF5Statistics]].&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#GLUES HDF5 FILES|GLUES HDF5 FILES]].&lt;br /&gt;
&lt;br /&gt;
==Grid interpolation==&lt;br /&gt;
&lt;br /&gt;
===Interpolate files===&lt;br /&gt;
This action performs the conversion of one HDF5 file data existing in one 2D or 3D spatial grid to another 2D or 3D spatial grid, creating a new HDF5 file. The interpolation is performed only for the data located a time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
The HDF5 file containing data to be interpolated is called the '''father file'''.&lt;br /&gt;
&lt;br /&gt;
In case of 3D interpolation the application conducts first the horizontal grid interpolation&lt;br /&gt;
(keeping father geometry) and only after it conducts the vertical interpolation (from father geometry to new geometry).&lt;br /&gt;
&lt;br /&gt;
Several types of 2D interpolation are available for use: bilinear, spline 2D and triangulation.&lt;br /&gt;
For vertical interpolation (used in 3D interpolation) can be supplied several polinomial degrees for interpolation.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain an HDF5 file with data for forcing or providing initial conditions for a MOHID Water model, e.g. a meteorological forcing file.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
For 2D/3D interpolation:&lt;br /&gt;
&lt;br /&gt;
- father HDF5 file;&lt;br /&gt;
&lt;br /&gt;
- father horizontal data grid, in a grid data file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
- new horizontal data grid, in a grid data file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
For 3D interpolation also needed:&lt;br /&gt;
&lt;br /&gt;
- father vertical geometry, in a geometry file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
- new vertical geometry, in a geometry file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
- auxiliary horizontal data grid, in a grid data file in the format supported by MOHID; this file is used for horizontal grid interpolation in 3D interpolation operations.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with interpolated data. In case of 3D interpolation also produced an auxiliary HDF5 file with the result of the horizontal grid interpolation, which can be inspected to check if this operation is well performed.&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#INTERPOLATE GRIDS|INTERPOLATE GRIDS]].&lt;br /&gt;
&lt;br /&gt;
===Patch files===&lt;br /&gt;
This action consists in performing an interpolation of HDF5 data between grids, as in action [[#Interpolate files|Interpolate files]], but considering more than one HDF5 file as containing data to be interpolated to the new grid and a priority scale. The interpolation is performed only for the data located in the time window specified by the user. The present version of this action operates only on 2D data.&lt;br /&gt;
&lt;br /&gt;
Each HDF5 file containing data to be interpolated is called a '''father file''' and has an user-attributed '''priority level''' to be respected in the interpolation process: for each new grid cell the ConvertToHDF5 application will look for data first on the Level 1 father file and only in the case this data is inexistent will it look for data in Level 2 file, proceeding in looking for higher level files if no data is found subsequentely.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
To obtain an HDF5 file with data from several HDF5 files each containing data with different spatial resolution and only for a specific part of the new grid. This is, for instance, the case when one is preparing a best resolution meteorological HDF5 file for forcing MOHID Water from several meteorological model domains, having different spatial resolution and span, since the best resolution data is not available for all new grid cells.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
The new horizontal data grid, in a grid data file in the format supported by MOHID, and for each father file:&lt;br /&gt;
&lt;br /&gt;
- level of priority: 1 = maximum priority, priority decreases with increasing level value;&lt;br /&gt;
&lt;br /&gt;
- data grid, in the form of a grid data file in the format supported by MOHID.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with patched data.&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#PATCH HDF5 FILES|PATCH HDF5 FILES]].&lt;br /&gt;
&lt;br /&gt;
==Format conversion==&lt;br /&gt;
&lt;br /&gt;
===Meteorological model data===&lt;br /&gt;
Mohid does not simulate explicitly the atmosphere, but needs information about atmospheric properties in time and space. This requires that atmospheric properties are supplied to MOHID Water in supported formats. These formats can be derived from meteorological data in HDF5 format. Because the results of meteorological models are accessed in different formats conversion is required. &lt;br /&gt;
&lt;br /&gt;
The formats currently convertible to HDF5 in ConvertToHDF5 include the MM5 and the ERA40. These are succintly detailed in the next sections.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====''ERA40''====&lt;br /&gt;
This format refers to the European Centre for Medium-Range Weather Forecasts (ECMWF) 40 years re-analysises results, acessed by site http://data.ecmwf.int/data/d/era40_daily/. This data is available for several meteorological variables with maximum 6 hour periodicity for days in the period from 1957-09-01 to 2002-08-31. &lt;br /&gt;
&lt;br /&gt;
ERA40 data files are supplied by ECMWF in a NetCDF format and with an user-costumized time window, periodicity (time step range from 6 hours to a day) and meteorological properties set. The ERA40 meteorological properties which are recognized by MOHID are presented bellow together with the correspondent MOHID name: &lt;br /&gt;
&lt;br /&gt;
 ---ERA40 NAME---         ---MOHID NAME---&lt;br /&gt;
   sshf                     sensible heat                &lt;br /&gt;
   slhf                     latent heat                  &lt;br /&gt;
   msl                      atmospheric pressure &lt;br /&gt;
   tcc                      cloud cover &lt;br /&gt;
   p10u                     wind velocity X&lt;br /&gt;
   p10v                     wind velocity Y&lt;br /&gt;
   p2t                      air temperature&lt;br /&gt;
   ewss                     wind stress X&lt;br /&gt;
   nsss                     wind stress Y&lt;br /&gt;
&lt;br /&gt;
The standard ConvertToHDF5 action is to convert to HDF5 the data referring to all MOHID Water recognized property available in the ERA40 file, producing an individual HDF5 file for each property. The name of each HDF5 file generated includes the ERA40 meteorological property identificator correspondent to the data contained.&lt;br /&gt;
&lt;br /&gt;
Alternatively, ConvertToHDF5 can copy to a single ASCII file the heading information concerning each meteorological variable considered in the original ERA40 file.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain an HDF5 file with data suitable for being used for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
ERA40 NetCDF file.&lt;br /&gt;
&lt;br /&gt;
'''Output:'''&lt;br /&gt;
&lt;br /&gt;
One HDF5 file for each meteorological property contained in the original NetCDF file.&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT ERA40 FORMAT|CONVERT ERA40 FORMAT]].&lt;br /&gt;
&lt;br /&gt;
====''Aladin''====&lt;br /&gt;
This format relates to Aladin meteorological model results. Some of the atmospheric property needed by MOHID Water is present in Aladin output files, enabling to run prediction simulations with MOHID Water when access to Aladin prevision files is available.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts Aladin results files from the original format to HDF5 format, allowing the easy use of these results in the MOHID framework. Conversion is only performed for the MM5 properties and the time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Produce HDF5 meteorological data usable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
Aladin netcdf results file to convert.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
An HDF5 file with Aladin results and a grid data file in MOHID format with the Aladin grid pseudo-information: a fake orography is created of 100 m depth.&lt;br /&gt;
This last file can be used to interpolate the Aladin data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]), for instance to produce an HDF5 file suitable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Compilation:'''&lt;br /&gt;
&lt;br /&gt;
Caution! The ConvertToHDF5 executable must be compiled with the [[Big-endian little-endian|Big-Endian]] option set (see compatibility in the project's settings).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT ALADIN FORMAT|CONVERT ALADIN FORMAT]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====''MM5''====&lt;br /&gt;
This format relates to the Fifth-Generation NCAR / Penn State Mesoscale Model (MM5) output files format. Almost every atmospheric property needed by MOHID Water is present in MM5 output files.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts MM5 results files from the original format to HDF5 format, allowing the easy use of these results in the MOHID framework. Conversion is only performed for the MM5 properties and the time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
Besides the conversion, the application can calculate some properties not contained in&lt;br /&gt;
the MM5 files using the available information: these are wind stress, relative humidity and mean sea level pressure.&lt;br /&gt;
&lt;br /&gt;
For conversion to be completed it is required the horizontal grid information of MM5 results which is available in special TERRAIN files.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Produce HDF5 meteorological data usable to force MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
MM5 results file to convert and MM5 TERRAIN file. The TERRAIN file supplies the MM5 results grid information. &lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
A HDF5 file with MM5 results and a grid data file in MOHID format with the MM5 grid information.&lt;br /&gt;
This last file can be used to interpolate the MM5 data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]), for instance to produce an HDF5 file suitable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Compilation:'''&lt;br /&gt;
&lt;br /&gt;
Caution! The ConvertToHDF5 executable must be compiled with the [[Big-endian little-endian|Big-Endian]] option set (see compatibility in the project's settings).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT MM5 FORMAT|CONVERT MM5 FORMAT]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====''WRF''====&lt;br /&gt;
This format relates to the Weather Research and Forecast model (WRF) output files format. Almost every atmospheric property needed by MOHID Water is present in WRF output files.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts WRF results files from the original format to HDF5 format, allowing the easy use of these results in the MOHID framework. Conversion is only performed for the WRF properties and the time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
Besides the conversion, the application can calculate some properties not contained in&lt;br /&gt;
the WRF files using the available information: these are wind stress, relative humidity and mean sea level pressure.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Produce HDF5 meteorological data usable to force MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
WRF direct output file.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
An HDF5 file with WRF results and a grid data file in MOHID format with the WRF grid information.&lt;br /&gt;
This last file can be used to interpolate the WRF data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]), for instance to produce an HDF5 file suitable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Compilation:'''&lt;br /&gt;
&lt;br /&gt;
Caution! [[PROJ4 | PROJ4]] library is needed! See [[#Compile_ModuleWRFFormat |  Compile_ModuleWRFFormat]]&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT WRF FORMAT|CONVERT WRF FORMAT]].&lt;br /&gt;
&lt;br /&gt;
===Ocean model data===&lt;br /&gt;
Ocean model data, available in diverse formats, can be used by MOHID Water to specify boundary (open ocean boundary and surface), initial conditions or for validation. These uses require that the model data is in HDF5 format and conversion is therefore needed.&lt;br /&gt;
&lt;br /&gt;
Currently the large scale ocean models formats convertible into HDF5 by ConvertToHDF5 includes MERCATOR.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====''MERCATOR''====&lt;br /&gt;
MERCATOR data files are supplied in a NetCDF format and with an user-costumized spatial window and periodicity. Water level and water properties (temperature and salinity) data is available in type T files, velocity component u data is available in type U files and velocity component v data is available in type V files. The type of data of a specific MERCATOR file is generally indicated in the file name.&lt;br /&gt;
&lt;br /&gt;
The standard ConvertToHDF5 action is to convert to HDF5 the data referring to temperature, salinity, water level, component u of velocity and component v of velocity.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain HDF5 MERCATOR data usable for forcing or validation of MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
NetCDF MERCATOR results data files and NetCDF MERCATOR grid data files. It should be provided one grid data file of each type: T, U and V. These are generally provided by the MERCATOR services together with the results files.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
One HDF5 file containing all properties contained in the recognized set of properties (temperature, salinity, water level, velocity u and velocity v) and the correspondent grid data and geometry files, containing respectively the horizontal grid and the vertical discretization of the HDF5 file. The grid data and geometry files can be used afterwards to interpolate the MERCATOR data to another grid and geometry (see [[#Interpolate files|Interpolate files]]).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT MERCATOR FORMAT|CONVERT MERCATOR FORMAT]].&lt;br /&gt;
&lt;br /&gt;
===Climatological data===&lt;br /&gt;
Climatological data can be used in MOHID Water to specify boundary (open ocean boundary and surface), initial conditions or for validation, in case more realistic data (measurements or model) data is unavailable. This data is generally supplied by producers in formats not readly usable by MOHID Water which justifies the existence of a conversion tool.&lt;br /&gt;
&lt;br /&gt;
Two climatological data format conversions are implemented in ConvertToHDF5: Levitus ocean data and Hellerman Rosenstein meteorological data.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====''Levitus''====&lt;br /&gt;
The Levitus climatology provides results for water temperature and salinity.&lt;br /&gt;
The ConvertToHDF5 action converts the climatological data for the properties and spatial window requested by the user. &lt;br /&gt;
Typically, it requires 3 steps to complete the task:&lt;br /&gt;
&lt;br /&gt;
- convert levitus format &lt;br /&gt;
&lt;br /&gt;
- extrapolate the data to the whole levitus domain(required to avoid uncoincidental coastlines) &lt;br /&gt;
&lt;br /&gt;
- interpolate with the model grid(bathymetry)&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain climatological data in HDF5 format to use as boundary forcing and/or initial condition specification in MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
Levitus climatological data files, one per property and per time period (e.g a month).&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with Levitus climatological data, grid data file with the horizontal&lt;br /&gt;
grid of the data and a geometry file with vertical discretization of the data (MOHID formats).&lt;br /&gt;
The grid data and the geometry files can be used to interpolate the climatological data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT LEVITUS FORMAT|CONVERT LEVITUS FORMAT]].&lt;br /&gt;
&lt;br /&gt;
====''Hellerman Rosenstein''====&lt;br /&gt;
This is a meteorological climatology providing wind stress. There is a file per wind stress component. Since the data refer to surface values it is a 2D field.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts the climatological data for the properties and spatial window provided by the user.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain climatological data in HDF5 format to use as meteorological forcing in MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
Hellerman Rosenstein climatological data ASCII files, one per wind stress component.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with Hellerman Rosenstein climatological data and grid data file with the horizontal&lt;br /&gt;
grid of the climatological data. This grid data file can be used to interpolate the climatological data from the original horizontal grid to a new grid (see [[#Interpolate files|Interpolate files]]).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT HELLERMAN ROSENSTEIN ASCII|CONVERT HELLERMAN ROSENSTEIN ASCII]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====''World Ocean Atlas 2005''====&lt;br /&gt;
The World Ocean Atlas (WOA) 2005 climatology provides results for water temperature, salinity and several water quality and biology properties.&lt;br /&gt;
&lt;br /&gt;
Description, Action and Input Files are described in a separate page: [[ConvertToHDF5 WOA2005]].&lt;br /&gt;
&lt;br /&gt;
==Input file (ConvertToHDF5Action.dat)==&lt;br /&gt;
===General structure===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt; (block containing instructions for running a specific action) &lt;br /&gt;
 ACTION                    : ... (intended action)&lt;br /&gt;
 ... (action specific instructions)&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : ...&lt;br /&gt;
 ...&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===GLUES HDF5 FILES===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : GLUES HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 3D_FILE                   : 0/1 (0 = 2D file, 1 = 3D file)&lt;br /&gt;
 &lt;br /&gt;
 TIME_GROUP                : ... (Default=&amp;quot;Time&amp;quot;. Other option: &amp;quot;SurfaceTime&amp;quot;.)&lt;br /&gt;
 &lt;br /&gt;
 BASE_GROUP                : ... (Default=&amp;quot;Results&amp;quot;. Other options: &amp;quot;Residual&amp;quot;, &amp;quot;SurfaceResults&amp;quot;.)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 &lt;br /&gt;
 (block of HDF5 data files)&lt;br /&gt;
 &amp;lt;&amp;lt;begin_list&amp;gt;&amp;gt;&lt;br /&gt;
 ... (path/name of HDF5 file with data to be included in glue, one per line, at least two files)&lt;br /&gt;
 ...                      &lt;br /&gt;
 &amp;lt;&amp;lt;end_list&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===INTERPOLATE GRIDS===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION     : ... (type of horizontal interpolation: 1 = Bilinear, 2 = Spline2D,&lt;br /&gt;
                                  3 = Triangulation)&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION_WINDOW      : ... ... ... ... (2D spatial window to consider for interpolation: &lt;br /&gt;
                                              Xmin Ymin Xmax Ymax; default = all domain)&lt;br /&gt;
 &lt;br /&gt;
 START                     : ... (start date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 END                       : ... (end date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D           : 0/1 (0 = 2D interpolation, 1 = 3D interpolation)&lt;br /&gt;
 &lt;br /&gt;
 FATHER_FILENAME           : ... (path/name of input HDF5 file with data to be interpolated)&lt;br /&gt;
 FATHER_GRID_FILENAME      : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization of input HDF5 file)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of output HDF5 file to be created)&lt;br /&gt;
 NEW_GRID_FILENAME         : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization intended for output HDF5 file)&lt;br /&gt;
 &lt;br /&gt;
 EXTRAPOLATE_2D            : 0/1/2/3/4/5 (2D extrapolation: 0=no extrapolation, 1=medium&lt;br /&gt;
                                      triangulation, 2=high triangulation, &lt;br /&gt;
                                      3=nearest neighbour, 4=nearest cell, &lt;br /&gt;
                                      5=constant value)&lt;br /&gt;
 &lt;br /&gt;
 EXTRAPOLATE_VALUE         : ... (name of the value to extrapolate to when EXTRAPOLATE_2D is&lt;br /&gt;
                                  set to constant value (5))&lt;br /&gt;
 &lt;br /&gt;
 DO_NOT_BELIEVE_MAP        : 0/1 (0=consider input HDF5 file map, 1=do not consider input HDF5&lt;br /&gt;
                                  file map)&lt;br /&gt;
 &lt;br /&gt;
 BASE_GROUP                : ... (name of base group of HDF5 variables containing data to be &lt;br /&gt;
                                  interpolated; default is &amp;quot;/Results&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 (if INTERPOLATION3D : 1 also required:)&lt;br /&gt;
 FATHER_GEOMETRY           : ... (path/name of file (MOHID format) with vertical discretization&lt;br /&gt;
                                  of input HDF5 file)&lt;br /&gt;
 NEW_GEOMETRY              : ... (path/name of file (MOHID format) with vertical discretization&lt;br /&gt;
                                  intended for output HDF5 file)&lt;br /&gt;
 POLI_DEGREE               : 1/... (degree of vertical interpolation: 1=linear, ...)&lt;br /&gt;
 &lt;br /&gt;
 AUX_GRID_FILENAME         : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization intended for auxiliar output HDF5 file;&lt;br /&gt;
                                  default is file provided in NEW_GRID_FILENAME)&lt;br /&gt;
 &lt;br /&gt;
 AUX_OUTPUTFILENAME        : ... (path/name of auxiliar output HDF5 file to contain result&lt;br /&gt;
                                  of horizontal grid interpolation)   &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - the file indicated in AUX_GRID_FILENAME can be different from the one indicated in&lt;br /&gt;
   NEW_GRID_FILENAME in terms of bathymetry, while the horizontal grid should be, commonly, the&lt;br /&gt;
   same: this altered bathymetry can be used to extend the water column in the original data so&lt;br /&gt;
   that the process of vertical interpolation is done easily;&lt;br /&gt;
 &lt;br /&gt;
 - in case of INTERPOLATION3D : 1, ConvertToHDF5 can generate new versions of bathymetry which &lt;br /&gt;
   are consistent with the geometry definition (extension is '.new'); there are possibly three&lt;br /&gt;
   bathymetry changes referring to father grid, new grid and aux grid (the same bathymetry is&lt;br /&gt;
   not altered twice); although initially new and aux grid are the same they can result &lt;br /&gt;
   different because of bathymetry changes;&lt;br /&gt;
 &lt;br /&gt;
 - in case the new geometry is 2D and father geometry is 3D then POLI_DEGREE : 1 &lt;br /&gt;
   (linear interpolation) should be used;&lt;br /&gt;
 &lt;br /&gt;
 - EXTRAPOLATE_2D : 1/2/3/4/5 should be considered if it is expected that the coast line is not&lt;br /&gt;
   coincidental in the father and new grids, to avoid lack of data in the interpolation&lt;br /&gt;
   process; extrapolation is performed for all cells even the land cells; &lt;br /&gt;
 &lt;br /&gt;
 - in case of DO_NOT_BELIEVE_MAP : 1 the application generates a map based on cells where&lt;br /&gt;
   interpolation results are available; this causes that if EXTRAPOLATE_2D : 1/2/3/4/5 is used&lt;br /&gt;
   the AUX_GRID_FILENAME should not have land cells in order for the new map to be concurrent&lt;br /&gt;
   with the result of extrapolation and avoid errors generation, specially if INTERPOLATION3D :&lt;br /&gt;
   1 is considered.&lt;br /&gt;
&lt;br /&gt;
===PATCH HDF5 FILES===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : PATCH HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION     : ... (type of interpolation: 3 = Triangulation, default and only&lt;br /&gt;
                                  one implemented)&lt;br /&gt;
 &lt;br /&gt;
 START                     : ... (start date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 END                       : ... (end date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 &lt;br /&gt;
 (block for each father HDF5 file, should be at least two)&lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                     : ... (integer priority level: 1 = highest, increase for lower&lt;br /&gt;
                                  priority)&lt;br /&gt;
 FATHER_FILENAME           : ... (path/name of input HDF5 file with data to be interpolated)&lt;br /&gt;
 FATHER_GRID_FILENAME      : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization of input HDF5 file)&lt;br /&gt;
 N_REMOVE_FRAME            : 0   (width, in number of cells, of frame to remove)&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of output HDF5 file to be created)&lt;br /&gt;
 NEW_GRID_FILENAME         : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization intended for output HDF5 file)&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CONVERT ERA40 FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT ERA40 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                  : ... (path/name of ERA40 NetCDF file)&lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
                                 (root of name for all files produced)&lt;br /&gt;
 &lt;br /&gt;
 CONVERT_TO_ASCII          : 0/1 (1 = convert variable heading info for ASCII file; 0 = default)&lt;br /&gt;
 CONVERT_TO_HDF5           : 0/1 (1 = convert to HDF5 file; 0 = default)&lt;br /&gt;
 GRIDTO180                 : 0/1 (1 = convert grid from [0 360] to [-180 180], 0 = default)&lt;br /&gt;
 &lt;br /&gt;
 XX_VARIABLE               : ... (name of longitude variable in the input file: usual name &lt;br /&gt;
                                  is &amp;quot;longitude&amp;quot;)&lt;br /&gt;
 YY_VARIABLE               : ... (name of longitude variable in the input file: usual name &lt;br /&gt;
                                  is &amp;quot;latitude&amp;quot;)&lt;br /&gt;
 TIME_VARIABLE             : ... (name of time variable in the input file: usual name is&lt;br /&gt;
                                  &amp;quot;time&amp;quot;)&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - either CONVERT_TO_ASCII : 1 or CONVERT_TO_HDF5 : 1 must be chosen for any action to be&lt;br /&gt;
 performed by ConvertToHDF5;&lt;br /&gt;
 &lt;br /&gt;
 - when CONVERT_TO_HDF5 : 1 an HDF5 file is produced for every variable contained in the&lt;br /&gt;
 original ERA40 file; the name of each file is composed of the name indicated on FILENAME&lt;br /&gt;
 concatenated with the ERA40 variable identifier;&lt;br /&gt;
 &lt;br /&gt;
 - to the XX_VARIABLE, YY_VARIABLE and TIME_VARIABLE keywords should generally be  &lt;br /&gt;
 specified &amp;quot;longitude&amp;quot;, &amp;quot;latitude&amp;quot; and &amp;quot;time&amp;quot;, respectively; the option to&lt;br /&gt;
 include as keywords was made only to make the application robust to future variable name&lt;br /&gt;
 changes.&lt;br /&gt;
&lt;br /&gt;
===CONVERT ALADIN FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT ALADIN FORMAT&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : aladin.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : aladin_griddata.dat&lt;br /&gt;
 &lt;br /&gt;
 !Put here the name of any netcdf file for grid-data generation's sake.&lt;br /&gt;
 INPUT_GRID_FILENAME      :   D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKCLOUD_OPASYMP_19723_20088.nc&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 (path to aladin netcdf file)\ALADIN_BULKIR_OPASYMP_19723_20088.nc&lt;br /&gt;
 ...&lt;br /&gt;
 &amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - the name of each Aladin property to convert in &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;...&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt; block must conform to the following variables&lt;br /&gt;
 &lt;br /&gt;
           ---ALADIN NAME---    ---MOHID NAME---&lt;br /&gt;
             soclotot            CloudCover_&lt;br /&gt;
             sohumrel            RelativeHumidity_&lt;br /&gt;
             sofluxir            NonSolarFlux_&lt;br /&gt;
             sosspres            AtmosphericPressure_&lt;br /&gt;
             sosolarf            SolarRadiation_&lt;br /&gt;
             sotemair            AirTemperature_&lt;br /&gt;
             sowinmod            WindModulus_&lt;br /&gt;
             sowaprec            Precipitation_&lt;br /&gt;
             sozotaux            WindStressX_&lt;br /&gt;
             sometauy            WindStressY_&lt;br /&gt;
             sowindu10           WindVelocityX_&lt;br /&gt;
             sowindv10           WindVelocityY_&lt;br /&gt;
&lt;br /&gt;
===CONVERT MM5 FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT MM5 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                  : ... (path/name of MM5 file)&lt;br /&gt;
 TERRAIN_FILENAME          : ... (path/name of MM5 TERRAIN file)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME               : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME         : ... (path/name of grid data file with horizontal grid of MM5 data to be created)&lt;br /&gt;
 &lt;br /&gt;
 COMPUTE_WINDSTRESS           : 0/1 (1 = compute and write wind stress field; 0 = default)&lt;br /&gt;
 COMPUTE_WINDMODULUS          : 0/1 (1 = compute wind modulus; 0 = default)&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY    : 0/1 (1 = compute and write 2-meter relative humidity field; 0 = default)&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY_3D : 0/1 (1 = compute and write 3D relative humidity field; 0 = default)&lt;br /&gt;
 COMPUTE_PRECIPITATION        : 0/1 (1 = compute and write precipitation field; 0 = default)&lt;br /&gt;
 COMPUTE_MSLP                 : 0/1 (1 = compute and write mean sea level pressure field; 0 = default)&lt;br /&gt;
 &lt;br /&gt;
 WRITE_XYZ                    : 0/1 (1 = write xyz center grid cells; 0 = default)&lt;br /&gt;
 WRITE_TERRAIN                : 0/1 (1 = write MM5 TERRAIN fields; 0 = default)&lt;br /&gt;
 &lt;br /&gt;
 START                        : ... (start date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 END                          : ... (end date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
  &lt;br /&gt;
 (block of MM5 properties to convert)&lt;br /&gt;
 &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;&lt;br /&gt;
 ... (name of MM5 property to convert do HDF5 format, one per line)&lt;br /&gt;
 ... &lt;br /&gt;
 &amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - the name of each MM5 property to convert in &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;...&amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt; block must&lt;br /&gt;
 conform to the MOHID designation specified in code of ModuleGlobalData; the correspondence is &lt;br /&gt;
 the following (see [[Module_InterfaceWaterAir]] for a more detailed explanation).&lt;br /&gt;
 &lt;br /&gt;
           ---MM5 NAME---    ---MOHID NAME---&lt;br /&gt;
             T2             air temperature&lt;br /&gt;
             PSTARCRS       atmospheric pressure&lt;br /&gt;
             U10            wind velocity X&lt;br /&gt;
             V10            wind velocity Y&lt;br /&gt;
             UST            wind shear velocity&lt;br /&gt;
             LHFLUX         latent heat&lt;br /&gt;
             SWDOWN         sensible heat&lt;br /&gt;
             SWDOWN         solar radiation&lt;br /&gt;
             LWDOWN         infrared radiation&lt;br /&gt;
             SWOUT          top outgoing shortwave radiation&lt;br /&gt;
             LWOUT          top outgoing longwave radiation&lt;br /&gt;
             SOIL T 1       soil temperature layer 1&lt;br /&gt;
             SOIL T 1       soil temperature layer 2&lt;br /&gt;
             SOIL T 1       soil temperature layer 3&lt;br /&gt;
             SOIL T 1       soil temperature layer 4&lt;br /&gt;
             SOIL T 1       soil temperature layer 5&lt;br /&gt;
             SOIL T 1       soil temperature layer 6&lt;br /&gt;
             Q2             2-meter mixing ratio&lt;br /&gt;
             TSEASFC        sea water temperature&lt;br /&gt;
             PBL HGT        PBL height&lt;br /&gt;
             PBL REGIME     PBL regime&lt;br /&gt;
             RAIN CON       accumulated convective precipitation        (cm)&lt;br /&gt;
             RAIN NON       accumulated non-convective precipitation    (cm)&lt;br /&gt;
             GROUND T       ground temperature&lt;br /&gt;
             RES TEMP       infinite reservoir slab temperature&lt;br /&gt;
             U              wind velocity X_3D&lt;br /&gt;
             V              wind velocity Y_3D&lt;br /&gt;
             W              wind velocity Z_3D&lt;br /&gt;
             T              air temperature_3D&lt;br /&gt;
             PP             atmospheric pressure_3D&lt;br /&gt;
             Q              mixing ratio_3D&lt;br /&gt;
             CLW            cloud water mixing ratio_3D&lt;br /&gt;
             RNW            rain water mixing ratio_3D&lt;br /&gt;
             ICE            cloud ice mixing ratio_3D&lt;br /&gt;
             SNOW           snow mixing ratio_3D&lt;br /&gt;
             RAD TEND       atmospheric radiation tendency_3D&lt;br /&gt;
&lt;br /&gt;
===CONVERT WRF FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                       : CONVERT WRF FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                     : ... (path/name of WRF file)&lt;br /&gt;
 OUTPUTFILENAME               : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME         : ... (path/name of grid data file with horizontal grid of WRF data&lt;br /&gt;
                                     to be created)&lt;br /&gt;
 &lt;br /&gt;
 COMPUTE_WINDSTRESS           : 0/1 (1 = compute and write wind stress field; 0 = default)&lt;br /&gt;
 COMPUTE_WINDMODULUS          : 0/1 (1 = compute wind modulus; 0 = default)&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY    : 0/1 (1 = compute and write 2-meter relative humidity field; 0 = default)&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY_3D : 0/1 (1 = compute and write 3D relative humidity field; 0 = default)&lt;br /&gt;
 COMPUTE_PRECIPITATION        : 0/1 (1 = compute and write precipitation field; 0 = default)&lt;br /&gt;
 COMPUTE_MSLP_MM5             : 0/1 (1 = compute mean sea level pressure with MM5toGrads algorithm; 1 = default)&lt;br /&gt;
 COMPUTE_MSLP_WRF             : 0/1 (1 = compute mean sea level pressure with ARWPost algorithm; 0 = default)&lt;br /&gt;
 &lt;br /&gt;
 WRITE_XYZ                    : 0/1 (1 = write xyz center grid cells; 0 = default)&lt;br /&gt;
 WRITE_TERRAIN                : 0/1 (1 = write MM5 TERRAIN fields; 0 = default)&lt;br /&gt;
 OUTPUT_DT                    : real (DT interval in seconds between each output; default = 0.0)&lt;br /&gt;
 &lt;br /&gt;
 START                        : ... (start date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 END                          : ... (end date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
  &lt;br /&gt;
 (block of properties to convert)&lt;br /&gt;
 &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;&lt;br /&gt;
 ... (name of property to convert do HDF5 format, one per line)&lt;br /&gt;
 ... &lt;br /&gt;
 &amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
  &lt;br /&gt;
 - the name of each property to convert in &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;...&amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt; block must conform to the MOHID &lt;br /&gt;
   designation specified in code of ModuleGlobalData; the correspondence to WRF is in function &lt;br /&gt;
   VariableIsToRead in ModuleWRFFormat. Conversion is not direct since WRF outputs tendencies and not  &lt;br /&gt;
   total values. &lt;br /&gt;
 &lt;br /&gt;
 - Caution: This action is not extensively tested.&lt;br /&gt;
&lt;br /&gt;
===CONVERT MERCATOR FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT MERCATOR FORMAT&lt;br /&gt;
 &lt;br /&gt;
 READ_OPTION               : 1/2/3/4 (version of MERCATOR files)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : ... (path/name of grid data with horizontal discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME  : ... (path/name of geometry file with vertical discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 &lt;br /&gt;
 (if READ_OPTION : 1:)&lt;br /&gt;
 BASE_BULLETIN             : ...&lt;br /&gt;
 DATES_FILE                : ...&lt;br /&gt;
 NUM_DATES                 : ... &lt;br /&gt;
 &lt;br /&gt;
 (if READ_OPTION : 2/3:)&lt;br /&gt;
 INPUT_GRID_FILENAME       : ... (path/name of file with horizontal discretization of water&lt;br /&gt;
                                  properties and water level data)&lt;br /&gt;
 (if READ_OPTION : 2:)&lt;br /&gt;
 INPUT_GRID_FILENAME_U     : ... (path/name of file with horizontal discretization of velocity&lt;br /&gt;
                                  component U data)&lt;br /&gt;
 INPUT_GRID_FILENAME_V     : ... (path/name of file with horizontal discretization of velocity&lt;br /&gt;
                                  component V data)&lt;br /&gt;
 &lt;br /&gt;
 (if READ_OPTION : 3:)&lt;br /&gt;
 INPUT_BATHY_FILENAME      : ... (path/name of file with bathymetry)&lt;br /&gt;
     &lt;br /&gt;
 (if READ_OPTION : 3/4:)&lt;br /&gt;
 CALC_BAROTROPIC_VEL       : 0/1 (1 = calculate barotropic velocity, 0 = not calculate; &lt;br /&gt;
                                  default = 0)&lt;br /&gt;
 &lt;br /&gt;
 (if CALC_BAROTROPIC_VEL : 1 and READ_OPTION : 3:)&lt;br /&gt;
 INPUT_MESH_ZGRID_FILENAME : ... (path/name of file with information about layers ticknesses)&lt;br /&gt;
 &lt;br /&gt;
 (block of MERCATOR data files)&lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 ... (path/name of MERCATOR NetCDF data file, one per line, can be several)&lt;br /&gt;
 ... &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CONVERT LEVITUS FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT LEVITUS FORMAT&lt;br /&gt;
  &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : ... (path/name of grid data with horizontal discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME  : ... (path/name of geometry file with vertical discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 &lt;br /&gt;
 PERIODICITY               : ... (periodicity of Levitus data: &amp;quot;monthly&amp;quot;/&amp;quot;annual&amp;quot;; default is&lt;br /&gt;
                                  &amp;quot;monthly&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 SPATIAL_RESOLUTION        : ... (spatial resolution (degrees) of horizontal Levitus grid)&lt;br /&gt;
 &lt;br /&gt;
 FILL_VALUE                : ... (real value identificator for missing data; default is &lt;br /&gt;
                                  &amp;quot;-99.999900&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 (definition of spatial window to be present in output HDF5 file)&lt;br /&gt;
 LOWER_LEFT_CORNER         : ... ... (longitude and latitude (degrees) of south west corner)&lt;br /&gt;
 UPPER_RIGHT_CORNER        : ... ... (longitude and latitude (degrees) of north east corner)&lt;br /&gt;
 &lt;br /&gt;
 (block for each water property to be present in output HDF5 file, can be several)&lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                      : ... (name of property)&lt;br /&gt;
 ANNUAL_FILE               : ... (path/name of Levitus annual file)&lt;br /&gt;
 &lt;br /&gt;
 (block of Levitus data files)&lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 ... (path/name of Levitus data file (e.g. a monthly data file), one per line, can be several)&lt;br /&gt;
 ... &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CONVERT HELLERMAN ROSENSTEIN ASCII===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT HELLERMAN ROSENSTEIN ASCII&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : ... (path/name of grid data with horizontal discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
  &lt;br /&gt;
 PERIODICITY               : ... (periodicity of Hellerman Rosenstein data: &amp;quot;monthly&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 SPATIAL_RESOLUTION        : ... (spatial resolution (degrees) of horizontal Hellerman&lt;br /&gt;
                                  Rosenstein grid: default and only allowed value is &amp;quot;2.&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 FILL_VALUE                : ... (real value identificator for missing data; default is &lt;br /&gt;
                                  &amp;quot;-99.999900&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 (definition of spatial window to be present in output HDF5 file)&lt;br /&gt;
 LOWER_LEFT_CORNER         : ... ... (longitude and latitude (degrees) of south west corner)&lt;br /&gt;
 UPPER_RIGHT_CORNER        : ... ... (longitude and latitude (degrees) of north east corner)&lt;br /&gt;
   &lt;br /&gt;
 (block for each Hellerman Rosenstein data file)&lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                      : ... (name of property: &amp;quot;wind stress X&amp;quot;/&amp;quot;wind stress Y&amp;quot;)&lt;br /&gt;
 FILE                      : ... (path/name Hellerman Rosenstein file)&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Samples==&lt;br /&gt;
All sample files are named ''ConvertToHDF5Action.dat''.&lt;br /&gt;
&lt;br /&gt;
===Glue several MOHID(.hdf5) files===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : GLUES HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : SurfaceHydro_OP.hdf5&lt;br /&gt;
  &lt;br /&gt;
 &amp;lt;&amp;lt;begin_list&amp;gt;&amp;gt;&lt;br /&gt;
 D:\Projectos\SurfaceHydrodynamic_21.hdf5&lt;br /&gt;
 D:\Projectos\SurfaceHydrodynamic_22.hdf5&lt;br /&gt;
 &amp;lt;&amp;lt;end_list&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Interpolate 2D MOHID(.hdf5) files to a new grid===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION    : 1&lt;br /&gt;
 FATHER_FILENAME          : D:\Projectos\MohidRun\test\res\Lagrangian_1.hdf5 &lt;br /&gt;
 OUTPUTFILENAME           : OilSpillThickness_GridRegular.hdf5&lt;br /&gt;
  &lt;br /&gt;
 START                    : 2006 6 21 17 22 30&lt;br /&gt;
 END                      : 2006 6 22 17 22 0&lt;br /&gt;
  &lt;br /&gt;
 FATHER_GRID_FILENAME     : D:\Projectos\MohidRun\GeneralData\batim\Tagus.dat_A&lt;br /&gt;
 NEW_GRID_FILENAME        : TagusConstSpacing.dat&lt;br /&gt;
  &lt;br /&gt;
 BASE_GROUP               : /Results/Oil/Data_2D&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Interpolate 3D MOHID(.hdf5) files to a new grid===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION   : 1&lt;br /&gt;
 FATHER_FILENAME         : D:\Projectos\MohidRun\test\res\Lagrangian_1.hdf5 &lt;br /&gt;
 OUTPUTFILENAME          : OilSpillThickness_GridRegular.hdf5&lt;br /&gt;
 &lt;br /&gt;
 START                   : 2006 6 21 17 22 30&lt;br /&gt;
 END                     : 2006 6 22 17 22 0&lt;br /&gt;
 &lt;br /&gt;
 FATHER_GRID_FILENAME    : D:\Projectos\MohidRun\GeneralData\batim\Tagus.dat_A&lt;br /&gt;
 NEW_GRID_FILENAME       : TagusConstSpacing.dat&lt;br /&gt;
 &lt;br /&gt;
 BASE_GROUP              : /Results/Oil/Data_2D&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D         : 1&lt;br /&gt;
 FATHER_GEOMETRY         : D:\Projectos\MohidRun\test\data\Geometry_1.dat&lt;br /&gt;
 NEW_GEOMETRY            : TagusGeometry.dat&lt;br /&gt;
 AUX_GRID_FILENAME       : TagusConstSpacing.dat&lt;br /&gt;
 AUX_OUTPUTFILENAME      : Aux_GridRegular.hdf5&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Patch several MOHID(.hdf5) files to a new grid===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION : PATCH HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION   : 3&lt;br /&gt;
 &lt;br /&gt;
 START                   : 2005 2 28 13 0 0&lt;br /&gt;
 END                     : 2005 3 1 13 0 0&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                   : 3&lt;br /&gt;
 FATHER_FILENAME         : K:\MM5output\2005022812_2005030712\MM5OUT_D1.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME    : K:\MM5output\2005022812_2005030712\grid1.dat&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                   : 2&lt;br /&gt;
 FATHER_FILENAME         : K:\MM5output\2005022812_2005030712\MM5OUT_D2.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME    : K:\MM5output\2005022812_2005030712\grid2.dat&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                   : 1&lt;br /&gt;
 FATHER_FILENAME         : K:\MM5output\2005022812_2005030712\MM5OUT_D3.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME    : K:\MM5output\2005022812_2005030712\grid3.dat&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME          : MM5Forcing.hdf5&lt;br /&gt;
 NEW_GRID_FILENAME       : K:\Simula\GeneralData\Batim\CostaPortuguesa.dat&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert an ERA40 file to MOHID(.hdf5)===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                  : CONVERT ERA40 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                : D:\Aplica\ERA40\1971ERA1973.nc&lt;br /&gt;
 OUTPUTFILENAME          : D:\Aplica\ERA40\1971ERA1973T2&lt;br /&gt;
 &lt;br /&gt;
 CONVERT_TO_ASCII        : 0&lt;br /&gt;
 CONVERT_TO_HDF5         : 1&lt;br /&gt;
 &lt;br /&gt;
 XX_VARIABLE             : longitude&lt;br /&gt;
 YY_VARIABLE             : latitude&lt;br /&gt;
 TIME_VARIABLE           : time&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert a MM5 file to MOHID(.hdf5)===&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT WRF FORMAT&lt;br /&gt;
 FILENAME                  : MMOUT_DOMAIN2&lt;br /&gt;
 TERRAIN_FILENAME          : TERRAIN_DOMAIN2&lt;br /&gt;
 OUTPUTFILENAME            : D2.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : D2.dat&lt;br /&gt;
 COMPUTE_WINDSTRESS        : 1&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY : 1&lt;br /&gt;
 COMPUTE_PRECIPITATION     : 1&lt;br /&gt;
 COMPUTE_MSLP              : 1&lt;br /&gt;
 COMPUTE_WINDMODULUS       : 1&lt;br /&gt;
 WRITE_XYZ                 : 0&lt;br /&gt;
 WRITE_TERRAIN             : 0&lt;br /&gt;
 OUTPUT_DT                 : 3600&lt;br /&gt;
 &lt;br /&gt;
 !START                     : 2010 02 15 00 00 00&lt;br /&gt;
 !END                       : 2010 02 15 06 00 00&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;&lt;br /&gt;
 air temperature&lt;br /&gt;
 atmospheric pressure&lt;br /&gt;
 downward long wave radiation&lt;br /&gt;
 latent heat&lt;br /&gt;
 sensible heat&lt;br /&gt;
 sea water temperature&lt;br /&gt;
 solar radiation&lt;br /&gt;
 top outgoing shortwave radiation&lt;br /&gt;
 upward long wave radiation&lt;br /&gt;
 wind velocity X&lt;br /&gt;
 wind velocity Y&lt;br /&gt;
 &amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert a WRF file to MOHID(.hdf5)===&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT WRF FORMAT&lt;br /&gt;
 FILENAME                  : wrfout_d01_2010-02-15_00.nc&lt;br /&gt;
 OUTPUTFILENAME            : wrfout_d01.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : wrfout_d01.dat&lt;br /&gt;
 COMPUTE_WINDSTRESS        : 1&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY : 1&lt;br /&gt;
 COMPUTE_PRECIPITATION     : 1&lt;br /&gt;
 COMPUTE_MSLP              : 1&lt;br /&gt;
 COMPUTE_WINDMODULUS       : 1&lt;br /&gt;
 WRITE_XYZ                 : 0&lt;br /&gt;
 WRITE_TERRAIN             : 0&lt;br /&gt;
 OUTPUT_DT                 : 3600&lt;br /&gt;
 &lt;br /&gt;
 START                     : 2010 02 15 00 00 00&lt;br /&gt;
 END                       : 2010 02 15 06 00 00&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;&lt;br /&gt;
 air temperature&lt;br /&gt;
 atmospheric pressure&lt;br /&gt;
 downward long wave radiation&lt;br /&gt;
 latent heat&lt;br /&gt;
 sensible heat&lt;br /&gt;
 sea water temperature&lt;br /&gt;
 solar radiation&lt;br /&gt;
 top outgoing shortwave radiation&lt;br /&gt;
 upward long wave radiation&lt;br /&gt;
 wind velocity X&lt;br /&gt;
 wind velocity Y&lt;br /&gt;
 &amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert Mercator-Ocean(.nc) to MOHID(.hdf5)===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : CONVERT MERCATOR FORMAT&lt;br /&gt;
 &lt;br /&gt;
 READ_OPTION              : 2&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : Psy2v2r1v_R20060628/MercatorR20060628.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME     : Psy2v2r1v_R20060628/MercatorGridR20060628.dat&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME : Psy2v2r1v_R20060628/MercatorGeometryR20060628.dat&lt;br /&gt;
 &lt;br /&gt;
 INPUT_GRID_FILENAME      : GridFiles/ist_meteog-gridT.nc&lt;br /&gt;
 INPUT_GRID_FILENAME_U    : GridFiles/ist_meteog-gridU.nc&lt;br /&gt;
 INPUT_GRID_FILENAME_V    : GridFiles/ist_meteog-gridV.nc&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 Psy2v2r1v_R20060628/ist_meteog-mercatorPsy2v2r1v_T_MEAN_ANA_20060621_R20060628.nc&lt;br /&gt;
 Psy2v2r1v_R20060628/ist_meteog-mercatorPsy2v2r1v_T_MEAN_ANA_20060622_R20060628.nc&lt;br /&gt;
 Psy2v2r1v_R20060628/ist_meteog-mercatorPsy2v2r1v_T_MEAN_ANA_20060623_R20060628.nc&lt;br /&gt;
 &amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert Levitus format to MOHID(.hdf5) and interpolate grid===&lt;br /&gt;
==== Convert ====&lt;br /&gt;
First convert the Levitus ASCII format to a raw HDF5 format:&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : CONVERT LEVITUS FORMAT&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : Levitus.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME     : LevitusGrid.dat&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME : LevitusGeometry.dat&lt;br /&gt;
 &lt;br /&gt;
 PERIODICITY              : monthly&lt;br /&gt;
 SPATIAL_RESOLUTION       : 0.25&lt;br /&gt;
 FILL_VALUE               : -99.9999&lt;br /&gt;
 &lt;br /&gt;
 LOWER_LEFT_CORNER        : -16.0  31&lt;br /&gt;
 UPPER_RIGHT_CORNER       :   1.   40&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : salinity&lt;br /&gt;
 ANNUAL_FILE              : DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s000hr.obj&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s001&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s002&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s003&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s004&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s005&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s006&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s007&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s008&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s009&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s010&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s011&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s012&lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : temperature&lt;br /&gt;
 ANNUAL_FILE              : DataCenter\DadosBase\Ocean\Levitus\Data\Temp\t000hr.obj&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t001&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t002&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t003&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t004&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t005&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t006&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t007&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t008&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t009&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t010&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t011&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t012&lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Extrapolate ====&lt;br /&gt;
Then extrapolate the data (still in the raw HDF5 format):&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION    : 1&lt;br /&gt;
 &lt;br /&gt;
 FATHER_FILENAME          : Levitus.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME     : LevitusGrid.dat&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : LeviTusAllPointsWithData.hdf5&lt;br /&gt;
 NEW_GRID_FILENAME        : LevitusGrid.dat&lt;br /&gt;
 &lt;br /&gt;
 START                    : -9999 1  1 0 0 0&lt;br /&gt;
 END                      : -9999 12 1 0 0 0&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D          : 1&lt;br /&gt;
 FATHER_GEOMETRY          : LevitusGeometry.dat&lt;br /&gt;
 NEW_GEOMETRY             : LevitusGeometry.dat&lt;br /&gt;
 AUX_GRID_FILENAME        : LevitusGrid.dat&lt;br /&gt;
 AUX_OUTPUTFILENAME       : AuxLeviTusAllPointsWithData.hdf5&lt;br /&gt;
 &lt;br /&gt;
 POLI_DEGREE              : 3&lt;br /&gt;
 DO_NOT_BELIEVE_MAP       : 1&lt;br /&gt;
 EXTRAPOLATE_2D           : 2&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Interpolate ====&lt;br /&gt;
Finally, interpolate to the final grid and geometry (same as the [[#Interpolate 3D MOHID(.hdf5) files to a new grid| Interpolate 3D sample]]):&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION    : 1&lt;br /&gt;
 FATHER_FILENAME          : LeviTusAllPointsWithData.hdf5&lt;br /&gt;
 OUTPUTFILENAME           : CadizMonthlyLevitus.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME     : LevitusGrid.dat&lt;br /&gt;
 NEW_GRID_FILENAME        : Algarve0.02SigmaSmooth_V3_CartMoreLayers.dat&lt;br /&gt;
 &lt;br /&gt;
 START                    : -9999 1  1 0 0 0&lt;br /&gt;
 END                      : -9999 12 1 0 0 0&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D          : 1&lt;br /&gt;
 FATHER_GEOMETRY          : LevitusGeometry.dat&lt;br /&gt;
 NEW_GEOMETRY             : Geometry_1.dat&lt;br /&gt;
 AUX_OUTPUTFILENAME       : AuxCadizMonthlyLevitus.hdf5&lt;br /&gt;
 AUX_GRID_FILENAME        : Aux12km.dat&lt;br /&gt;
 &lt;br /&gt;
 POLI_DEGREE              : 3&lt;br /&gt;
 DO_NOT_BELIEVE_MAP       : 1&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that the programme may construct a new bathymetry twice. Use this bathymetry only on the AUX_GRID_FILENAME keyword.&lt;br /&gt;
&lt;br /&gt;
===Convert Hellerman Rosenstein ASCII format to MOHID(.hdf5)  ===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : CONVERT HELLERMAN ROSENSTEIN ASCII&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : ClimatologicWindStress.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME     : ClimatologicWindStressGrid.dat&lt;br /&gt;
 &lt;br /&gt;
 PERIODICITY              : monthly&lt;br /&gt;
 SPATIAL_RESOLUTION       : 2.&lt;br /&gt;
 FILL_VALUE               : -99.9999&lt;br /&gt;
 &lt;br /&gt;
 LOWER_LEFT_CORNER        : -180  -90&lt;br /&gt;
 UPPER_RIGHT_CORNER       : 180  90&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : wind stress X&lt;br /&gt;
 FILE                     : D:\Aplica\Dados\Hellerman_Rosenstein\TAUXX.DAT&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : wind stress Y&lt;br /&gt;
 FILE                     : D:\Aplica\Dados\Hellerman_Rosenstein\TAUYY.DAT&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert ALADIN(.nc) format to MOHID(.hdf5)===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT ALADIN FORMAT&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : aladin.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : aladin_griddata.dat&lt;br /&gt;
 &lt;br /&gt;
 !Put here the name of any netcdf file for grid-data generation's sake.&lt;br /&gt;
 INPUT_GRID_FILENAME      :   D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKCLOUD_OPASYMP_19723_20088.nc&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKIR_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKPRES_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKSOLAR_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKTAIR_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKWIND_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_FLUXPRE_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_STRESSU_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_STRESSV_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_U10_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_V10_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKCLOUD_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKHUMI_OPASYMP_19723_20088.nc&lt;br /&gt;
 &amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== OceanColor modules compilation ==&lt;br /&gt;
Compiling the [[ConvertToHDF5]] tool with the OceanColor modules is more complicated than one might expect. A solution is proposed here for a release version using the Compaq Visual Fortran 6.6c. The difficulties rise because C code is embedded with a fortran interface and also, extra libraries such as hdf4 are required.&lt;br /&gt;
&lt;br /&gt;
=== Pre-requisites ===&lt;br /&gt;
&lt;br /&gt;
This is a list of prerequisites to successfully compile the tool:&lt;br /&gt;
*Compaq Visual Fortran 6.5 with patch 6.6c,&lt;br /&gt;
*VS .NET 2003 (Vc7 in particular),&lt;br /&gt;
*Hdf5 libraries ('''hdf5.lib''' '''hdf5_fortran.lib''' '''hdf5_hl.lib'''),&lt;br /&gt;
*Netcdf libraries ('''netcdf.lib''' '''netcdf_.lib'''),&lt;br /&gt;
*Hdf4 libraries ('''hd421.lib''', '''hm421.lib'''),&lt;br /&gt;
*szlib, zlib and jpeg libraries ('''szlib.lib''', '''zlib.lib''' and '''libjpeg.lib'''),&lt;br /&gt;
*the fortran source files ('''ModuleConvertModisL2.F90 ModuleConvertModisL3.F90 ModuleConvertOceanColorL2.F90'''),&lt;br /&gt;
*the C source files and their fortran interface files ('''readL2scan.c readL2Seadas.c''' and '''cdata.f crossp.f fgeonav.f''').&lt;br /&gt;
&lt;br /&gt;
=== CVF IDE configuration ===&lt;br /&gt;
# Configure everything as specified in [[Compiling with CVF]].&lt;br /&gt;
# Add the source files listed in the prerequisites above to the source files listing.&lt;br /&gt;
# Go to '''Tools--&amp;gt;Options...--&amp;gt;Directories'''. There, add the '''$DOTNET2K3/Vc7/bin''' to the '''Executable files''''; the '''$DOTNET2K3/Vc7/include''' and '''$DOTNET2K3/Vc7/PlatformSDK/include''' to the '''Include files'''; and finally, the '''$DOTNET2K3/Vc7/lib''', '''$DOTNET2K3/Vc7/PlatformSDK/lib''' and  '''$DOTNET2K3/Vc7/PlatformSDK/bin''' to the '''Library files'''.&lt;br /&gt;
# Go to '''Projects--&amp;gt;Settings--&amp;gt;Release--&amp;gt;Link--&amp;gt;Input'''. There, add the following libraries: '''netcdf.lib netcdf_.lib hd421.lib hm421.lib libjpeg.lib'''. (Make sure the hdf5 libraries as well as the szlib and zlib libraries are already mentioned).&lt;br /&gt;
&lt;br /&gt;
=== Troubleshoots ===&lt;br /&gt;
'''Q: I get unresolved external references during linkage, but I have all the libraries mentioned above included. What should I do?'''&lt;br /&gt;
&lt;br /&gt;
A: Unresolved external references can come out for two reasons:&lt;br /&gt;
#you didn't specified all the libraries required or all the paths for the default libraries or,&lt;br /&gt;
#[http://en.wikipedia.org/wiki/Name_decoration name mangling] problems. Use the [[dumpbin]] utility to the libraries to checkout which language convention they are using. If that's the problem then you need to try to get new libraries with the correct naming convention.&lt;br /&gt;
&lt;br /&gt;
That's it, you should now be able to build the [[ConvertToHdf5]] project successfully.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Q: I got a message saying the entry point _NF_PUT_ATT_REAL@28 could not be located in netcdf.dll'''&lt;br /&gt;
&lt;br /&gt;
A: copy the file netcdf.dll to the exe folder&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
*[http://www.hdfgroup.org/ HDF5 Homepage]&lt;br /&gt;
*[http://www.hdfgroup.org/ HDF4 Homepage]&lt;br /&gt;
&lt;br /&gt;
== Links ==&lt;br /&gt;
&lt;br /&gt;
*[[Module_Atmosphere]]&lt;br /&gt;
*[[Module_InterfaceWaterAir]]&lt;br /&gt;
*[[Coupling_Water-Atmosphere_User_Manual]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Tools]]&lt;br /&gt;
[[Category:Hdf5]]&lt;/div&gt;</summary>
		<author><name>Anatrancoso</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=ConvertToHDF5&amp;diff=3266</id>
		<title>ConvertToHDF5</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=ConvertToHDF5&amp;diff=3266"/>
				<updated>2010-08-19T17:18:31Z</updated>
		
		<summary type="html">&lt;p&gt;Anatrancoso: /* Convert a MM5 file to MOHID(.hdf5) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The '''ConvertToHDF5''' is an application which allows the making of several operations, called '''actions''', involving HDF5 files: conversion of data in other formats (e.g. NETCDF) to HDF5, grid interpolation, concatenation of several files.&lt;br /&gt;
&lt;br /&gt;
Running options for this application are specified by the user in a input file named [[ConvertToHDF5#Input file (ConvertToHDF5Action.dat)|'''ConvertToHDF5Action.dat''']]. Several actions can be specified in the same input file, being processed sequentially by the ConvertToHDF5 application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Introduction=&lt;br /&gt;
The operations involving HDF5 files performed by ConvertToHDF5, specified individually by an action, can be organized in:&lt;br /&gt;
&lt;br /&gt;
* [[#file management|file management]]&lt;br /&gt;
* [[#grid interpolation|grid interpolation]] and &lt;br /&gt;
* [[#format conversion|format conversion]]. &lt;br /&gt;
&lt;br /&gt;
These types and the respective actions are detailed in the next sections. &lt;br /&gt;
&lt;br /&gt;
The input file specification for each action can be found bellow in the [[#Input file (ConvertToHDF5Action.dat)|Input file (ConvertToHDF5Action.dat)]] section.&lt;br /&gt;
&lt;br /&gt;
==File management==&lt;br /&gt;
&lt;br /&gt;
===Glue files===&lt;br /&gt;
This action consists in joining or glue in a single HDF5 file two or more HDF5 files having the same HDF5 data groups and referring to time periods which come in sequence. Both sets of 2D and 3D HDF5 files can be glued.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Glue MOHID Water results files from several runs produced in continuous running of the model, for storage space economy reasons. Can be used to join data from other origins (e.g. results of meteorological models) as long as the HDF5 format is the one supported by MOHID Water.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 files to be glued. &amp;quot;Grid&amp;quot; and &amp;quot;Results&amp;quot; data groups should be equal in all these files.&lt;br /&gt;
&lt;br /&gt;
'''Output:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with glued &amp;quot;Results&amp;quot; data. &amp;quot;Residual&amp;quot; and &amp;quot;Statistics&amp;quot; HDF5 data groups are not copied to the output file since they are time period specific (different values potentially occour in each file). General statistics can be calculated for the glued HDF5 file data using tool [[HDF5Statistics]].&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#GLUES HDF5 FILES|GLUES HDF5 FILES]].&lt;br /&gt;
&lt;br /&gt;
==Grid interpolation==&lt;br /&gt;
&lt;br /&gt;
===Interpolate files===&lt;br /&gt;
This action performs the conversion of one HDF5 file data existing in one 2D or 3D spatial grid to another 2D or 3D spatial grid, creating a new HDF5 file. The interpolation is performed only for the data located a time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
The HDF5 file containing data to be interpolated is called the '''father file'''.&lt;br /&gt;
&lt;br /&gt;
In case of 3D interpolation the application conducts first the horizontal grid interpolation&lt;br /&gt;
(keeping father geometry) and only after it conducts the vertical interpolation (from father geometry to new geometry).&lt;br /&gt;
&lt;br /&gt;
Several types of 2D interpolation are available for use: bilinear, spline 2D and triangulation.&lt;br /&gt;
For vertical interpolation (used in 3D interpolation) can be supplied several polinomial degrees for interpolation.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain an HDF5 file with data for forcing or providing initial conditions for a MOHID Water model, e.g. a meteorological forcing file.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
For 2D/3D interpolation:&lt;br /&gt;
&lt;br /&gt;
- father HDF5 file;&lt;br /&gt;
&lt;br /&gt;
- father horizontal data grid, in a grid data file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
- new horizontal data grid, in a grid data file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
For 3D interpolation also needed:&lt;br /&gt;
&lt;br /&gt;
- father vertical geometry, in a geometry file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
- new vertical geometry, in a geometry file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
- auxiliary horizontal data grid, in a grid data file in the format supported by MOHID; this file is used for horizontal grid interpolation in 3D interpolation operations.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with interpolated data. In case of 3D interpolation also produced an auxiliary HDF5 file with the result of the horizontal grid interpolation, which can be inspected to check if this operation is well performed.&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#INTERPOLATE GRIDS|INTERPOLATE GRIDS]].&lt;br /&gt;
&lt;br /&gt;
===Patch files===&lt;br /&gt;
This action consists in performing an interpolation of HDF5 data between grids, as in action [[#Interpolate files|Interpolate files]], but considering more than one HDF5 file as containing data to be interpolated to the new grid and a priority scale. The interpolation is performed only for the data located in the time window specified by the user. The present version of this action operates only on 2D data.&lt;br /&gt;
&lt;br /&gt;
Each HDF5 file containing data to be interpolated is called a '''father file''' and has an user-attributed '''priority level''' to be respected in the interpolation process: for each new grid cell the ConvertToHDF5 application will look for data first on the Level 1 father file and only in the case this data is inexistent will it look for data in Level 2 file, proceeding in looking for higher level files if no data is found subsequentely.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
To obtain an HDF5 file with data from several HDF5 files each containing data with different spatial resolution and only for a specific part of the new grid. This is, for instance, the case when one is preparing a best resolution meteorological HDF5 file for forcing MOHID Water from several meteorological model domains, having different spatial resolution and span, since the best resolution data is not available for all new grid cells.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
The new horizontal data grid, in a grid data file in the format supported by MOHID, and for each father file:&lt;br /&gt;
&lt;br /&gt;
- level of priority: 1 = maximum priority, priority decreases with increasing level value;&lt;br /&gt;
&lt;br /&gt;
- data grid, in the form of a grid data file in the format supported by MOHID.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with patched data.&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#PATCH HDF5 FILES|PATCH HDF5 FILES]].&lt;br /&gt;
&lt;br /&gt;
==Format conversion==&lt;br /&gt;
&lt;br /&gt;
===Meteorological model data===&lt;br /&gt;
Mohid does not simulate explicitly the atmosphere, but needs information about atmospheric properties in time and space. This requires that atmospheric properties are supplied to MOHID Water in supported formats. These formats can be derived from meteorological data in HDF5 format. Because the results of meteorological models are accessed in different formats conversion is required. &lt;br /&gt;
&lt;br /&gt;
The formats currently convertible to HDF5 in ConvertToHDF5 include the MM5 and the ERA40. These are succintly detailed in the next sections.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====''ERA40''====&lt;br /&gt;
This format refers to the European Centre for Medium-Range Weather Forecasts (ECMWF) 40 years re-analysises results, acessed by site http://data.ecmwf.int/data/d/era40_daily/. This data is available for several meteorological variables with maximum 6 hour periodicity for days in the period from 1957-09-01 to 2002-08-31. &lt;br /&gt;
&lt;br /&gt;
ERA40 data files are supplied by ECMWF in a NetCDF format and with an user-costumized time window, periodicity (time step range from 6 hours to a day) and meteorological properties set. The ERA40 meteorological properties which are recognized by MOHID are presented bellow together with the correspondent MOHID name: &lt;br /&gt;
&lt;br /&gt;
 ---ERA40 NAME---         ---MOHID NAME---&lt;br /&gt;
   sshf                     sensible heat                &lt;br /&gt;
   slhf                     latent heat                  &lt;br /&gt;
   msl                      atmospheric pressure &lt;br /&gt;
   tcc                      cloud cover &lt;br /&gt;
   p10u                     wind velocity X&lt;br /&gt;
   p10v                     wind velocity Y&lt;br /&gt;
   p2t                      air temperature&lt;br /&gt;
   ewss                     wind stress X&lt;br /&gt;
   nsss                     wind stress Y&lt;br /&gt;
&lt;br /&gt;
The standard ConvertToHDF5 action is to convert to HDF5 the data referring to all MOHID Water recognized property available in the ERA40 file, producing an individual HDF5 file for each property. The name of each HDF5 file generated includes the ERA40 meteorological property identificator correspondent to the data contained.&lt;br /&gt;
&lt;br /&gt;
Alternatively, ConvertToHDF5 can copy to a single ASCII file the heading information concerning each meteorological variable considered in the original ERA40 file.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain an HDF5 file with data suitable for being used for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
ERA40 NetCDF file.&lt;br /&gt;
&lt;br /&gt;
'''Output:'''&lt;br /&gt;
&lt;br /&gt;
One HDF5 file for each meteorological property contained in the original NetCDF file.&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT ERA40 FORMAT|CONVERT ERA40 FORMAT]].&lt;br /&gt;
&lt;br /&gt;
====''Aladin''====&lt;br /&gt;
This format relates to Aladin meteorological model results. Some of the atmospheric property needed by MOHID Water is present in Aladin output files, enabling to run prediction simulations with MOHID Water when access to Aladin prevision files is available.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts Aladin results files from the original format to HDF5 format, allowing the easy use of these results in the MOHID framework. Conversion is only performed for the MM5 properties and the time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Produce HDF5 meteorological data usable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
Aladin netcdf results file to convert.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
An HDF5 file with Aladin results and a grid data file in MOHID format with the Aladin grid pseudo-information: a fake orography is created of 100 m depth.&lt;br /&gt;
This last file can be used to interpolate the Aladin data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]), for instance to produce an HDF5 file suitable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Compilation:'''&lt;br /&gt;
&lt;br /&gt;
Caution! The ConvertToHDF5 executable must be compiled with the [[Big-endian little-endian|Big-Endian]] option set (see compatibility in the project's settings).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT ALADIN FORMAT|CONVERT ALADIN FORMAT]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====''MM5''====&lt;br /&gt;
This format relates to the Fifth-Generation NCAR / Penn State Mesoscale Model (MM5) output files format. Almost every atmospheric property needed by MOHID Water is present in MM5 output files.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts MM5 results files from the original format to HDF5 format, allowing the easy use of these results in the MOHID framework. Conversion is only performed for the MM5 properties and the time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
Besides the conversion, the application can calculate some properties not contained in&lt;br /&gt;
the MM5 files using the available information: these are wind stress, relative humidity and mean sea level pressure.&lt;br /&gt;
&lt;br /&gt;
For conversion to be completed it is required the horizontal grid information of MM5 results which is available in special TERRAIN files.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Produce HDF5 meteorological data usable to force MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
MM5 results file to convert and MM5 TERRAIN file. The TERRAIN file supplies the MM5 results grid information. &lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
A HDF5 file with MM5 results and a grid data file in MOHID format with the MM5 grid information.&lt;br /&gt;
This last file can be used to interpolate the MM5 data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]), for instance to produce an HDF5 file suitable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Compilation:'''&lt;br /&gt;
&lt;br /&gt;
Caution! The ConvertToHDF5 executable must be compiled with the [[Big-endian little-endian|Big-Endian]] option set (see compatibility in the project's settings).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT MM5 FORMAT|CONVERT MM5 FORMAT]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====''WRF''====&lt;br /&gt;
This format relates to the Weather Research and Forecast model (WRF) output files format. Almost every atmospheric property needed by MOHID Water is present in WRF output files.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts WRF results files from the original format to HDF5 format, allowing the easy use of these results in the MOHID framework. Conversion is only performed for the WRF properties and the time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
Besides the conversion, the application can calculate some properties not contained in&lt;br /&gt;
the WRF files using the available information: these are wind stress, relative humidity and mean sea level pressure.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Produce HDF5 meteorological data usable to force MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
WRF direct output file.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
An HDF5 file with WRF results and a grid data file in MOHID format with the WRF grid information.&lt;br /&gt;
This last file can be used to interpolate the WRF data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]), for instance to produce an HDF5 file suitable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Compilation:'''&lt;br /&gt;
&lt;br /&gt;
Caution! [[PROJ4 | PROJ4]] library is needed! See [[#Compile_ModuleWRFFormat |  Compile_ModuleWRFFormat]]&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT WRF FORMAT|CONVERT WRF FORMAT]].&lt;br /&gt;
&lt;br /&gt;
===Ocean model data===&lt;br /&gt;
Ocean model data, available in diverse formats, can be used by MOHID Water to specify boundary (open ocean boundary and surface), initial conditions or for validation. These uses require that the model data is in HDF5 format and conversion is therefore needed.&lt;br /&gt;
&lt;br /&gt;
Currently the large scale ocean models formats convertible into HDF5 by ConvertToHDF5 includes MERCATOR.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====''MERCATOR''====&lt;br /&gt;
MERCATOR data files are supplied in a NetCDF format and with an user-costumized spatial window and periodicity. Water level and water properties (temperature and salinity) data is available in type T files, velocity component u data is available in type U files and velocity component v data is available in type V files. The type of data of a specific MERCATOR file is generally indicated in the file name.&lt;br /&gt;
&lt;br /&gt;
The standard ConvertToHDF5 action is to convert to HDF5 the data referring to temperature, salinity, water level, component u of velocity and component v of velocity.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain HDF5 MERCATOR data usable for forcing or validation of MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
NetCDF MERCATOR results data files and NetCDF MERCATOR grid data files. It should be provided one grid data file of each type: T, U and V. These are generally provided by the MERCATOR services together with the results files.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
One HDF5 file containing all properties contained in the recognized set of properties (temperature, salinity, water level, velocity u and velocity v) and the correspondent grid data and geometry files, containing respectively the horizontal grid and the vertical discretization of the HDF5 file. The grid data and geometry files can be used afterwards to interpolate the MERCATOR data to another grid and geometry (see [[#Interpolate files|Interpolate files]]).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT MERCATOR FORMAT|CONVERT MERCATOR FORMAT]].&lt;br /&gt;
&lt;br /&gt;
===Climatological data===&lt;br /&gt;
Climatological data can be used in MOHID Water to specify boundary (open ocean boundary and surface), initial conditions or for validation, in case more realistic data (measurements or model) data is unavailable. This data is generally supplied by producers in formats not readly usable by MOHID Water which justifies the existence of a conversion tool.&lt;br /&gt;
&lt;br /&gt;
Two climatological data format conversions are implemented in ConvertToHDF5: Levitus ocean data and Hellerman Rosenstein meteorological data.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====''Levitus''====&lt;br /&gt;
The Levitus climatology provides results for water temperature and salinity.&lt;br /&gt;
The ConvertToHDF5 action converts the climatological data for the properties and spatial window requested by the user. &lt;br /&gt;
Typically, it requires 3 steps to complete the task:&lt;br /&gt;
&lt;br /&gt;
- convert levitus format &lt;br /&gt;
&lt;br /&gt;
- extrapolate the data to the whole levitus domain(required to avoid uncoincidental coastlines) &lt;br /&gt;
&lt;br /&gt;
- interpolate with the model grid(bathymetry)&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain climatological data in HDF5 format to use as boundary forcing and/or initial condition specification in MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
Levitus climatological data files, one per property and per time period (e.g a month).&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with Levitus climatological data, grid data file with the horizontal&lt;br /&gt;
grid of the data and a geometry file with vertical discretization of the data (MOHID formats).&lt;br /&gt;
The grid data and the geometry files can be used to interpolate the climatological data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT LEVITUS FORMAT|CONVERT LEVITUS FORMAT]].&lt;br /&gt;
&lt;br /&gt;
====''Hellerman Rosenstein''====&lt;br /&gt;
This is a meteorological climatology providing wind stress. There is a file per wind stress component. Since the data refer to surface values it is a 2D field.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts the climatological data for the properties and spatial window provided by the user.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain climatological data in HDF5 format to use as meteorological forcing in MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
Hellerman Rosenstein climatological data ASCII files, one per wind stress component.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with Hellerman Rosenstein climatological data and grid data file with the horizontal&lt;br /&gt;
grid of the climatological data. This grid data file can be used to interpolate the climatological data from the original horizontal grid to a new grid (see [[#Interpolate files|Interpolate files]]).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT HELLERMAN ROSENSTEIN ASCII|CONVERT HELLERMAN ROSENSTEIN ASCII]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====''World Ocean Atlas 2005''====&lt;br /&gt;
The World Ocean Atlas (WOA) 2005 climatology provides results for water temperature, salinity and several water quality and biology properties.&lt;br /&gt;
&lt;br /&gt;
Description, Action and Input Files are described in a separate page: [[ConvertToHDF5 WOA2005]].&lt;br /&gt;
&lt;br /&gt;
==Input file (ConvertToHDF5Action.dat)==&lt;br /&gt;
===General structure===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt; (block containing instructions for running a specific action) &lt;br /&gt;
 ACTION                    : ... (intended action)&lt;br /&gt;
 ... (action specific instructions)&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : ...&lt;br /&gt;
 ...&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===GLUES HDF5 FILES===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : GLUES HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 3D_FILE                   : 0/1 (0 = 2D file, 1 = 3D file)&lt;br /&gt;
 &lt;br /&gt;
 TIME_GROUP                : ... (Default=&amp;quot;Time&amp;quot;. Other option: &amp;quot;SurfaceTime&amp;quot;.)&lt;br /&gt;
 &lt;br /&gt;
 BASE_GROUP                : ... (Default=&amp;quot;Results&amp;quot;. Other options: &amp;quot;Residual&amp;quot;, &amp;quot;SurfaceResults&amp;quot;.)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 &lt;br /&gt;
 (block of HDF5 data files)&lt;br /&gt;
 &amp;lt;&amp;lt;begin_list&amp;gt;&amp;gt;&lt;br /&gt;
 ... (path/name of HDF5 file with data to be included in glue, one per line, at least two files)&lt;br /&gt;
 ...                      &lt;br /&gt;
 &amp;lt;&amp;lt;end_list&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===INTERPOLATE GRIDS===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION     : ... (type of horizontal interpolation: 1 = Bilinear, 2 = Spline2D,&lt;br /&gt;
                                  3 = Triangulation)&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION_WINDOW      : ... ... ... ... (2D spatial window to consider for interpolation: &lt;br /&gt;
                                              Xmin Ymin Xmax Ymax; default = all domain)&lt;br /&gt;
 &lt;br /&gt;
 START                     : ... (start date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 END                       : ... (end date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D           : 0/1 (0 = 2D interpolation, 1 = 3D interpolation)&lt;br /&gt;
 &lt;br /&gt;
 FATHER_FILENAME           : ... (path/name of input HDF5 file with data to be interpolated)&lt;br /&gt;
 FATHER_GRID_FILENAME      : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization of input HDF5 file)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of output HDF5 file to be created)&lt;br /&gt;
 NEW_GRID_FILENAME         : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization intended for output HDF5 file)&lt;br /&gt;
 &lt;br /&gt;
 EXTRAPOLATE_2D            : 0/1/2/3/4/5 (2D extrapolation: 0=no extrapolation, 1=medium&lt;br /&gt;
                                      triangulation, 2=high triangulation, &lt;br /&gt;
                                      3=nearest neighbour, 4=nearest cell, &lt;br /&gt;
                                      5=constant value)&lt;br /&gt;
 &lt;br /&gt;
 EXTRAPOLATE_VALUE         : ... (name of the value to extrapolate to when EXTRAPOLATE_2D is&lt;br /&gt;
                                  set to constant value (5))&lt;br /&gt;
 &lt;br /&gt;
 DO_NOT_BELIEVE_MAP        : 0/1 (0=consider input HDF5 file map, 1=do not consider input HDF5&lt;br /&gt;
                                  file map)&lt;br /&gt;
 &lt;br /&gt;
 BASE_GROUP                : ... (name of base group of HDF5 variables containing data to be &lt;br /&gt;
                                  interpolated; default is &amp;quot;/Results&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 (if INTERPOLATION3D : 1 also required:)&lt;br /&gt;
 FATHER_GEOMETRY           : ... (path/name of file (MOHID format) with vertical discretization&lt;br /&gt;
                                  of input HDF5 file)&lt;br /&gt;
 NEW_GEOMETRY              : ... (path/name of file (MOHID format) with vertical discretization&lt;br /&gt;
                                  intended for output HDF5 file)&lt;br /&gt;
 POLI_DEGREE               : 1/... (degree of vertical interpolation: 1=linear, ...)&lt;br /&gt;
 &lt;br /&gt;
 AUX_GRID_FILENAME         : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization intended for auxiliar output HDF5 file;&lt;br /&gt;
                                  default is file provided in NEW_GRID_FILENAME)&lt;br /&gt;
 &lt;br /&gt;
 AUX_OUTPUTFILENAME        : ... (path/name of auxiliar output HDF5 file to contain result&lt;br /&gt;
                                  of horizontal grid interpolation)   &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - the file indicated in AUX_GRID_FILENAME can be different from the one indicated in&lt;br /&gt;
   NEW_GRID_FILENAME in terms of bathymetry, while the horizontal grid should be, commonly, the&lt;br /&gt;
   same: this altered bathymetry can be used to extend the water column in the original data so&lt;br /&gt;
   that the process of vertical interpolation is done easily;&lt;br /&gt;
 &lt;br /&gt;
 - in case of INTERPOLATION3D : 1, ConvertToHDF5 can generate new versions of bathymetry which &lt;br /&gt;
   are consistent with the geometry definition (extension is '.new'); there are possibly three&lt;br /&gt;
   bathymetry changes referring to father grid, new grid and aux grid (the same bathymetry is&lt;br /&gt;
   not altered twice); although initially new and aux grid are the same they can result &lt;br /&gt;
   different because of bathymetry changes;&lt;br /&gt;
 &lt;br /&gt;
 - in case the new geometry is 2D and father geometry is 3D then POLI_DEGREE : 1 &lt;br /&gt;
   (linear interpolation) should be used;&lt;br /&gt;
 &lt;br /&gt;
 - EXTRAPOLATE_2D : 1/2/3/4/5 should be considered if it is expected that the coast line is not&lt;br /&gt;
   coincidental in the father and new grids, to avoid lack of data in the interpolation&lt;br /&gt;
   process; extrapolation is performed for all cells even the land cells; &lt;br /&gt;
 &lt;br /&gt;
 - in case of DO_NOT_BELIEVE_MAP : 1 the application generates a map based on cells where&lt;br /&gt;
   interpolation results are available; this causes that if EXTRAPOLATE_2D : 1/2/3/4/5 is used&lt;br /&gt;
   the AUX_GRID_FILENAME should not have land cells in order for the new map to be concurrent&lt;br /&gt;
   with the result of extrapolation and avoid errors generation, specially if INTERPOLATION3D :&lt;br /&gt;
   1 is considered.&lt;br /&gt;
&lt;br /&gt;
===PATCH HDF5 FILES===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : PATCH HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION     : ... (type of interpolation: 3 = Triangulation, default and only&lt;br /&gt;
                                  one implemented)&lt;br /&gt;
 &lt;br /&gt;
 START                     : ... (start date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 END                       : ... (end date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 &lt;br /&gt;
 (block for each father HDF5 file, should be at least two)&lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                     : ... (integer priority level: 1 = highest, increase for lower&lt;br /&gt;
                                  priority)&lt;br /&gt;
 FATHER_FILENAME           : ... (path/name of input HDF5 file with data to be interpolated)&lt;br /&gt;
 FATHER_GRID_FILENAME      : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization of input HDF5 file)&lt;br /&gt;
 N_REMOVE_FRAME            : 0   (width, in number of cells, of frame to remove)&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of output HDF5 file to be created)&lt;br /&gt;
 NEW_GRID_FILENAME         : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization intended for output HDF5 file)&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CONVERT ERA40 FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT ERA40 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                  : ... (path/name of ERA40 NetCDF file)&lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
                                 (root of name for all files produced)&lt;br /&gt;
 &lt;br /&gt;
 CONVERT_TO_ASCII          : 0/1 (1 = convert variable heading info for ASCII file; 0 = default)&lt;br /&gt;
 CONVERT_TO_HDF5           : 0/1 (1 = convert to HDF5 file; 0 = default)&lt;br /&gt;
 GRIDTO180                 : 0/1 (1 = convert grid from [0 360] to [-180 180], 0 = default)&lt;br /&gt;
 &lt;br /&gt;
 XX_VARIABLE               : ... (name of longitude variable in the input file: usual name &lt;br /&gt;
                                  is &amp;quot;longitude&amp;quot;)&lt;br /&gt;
 YY_VARIABLE               : ... (name of longitude variable in the input file: usual name &lt;br /&gt;
                                  is &amp;quot;latitude&amp;quot;)&lt;br /&gt;
 TIME_VARIABLE             : ... (name of time variable in the input file: usual name is&lt;br /&gt;
                                  &amp;quot;time&amp;quot;)&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - either CONVERT_TO_ASCII : 1 or CONVERT_TO_HDF5 : 1 must be chosen for any action to be&lt;br /&gt;
 performed by ConvertToHDF5;&lt;br /&gt;
 &lt;br /&gt;
 - when CONVERT_TO_HDF5 : 1 an HDF5 file is produced for every variable contained in the&lt;br /&gt;
 original ERA40 file; the name of each file is composed of the name indicated on FILENAME&lt;br /&gt;
 concatenated with the ERA40 variable identifier;&lt;br /&gt;
 &lt;br /&gt;
 - to the XX_VARIABLE, YY_VARIABLE and TIME_VARIABLE keywords should generally be  &lt;br /&gt;
 specified &amp;quot;longitude&amp;quot;, &amp;quot;latitude&amp;quot; and &amp;quot;time&amp;quot;, respectively; the option to&lt;br /&gt;
 include as keywords was made only to make the application robust to future variable name&lt;br /&gt;
 changes.&lt;br /&gt;
&lt;br /&gt;
===CONVERT ALADIN FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT ALADIN FORMAT&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : aladin.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : aladin_griddata.dat&lt;br /&gt;
 &lt;br /&gt;
 !Put here the name of any netcdf file for grid-data generation's sake.&lt;br /&gt;
 INPUT_GRID_FILENAME      :   D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKCLOUD_OPASYMP_19723_20088.nc&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 (path to aladin netcdf file)\ALADIN_BULKIR_OPASYMP_19723_20088.nc&lt;br /&gt;
 ...&lt;br /&gt;
 &amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - the name of each Aladin property to convert in &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;...&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt; block must conform to the following variables&lt;br /&gt;
 &lt;br /&gt;
           ---ALADIN NAME---    ---MOHID NAME---&lt;br /&gt;
             soclotot            CloudCover_&lt;br /&gt;
             sohumrel            RelativeHumidity_&lt;br /&gt;
             sofluxir            NonSolarFlux_&lt;br /&gt;
             sosspres            AtmosphericPressure_&lt;br /&gt;
             sosolarf            SolarRadiation_&lt;br /&gt;
             sotemair            AirTemperature_&lt;br /&gt;
             sowinmod            WindModulus_&lt;br /&gt;
             sowaprec            Precipitation_&lt;br /&gt;
             sozotaux            WindStressX_&lt;br /&gt;
             sometauy            WindStressY_&lt;br /&gt;
             sowindu10           WindVelocityX_&lt;br /&gt;
             sowindv10           WindVelocityY_&lt;br /&gt;
&lt;br /&gt;
===CONVERT MM5 FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT MM5 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                  : ... (path/name of MM5 file)&lt;br /&gt;
 TERRAIN_FILENAME          : ... (path/name of MM5 TERRAIN file)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME               : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME         : ... (path/name of grid data file with horizontal grid of MM5 data to be created)&lt;br /&gt;
 &lt;br /&gt;
 COMPUTE_WINDSTRESS           : 0/1 (1 = compute and write wind stress field; 0 = default)&lt;br /&gt;
 COMPUTE_WINDMODULUS          : 0/1 (1 = compute wind modulus; 0 = default)&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY    : 0/1 (1 = compute and write 2-meter relative humidity field; 0 = default)&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY_3D : 0/1 (1 = compute and write 3D relative humidity field; 0 = default)&lt;br /&gt;
 COMPUTE_PRECIPITATION        : 0/1 (1 = compute and write precipitation field; 0 = default)&lt;br /&gt;
 COMPUTE_MSLP                 : 0/1 (1 = compute and write mean sea level pressure field; 0 = default)&lt;br /&gt;
 &lt;br /&gt;
 WRITE_XYZ                    : 0/1 (1 = write xyz center grid cells; 0 = default)&lt;br /&gt;
 WRITE_TERRAIN                : 0/1 (1 = write MM5 TERRAIN fields; 0 = default)&lt;br /&gt;
 &lt;br /&gt;
 START                        : ... (start date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 END                          : ... (end date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
  &lt;br /&gt;
 (block of MM5 properties to convert)&lt;br /&gt;
 &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;&lt;br /&gt;
 ... (name of MM5 property to convert do HDF5 format, one per line)&lt;br /&gt;
 ... &lt;br /&gt;
 &amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - the name of each MM5 property to convert in &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;...&amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt; block must&lt;br /&gt;
 conform to the MOHID designation specified in code of ModuleGlobalData; the correspondence is &lt;br /&gt;
 the following (see [[Module_InterfaceWaterAir]] for a more detailed explanation).&lt;br /&gt;
 &lt;br /&gt;
           ---MM5 NAME---    ---MOHID NAME---&lt;br /&gt;
             T2             air temperature&lt;br /&gt;
             PSTARCRS       atmospheric pressure&lt;br /&gt;
             U10            wind velocity X&lt;br /&gt;
             V10            wind velocity Y&lt;br /&gt;
             UST            wind shear velocity&lt;br /&gt;
             LHFLUX         latent heat&lt;br /&gt;
             SWDOWN         sensible heat&lt;br /&gt;
             SWDOWN         solar radiation&lt;br /&gt;
             LWDOWN         infrared radiation&lt;br /&gt;
             SWOUT          top outgoing shortwave radiation&lt;br /&gt;
             LWOUT          top outgoing longwave radiation&lt;br /&gt;
             SOIL T 1       soil temperature layer 1&lt;br /&gt;
             SOIL T 1       soil temperature layer 2&lt;br /&gt;
             SOIL T 1       soil temperature layer 3&lt;br /&gt;
             SOIL T 1       soil temperature layer 4&lt;br /&gt;
             SOIL T 1       soil temperature layer 5&lt;br /&gt;
             SOIL T 1       soil temperature layer 6&lt;br /&gt;
             Q2             2-meter mixing ratio&lt;br /&gt;
             TSEASFC        sea water temperature&lt;br /&gt;
             PBL HGT        PBL height&lt;br /&gt;
             PBL REGIME     PBL regime&lt;br /&gt;
             RAIN CON       accumulated convective precipitation        (cm)&lt;br /&gt;
             RAIN NON       accumulated non-convective precipitation    (cm)&lt;br /&gt;
             GROUND T       ground temperature&lt;br /&gt;
             RES TEMP       infinite reservoir slab temperature&lt;br /&gt;
             U              wind velocity X_3D&lt;br /&gt;
             V              wind velocity Y_3D&lt;br /&gt;
             W              wind velocity Z_3D&lt;br /&gt;
             T              air temperature_3D&lt;br /&gt;
             PP             atmospheric pressure_3D&lt;br /&gt;
             Q              mixing ratio_3D&lt;br /&gt;
             CLW            cloud water mixing ratio_3D&lt;br /&gt;
             RNW            rain water mixing ratio_3D&lt;br /&gt;
             ICE            cloud ice mixing ratio_3D&lt;br /&gt;
             SNOW           snow mixing ratio_3D&lt;br /&gt;
             RAD TEND       atmospheric radiation tendency_3D&lt;br /&gt;
&lt;br /&gt;
===CONVERT WRF FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                       : CONVERT WRF FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                     : ... (path/name of WRF file)&lt;br /&gt;
 OUTPUTFILENAME               : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME         : ... (path/name of grid data file with horizontal grid of WRF data&lt;br /&gt;
                                     to be created)&lt;br /&gt;
 &lt;br /&gt;
 COMPUTE_WINDSTRESS           : 0/1 (1 = compute and write wind stress field; 0 = default)&lt;br /&gt;
 COMPUTE_WINDMODULUS          : 0/1 (1 = compute wind modulus; 0 = default)&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY    : 0/1 (1 = compute and write 2-meter relative humidity field; 0 = default)&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY_3D : 0/1 (1 = compute and write 3D relative humidity field; 0 = default)&lt;br /&gt;
 COMPUTE_PRECIPITATION        : 0/1 (1 = compute and write precipitation field; 0 = default)&lt;br /&gt;
 COMPUTE_MSLP_MM5             : 0/1 (1 = compute mean sea level pressure with MM5toGrads algorithm; 0 = default)&lt;br /&gt;
 COMPUTE_MSLP_WRF             : 0/1 (1 = compute mean sea level pressure with ARWPost algorithm; 0 = default)&lt;br /&gt;
 &lt;br /&gt;
 WRITE_XYZ                    : 0/1 (1 = write xyz center grid cells; 0 = default)&lt;br /&gt;
 WRITE_TERRAIN                : 0/1 (1 = write MM5 TERRAIN fields; 0 = default)&lt;br /&gt;
 OUTPUT_DT                    : real (DT interval in seconds between each output; default = 0.0)&lt;br /&gt;
 &lt;br /&gt;
 START                        : ... (start date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 END                          : ... (end date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
  &lt;br /&gt;
 (block of properties to convert)&lt;br /&gt;
 &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;&lt;br /&gt;
 ... (name of property to convert do HDF5 format, one per line)&lt;br /&gt;
 ... &lt;br /&gt;
 &amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
  &lt;br /&gt;
 - the name of each property to convert in &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;...&amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt; block must conform to the MOHID &lt;br /&gt;
   designation specified in code of ModuleGlobalData; the correspondence to WRF is in function &lt;br /&gt;
   VariableIsToRead in ModuleWRFFormat. Conversion is not direct since WRF outputs tendencies and not  &lt;br /&gt;
   total values. &lt;br /&gt;
 &lt;br /&gt;
 - Caution: This action is not extensively tested.&lt;br /&gt;
&lt;br /&gt;
===CONVERT MERCATOR FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT MERCATOR FORMAT&lt;br /&gt;
 &lt;br /&gt;
 READ_OPTION               : 1/2/3/4 (version of MERCATOR files)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : ... (path/name of grid data with horizontal discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME  : ... (path/name of geometry file with vertical discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 &lt;br /&gt;
 (if READ_OPTION : 1:)&lt;br /&gt;
 BASE_BULLETIN             : ...&lt;br /&gt;
 DATES_FILE                : ...&lt;br /&gt;
 NUM_DATES                 : ... &lt;br /&gt;
 &lt;br /&gt;
 (if READ_OPTION : 2/3:)&lt;br /&gt;
 INPUT_GRID_FILENAME       : ... (path/name of file with horizontal discretization of water&lt;br /&gt;
                                  properties and water level data)&lt;br /&gt;
 (if READ_OPTION : 2:)&lt;br /&gt;
 INPUT_GRID_FILENAME_U     : ... (path/name of file with horizontal discretization of velocity&lt;br /&gt;
                                  component U data)&lt;br /&gt;
 INPUT_GRID_FILENAME_V     : ... (path/name of file with horizontal discretization of velocity&lt;br /&gt;
                                  component V data)&lt;br /&gt;
 &lt;br /&gt;
 (if READ_OPTION : 3:)&lt;br /&gt;
 INPUT_BATHY_FILENAME      : ... (path/name of file with bathymetry)&lt;br /&gt;
     &lt;br /&gt;
 (if READ_OPTION : 3/4:)&lt;br /&gt;
 CALC_BAROTROPIC_VEL       : 0/1 (1 = calculate barotropic velocity, 0 = not calculate; &lt;br /&gt;
                                  default = 0)&lt;br /&gt;
 &lt;br /&gt;
 (if CALC_BAROTROPIC_VEL : 1 and READ_OPTION : 3:)&lt;br /&gt;
 INPUT_MESH_ZGRID_FILENAME : ... (path/name of file with information about layers ticknesses)&lt;br /&gt;
 &lt;br /&gt;
 (block of MERCATOR data files)&lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 ... (path/name of MERCATOR NetCDF data file, one per line, can be several)&lt;br /&gt;
 ... &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CONVERT LEVITUS FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT LEVITUS FORMAT&lt;br /&gt;
  &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : ... (path/name of grid data with horizontal discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME  : ... (path/name of geometry file with vertical discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 &lt;br /&gt;
 PERIODICITY               : ... (periodicity of Levitus data: &amp;quot;monthly&amp;quot;/&amp;quot;annual&amp;quot;; default is&lt;br /&gt;
                                  &amp;quot;monthly&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 SPATIAL_RESOLUTION        : ... (spatial resolution (degrees) of horizontal Levitus grid)&lt;br /&gt;
 &lt;br /&gt;
 FILL_VALUE                : ... (real value identificator for missing data; default is &lt;br /&gt;
                                  &amp;quot;-99.999900&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 (definition of spatial window to be present in output HDF5 file)&lt;br /&gt;
 LOWER_LEFT_CORNER         : ... ... (longitude and latitude (degrees) of south west corner)&lt;br /&gt;
 UPPER_RIGHT_CORNER        : ... ... (longitude and latitude (degrees) of north east corner)&lt;br /&gt;
 &lt;br /&gt;
 (block for each water property to be present in output HDF5 file, can be several)&lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                      : ... (name of property)&lt;br /&gt;
 ANNUAL_FILE               : ... (path/name of Levitus annual file)&lt;br /&gt;
 &lt;br /&gt;
 (block of Levitus data files)&lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 ... (path/name of Levitus data file (e.g. a monthly data file), one per line, can be several)&lt;br /&gt;
 ... &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CONVERT HELLERMAN ROSENSTEIN ASCII===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT HELLERMAN ROSENSTEIN ASCII&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : ... (path/name of grid data with horizontal discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
  &lt;br /&gt;
 PERIODICITY               : ... (periodicity of Hellerman Rosenstein data: &amp;quot;monthly&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 SPATIAL_RESOLUTION        : ... (spatial resolution (degrees) of horizontal Hellerman&lt;br /&gt;
                                  Rosenstein grid: default and only allowed value is &amp;quot;2.&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 FILL_VALUE                : ... (real value identificator for missing data; default is &lt;br /&gt;
                                  &amp;quot;-99.999900&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 (definition of spatial window to be present in output HDF5 file)&lt;br /&gt;
 LOWER_LEFT_CORNER         : ... ... (longitude and latitude (degrees) of south west corner)&lt;br /&gt;
 UPPER_RIGHT_CORNER        : ... ... (longitude and latitude (degrees) of north east corner)&lt;br /&gt;
   &lt;br /&gt;
 (block for each Hellerman Rosenstein data file)&lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                      : ... (name of property: &amp;quot;wind stress X&amp;quot;/&amp;quot;wind stress Y&amp;quot;)&lt;br /&gt;
 FILE                      : ... (path/name Hellerman Rosenstein file)&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Samples==&lt;br /&gt;
All sample files are named ''ConvertToHDF5Action.dat''.&lt;br /&gt;
&lt;br /&gt;
===Glue several MOHID(.hdf5) files===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : GLUES HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : SurfaceHydro_OP.hdf5&lt;br /&gt;
  &lt;br /&gt;
 &amp;lt;&amp;lt;begin_list&amp;gt;&amp;gt;&lt;br /&gt;
 D:\Projectos\SurfaceHydrodynamic_21.hdf5&lt;br /&gt;
 D:\Projectos\SurfaceHydrodynamic_22.hdf5&lt;br /&gt;
 &amp;lt;&amp;lt;end_list&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Interpolate 2D MOHID(.hdf5) files to a new grid===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION    : 1&lt;br /&gt;
 FATHER_FILENAME          : D:\Projectos\MohidRun\test\res\Lagrangian_1.hdf5 &lt;br /&gt;
 OUTPUTFILENAME           : OilSpillThickness_GridRegular.hdf5&lt;br /&gt;
  &lt;br /&gt;
 START                    : 2006 6 21 17 22 30&lt;br /&gt;
 END                      : 2006 6 22 17 22 0&lt;br /&gt;
  &lt;br /&gt;
 FATHER_GRID_FILENAME     : D:\Projectos\MohidRun\GeneralData\batim\Tagus.dat_A&lt;br /&gt;
 NEW_GRID_FILENAME        : TagusConstSpacing.dat&lt;br /&gt;
  &lt;br /&gt;
 BASE_GROUP               : /Results/Oil/Data_2D&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Interpolate 3D MOHID(.hdf5) files to a new grid===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION   : 1&lt;br /&gt;
 FATHER_FILENAME         : D:\Projectos\MohidRun\test\res\Lagrangian_1.hdf5 &lt;br /&gt;
 OUTPUTFILENAME          : OilSpillThickness_GridRegular.hdf5&lt;br /&gt;
 &lt;br /&gt;
 START                   : 2006 6 21 17 22 30&lt;br /&gt;
 END                     : 2006 6 22 17 22 0&lt;br /&gt;
 &lt;br /&gt;
 FATHER_GRID_FILENAME    : D:\Projectos\MohidRun\GeneralData\batim\Tagus.dat_A&lt;br /&gt;
 NEW_GRID_FILENAME       : TagusConstSpacing.dat&lt;br /&gt;
 &lt;br /&gt;
 BASE_GROUP              : /Results/Oil/Data_2D&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D         : 1&lt;br /&gt;
 FATHER_GEOMETRY         : D:\Projectos\MohidRun\test\data\Geometry_1.dat&lt;br /&gt;
 NEW_GEOMETRY            : TagusGeometry.dat&lt;br /&gt;
 AUX_GRID_FILENAME       : TagusConstSpacing.dat&lt;br /&gt;
 AUX_OUTPUTFILENAME      : Aux_GridRegular.hdf5&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Patch several MOHID(.hdf5) files to a new grid===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION : PATCH HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION   : 3&lt;br /&gt;
 &lt;br /&gt;
 START                   : 2005 2 28 13 0 0&lt;br /&gt;
 END                     : 2005 3 1 13 0 0&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                   : 3&lt;br /&gt;
 FATHER_FILENAME         : K:\MM5output\2005022812_2005030712\MM5OUT_D1.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME    : K:\MM5output\2005022812_2005030712\grid1.dat&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                   : 2&lt;br /&gt;
 FATHER_FILENAME         : K:\MM5output\2005022812_2005030712\MM5OUT_D2.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME    : K:\MM5output\2005022812_2005030712\grid2.dat&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                   : 1&lt;br /&gt;
 FATHER_FILENAME         : K:\MM5output\2005022812_2005030712\MM5OUT_D3.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME    : K:\MM5output\2005022812_2005030712\grid3.dat&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME          : MM5Forcing.hdf5&lt;br /&gt;
 NEW_GRID_FILENAME       : K:\Simula\GeneralData\Batim\CostaPortuguesa.dat&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert an ERA40 file to MOHID(.hdf5)===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                  : CONVERT ERA40 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                : D:\Aplica\ERA40\1971ERA1973.nc&lt;br /&gt;
 OUTPUTFILENAME          : D:\Aplica\ERA40\1971ERA1973T2&lt;br /&gt;
 &lt;br /&gt;
 CONVERT_TO_ASCII        : 0&lt;br /&gt;
 CONVERT_TO_HDF5         : 1&lt;br /&gt;
 &lt;br /&gt;
 XX_VARIABLE             : longitude&lt;br /&gt;
 YY_VARIABLE             : latitude&lt;br /&gt;
 TIME_VARIABLE           : time&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert a MM5 file to MOHID(.hdf5)===&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT WRF FORMAT&lt;br /&gt;
 FILENAME                  : MMOUT_DOMAIN2&lt;br /&gt;
 TERRAIN_FILENAME          : TERRAIN_DOMAIN2&lt;br /&gt;
 OUTPUTFILENAME            : D2.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : D2.dat&lt;br /&gt;
 COMPUTE_WINDSTRESS        : 1&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY : 1&lt;br /&gt;
 COMPUTE_PRECIPITATION     : 1&lt;br /&gt;
 COMPUTE_MSLP              : 1&lt;br /&gt;
 COMPUTE_WINDMODULUS       : 1&lt;br /&gt;
 WRITE_XYZ                 : 0&lt;br /&gt;
 WRITE_TERRAIN             : 0&lt;br /&gt;
 OUTPUT_DT                 : 3600&lt;br /&gt;
 &lt;br /&gt;
 !START                     : 2010 02 15 00 00 00&lt;br /&gt;
 !END                       : 2010 02 15 06 00 00&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;&lt;br /&gt;
 air temperature&lt;br /&gt;
 atmospheric pressure&lt;br /&gt;
 downward long wave radiation&lt;br /&gt;
 latent heat&lt;br /&gt;
 sensible heat&lt;br /&gt;
 sea water temperature&lt;br /&gt;
 solar radiation&lt;br /&gt;
 top outgoing shortwave radiation&lt;br /&gt;
 upward long wave radiation&lt;br /&gt;
 wind velocity X&lt;br /&gt;
 wind velocity Y&lt;br /&gt;
 &amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert a WRF file to MOHID(.hdf5)===&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT WRF FORMAT&lt;br /&gt;
 FILENAME                  : wrfout_d01_2010-02-15_00.nc&lt;br /&gt;
 OUTPUTFILENAME            : wrfout_d01.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : wrfout_d01.dat&lt;br /&gt;
 COMPUTE_WINDSTRESS        : 1&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY : 1&lt;br /&gt;
 COMPUTE_PRECIPITATION     : 1&lt;br /&gt;
 COMPUTE_MSLP              : 1&lt;br /&gt;
 COMPUTE_WINDMODULUS       : 1&lt;br /&gt;
 WRITE_XYZ                 : 0&lt;br /&gt;
 WRITE_TERRAIN             : 0&lt;br /&gt;
 OUTPUT_DT                 : 3600&lt;br /&gt;
 &lt;br /&gt;
 START                     : 2010 02 15 00 00 00&lt;br /&gt;
 END                       : 2010 02 15 06 00 00&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;&lt;br /&gt;
 air temperature&lt;br /&gt;
 atmospheric pressure&lt;br /&gt;
 downward long wave radiation&lt;br /&gt;
 latent heat&lt;br /&gt;
 sensible heat&lt;br /&gt;
 sea water temperature&lt;br /&gt;
 solar radiation&lt;br /&gt;
 top outgoing shortwave radiation&lt;br /&gt;
 upward long wave radiation&lt;br /&gt;
 wind velocity X&lt;br /&gt;
 wind velocity Y&lt;br /&gt;
 &amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert Mercator-Ocean(.nc) to MOHID(.hdf5)===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : CONVERT MERCATOR FORMAT&lt;br /&gt;
 &lt;br /&gt;
 READ_OPTION              : 2&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : Psy2v2r1v_R20060628/MercatorR20060628.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME     : Psy2v2r1v_R20060628/MercatorGridR20060628.dat&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME : Psy2v2r1v_R20060628/MercatorGeometryR20060628.dat&lt;br /&gt;
 &lt;br /&gt;
 INPUT_GRID_FILENAME      : GridFiles/ist_meteog-gridT.nc&lt;br /&gt;
 INPUT_GRID_FILENAME_U    : GridFiles/ist_meteog-gridU.nc&lt;br /&gt;
 INPUT_GRID_FILENAME_V    : GridFiles/ist_meteog-gridV.nc&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 Psy2v2r1v_R20060628/ist_meteog-mercatorPsy2v2r1v_T_MEAN_ANA_20060621_R20060628.nc&lt;br /&gt;
 Psy2v2r1v_R20060628/ist_meteog-mercatorPsy2v2r1v_T_MEAN_ANA_20060622_R20060628.nc&lt;br /&gt;
 Psy2v2r1v_R20060628/ist_meteog-mercatorPsy2v2r1v_T_MEAN_ANA_20060623_R20060628.nc&lt;br /&gt;
 &amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert Levitus format to MOHID(.hdf5) and interpolate grid===&lt;br /&gt;
==== Convert ====&lt;br /&gt;
First convert the Levitus ASCII format to a raw HDF5 format:&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : CONVERT LEVITUS FORMAT&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : Levitus.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME     : LevitusGrid.dat&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME : LevitusGeometry.dat&lt;br /&gt;
 &lt;br /&gt;
 PERIODICITY              : monthly&lt;br /&gt;
 SPATIAL_RESOLUTION       : 0.25&lt;br /&gt;
 FILL_VALUE               : -99.9999&lt;br /&gt;
 &lt;br /&gt;
 LOWER_LEFT_CORNER        : -16.0  31&lt;br /&gt;
 UPPER_RIGHT_CORNER       :   1.   40&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : salinity&lt;br /&gt;
 ANNUAL_FILE              : DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s000hr.obj&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s001&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s002&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s003&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s004&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s005&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s006&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s007&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s008&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s009&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s010&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s011&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s012&lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : temperature&lt;br /&gt;
 ANNUAL_FILE              : DataCenter\DadosBase\Ocean\Levitus\Data\Temp\t000hr.obj&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t001&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t002&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t003&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t004&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t005&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t006&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t007&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t008&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t009&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t010&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t011&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t012&lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Extrapolate ====&lt;br /&gt;
Then extrapolate the data (still in the raw HDF5 format):&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION    : 1&lt;br /&gt;
 &lt;br /&gt;
 FATHER_FILENAME          : Levitus.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME     : LevitusGrid.dat&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : LeviTusAllPointsWithData.hdf5&lt;br /&gt;
 NEW_GRID_FILENAME        : LevitusGrid.dat&lt;br /&gt;
 &lt;br /&gt;
 START                    : -9999 1  1 0 0 0&lt;br /&gt;
 END                      : -9999 12 1 0 0 0&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D          : 1&lt;br /&gt;
 FATHER_GEOMETRY          : LevitusGeometry.dat&lt;br /&gt;
 NEW_GEOMETRY             : LevitusGeometry.dat&lt;br /&gt;
 AUX_GRID_FILENAME        : LevitusGrid.dat&lt;br /&gt;
 AUX_OUTPUTFILENAME       : AuxLeviTusAllPointsWithData.hdf5&lt;br /&gt;
 &lt;br /&gt;
 POLI_DEGREE              : 3&lt;br /&gt;
 DO_NOT_BELIEVE_MAP       : 1&lt;br /&gt;
 EXTRAPOLATE_2D           : 2&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Interpolate ====&lt;br /&gt;
Finally, interpolate to the final grid and geometry (same as the [[#Interpolate 3D MOHID(.hdf5) files to a new grid| Interpolate 3D sample]]):&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION    : 1&lt;br /&gt;
 FATHER_FILENAME          : LeviTusAllPointsWithData.hdf5&lt;br /&gt;
 OUTPUTFILENAME           : CadizMonthlyLevitus.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME     : LevitusGrid.dat&lt;br /&gt;
 NEW_GRID_FILENAME        : Algarve0.02SigmaSmooth_V3_CartMoreLayers.dat&lt;br /&gt;
 &lt;br /&gt;
 START                    : -9999 1  1 0 0 0&lt;br /&gt;
 END                      : -9999 12 1 0 0 0&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D          : 1&lt;br /&gt;
 FATHER_GEOMETRY          : LevitusGeometry.dat&lt;br /&gt;
 NEW_GEOMETRY             : Geometry_1.dat&lt;br /&gt;
 AUX_OUTPUTFILENAME       : AuxCadizMonthlyLevitus.hdf5&lt;br /&gt;
 AUX_GRID_FILENAME        : Aux12km.dat&lt;br /&gt;
 &lt;br /&gt;
 POLI_DEGREE              : 3&lt;br /&gt;
 DO_NOT_BELIEVE_MAP       : 1&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that the programme may construct a new bathymetry twice. Use this bathymetry only on the AUX_GRID_FILENAME keyword.&lt;br /&gt;
&lt;br /&gt;
===Convert Hellerman Rosenstein ASCII format to MOHID(.hdf5)  ===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : CONVERT HELLERMAN ROSENSTEIN ASCII&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : ClimatologicWindStress.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME     : ClimatologicWindStressGrid.dat&lt;br /&gt;
 &lt;br /&gt;
 PERIODICITY              : monthly&lt;br /&gt;
 SPATIAL_RESOLUTION       : 2.&lt;br /&gt;
 FILL_VALUE               : -99.9999&lt;br /&gt;
 &lt;br /&gt;
 LOWER_LEFT_CORNER        : -180  -90&lt;br /&gt;
 UPPER_RIGHT_CORNER       : 180  90&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : wind stress X&lt;br /&gt;
 FILE                     : D:\Aplica\Dados\Hellerman_Rosenstein\TAUXX.DAT&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : wind stress Y&lt;br /&gt;
 FILE                     : D:\Aplica\Dados\Hellerman_Rosenstein\TAUYY.DAT&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert ALADIN(.nc) format to MOHID(.hdf5)===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT ALADIN FORMAT&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : aladin.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : aladin_griddata.dat&lt;br /&gt;
 &lt;br /&gt;
 !Put here the name of any netcdf file for grid-data generation's sake.&lt;br /&gt;
 INPUT_GRID_FILENAME      :   D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKCLOUD_OPASYMP_19723_20088.nc&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKIR_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKPRES_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKSOLAR_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKTAIR_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKWIND_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_FLUXPRE_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_STRESSU_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_STRESSV_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_U10_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_V10_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKCLOUD_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKHUMI_OPASYMP_19723_20088.nc&lt;br /&gt;
 &amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== OceanColor modules compilation ==&lt;br /&gt;
Compiling the [[ConvertToHDF5]] tool with the OceanColor modules is more complicated than one might expect. A solution is proposed here for a release version using the Compaq Visual Fortran 6.6c. The difficulties rise because C code is embedded with a fortran interface and also, extra libraries such as hdf4 are required.&lt;br /&gt;
&lt;br /&gt;
=== Pre-requisites ===&lt;br /&gt;
&lt;br /&gt;
This is a list of prerequisites to successfully compile the tool:&lt;br /&gt;
*Compaq Visual Fortran 6.5 with patch 6.6c,&lt;br /&gt;
*VS .NET 2003 (Vc7 in particular),&lt;br /&gt;
*Hdf5 libraries ('''hdf5.lib''' '''hdf5_fortran.lib''' '''hdf5_hl.lib'''),&lt;br /&gt;
*Netcdf libraries ('''netcdf.lib''' '''netcdf_.lib'''),&lt;br /&gt;
*Hdf4 libraries ('''hd421.lib''', '''hm421.lib'''),&lt;br /&gt;
*szlib, zlib and jpeg libraries ('''szlib.lib''', '''zlib.lib''' and '''libjpeg.lib'''),&lt;br /&gt;
*the fortran source files ('''ModuleConvertModisL2.F90 ModuleConvertModisL3.F90 ModuleConvertOceanColorL2.F90'''),&lt;br /&gt;
*the C source files and their fortran interface files ('''readL2scan.c readL2Seadas.c''' and '''cdata.f crossp.f fgeonav.f''').&lt;br /&gt;
&lt;br /&gt;
=== CVF IDE configuration ===&lt;br /&gt;
# Configure everything as specified in [[Compiling with CVF]].&lt;br /&gt;
# Add the source files listed in the prerequisites above to the source files listing.&lt;br /&gt;
# Go to '''Tools--&amp;gt;Options...--&amp;gt;Directories'''. There, add the '''$DOTNET2K3/Vc7/bin''' to the '''Executable files''''; the '''$DOTNET2K3/Vc7/include''' and '''$DOTNET2K3/Vc7/PlatformSDK/include''' to the '''Include files'''; and finally, the '''$DOTNET2K3/Vc7/lib''', '''$DOTNET2K3/Vc7/PlatformSDK/lib''' and  '''$DOTNET2K3/Vc7/PlatformSDK/bin''' to the '''Library files'''.&lt;br /&gt;
# Go to '''Projects--&amp;gt;Settings--&amp;gt;Release--&amp;gt;Link--&amp;gt;Input'''. There, add the following libraries: '''netcdf.lib netcdf_.lib hd421.lib hm421.lib libjpeg.lib'''. (Make sure the hdf5 libraries as well as the szlib and zlib libraries are already mentioned).&lt;br /&gt;
&lt;br /&gt;
=== Troubleshoots ===&lt;br /&gt;
'''Q: I get unresolved external references during linkage, but I have all the libraries mentioned above included. What should I do?'''&lt;br /&gt;
&lt;br /&gt;
A: Unresolved external references can come out for two reasons:&lt;br /&gt;
#you didn't specified all the libraries required or all the paths for the default libraries or,&lt;br /&gt;
#[http://en.wikipedia.org/wiki/Name_decoration name mangling] problems. Use the [[dumpbin]] utility to the libraries to checkout which language convention they are using. If that's the problem then you need to try to get new libraries with the correct naming convention.&lt;br /&gt;
&lt;br /&gt;
That's it, you should now be able to build the [[ConvertToHdf5]] project successfully.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Q: I got a message saying the entry point _NF_PUT_ATT_REAL@28 could not be located in netcdf.dll'''&lt;br /&gt;
&lt;br /&gt;
A: copy the file netcdf.dll to the exe folder&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
*[http://www.hdfgroup.org/ HDF5 Homepage]&lt;br /&gt;
*[http://www.hdfgroup.org/ HDF4 Homepage]&lt;br /&gt;
&lt;br /&gt;
== Links ==&lt;br /&gt;
&lt;br /&gt;
*[[Module_Atmosphere]]&lt;br /&gt;
*[[Module_InterfaceWaterAir]]&lt;br /&gt;
*[[Coupling_Water-Atmosphere_User_Manual]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Tools]]&lt;br /&gt;
[[Category:Hdf5]]&lt;/div&gt;</summary>
		<author><name>Anatrancoso</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=ConvertToHDF5&amp;diff=3265</id>
		<title>ConvertToHDF5</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=ConvertToHDF5&amp;diff=3265"/>
				<updated>2010-08-19T17:17:09Z</updated>
		
		<summary type="html">&lt;p&gt;Anatrancoso: /* Convert a MM5 file to MOHID(.hdf5) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The '''ConvertToHDF5''' is an application which allows the making of several operations, called '''actions''', involving HDF5 files: conversion of data in other formats (e.g. NETCDF) to HDF5, grid interpolation, concatenation of several files.&lt;br /&gt;
&lt;br /&gt;
Running options for this application are specified by the user in a input file named [[ConvertToHDF5#Input file (ConvertToHDF5Action.dat)|'''ConvertToHDF5Action.dat''']]. Several actions can be specified in the same input file, being processed sequentially by the ConvertToHDF5 application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Introduction=&lt;br /&gt;
The operations involving HDF5 files performed by ConvertToHDF5, specified individually by an action, can be organized in:&lt;br /&gt;
&lt;br /&gt;
* [[#file management|file management]]&lt;br /&gt;
* [[#grid interpolation|grid interpolation]] and &lt;br /&gt;
* [[#format conversion|format conversion]]. &lt;br /&gt;
&lt;br /&gt;
These types and the respective actions are detailed in the next sections. &lt;br /&gt;
&lt;br /&gt;
The input file specification for each action can be found bellow in the [[#Input file (ConvertToHDF5Action.dat)|Input file (ConvertToHDF5Action.dat)]] section.&lt;br /&gt;
&lt;br /&gt;
==File management==&lt;br /&gt;
&lt;br /&gt;
===Glue files===&lt;br /&gt;
This action consists in joining or glue in a single HDF5 file two or more HDF5 files having the same HDF5 data groups and referring to time periods which come in sequence. Both sets of 2D and 3D HDF5 files can be glued.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Glue MOHID Water results files from several runs produced in continuous running of the model, for storage space economy reasons. Can be used to join data from other origins (e.g. results of meteorological models) as long as the HDF5 format is the one supported by MOHID Water.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 files to be glued. &amp;quot;Grid&amp;quot; and &amp;quot;Results&amp;quot; data groups should be equal in all these files.&lt;br /&gt;
&lt;br /&gt;
'''Output:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with glued &amp;quot;Results&amp;quot; data. &amp;quot;Residual&amp;quot; and &amp;quot;Statistics&amp;quot; HDF5 data groups are not copied to the output file since they are time period specific (different values potentially occour in each file). General statistics can be calculated for the glued HDF5 file data using tool [[HDF5Statistics]].&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#GLUES HDF5 FILES|GLUES HDF5 FILES]].&lt;br /&gt;
&lt;br /&gt;
==Grid interpolation==&lt;br /&gt;
&lt;br /&gt;
===Interpolate files===&lt;br /&gt;
This action performs the conversion of one HDF5 file data existing in one 2D or 3D spatial grid to another 2D or 3D spatial grid, creating a new HDF5 file. The interpolation is performed only for the data located a time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
The HDF5 file containing data to be interpolated is called the '''father file'''.&lt;br /&gt;
&lt;br /&gt;
In case of 3D interpolation the application conducts first the horizontal grid interpolation&lt;br /&gt;
(keeping father geometry) and only after it conducts the vertical interpolation (from father geometry to new geometry).&lt;br /&gt;
&lt;br /&gt;
Several types of 2D interpolation are available for use: bilinear, spline 2D and triangulation.&lt;br /&gt;
For vertical interpolation (used in 3D interpolation) can be supplied several polinomial degrees for interpolation.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain an HDF5 file with data for forcing or providing initial conditions for a MOHID Water model, e.g. a meteorological forcing file.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
For 2D/3D interpolation:&lt;br /&gt;
&lt;br /&gt;
- father HDF5 file;&lt;br /&gt;
&lt;br /&gt;
- father horizontal data grid, in a grid data file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
- new horizontal data grid, in a grid data file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
For 3D interpolation also needed:&lt;br /&gt;
&lt;br /&gt;
- father vertical geometry, in a geometry file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
- new vertical geometry, in a geometry file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
- auxiliary horizontal data grid, in a grid data file in the format supported by MOHID; this file is used for horizontal grid interpolation in 3D interpolation operations.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with interpolated data. In case of 3D interpolation also produced an auxiliary HDF5 file with the result of the horizontal grid interpolation, which can be inspected to check if this operation is well performed.&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#INTERPOLATE GRIDS|INTERPOLATE GRIDS]].&lt;br /&gt;
&lt;br /&gt;
===Patch files===&lt;br /&gt;
This action consists in performing an interpolation of HDF5 data between grids, as in action [[#Interpolate files|Interpolate files]], but considering more than one HDF5 file as containing data to be interpolated to the new grid and a priority scale. The interpolation is performed only for the data located in the time window specified by the user. The present version of this action operates only on 2D data.&lt;br /&gt;
&lt;br /&gt;
Each HDF5 file containing data to be interpolated is called a '''father file''' and has an user-attributed '''priority level''' to be respected in the interpolation process: for each new grid cell the ConvertToHDF5 application will look for data first on the Level 1 father file and only in the case this data is inexistent will it look for data in Level 2 file, proceeding in looking for higher level files if no data is found subsequentely.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
To obtain an HDF5 file with data from several HDF5 files each containing data with different spatial resolution and only for a specific part of the new grid. This is, for instance, the case when one is preparing a best resolution meteorological HDF5 file for forcing MOHID Water from several meteorological model domains, having different spatial resolution and span, since the best resolution data is not available for all new grid cells.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
The new horizontal data grid, in a grid data file in the format supported by MOHID, and for each father file:&lt;br /&gt;
&lt;br /&gt;
- level of priority: 1 = maximum priority, priority decreases with increasing level value;&lt;br /&gt;
&lt;br /&gt;
- data grid, in the form of a grid data file in the format supported by MOHID.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with patched data.&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#PATCH HDF5 FILES|PATCH HDF5 FILES]].&lt;br /&gt;
&lt;br /&gt;
==Format conversion==&lt;br /&gt;
&lt;br /&gt;
===Meteorological model data===&lt;br /&gt;
Mohid does not simulate explicitly the atmosphere, but needs information about atmospheric properties in time and space. This requires that atmospheric properties are supplied to MOHID Water in supported formats. These formats can be derived from meteorological data in HDF5 format. Because the results of meteorological models are accessed in different formats conversion is required. &lt;br /&gt;
&lt;br /&gt;
The formats currently convertible to HDF5 in ConvertToHDF5 include the MM5 and the ERA40. These are succintly detailed in the next sections.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====''ERA40''====&lt;br /&gt;
This format refers to the European Centre for Medium-Range Weather Forecasts (ECMWF) 40 years re-analysises results, acessed by site http://data.ecmwf.int/data/d/era40_daily/. This data is available for several meteorological variables with maximum 6 hour periodicity for days in the period from 1957-09-01 to 2002-08-31. &lt;br /&gt;
&lt;br /&gt;
ERA40 data files are supplied by ECMWF in a NetCDF format and with an user-costumized time window, periodicity (time step range from 6 hours to a day) and meteorological properties set. The ERA40 meteorological properties which are recognized by MOHID are presented bellow together with the correspondent MOHID name: &lt;br /&gt;
&lt;br /&gt;
 ---ERA40 NAME---         ---MOHID NAME---&lt;br /&gt;
   sshf                     sensible heat                &lt;br /&gt;
   slhf                     latent heat                  &lt;br /&gt;
   msl                      atmospheric pressure &lt;br /&gt;
   tcc                      cloud cover &lt;br /&gt;
   p10u                     wind velocity X&lt;br /&gt;
   p10v                     wind velocity Y&lt;br /&gt;
   p2t                      air temperature&lt;br /&gt;
   ewss                     wind stress X&lt;br /&gt;
   nsss                     wind stress Y&lt;br /&gt;
&lt;br /&gt;
The standard ConvertToHDF5 action is to convert to HDF5 the data referring to all MOHID Water recognized property available in the ERA40 file, producing an individual HDF5 file for each property. The name of each HDF5 file generated includes the ERA40 meteorological property identificator correspondent to the data contained.&lt;br /&gt;
&lt;br /&gt;
Alternatively, ConvertToHDF5 can copy to a single ASCII file the heading information concerning each meteorological variable considered in the original ERA40 file.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain an HDF5 file with data suitable for being used for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
ERA40 NetCDF file.&lt;br /&gt;
&lt;br /&gt;
'''Output:'''&lt;br /&gt;
&lt;br /&gt;
One HDF5 file for each meteorological property contained in the original NetCDF file.&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT ERA40 FORMAT|CONVERT ERA40 FORMAT]].&lt;br /&gt;
&lt;br /&gt;
====''Aladin''====&lt;br /&gt;
This format relates to Aladin meteorological model results. Some of the atmospheric property needed by MOHID Water is present in Aladin output files, enabling to run prediction simulations with MOHID Water when access to Aladin prevision files is available.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts Aladin results files from the original format to HDF5 format, allowing the easy use of these results in the MOHID framework. Conversion is only performed for the MM5 properties and the time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Produce HDF5 meteorological data usable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
Aladin netcdf results file to convert.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
An HDF5 file with Aladin results and a grid data file in MOHID format with the Aladin grid pseudo-information: a fake orography is created of 100 m depth.&lt;br /&gt;
This last file can be used to interpolate the Aladin data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]), for instance to produce an HDF5 file suitable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Compilation:'''&lt;br /&gt;
&lt;br /&gt;
Caution! The ConvertToHDF5 executable must be compiled with the [[Big-endian little-endian|Big-Endian]] option set (see compatibility in the project's settings).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT ALADIN FORMAT|CONVERT ALADIN FORMAT]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====''MM5''====&lt;br /&gt;
This format relates to the Fifth-Generation NCAR / Penn State Mesoscale Model (MM5) output files format. Almost every atmospheric property needed by MOHID Water is present in MM5 output files.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts MM5 results files from the original format to HDF5 format, allowing the easy use of these results in the MOHID framework. Conversion is only performed for the MM5 properties and the time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
Besides the conversion, the application can calculate some properties not contained in&lt;br /&gt;
the MM5 files using the available information: these are wind stress, relative humidity and mean sea level pressure.&lt;br /&gt;
&lt;br /&gt;
For conversion to be completed it is required the horizontal grid information of MM5 results which is available in special TERRAIN files.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Produce HDF5 meteorological data usable to force MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
MM5 results file to convert and MM5 TERRAIN file. The TERRAIN file supplies the MM5 results grid information. &lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
A HDF5 file with MM5 results and a grid data file in MOHID format with the MM5 grid information.&lt;br /&gt;
This last file can be used to interpolate the MM5 data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]), for instance to produce an HDF5 file suitable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Compilation:'''&lt;br /&gt;
&lt;br /&gt;
Caution! The ConvertToHDF5 executable must be compiled with the [[Big-endian little-endian|Big-Endian]] option set (see compatibility in the project's settings).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT MM5 FORMAT|CONVERT MM5 FORMAT]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====''WRF''====&lt;br /&gt;
This format relates to the Weather Research and Forecast model (WRF) output files format. Almost every atmospheric property needed by MOHID Water is present in WRF output files.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts WRF results files from the original format to HDF5 format, allowing the easy use of these results in the MOHID framework. Conversion is only performed for the WRF properties and the time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
Besides the conversion, the application can calculate some properties not contained in&lt;br /&gt;
the WRF files using the available information: these are wind stress, relative humidity and mean sea level pressure.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Produce HDF5 meteorological data usable to force MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
WRF direct output file.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
An HDF5 file with WRF results and a grid data file in MOHID format with the WRF grid information.&lt;br /&gt;
This last file can be used to interpolate the WRF data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]), for instance to produce an HDF5 file suitable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Compilation:'''&lt;br /&gt;
&lt;br /&gt;
Caution! [[PROJ4 | PROJ4]] library is needed! See [[#Compile_ModuleWRFFormat |  Compile_ModuleWRFFormat]]&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT WRF FORMAT|CONVERT WRF FORMAT]].&lt;br /&gt;
&lt;br /&gt;
===Ocean model data===&lt;br /&gt;
Ocean model data, available in diverse formats, can be used by MOHID Water to specify boundary (open ocean boundary and surface), initial conditions or for validation. These uses require that the model data is in HDF5 format and conversion is therefore needed.&lt;br /&gt;
&lt;br /&gt;
Currently the large scale ocean models formats convertible into HDF5 by ConvertToHDF5 includes MERCATOR.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====''MERCATOR''====&lt;br /&gt;
MERCATOR data files are supplied in a NetCDF format and with an user-costumized spatial window and periodicity. Water level and water properties (temperature and salinity) data is available in type T files, velocity component u data is available in type U files and velocity component v data is available in type V files. The type of data of a specific MERCATOR file is generally indicated in the file name.&lt;br /&gt;
&lt;br /&gt;
The standard ConvertToHDF5 action is to convert to HDF5 the data referring to temperature, salinity, water level, component u of velocity and component v of velocity.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain HDF5 MERCATOR data usable for forcing or validation of MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
NetCDF MERCATOR results data files and NetCDF MERCATOR grid data files. It should be provided one grid data file of each type: T, U and V. These are generally provided by the MERCATOR services together with the results files.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
One HDF5 file containing all properties contained in the recognized set of properties (temperature, salinity, water level, velocity u and velocity v) and the correspondent grid data and geometry files, containing respectively the horizontal grid and the vertical discretization of the HDF5 file. The grid data and geometry files can be used afterwards to interpolate the MERCATOR data to another grid and geometry (see [[#Interpolate files|Interpolate files]]).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT MERCATOR FORMAT|CONVERT MERCATOR FORMAT]].&lt;br /&gt;
&lt;br /&gt;
===Climatological data===&lt;br /&gt;
Climatological data can be used in MOHID Water to specify boundary (open ocean boundary and surface), initial conditions or for validation, in case more realistic data (measurements or model) data is unavailable. This data is generally supplied by producers in formats not readly usable by MOHID Water which justifies the existence of a conversion tool.&lt;br /&gt;
&lt;br /&gt;
Two climatological data format conversions are implemented in ConvertToHDF5: Levitus ocean data and Hellerman Rosenstein meteorological data.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====''Levitus''====&lt;br /&gt;
The Levitus climatology provides results for water temperature and salinity.&lt;br /&gt;
The ConvertToHDF5 action converts the climatological data for the properties and spatial window requested by the user. &lt;br /&gt;
Typically, it requires 3 steps to complete the task:&lt;br /&gt;
&lt;br /&gt;
- convert levitus format &lt;br /&gt;
&lt;br /&gt;
- extrapolate the data to the whole levitus domain(required to avoid uncoincidental coastlines) &lt;br /&gt;
&lt;br /&gt;
- interpolate with the model grid(bathymetry)&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain climatological data in HDF5 format to use as boundary forcing and/or initial condition specification in MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
Levitus climatological data files, one per property and per time period (e.g a month).&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with Levitus climatological data, grid data file with the horizontal&lt;br /&gt;
grid of the data and a geometry file with vertical discretization of the data (MOHID formats).&lt;br /&gt;
The grid data and the geometry files can be used to interpolate the climatological data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT LEVITUS FORMAT|CONVERT LEVITUS FORMAT]].&lt;br /&gt;
&lt;br /&gt;
====''Hellerman Rosenstein''====&lt;br /&gt;
This is a meteorological climatology providing wind stress. There is a file per wind stress component. Since the data refer to surface values it is a 2D field.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts the climatological data for the properties and spatial window provided by the user.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain climatological data in HDF5 format to use as meteorological forcing in MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
Hellerman Rosenstein climatological data ASCII files, one per wind stress component.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with Hellerman Rosenstein climatological data and grid data file with the horizontal&lt;br /&gt;
grid of the climatological data. This grid data file can be used to interpolate the climatological data from the original horizontal grid to a new grid (see [[#Interpolate files|Interpolate files]]).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT HELLERMAN ROSENSTEIN ASCII|CONVERT HELLERMAN ROSENSTEIN ASCII]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====''World Ocean Atlas 2005''====&lt;br /&gt;
The World Ocean Atlas (WOA) 2005 climatology provides results for water temperature, salinity and several water quality and biology properties.&lt;br /&gt;
&lt;br /&gt;
Description, Action and Input Files are described in a separate page: [[ConvertToHDF5 WOA2005]].&lt;br /&gt;
&lt;br /&gt;
==Input file (ConvertToHDF5Action.dat)==&lt;br /&gt;
===General structure===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt; (block containing instructions for running a specific action) &lt;br /&gt;
 ACTION                    : ... (intended action)&lt;br /&gt;
 ... (action specific instructions)&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : ...&lt;br /&gt;
 ...&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===GLUES HDF5 FILES===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : GLUES HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 3D_FILE                   : 0/1 (0 = 2D file, 1 = 3D file)&lt;br /&gt;
 &lt;br /&gt;
 TIME_GROUP                : ... (Default=&amp;quot;Time&amp;quot;. Other option: &amp;quot;SurfaceTime&amp;quot;.)&lt;br /&gt;
 &lt;br /&gt;
 BASE_GROUP                : ... (Default=&amp;quot;Results&amp;quot;. Other options: &amp;quot;Residual&amp;quot;, &amp;quot;SurfaceResults&amp;quot;.)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 &lt;br /&gt;
 (block of HDF5 data files)&lt;br /&gt;
 &amp;lt;&amp;lt;begin_list&amp;gt;&amp;gt;&lt;br /&gt;
 ... (path/name of HDF5 file with data to be included in glue, one per line, at least two files)&lt;br /&gt;
 ...                      &lt;br /&gt;
 &amp;lt;&amp;lt;end_list&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===INTERPOLATE GRIDS===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION     : ... (type of horizontal interpolation: 1 = Bilinear, 2 = Spline2D,&lt;br /&gt;
                                  3 = Triangulation)&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION_WINDOW      : ... ... ... ... (2D spatial window to consider for interpolation: &lt;br /&gt;
                                              Xmin Ymin Xmax Ymax; default = all domain)&lt;br /&gt;
 &lt;br /&gt;
 START                     : ... (start date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 END                       : ... (end date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D           : 0/1 (0 = 2D interpolation, 1 = 3D interpolation)&lt;br /&gt;
 &lt;br /&gt;
 FATHER_FILENAME           : ... (path/name of input HDF5 file with data to be interpolated)&lt;br /&gt;
 FATHER_GRID_FILENAME      : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization of input HDF5 file)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of output HDF5 file to be created)&lt;br /&gt;
 NEW_GRID_FILENAME         : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization intended for output HDF5 file)&lt;br /&gt;
 &lt;br /&gt;
 EXTRAPOLATE_2D            : 0/1/2/3/4/5 (2D extrapolation: 0=no extrapolation, 1=medium&lt;br /&gt;
                                      triangulation, 2=high triangulation, &lt;br /&gt;
                                      3=nearest neighbour, 4=nearest cell, &lt;br /&gt;
                                      5=constant value)&lt;br /&gt;
 &lt;br /&gt;
 EXTRAPOLATE_VALUE         : ... (name of the value to extrapolate to when EXTRAPOLATE_2D is&lt;br /&gt;
                                  set to constant value (5))&lt;br /&gt;
 &lt;br /&gt;
 DO_NOT_BELIEVE_MAP        : 0/1 (0=consider input HDF5 file map, 1=do not consider input HDF5&lt;br /&gt;
                                  file map)&lt;br /&gt;
 &lt;br /&gt;
 BASE_GROUP                : ... (name of base group of HDF5 variables containing data to be &lt;br /&gt;
                                  interpolated; default is &amp;quot;/Results&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 (if INTERPOLATION3D : 1 also required:)&lt;br /&gt;
 FATHER_GEOMETRY           : ... (path/name of file (MOHID format) with vertical discretization&lt;br /&gt;
                                  of input HDF5 file)&lt;br /&gt;
 NEW_GEOMETRY              : ... (path/name of file (MOHID format) with vertical discretization&lt;br /&gt;
                                  intended for output HDF5 file)&lt;br /&gt;
 POLI_DEGREE               : 1/... (degree of vertical interpolation: 1=linear, ...)&lt;br /&gt;
 &lt;br /&gt;
 AUX_GRID_FILENAME         : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization intended for auxiliar output HDF5 file;&lt;br /&gt;
                                  default is file provided in NEW_GRID_FILENAME)&lt;br /&gt;
 &lt;br /&gt;
 AUX_OUTPUTFILENAME        : ... (path/name of auxiliar output HDF5 file to contain result&lt;br /&gt;
                                  of horizontal grid interpolation)   &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - the file indicated in AUX_GRID_FILENAME can be different from the one indicated in&lt;br /&gt;
   NEW_GRID_FILENAME in terms of bathymetry, while the horizontal grid should be, commonly, the&lt;br /&gt;
   same: this altered bathymetry can be used to extend the water column in the original data so&lt;br /&gt;
   that the process of vertical interpolation is done easily;&lt;br /&gt;
 &lt;br /&gt;
 - in case of INTERPOLATION3D : 1, ConvertToHDF5 can generate new versions of bathymetry which &lt;br /&gt;
   are consistent with the geometry definition (extension is '.new'); there are possibly three&lt;br /&gt;
   bathymetry changes referring to father grid, new grid and aux grid (the same bathymetry is&lt;br /&gt;
   not altered twice); although initially new and aux grid are the same they can result &lt;br /&gt;
   different because of bathymetry changes;&lt;br /&gt;
 &lt;br /&gt;
 - in case the new geometry is 2D and father geometry is 3D then POLI_DEGREE : 1 &lt;br /&gt;
   (linear interpolation) should be used;&lt;br /&gt;
 &lt;br /&gt;
 - EXTRAPOLATE_2D : 1/2/3/4/5 should be considered if it is expected that the coast line is not&lt;br /&gt;
   coincidental in the father and new grids, to avoid lack of data in the interpolation&lt;br /&gt;
   process; extrapolation is performed for all cells even the land cells; &lt;br /&gt;
 &lt;br /&gt;
 - in case of DO_NOT_BELIEVE_MAP : 1 the application generates a map based on cells where&lt;br /&gt;
   interpolation results are available; this causes that if EXTRAPOLATE_2D : 1/2/3/4/5 is used&lt;br /&gt;
   the AUX_GRID_FILENAME should not have land cells in order for the new map to be concurrent&lt;br /&gt;
   with the result of extrapolation and avoid errors generation, specially if INTERPOLATION3D :&lt;br /&gt;
   1 is considered.&lt;br /&gt;
&lt;br /&gt;
===PATCH HDF5 FILES===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : PATCH HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION     : ... (type of interpolation: 3 = Triangulation, default and only&lt;br /&gt;
                                  one implemented)&lt;br /&gt;
 &lt;br /&gt;
 START                     : ... (start date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 END                       : ... (end date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 &lt;br /&gt;
 (block for each father HDF5 file, should be at least two)&lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                     : ... (integer priority level: 1 = highest, increase for lower&lt;br /&gt;
                                  priority)&lt;br /&gt;
 FATHER_FILENAME           : ... (path/name of input HDF5 file with data to be interpolated)&lt;br /&gt;
 FATHER_GRID_FILENAME      : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization of input HDF5 file)&lt;br /&gt;
 N_REMOVE_FRAME            : 0   (width, in number of cells, of frame to remove)&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of output HDF5 file to be created)&lt;br /&gt;
 NEW_GRID_FILENAME         : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization intended for output HDF5 file)&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CONVERT ERA40 FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT ERA40 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                  : ... (path/name of ERA40 NetCDF file)&lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
                                 (root of name for all files produced)&lt;br /&gt;
 &lt;br /&gt;
 CONVERT_TO_ASCII          : 0/1 (1 = convert variable heading info for ASCII file; 0 = default)&lt;br /&gt;
 CONVERT_TO_HDF5           : 0/1 (1 = convert to HDF5 file; 0 = default)&lt;br /&gt;
 GRIDTO180                 : 0/1 (1 = convert grid from [0 360] to [-180 180], 0 = default)&lt;br /&gt;
 &lt;br /&gt;
 XX_VARIABLE               : ... (name of longitude variable in the input file: usual name &lt;br /&gt;
                                  is &amp;quot;longitude&amp;quot;)&lt;br /&gt;
 YY_VARIABLE               : ... (name of longitude variable in the input file: usual name &lt;br /&gt;
                                  is &amp;quot;latitude&amp;quot;)&lt;br /&gt;
 TIME_VARIABLE             : ... (name of time variable in the input file: usual name is&lt;br /&gt;
                                  &amp;quot;time&amp;quot;)&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - either CONVERT_TO_ASCII : 1 or CONVERT_TO_HDF5 : 1 must be chosen for any action to be&lt;br /&gt;
 performed by ConvertToHDF5;&lt;br /&gt;
 &lt;br /&gt;
 - when CONVERT_TO_HDF5 : 1 an HDF5 file is produced for every variable contained in the&lt;br /&gt;
 original ERA40 file; the name of each file is composed of the name indicated on FILENAME&lt;br /&gt;
 concatenated with the ERA40 variable identifier;&lt;br /&gt;
 &lt;br /&gt;
 - to the XX_VARIABLE, YY_VARIABLE and TIME_VARIABLE keywords should generally be  &lt;br /&gt;
 specified &amp;quot;longitude&amp;quot;, &amp;quot;latitude&amp;quot; and &amp;quot;time&amp;quot;, respectively; the option to&lt;br /&gt;
 include as keywords was made only to make the application robust to future variable name&lt;br /&gt;
 changes.&lt;br /&gt;
&lt;br /&gt;
===CONVERT ALADIN FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT ALADIN FORMAT&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : aladin.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : aladin_griddata.dat&lt;br /&gt;
 &lt;br /&gt;
 !Put here the name of any netcdf file for grid-data generation's sake.&lt;br /&gt;
 INPUT_GRID_FILENAME      :   D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKCLOUD_OPASYMP_19723_20088.nc&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 (path to aladin netcdf file)\ALADIN_BULKIR_OPASYMP_19723_20088.nc&lt;br /&gt;
 ...&lt;br /&gt;
 &amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - the name of each Aladin property to convert in &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;...&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt; block must conform to the following variables&lt;br /&gt;
 &lt;br /&gt;
           ---ALADIN NAME---    ---MOHID NAME---&lt;br /&gt;
             soclotot            CloudCover_&lt;br /&gt;
             sohumrel            RelativeHumidity_&lt;br /&gt;
             sofluxir            NonSolarFlux_&lt;br /&gt;
             sosspres            AtmosphericPressure_&lt;br /&gt;
             sosolarf            SolarRadiation_&lt;br /&gt;
             sotemair            AirTemperature_&lt;br /&gt;
             sowinmod            WindModulus_&lt;br /&gt;
             sowaprec            Precipitation_&lt;br /&gt;
             sozotaux            WindStressX_&lt;br /&gt;
             sometauy            WindStressY_&lt;br /&gt;
             sowindu10           WindVelocityX_&lt;br /&gt;
             sowindv10           WindVelocityY_&lt;br /&gt;
&lt;br /&gt;
===CONVERT MM5 FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT MM5 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                  : ... (path/name of MM5 file)&lt;br /&gt;
 TERRAIN_FILENAME          : ... (path/name of MM5 TERRAIN file)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME               : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME         : ... (path/name of grid data file with horizontal grid of MM5 data to be created)&lt;br /&gt;
 &lt;br /&gt;
 COMPUTE_WINDSTRESS           : 0/1 (1 = compute and write wind stress field; 0 = default)&lt;br /&gt;
 COMPUTE_WINDMODULUS          : 0/1 (1 = compute wind modulus; 0 = default)&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY    : 0/1 (1 = compute and write 2-meter relative humidity field; 0 = default)&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY_3D : 0/1 (1 = compute and write 3D relative humidity field; 0 = default)&lt;br /&gt;
 COMPUTE_PRECIPITATION        : 0/1 (1 = compute and write precipitation field; 0 = default)&lt;br /&gt;
 COMPUTE_MSLP                 : 0/1 (1 = compute and write mean sea level pressure field; 0 = default)&lt;br /&gt;
 &lt;br /&gt;
 WRITE_XYZ                    : 0/1 (1 = write xyz center grid cells; 0 = default)&lt;br /&gt;
 WRITE_TERRAIN                : 0/1 (1 = write MM5 TERRAIN fields; 0 = default)&lt;br /&gt;
 &lt;br /&gt;
 START                        : ... (start date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 END                          : ... (end date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
  &lt;br /&gt;
 (block of MM5 properties to convert)&lt;br /&gt;
 &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;&lt;br /&gt;
 ... (name of MM5 property to convert do HDF5 format, one per line)&lt;br /&gt;
 ... &lt;br /&gt;
 &amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - the name of each MM5 property to convert in &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;...&amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt; block must&lt;br /&gt;
 conform to the MOHID designation specified in code of ModuleGlobalData; the correspondence is &lt;br /&gt;
 the following (see [[Module_InterfaceWaterAir]] for a more detailed explanation).&lt;br /&gt;
 &lt;br /&gt;
           ---MM5 NAME---    ---MOHID NAME---&lt;br /&gt;
             T2             air temperature&lt;br /&gt;
             PSTARCRS       atmospheric pressure&lt;br /&gt;
             U10            wind velocity X&lt;br /&gt;
             V10            wind velocity Y&lt;br /&gt;
             UST            wind shear velocity&lt;br /&gt;
             LHFLUX         latent heat&lt;br /&gt;
             SWDOWN         sensible heat&lt;br /&gt;
             SWDOWN         solar radiation&lt;br /&gt;
             LWDOWN         infrared radiation&lt;br /&gt;
             SWOUT          top outgoing shortwave radiation&lt;br /&gt;
             LWOUT          top outgoing longwave radiation&lt;br /&gt;
             SOIL T 1       soil temperature layer 1&lt;br /&gt;
             SOIL T 1       soil temperature layer 2&lt;br /&gt;
             SOIL T 1       soil temperature layer 3&lt;br /&gt;
             SOIL T 1       soil temperature layer 4&lt;br /&gt;
             SOIL T 1       soil temperature layer 5&lt;br /&gt;
             SOIL T 1       soil temperature layer 6&lt;br /&gt;
             Q2             2-meter mixing ratio&lt;br /&gt;
             TSEASFC        sea water temperature&lt;br /&gt;
             PBL HGT        PBL height&lt;br /&gt;
             PBL REGIME     PBL regime&lt;br /&gt;
             RAIN CON       accumulated convective precipitation        (cm)&lt;br /&gt;
             RAIN NON       accumulated non-convective precipitation    (cm)&lt;br /&gt;
             GROUND T       ground temperature&lt;br /&gt;
             RES TEMP       infinite reservoir slab temperature&lt;br /&gt;
             U              wind velocity X_3D&lt;br /&gt;
             V              wind velocity Y_3D&lt;br /&gt;
             W              wind velocity Z_3D&lt;br /&gt;
             T              air temperature_3D&lt;br /&gt;
             PP             atmospheric pressure_3D&lt;br /&gt;
             Q              mixing ratio_3D&lt;br /&gt;
             CLW            cloud water mixing ratio_3D&lt;br /&gt;
             RNW            rain water mixing ratio_3D&lt;br /&gt;
             ICE            cloud ice mixing ratio_3D&lt;br /&gt;
             SNOW           snow mixing ratio_3D&lt;br /&gt;
             RAD TEND       atmospheric radiation tendency_3D&lt;br /&gt;
&lt;br /&gt;
===CONVERT WRF FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                       : CONVERT WRF FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                     : ... (path/name of WRF file)&lt;br /&gt;
 OUTPUTFILENAME               : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME         : ... (path/name of grid data file with horizontal grid of WRF data&lt;br /&gt;
                                     to be created)&lt;br /&gt;
 &lt;br /&gt;
 COMPUTE_WINDSTRESS           : 0/1 (1 = compute and write wind stress field; 0 = default)&lt;br /&gt;
 COMPUTE_WINDMODULUS          : 0/1 (1 = compute wind modulus; 0 = default)&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY    : 0/1 (1 = compute and write 2-meter relative humidity field; 0 = default)&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY_3D : 0/1 (1 = compute and write 3D relative humidity field; 0 = default)&lt;br /&gt;
 COMPUTE_PRECIPITATION        : 0/1 (1 = compute and write precipitation field; 0 = default)&lt;br /&gt;
 COMPUTE_MSLP_MM5             : 0/1 (1 = compute mean sea level pressure with MM5toGrads algorithm; 0 = default)&lt;br /&gt;
 COMPUTE_MSLP_WRF             : 0/1 (1 = compute mean sea level pressure with ARWPost algorithm; 0 = default)&lt;br /&gt;
 &lt;br /&gt;
 WRITE_XYZ                    : 0/1 (1 = write xyz center grid cells; 0 = default)&lt;br /&gt;
 WRITE_TERRAIN                : 0/1 (1 = write MM5 TERRAIN fields; 0 = default)&lt;br /&gt;
 OUTPUT_DT                    : real (DT interval in seconds between each output; default = 0.0)&lt;br /&gt;
 &lt;br /&gt;
 START                        : ... (start date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 END                          : ... (end date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
  &lt;br /&gt;
 (block of properties to convert)&lt;br /&gt;
 &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;&lt;br /&gt;
 ... (name of property to convert do HDF5 format, one per line)&lt;br /&gt;
 ... &lt;br /&gt;
 &amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
  &lt;br /&gt;
 - the name of each property to convert in &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;...&amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt; block must conform to the MOHID &lt;br /&gt;
   designation specified in code of ModuleGlobalData; the correspondence to WRF is in function &lt;br /&gt;
   VariableIsToRead in ModuleWRFFormat. Conversion is not direct since WRF outputs tendencies and not  &lt;br /&gt;
   total values. &lt;br /&gt;
 &lt;br /&gt;
 - Caution: This action is not extensively tested.&lt;br /&gt;
&lt;br /&gt;
===CONVERT MERCATOR FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT MERCATOR FORMAT&lt;br /&gt;
 &lt;br /&gt;
 READ_OPTION               : 1/2/3/4 (version of MERCATOR files)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : ... (path/name of grid data with horizontal discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME  : ... (path/name of geometry file with vertical discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 &lt;br /&gt;
 (if READ_OPTION : 1:)&lt;br /&gt;
 BASE_BULLETIN             : ...&lt;br /&gt;
 DATES_FILE                : ...&lt;br /&gt;
 NUM_DATES                 : ... &lt;br /&gt;
 &lt;br /&gt;
 (if READ_OPTION : 2/3:)&lt;br /&gt;
 INPUT_GRID_FILENAME       : ... (path/name of file with horizontal discretization of water&lt;br /&gt;
                                  properties and water level data)&lt;br /&gt;
 (if READ_OPTION : 2:)&lt;br /&gt;
 INPUT_GRID_FILENAME_U     : ... (path/name of file with horizontal discretization of velocity&lt;br /&gt;
                                  component U data)&lt;br /&gt;
 INPUT_GRID_FILENAME_V     : ... (path/name of file with horizontal discretization of velocity&lt;br /&gt;
                                  component V data)&lt;br /&gt;
 &lt;br /&gt;
 (if READ_OPTION : 3:)&lt;br /&gt;
 INPUT_BATHY_FILENAME      : ... (path/name of file with bathymetry)&lt;br /&gt;
     &lt;br /&gt;
 (if READ_OPTION : 3/4:)&lt;br /&gt;
 CALC_BAROTROPIC_VEL       : 0/1 (1 = calculate barotropic velocity, 0 = not calculate; &lt;br /&gt;
                                  default = 0)&lt;br /&gt;
 &lt;br /&gt;
 (if CALC_BAROTROPIC_VEL : 1 and READ_OPTION : 3:)&lt;br /&gt;
 INPUT_MESH_ZGRID_FILENAME : ... (path/name of file with information about layers ticknesses)&lt;br /&gt;
 &lt;br /&gt;
 (block of MERCATOR data files)&lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 ... (path/name of MERCATOR NetCDF data file, one per line, can be several)&lt;br /&gt;
 ... &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CONVERT LEVITUS FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT LEVITUS FORMAT&lt;br /&gt;
  &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : ... (path/name of grid data with horizontal discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME  : ... (path/name of geometry file with vertical discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 &lt;br /&gt;
 PERIODICITY               : ... (periodicity of Levitus data: &amp;quot;monthly&amp;quot;/&amp;quot;annual&amp;quot;; default is&lt;br /&gt;
                                  &amp;quot;monthly&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 SPATIAL_RESOLUTION        : ... (spatial resolution (degrees) of horizontal Levitus grid)&lt;br /&gt;
 &lt;br /&gt;
 FILL_VALUE                : ... (real value identificator for missing data; default is &lt;br /&gt;
                                  &amp;quot;-99.999900&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 (definition of spatial window to be present in output HDF5 file)&lt;br /&gt;
 LOWER_LEFT_CORNER         : ... ... (longitude and latitude (degrees) of south west corner)&lt;br /&gt;
 UPPER_RIGHT_CORNER        : ... ... (longitude and latitude (degrees) of north east corner)&lt;br /&gt;
 &lt;br /&gt;
 (block for each water property to be present in output HDF5 file, can be several)&lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                      : ... (name of property)&lt;br /&gt;
 ANNUAL_FILE               : ... (path/name of Levitus annual file)&lt;br /&gt;
 &lt;br /&gt;
 (block of Levitus data files)&lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 ... (path/name of Levitus data file (e.g. a monthly data file), one per line, can be several)&lt;br /&gt;
 ... &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CONVERT HELLERMAN ROSENSTEIN ASCII===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT HELLERMAN ROSENSTEIN ASCII&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : ... (path/name of grid data with horizontal discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
  &lt;br /&gt;
 PERIODICITY               : ... (periodicity of Hellerman Rosenstein data: &amp;quot;monthly&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 SPATIAL_RESOLUTION        : ... (spatial resolution (degrees) of horizontal Hellerman&lt;br /&gt;
                                  Rosenstein grid: default and only allowed value is &amp;quot;2.&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 FILL_VALUE                : ... (real value identificator for missing data; default is &lt;br /&gt;
                                  &amp;quot;-99.999900&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 (definition of spatial window to be present in output HDF5 file)&lt;br /&gt;
 LOWER_LEFT_CORNER         : ... ... (longitude and latitude (degrees) of south west corner)&lt;br /&gt;
 UPPER_RIGHT_CORNER        : ... ... (longitude and latitude (degrees) of north east corner)&lt;br /&gt;
   &lt;br /&gt;
 (block for each Hellerman Rosenstein data file)&lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                      : ... (name of property: &amp;quot;wind stress X&amp;quot;/&amp;quot;wind stress Y&amp;quot;)&lt;br /&gt;
 FILE                      : ... (path/name Hellerman Rosenstein file)&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Samples==&lt;br /&gt;
All sample files are named ''ConvertToHDF5Action.dat''.&lt;br /&gt;
&lt;br /&gt;
===Glue several MOHID(.hdf5) files===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : GLUES HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : SurfaceHydro_OP.hdf5&lt;br /&gt;
  &lt;br /&gt;
 &amp;lt;&amp;lt;begin_list&amp;gt;&amp;gt;&lt;br /&gt;
 D:\Projectos\SurfaceHydrodynamic_21.hdf5&lt;br /&gt;
 D:\Projectos\SurfaceHydrodynamic_22.hdf5&lt;br /&gt;
 &amp;lt;&amp;lt;end_list&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Interpolate 2D MOHID(.hdf5) files to a new grid===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION    : 1&lt;br /&gt;
 FATHER_FILENAME          : D:\Projectos\MohidRun\test\res\Lagrangian_1.hdf5 &lt;br /&gt;
 OUTPUTFILENAME           : OilSpillThickness_GridRegular.hdf5&lt;br /&gt;
  &lt;br /&gt;
 START                    : 2006 6 21 17 22 30&lt;br /&gt;
 END                      : 2006 6 22 17 22 0&lt;br /&gt;
  &lt;br /&gt;
 FATHER_GRID_FILENAME     : D:\Projectos\MohidRun\GeneralData\batim\Tagus.dat_A&lt;br /&gt;
 NEW_GRID_FILENAME        : TagusConstSpacing.dat&lt;br /&gt;
  &lt;br /&gt;
 BASE_GROUP               : /Results/Oil/Data_2D&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Interpolate 3D MOHID(.hdf5) files to a new grid===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION   : 1&lt;br /&gt;
 FATHER_FILENAME         : D:\Projectos\MohidRun\test\res\Lagrangian_1.hdf5 &lt;br /&gt;
 OUTPUTFILENAME          : OilSpillThickness_GridRegular.hdf5&lt;br /&gt;
 &lt;br /&gt;
 START                   : 2006 6 21 17 22 30&lt;br /&gt;
 END                     : 2006 6 22 17 22 0&lt;br /&gt;
 &lt;br /&gt;
 FATHER_GRID_FILENAME    : D:\Projectos\MohidRun\GeneralData\batim\Tagus.dat_A&lt;br /&gt;
 NEW_GRID_FILENAME       : TagusConstSpacing.dat&lt;br /&gt;
 &lt;br /&gt;
 BASE_GROUP              : /Results/Oil/Data_2D&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D         : 1&lt;br /&gt;
 FATHER_GEOMETRY         : D:\Projectos\MohidRun\test\data\Geometry_1.dat&lt;br /&gt;
 NEW_GEOMETRY            : TagusGeometry.dat&lt;br /&gt;
 AUX_GRID_FILENAME       : TagusConstSpacing.dat&lt;br /&gt;
 AUX_OUTPUTFILENAME      : Aux_GridRegular.hdf5&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Patch several MOHID(.hdf5) files to a new grid===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION : PATCH HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION   : 3&lt;br /&gt;
 &lt;br /&gt;
 START                   : 2005 2 28 13 0 0&lt;br /&gt;
 END                     : 2005 3 1 13 0 0&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                   : 3&lt;br /&gt;
 FATHER_FILENAME         : K:\MM5output\2005022812_2005030712\MM5OUT_D1.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME    : K:\MM5output\2005022812_2005030712\grid1.dat&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                   : 2&lt;br /&gt;
 FATHER_FILENAME         : K:\MM5output\2005022812_2005030712\MM5OUT_D2.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME    : K:\MM5output\2005022812_2005030712\grid2.dat&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                   : 1&lt;br /&gt;
 FATHER_FILENAME         : K:\MM5output\2005022812_2005030712\MM5OUT_D3.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME    : K:\MM5output\2005022812_2005030712\grid3.dat&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME          : MM5Forcing.hdf5&lt;br /&gt;
 NEW_GRID_FILENAME       : K:\Simula\GeneralData\Batim\CostaPortuguesa.dat&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert an ERA40 file to MOHID(.hdf5)===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                  : CONVERT ERA40 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                : D:\Aplica\ERA40\1971ERA1973.nc&lt;br /&gt;
 OUTPUTFILENAME          : D:\Aplica\ERA40\1971ERA1973T2&lt;br /&gt;
 &lt;br /&gt;
 CONVERT_TO_ASCII        : 0&lt;br /&gt;
 CONVERT_TO_HDF5         : 1&lt;br /&gt;
 &lt;br /&gt;
 XX_VARIABLE             : longitude&lt;br /&gt;
 YY_VARIABLE             : latitude&lt;br /&gt;
 TIME_VARIABLE           : time&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert a MM5 file to MOHID(.hdf5)===&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT WRF FORMAT&lt;br /&gt;
 FILENAME                  : wrfout_d01_2010-02-15_00:00:00&lt;br /&gt;
 OUTPUTFILENAME            : wrfout_d01.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : wrfout_d01.dat&lt;br /&gt;
 COMPUTE_WINDSTRESS        : 1&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY : 1&lt;br /&gt;
 COMPUTE_PRECIPITATION     : 1&lt;br /&gt;
 COMPUTE_MSLP              : 1&lt;br /&gt;
 COMPUTE_WINDMODULUS       : 1&lt;br /&gt;
 WRITE_XYZ                 : 0&lt;br /&gt;
 WRITE_TERRAIN             : 0&lt;br /&gt;
 OUTPUT_DT                 : 3600&lt;br /&gt;
 &lt;br /&gt;
 START                     : 2010 02 15 00 00 00&lt;br /&gt;
 END                       : 2010 02 15 06 00 00&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;&lt;br /&gt;
 air temperature&lt;br /&gt;
 atmospheric pressure&lt;br /&gt;
 downward long wave radiation&lt;br /&gt;
 latent heat&lt;br /&gt;
 sensible heat&lt;br /&gt;
 sea water temperature&lt;br /&gt;
 solar radiation&lt;br /&gt;
 top outgoing shortwave radiation&lt;br /&gt;
 upward long wave radiation&lt;br /&gt;
 wind velocity X&lt;br /&gt;
 wind velocity Y&lt;br /&gt;
 &amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert Mercator-Ocean(.nc) to MOHID(.hdf5)===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : CONVERT MERCATOR FORMAT&lt;br /&gt;
 &lt;br /&gt;
 READ_OPTION              : 2&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : Psy2v2r1v_R20060628/MercatorR20060628.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME     : Psy2v2r1v_R20060628/MercatorGridR20060628.dat&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME : Psy2v2r1v_R20060628/MercatorGeometryR20060628.dat&lt;br /&gt;
 &lt;br /&gt;
 INPUT_GRID_FILENAME      : GridFiles/ist_meteog-gridT.nc&lt;br /&gt;
 INPUT_GRID_FILENAME_U    : GridFiles/ist_meteog-gridU.nc&lt;br /&gt;
 INPUT_GRID_FILENAME_V    : GridFiles/ist_meteog-gridV.nc&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 Psy2v2r1v_R20060628/ist_meteog-mercatorPsy2v2r1v_T_MEAN_ANA_20060621_R20060628.nc&lt;br /&gt;
 Psy2v2r1v_R20060628/ist_meteog-mercatorPsy2v2r1v_T_MEAN_ANA_20060622_R20060628.nc&lt;br /&gt;
 Psy2v2r1v_R20060628/ist_meteog-mercatorPsy2v2r1v_T_MEAN_ANA_20060623_R20060628.nc&lt;br /&gt;
 &amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert Levitus format to MOHID(.hdf5) and interpolate grid===&lt;br /&gt;
==== Convert ====&lt;br /&gt;
First convert the Levitus ASCII format to a raw HDF5 format:&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : CONVERT LEVITUS FORMAT&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : Levitus.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME     : LevitusGrid.dat&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME : LevitusGeometry.dat&lt;br /&gt;
 &lt;br /&gt;
 PERIODICITY              : monthly&lt;br /&gt;
 SPATIAL_RESOLUTION       : 0.25&lt;br /&gt;
 FILL_VALUE               : -99.9999&lt;br /&gt;
 &lt;br /&gt;
 LOWER_LEFT_CORNER        : -16.0  31&lt;br /&gt;
 UPPER_RIGHT_CORNER       :   1.   40&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : salinity&lt;br /&gt;
 ANNUAL_FILE              : DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s000hr.obj&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s001&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s002&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s003&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s004&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s005&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s006&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s007&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s008&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s009&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s010&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s011&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s012&lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : temperature&lt;br /&gt;
 ANNUAL_FILE              : DataCenter\DadosBase\Ocean\Levitus\Data\Temp\t000hr.obj&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t001&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t002&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t003&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t004&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t005&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t006&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t007&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t008&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t009&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t010&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t011&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t012&lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Extrapolate ====&lt;br /&gt;
Then extrapolate the data (still in the raw HDF5 format):&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION    : 1&lt;br /&gt;
 &lt;br /&gt;
 FATHER_FILENAME          : Levitus.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME     : LevitusGrid.dat&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : LeviTusAllPointsWithData.hdf5&lt;br /&gt;
 NEW_GRID_FILENAME        : LevitusGrid.dat&lt;br /&gt;
 &lt;br /&gt;
 START                    : -9999 1  1 0 0 0&lt;br /&gt;
 END                      : -9999 12 1 0 0 0&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D          : 1&lt;br /&gt;
 FATHER_GEOMETRY          : LevitusGeometry.dat&lt;br /&gt;
 NEW_GEOMETRY             : LevitusGeometry.dat&lt;br /&gt;
 AUX_GRID_FILENAME        : LevitusGrid.dat&lt;br /&gt;
 AUX_OUTPUTFILENAME       : AuxLeviTusAllPointsWithData.hdf5&lt;br /&gt;
 &lt;br /&gt;
 POLI_DEGREE              : 3&lt;br /&gt;
 DO_NOT_BELIEVE_MAP       : 1&lt;br /&gt;
 EXTRAPOLATE_2D           : 2&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Interpolate ====&lt;br /&gt;
Finally, interpolate to the final grid and geometry (same as the [[#Interpolate 3D MOHID(.hdf5) files to a new grid| Interpolate 3D sample]]):&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION    : 1&lt;br /&gt;
 FATHER_FILENAME          : LeviTusAllPointsWithData.hdf5&lt;br /&gt;
 OUTPUTFILENAME           : CadizMonthlyLevitus.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME     : LevitusGrid.dat&lt;br /&gt;
 NEW_GRID_FILENAME        : Algarve0.02SigmaSmooth_V3_CartMoreLayers.dat&lt;br /&gt;
 &lt;br /&gt;
 START                    : -9999 1  1 0 0 0&lt;br /&gt;
 END                      : -9999 12 1 0 0 0&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D          : 1&lt;br /&gt;
 FATHER_GEOMETRY          : LevitusGeometry.dat&lt;br /&gt;
 NEW_GEOMETRY             : Geometry_1.dat&lt;br /&gt;
 AUX_OUTPUTFILENAME       : AuxCadizMonthlyLevitus.hdf5&lt;br /&gt;
 AUX_GRID_FILENAME        : Aux12km.dat&lt;br /&gt;
 &lt;br /&gt;
 POLI_DEGREE              : 3&lt;br /&gt;
 DO_NOT_BELIEVE_MAP       : 1&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that the programme may construct a new bathymetry twice. Use this bathymetry only on the AUX_GRID_FILENAME keyword.&lt;br /&gt;
&lt;br /&gt;
===Convert Hellerman Rosenstein ASCII format to MOHID(.hdf5)  ===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : CONVERT HELLERMAN ROSENSTEIN ASCII&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : ClimatologicWindStress.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME     : ClimatologicWindStressGrid.dat&lt;br /&gt;
 &lt;br /&gt;
 PERIODICITY              : monthly&lt;br /&gt;
 SPATIAL_RESOLUTION       : 2.&lt;br /&gt;
 FILL_VALUE               : -99.9999&lt;br /&gt;
 &lt;br /&gt;
 LOWER_LEFT_CORNER        : -180  -90&lt;br /&gt;
 UPPER_RIGHT_CORNER       : 180  90&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : wind stress X&lt;br /&gt;
 FILE                     : D:\Aplica\Dados\Hellerman_Rosenstein\TAUXX.DAT&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : wind stress Y&lt;br /&gt;
 FILE                     : D:\Aplica\Dados\Hellerman_Rosenstein\TAUYY.DAT&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert ALADIN(.nc) format to MOHID(.hdf5)===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT ALADIN FORMAT&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : aladin.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : aladin_griddata.dat&lt;br /&gt;
 &lt;br /&gt;
 !Put here the name of any netcdf file for grid-data generation's sake.&lt;br /&gt;
 INPUT_GRID_FILENAME      :   D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKCLOUD_OPASYMP_19723_20088.nc&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKIR_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKPRES_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKSOLAR_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKTAIR_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKWIND_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_FLUXPRE_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_STRESSU_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_STRESSV_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_U10_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_V10_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKCLOUD_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKHUMI_OPASYMP_19723_20088.nc&lt;br /&gt;
 &amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== OceanColor modules compilation ==&lt;br /&gt;
Compiling the [[ConvertToHDF5]] tool with the OceanColor modules is more complicated than one might expect. A solution is proposed here for a release version using the Compaq Visual Fortran 6.6c. The difficulties rise because C code is embedded with a fortran interface and also, extra libraries such as hdf4 are required.&lt;br /&gt;
&lt;br /&gt;
=== Pre-requisites ===&lt;br /&gt;
&lt;br /&gt;
This is a list of prerequisites to successfully compile the tool:&lt;br /&gt;
*Compaq Visual Fortran 6.5 with patch 6.6c,&lt;br /&gt;
*VS .NET 2003 (Vc7 in particular),&lt;br /&gt;
*Hdf5 libraries ('''hdf5.lib''' '''hdf5_fortran.lib''' '''hdf5_hl.lib'''),&lt;br /&gt;
*Netcdf libraries ('''netcdf.lib''' '''netcdf_.lib'''),&lt;br /&gt;
*Hdf4 libraries ('''hd421.lib''', '''hm421.lib'''),&lt;br /&gt;
*szlib, zlib and jpeg libraries ('''szlib.lib''', '''zlib.lib''' and '''libjpeg.lib'''),&lt;br /&gt;
*the fortran source files ('''ModuleConvertModisL2.F90 ModuleConvertModisL3.F90 ModuleConvertOceanColorL2.F90'''),&lt;br /&gt;
*the C source files and their fortran interface files ('''readL2scan.c readL2Seadas.c''' and '''cdata.f crossp.f fgeonav.f''').&lt;br /&gt;
&lt;br /&gt;
=== CVF IDE configuration ===&lt;br /&gt;
# Configure everything as specified in [[Compiling with CVF]].&lt;br /&gt;
# Add the source files listed in the prerequisites above to the source files listing.&lt;br /&gt;
# Go to '''Tools--&amp;gt;Options...--&amp;gt;Directories'''. There, add the '''$DOTNET2K3/Vc7/bin''' to the '''Executable files''''; the '''$DOTNET2K3/Vc7/include''' and '''$DOTNET2K3/Vc7/PlatformSDK/include''' to the '''Include files'''; and finally, the '''$DOTNET2K3/Vc7/lib''', '''$DOTNET2K3/Vc7/PlatformSDK/lib''' and  '''$DOTNET2K3/Vc7/PlatformSDK/bin''' to the '''Library files'''.&lt;br /&gt;
# Go to '''Projects--&amp;gt;Settings--&amp;gt;Release--&amp;gt;Link--&amp;gt;Input'''. There, add the following libraries: '''netcdf.lib netcdf_.lib hd421.lib hm421.lib libjpeg.lib'''. (Make sure the hdf5 libraries as well as the szlib and zlib libraries are already mentioned).&lt;br /&gt;
&lt;br /&gt;
=== Troubleshoots ===&lt;br /&gt;
'''Q: I get unresolved external references during linkage, but I have all the libraries mentioned above included. What should I do?'''&lt;br /&gt;
&lt;br /&gt;
A: Unresolved external references can come out for two reasons:&lt;br /&gt;
#you didn't specified all the libraries required or all the paths for the default libraries or,&lt;br /&gt;
#[http://en.wikipedia.org/wiki/Name_decoration name mangling] problems. Use the [[dumpbin]] utility to the libraries to checkout which language convention they are using. If that's the problem then you need to try to get new libraries with the correct naming convention.&lt;br /&gt;
&lt;br /&gt;
That's it, you should now be able to build the [[ConvertToHdf5]] project successfully.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Q: I got a message saying the entry point _NF_PUT_ATT_REAL@28 could not be located in netcdf.dll'''&lt;br /&gt;
&lt;br /&gt;
A: copy the file netcdf.dll to the exe folder&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
*[http://www.hdfgroup.org/ HDF5 Homepage]&lt;br /&gt;
*[http://www.hdfgroup.org/ HDF4 Homepage]&lt;br /&gt;
&lt;br /&gt;
== Links ==&lt;br /&gt;
&lt;br /&gt;
*[[Module_Atmosphere]]&lt;br /&gt;
*[[Module_InterfaceWaterAir]]&lt;br /&gt;
*[[Coupling_Water-Atmosphere_User_Manual]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Tools]]&lt;br /&gt;
[[Category:Hdf5]]&lt;/div&gt;</summary>
		<author><name>Anatrancoso</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=ConvertToHDF5&amp;diff=3264</id>
		<title>ConvertToHDF5</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=ConvertToHDF5&amp;diff=3264"/>
				<updated>2010-08-19T17:16:57Z</updated>
		
		<summary type="html">&lt;p&gt;Anatrancoso: /* Convert a MM5 file to MOHID(.hdf5) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The '''ConvertToHDF5''' is an application which allows the making of several operations, called '''actions''', involving HDF5 files: conversion of data in other formats (e.g. NETCDF) to HDF5, grid interpolation, concatenation of several files.&lt;br /&gt;
&lt;br /&gt;
Running options for this application are specified by the user in a input file named [[ConvertToHDF5#Input file (ConvertToHDF5Action.dat)|'''ConvertToHDF5Action.dat''']]. Several actions can be specified in the same input file, being processed sequentially by the ConvertToHDF5 application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Introduction=&lt;br /&gt;
The operations involving HDF5 files performed by ConvertToHDF5, specified individually by an action, can be organized in:&lt;br /&gt;
&lt;br /&gt;
* [[#file management|file management]]&lt;br /&gt;
* [[#grid interpolation|grid interpolation]] and &lt;br /&gt;
* [[#format conversion|format conversion]]. &lt;br /&gt;
&lt;br /&gt;
These types and the respective actions are detailed in the next sections. &lt;br /&gt;
&lt;br /&gt;
The input file specification for each action can be found bellow in the [[#Input file (ConvertToHDF5Action.dat)|Input file (ConvertToHDF5Action.dat)]] section.&lt;br /&gt;
&lt;br /&gt;
==File management==&lt;br /&gt;
&lt;br /&gt;
===Glue files===&lt;br /&gt;
This action consists in joining or glue in a single HDF5 file two or more HDF5 files having the same HDF5 data groups and referring to time periods which come in sequence. Both sets of 2D and 3D HDF5 files can be glued.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Glue MOHID Water results files from several runs produced in continuous running of the model, for storage space economy reasons. Can be used to join data from other origins (e.g. results of meteorological models) as long as the HDF5 format is the one supported by MOHID Water.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 files to be glued. &amp;quot;Grid&amp;quot; and &amp;quot;Results&amp;quot; data groups should be equal in all these files.&lt;br /&gt;
&lt;br /&gt;
'''Output:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with glued &amp;quot;Results&amp;quot; data. &amp;quot;Residual&amp;quot; and &amp;quot;Statistics&amp;quot; HDF5 data groups are not copied to the output file since they are time period specific (different values potentially occour in each file). General statistics can be calculated for the glued HDF5 file data using tool [[HDF5Statistics]].&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#GLUES HDF5 FILES|GLUES HDF5 FILES]].&lt;br /&gt;
&lt;br /&gt;
==Grid interpolation==&lt;br /&gt;
&lt;br /&gt;
===Interpolate files===&lt;br /&gt;
This action performs the conversion of one HDF5 file data existing in one 2D or 3D spatial grid to another 2D or 3D spatial grid, creating a new HDF5 file. The interpolation is performed only for the data located a time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
The HDF5 file containing data to be interpolated is called the '''father file'''.&lt;br /&gt;
&lt;br /&gt;
In case of 3D interpolation the application conducts first the horizontal grid interpolation&lt;br /&gt;
(keeping father geometry) and only after it conducts the vertical interpolation (from father geometry to new geometry).&lt;br /&gt;
&lt;br /&gt;
Several types of 2D interpolation are available for use: bilinear, spline 2D and triangulation.&lt;br /&gt;
For vertical interpolation (used in 3D interpolation) can be supplied several polinomial degrees for interpolation.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain an HDF5 file with data for forcing or providing initial conditions for a MOHID Water model, e.g. a meteorological forcing file.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
For 2D/3D interpolation:&lt;br /&gt;
&lt;br /&gt;
- father HDF5 file;&lt;br /&gt;
&lt;br /&gt;
- father horizontal data grid, in a grid data file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
- new horizontal data grid, in a grid data file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
For 3D interpolation also needed:&lt;br /&gt;
&lt;br /&gt;
- father vertical geometry, in a geometry file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
- new vertical geometry, in a geometry file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
- auxiliary horizontal data grid, in a grid data file in the format supported by MOHID; this file is used for horizontal grid interpolation in 3D interpolation operations.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with interpolated data. In case of 3D interpolation also produced an auxiliary HDF5 file with the result of the horizontal grid interpolation, which can be inspected to check if this operation is well performed.&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#INTERPOLATE GRIDS|INTERPOLATE GRIDS]].&lt;br /&gt;
&lt;br /&gt;
===Patch files===&lt;br /&gt;
This action consists in performing an interpolation of HDF5 data between grids, as in action [[#Interpolate files|Interpolate files]], but considering more than one HDF5 file as containing data to be interpolated to the new grid and a priority scale. The interpolation is performed only for the data located in the time window specified by the user. The present version of this action operates only on 2D data.&lt;br /&gt;
&lt;br /&gt;
Each HDF5 file containing data to be interpolated is called a '''father file''' and has an user-attributed '''priority level''' to be respected in the interpolation process: for each new grid cell the ConvertToHDF5 application will look for data first on the Level 1 father file and only in the case this data is inexistent will it look for data in Level 2 file, proceeding in looking for higher level files if no data is found subsequentely.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
To obtain an HDF5 file with data from several HDF5 files each containing data with different spatial resolution and only for a specific part of the new grid. This is, for instance, the case when one is preparing a best resolution meteorological HDF5 file for forcing MOHID Water from several meteorological model domains, having different spatial resolution and span, since the best resolution data is not available for all new grid cells.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
The new horizontal data grid, in a grid data file in the format supported by MOHID, and for each father file:&lt;br /&gt;
&lt;br /&gt;
- level of priority: 1 = maximum priority, priority decreases with increasing level value;&lt;br /&gt;
&lt;br /&gt;
- data grid, in the form of a grid data file in the format supported by MOHID.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with patched data.&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#PATCH HDF5 FILES|PATCH HDF5 FILES]].&lt;br /&gt;
&lt;br /&gt;
==Format conversion==&lt;br /&gt;
&lt;br /&gt;
===Meteorological model data===&lt;br /&gt;
Mohid does not simulate explicitly the atmosphere, but needs information about atmospheric properties in time and space. This requires that atmospheric properties are supplied to MOHID Water in supported formats. These formats can be derived from meteorological data in HDF5 format. Because the results of meteorological models are accessed in different formats conversion is required. &lt;br /&gt;
&lt;br /&gt;
The formats currently convertible to HDF5 in ConvertToHDF5 include the MM5 and the ERA40. These are succintly detailed in the next sections.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====''ERA40''====&lt;br /&gt;
This format refers to the European Centre for Medium-Range Weather Forecasts (ECMWF) 40 years re-analysises results, acessed by site http://data.ecmwf.int/data/d/era40_daily/. This data is available for several meteorological variables with maximum 6 hour periodicity for days in the period from 1957-09-01 to 2002-08-31. &lt;br /&gt;
&lt;br /&gt;
ERA40 data files are supplied by ECMWF in a NetCDF format and with an user-costumized time window, periodicity (time step range from 6 hours to a day) and meteorological properties set. The ERA40 meteorological properties which are recognized by MOHID are presented bellow together with the correspondent MOHID name: &lt;br /&gt;
&lt;br /&gt;
 ---ERA40 NAME---         ---MOHID NAME---&lt;br /&gt;
   sshf                     sensible heat                &lt;br /&gt;
   slhf                     latent heat                  &lt;br /&gt;
   msl                      atmospheric pressure &lt;br /&gt;
   tcc                      cloud cover &lt;br /&gt;
   p10u                     wind velocity X&lt;br /&gt;
   p10v                     wind velocity Y&lt;br /&gt;
   p2t                      air temperature&lt;br /&gt;
   ewss                     wind stress X&lt;br /&gt;
   nsss                     wind stress Y&lt;br /&gt;
&lt;br /&gt;
The standard ConvertToHDF5 action is to convert to HDF5 the data referring to all MOHID Water recognized property available in the ERA40 file, producing an individual HDF5 file for each property. The name of each HDF5 file generated includes the ERA40 meteorological property identificator correspondent to the data contained.&lt;br /&gt;
&lt;br /&gt;
Alternatively, ConvertToHDF5 can copy to a single ASCII file the heading information concerning each meteorological variable considered in the original ERA40 file.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain an HDF5 file with data suitable for being used for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
ERA40 NetCDF file.&lt;br /&gt;
&lt;br /&gt;
'''Output:'''&lt;br /&gt;
&lt;br /&gt;
One HDF5 file for each meteorological property contained in the original NetCDF file.&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT ERA40 FORMAT|CONVERT ERA40 FORMAT]].&lt;br /&gt;
&lt;br /&gt;
====''Aladin''====&lt;br /&gt;
This format relates to Aladin meteorological model results. Some of the atmospheric property needed by MOHID Water is present in Aladin output files, enabling to run prediction simulations with MOHID Water when access to Aladin prevision files is available.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts Aladin results files from the original format to HDF5 format, allowing the easy use of these results in the MOHID framework. Conversion is only performed for the MM5 properties and the time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Produce HDF5 meteorological data usable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
Aladin netcdf results file to convert.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
An HDF5 file with Aladin results and a grid data file in MOHID format with the Aladin grid pseudo-information: a fake orography is created of 100 m depth.&lt;br /&gt;
This last file can be used to interpolate the Aladin data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]), for instance to produce an HDF5 file suitable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Compilation:'''&lt;br /&gt;
&lt;br /&gt;
Caution! The ConvertToHDF5 executable must be compiled with the [[Big-endian little-endian|Big-Endian]] option set (see compatibility in the project's settings).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT ALADIN FORMAT|CONVERT ALADIN FORMAT]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====''MM5''====&lt;br /&gt;
This format relates to the Fifth-Generation NCAR / Penn State Mesoscale Model (MM5) output files format. Almost every atmospheric property needed by MOHID Water is present in MM5 output files.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts MM5 results files from the original format to HDF5 format, allowing the easy use of these results in the MOHID framework. Conversion is only performed for the MM5 properties and the time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
Besides the conversion, the application can calculate some properties not contained in&lt;br /&gt;
the MM5 files using the available information: these are wind stress, relative humidity and mean sea level pressure.&lt;br /&gt;
&lt;br /&gt;
For conversion to be completed it is required the horizontal grid information of MM5 results which is available in special TERRAIN files.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Produce HDF5 meteorological data usable to force MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
MM5 results file to convert and MM5 TERRAIN file. The TERRAIN file supplies the MM5 results grid information. &lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
A HDF5 file with MM5 results and a grid data file in MOHID format with the MM5 grid information.&lt;br /&gt;
This last file can be used to interpolate the MM5 data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]), for instance to produce an HDF5 file suitable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Compilation:'''&lt;br /&gt;
&lt;br /&gt;
Caution! The ConvertToHDF5 executable must be compiled with the [[Big-endian little-endian|Big-Endian]] option set (see compatibility in the project's settings).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT MM5 FORMAT|CONVERT MM5 FORMAT]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====''WRF''====&lt;br /&gt;
This format relates to the Weather Research and Forecast model (WRF) output files format. Almost every atmospheric property needed by MOHID Water is present in WRF output files.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts WRF results files from the original format to HDF5 format, allowing the easy use of these results in the MOHID framework. Conversion is only performed for the WRF properties and the time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
Besides the conversion, the application can calculate some properties not contained in&lt;br /&gt;
the WRF files using the available information: these are wind stress, relative humidity and mean sea level pressure.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Produce HDF5 meteorological data usable to force MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
WRF direct output file.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
An HDF5 file with WRF results and a grid data file in MOHID format with the WRF grid information.&lt;br /&gt;
This last file can be used to interpolate the WRF data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]), for instance to produce an HDF5 file suitable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Compilation:'''&lt;br /&gt;
&lt;br /&gt;
Caution! [[PROJ4 | PROJ4]] library is needed! See [[#Compile_ModuleWRFFormat |  Compile_ModuleWRFFormat]]&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT WRF FORMAT|CONVERT WRF FORMAT]].&lt;br /&gt;
&lt;br /&gt;
===Ocean model data===&lt;br /&gt;
Ocean model data, available in diverse formats, can be used by MOHID Water to specify boundary (open ocean boundary and surface), initial conditions or for validation. These uses require that the model data is in HDF5 format and conversion is therefore needed.&lt;br /&gt;
&lt;br /&gt;
Currently the large scale ocean models formats convertible into HDF5 by ConvertToHDF5 includes MERCATOR.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====''MERCATOR''====&lt;br /&gt;
MERCATOR data files are supplied in a NetCDF format and with an user-costumized spatial window and periodicity. Water level and water properties (temperature and salinity) data is available in type T files, velocity component u data is available in type U files and velocity component v data is available in type V files. The type of data of a specific MERCATOR file is generally indicated in the file name.&lt;br /&gt;
&lt;br /&gt;
The standard ConvertToHDF5 action is to convert to HDF5 the data referring to temperature, salinity, water level, component u of velocity and component v of velocity.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain HDF5 MERCATOR data usable for forcing or validation of MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
NetCDF MERCATOR results data files and NetCDF MERCATOR grid data files. It should be provided one grid data file of each type: T, U and V. These are generally provided by the MERCATOR services together with the results files.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
One HDF5 file containing all properties contained in the recognized set of properties (temperature, salinity, water level, velocity u and velocity v) and the correspondent grid data and geometry files, containing respectively the horizontal grid and the vertical discretization of the HDF5 file. The grid data and geometry files can be used afterwards to interpolate the MERCATOR data to another grid and geometry (see [[#Interpolate files|Interpolate files]]).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT MERCATOR FORMAT|CONVERT MERCATOR FORMAT]].&lt;br /&gt;
&lt;br /&gt;
===Climatological data===&lt;br /&gt;
Climatological data can be used in MOHID Water to specify boundary (open ocean boundary and surface), initial conditions or for validation, in case more realistic data (measurements or model) data is unavailable. This data is generally supplied by producers in formats not readly usable by MOHID Water which justifies the existence of a conversion tool.&lt;br /&gt;
&lt;br /&gt;
Two climatological data format conversions are implemented in ConvertToHDF5: Levitus ocean data and Hellerman Rosenstein meteorological data.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====''Levitus''====&lt;br /&gt;
The Levitus climatology provides results for water temperature and salinity.&lt;br /&gt;
The ConvertToHDF5 action converts the climatological data for the properties and spatial window requested by the user. &lt;br /&gt;
Typically, it requires 3 steps to complete the task:&lt;br /&gt;
&lt;br /&gt;
- convert levitus format &lt;br /&gt;
&lt;br /&gt;
- extrapolate the data to the whole levitus domain(required to avoid uncoincidental coastlines) &lt;br /&gt;
&lt;br /&gt;
- interpolate with the model grid(bathymetry)&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain climatological data in HDF5 format to use as boundary forcing and/or initial condition specification in MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
Levitus climatological data files, one per property and per time period (e.g a month).&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with Levitus climatological data, grid data file with the horizontal&lt;br /&gt;
grid of the data and a geometry file with vertical discretization of the data (MOHID formats).&lt;br /&gt;
The grid data and the geometry files can be used to interpolate the climatological data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT LEVITUS FORMAT|CONVERT LEVITUS FORMAT]].&lt;br /&gt;
&lt;br /&gt;
====''Hellerman Rosenstein''====&lt;br /&gt;
This is a meteorological climatology providing wind stress. There is a file per wind stress component. Since the data refer to surface values it is a 2D field.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts the climatological data for the properties and spatial window provided by the user.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain climatological data in HDF5 format to use as meteorological forcing in MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
Hellerman Rosenstein climatological data ASCII files, one per wind stress component.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with Hellerman Rosenstein climatological data and grid data file with the horizontal&lt;br /&gt;
grid of the climatological data. This grid data file can be used to interpolate the climatological data from the original horizontal grid to a new grid (see [[#Interpolate files|Interpolate files]]).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT HELLERMAN ROSENSTEIN ASCII|CONVERT HELLERMAN ROSENSTEIN ASCII]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====''World Ocean Atlas 2005''====&lt;br /&gt;
The World Ocean Atlas (WOA) 2005 climatology provides results for water temperature, salinity and several water quality and biology properties.&lt;br /&gt;
&lt;br /&gt;
Description, Action and Input Files are described in a separate page: [[ConvertToHDF5 WOA2005]].&lt;br /&gt;
&lt;br /&gt;
==Input file (ConvertToHDF5Action.dat)==&lt;br /&gt;
===General structure===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt; (block containing instructions for running a specific action) &lt;br /&gt;
 ACTION                    : ... (intended action)&lt;br /&gt;
 ... (action specific instructions)&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : ...&lt;br /&gt;
 ...&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===GLUES HDF5 FILES===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : GLUES HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 3D_FILE                   : 0/1 (0 = 2D file, 1 = 3D file)&lt;br /&gt;
 &lt;br /&gt;
 TIME_GROUP                : ... (Default=&amp;quot;Time&amp;quot;. Other option: &amp;quot;SurfaceTime&amp;quot;.)&lt;br /&gt;
 &lt;br /&gt;
 BASE_GROUP                : ... (Default=&amp;quot;Results&amp;quot;. Other options: &amp;quot;Residual&amp;quot;, &amp;quot;SurfaceResults&amp;quot;.)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 &lt;br /&gt;
 (block of HDF5 data files)&lt;br /&gt;
 &amp;lt;&amp;lt;begin_list&amp;gt;&amp;gt;&lt;br /&gt;
 ... (path/name of HDF5 file with data to be included in glue, one per line, at least two files)&lt;br /&gt;
 ...                      &lt;br /&gt;
 &amp;lt;&amp;lt;end_list&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===INTERPOLATE GRIDS===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION     : ... (type of horizontal interpolation: 1 = Bilinear, 2 = Spline2D,&lt;br /&gt;
                                  3 = Triangulation)&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION_WINDOW      : ... ... ... ... (2D spatial window to consider for interpolation: &lt;br /&gt;
                                              Xmin Ymin Xmax Ymax; default = all domain)&lt;br /&gt;
 &lt;br /&gt;
 START                     : ... (start date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 END                       : ... (end date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D           : 0/1 (0 = 2D interpolation, 1 = 3D interpolation)&lt;br /&gt;
 &lt;br /&gt;
 FATHER_FILENAME           : ... (path/name of input HDF5 file with data to be interpolated)&lt;br /&gt;
 FATHER_GRID_FILENAME      : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization of input HDF5 file)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of output HDF5 file to be created)&lt;br /&gt;
 NEW_GRID_FILENAME         : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization intended for output HDF5 file)&lt;br /&gt;
 &lt;br /&gt;
 EXTRAPOLATE_2D            : 0/1/2/3/4/5 (2D extrapolation: 0=no extrapolation, 1=medium&lt;br /&gt;
                                      triangulation, 2=high triangulation, &lt;br /&gt;
                                      3=nearest neighbour, 4=nearest cell, &lt;br /&gt;
                                      5=constant value)&lt;br /&gt;
 &lt;br /&gt;
 EXTRAPOLATE_VALUE         : ... (name of the value to extrapolate to when EXTRAPOLATE_2D is&lt;br /&gt;
                                  set to constant value (5))&lt;br /&gt;
 &lt;br /&gt;
 DO_NOT_BELIEVE_MAP        : 0/1 (0=consider input HDF5 file map, 1=do not consider input HDF5&lt;br /&gt;
                                  file map)&lt;br /&gt;
 &lt;br /&gt;
 BASE_GROUP                : ... (name of base group of HDF5 variables containing data to be &lt;br /&gt;
                                  interpolated; default is &amp;quot;/Results&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 (if INTERPOLATION3D : 1 also required:)&lt;br /&gt;
 FATHER_GEOMETRY           : ... (path/name of file (MOHID format) with vertical discretization&lt;br /&gt;
                                  of input HDF5 file)&lt;br /&gt;
 NEW_GEOMETRY              : ... (path/name of file (MOHID format) with vertical discretization&lt;br /&gt;
                                  intended for output HDF5 file)&lt;br /&gt;
 POLI_DEGREE               : 1/... (degree of vertical interpolation: 1=linear, ...)&lt;br /&gt;
 &lt;br /&gt;
 AUX_GRID_FILENAME         : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization intended for auxiliar output HDF5 file;&lt;br /&gt;
                                  default is file provided in NEW_GRID_FILENAME)&lt;br /&gt;
 &lt;br /&gt;
 AUX_OUTPUTFILENAME        : ... (path/name of auxiliar output HDF5 file to contain result&lt;br /&gt;
                                  of horizontal grid interpolation)   &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - the file indicated in AUX_GRID_FILENAME can be different from the one indicated in&lt;br /&gt;
   NEW_GRID_FILENAME in terms of bathymetry, while the horizontal grid should be, commonly, the&lt;br /&gt;
   same: this altered bathymetry can be used to extend the water column in the original data so&lt;br /&gt;
   that the process of vertical interpolation is done easily;&lt;br /&gt;
 &lt;br /&gt;
 - in case of INTERPOLATION3D : 1, ConvertToHDF5 can generate new versions of bathymetry which &lt;br /&gt;
   are consistent with the geometry definition (extension is '.new'); there are possibly three&lt;br /&gt;
   bathymetry changes referring to father grid, new grid and aux grid (the same bathymetry is&lt;br /&gt;
   not altered twice); although initially new and aux grid are the same they can result &lt;br /&gt;
   different because of bathymetry changes;&lt;br /&gt;
 &lt;br /&gt;
 - in case the new geometry is 2D and father geometry is 3D then POLI_DEGREE : 1 &lt;br /&gt;
   (linear interpolation) should be used;&lt;br /&gt;
 &lt;br /&gt;
 - EXTRAPOLATE_2D : 1/2/3/4/5 should be considered if it is expected that the coast line is not&lt;br /&gt;
   coincidental in the father and new grids, to avoid lack of data in the interpolation&lt;br /&gt;
   process; extrapolation is performed for all cells even the land cells; &lt;br /&gt;
 &lt;br /&gt;
 - in case of DO_NOT_BELIEVE_MAP : 1 the application generates a map based on cells where&lt;br /&gt;
   interpolation results are available; this causes that if EXTRAPOLATE_2D : 1/2/3/4/5 is used&lt;br /&gt;
   the AUX_GRID_FILENAME should not have land cells in order for the new map to be concurrent&lt;br /&gt;
   with the result of extrapolation and avoid errors generation, specially if INTERPOLATION3D :&lt;br /&gt;
   1 is considered.&lt;br /&gt;
&lt;br /&gt;
===PATCH HDF5 FILES===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : PATCH HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION     : ... (type of interpolation: 3 = Triangulation, default and only&lt;br /&gt;
                                  one implemented)&lt;br /&gt;
 &lt;br /&gt;
 START                     : ... (start date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 END                       : ... (end date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 &lt;br /&gt;
 (block for each father HDF5 file, should be at least two)&lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                     : ... (integer priority level: 1 = highest, increase for lower&lt;br /&gt;
                                  priority)&lt;br /&gt;
 FATHER_FILENAME           : ... (path/name of input HDF5 file with data to be interpolated)&lt;br /&gt;
 FATHER_GRID_FILENAME      : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization of input HDF5 file)&lt;br /&gt;
 N_REMOVE_FRAME            : 0   (width, in number of cells, of frame to remove)&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of output HDF5 file to be created)&lt;br /&gt;
 NEW_GRID_FILENAME         : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization intended for output HDF5 file)&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CONVERT ERA40 FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT ERA40 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                  : ... (path/name of ERA40 NetCDF file)&lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
                                 (root of name for all files produced)&lt;br /&gt;
 &lt;br /&gt;
 CONVERT_TO_ASCII          : 0/1 (1 = convert variable heading info for ASCII file; 0 = default)&lt;br /&gt;
 CONVERT_TO_HDF5           : 0/1 (1 = convert to HDF5 file; 0 = default)&lt;br /&gt;
 GRIDTO180                 : 0/1 (1 = convert grid from [0 360] to [-180 180], 0 = default)&lt;br /&gt;
 &lt;br /&gt;
 XX_VARIABLE               : ... (name of longitude variable in the input file: usual name &lt;br /&gt;
                                  is &amp;quot;longitude&amp;quot;)&lt;br /&gt;
 YY_VARIABLE               : ... (name of longitude variable in the input file: usual name &lt;br /&gt;
                                  is &amp;quot;latitude&amp;quot;)&lt;br /&gt;
 TIME_VARIABLE             : ... (name of time variable in the input file: usual name is&lt;br /&gt;
                                  &amp;quot;time&amp;quot;)&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - either CONVERT_TO_ASCII : 1 or CONVERT_TO_HDF5 : 1 must be chosen for any action to be&lt;br /&gt;
 performed by ConvertToHDF5;&lt;br /&gt;
 &lt;br /&gt;
 - when CONVERT_TO_HDF5 : 1 an HDF5 file is produced for every variable contained in the&lt;br /&gt;
 original ERA40 file; the name of each file is composed of the name indicated on FILENAME&lt;br /&gt;
 concatenated with the ERA40 variable identifier;&lt;br /&gt;
 &lt;br /&gt;
 - to the XX_VARIABLE, YY_VARIABLE and TIME_VARIABLE keywords should generally be  &lt;br /&gt;
 specified &amp;quot;longitude&amp;quot;, &amp;quot;latitude&amp;quot; and &amp;quot;time&amp;quot;, respectively; the option to&lt;br /&gt;
 include as keywords was made only to make the application robust to future variable name&lt;br /&gt;
 changes.&lt;br /&gt;
&lt;br /&gt;
===CONVERT ALADIN FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT ALADIN FORMAT&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : aladin.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : aladin_griddata.dat&lt;br /&gt;
 &lt;br /&gt;
 !Put here the name of any netcdf file for grid-data generation's sake.&lt;br /&gt;
 INPUT_GRID_FILENAME      :   D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKCLOUD_OPASYMP_19723_20088.nc&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 (path to aladin netcdf file)\ALADIN_BULKIR_OPASYMP_19723_20088.nc&lt;br /&gt;
 ...&lt;br /&gt;
 &amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - the name of each Aladin property to convert in &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;...&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt; block must conform to the following variables&lt;br /&gt;
 &lt;br /&gt;
           ---ALADIN NAME---    ---MOHID NAME---&lt;br /&gt;
             soclotot            CloudCover_&lt;br /&gt;
             sohumrel            RelativeHumidity_&lt;br /&gt;
             sofluxir            NonSolarFlux_&lt;br /&gt;
             sosspres            AtmosphericPressure_&lt;br /&gt;
             sosolarf            SolarRadiation_&lt;br /&gt;
             sotemair            AirTemperature_&lt;br /&gt;
             sowinmod            WindModulus_&lt;br /&gt;
             sowaprec            Precipitation_&lt;br /&gt;
             sozotaux            WindStressX_&lt;br /&gt;
             sometauy            WindStressY_&lt;br /&gt;
             sowindu10           WindVelocityX_&lt;br /&gt;
             sowindv10           WindVelocityY_&lt;br /&gt;
&lt;br /&gt;
===CONVERT MM5 FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT MM5 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                  : ... (path/name of MM5 file)&lt;br /&gt;
 TERRAIN_FILENAME          : ... (path/name of MM5 TERRAIN file)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME               : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME         : ... (path/name of grid data file with horizontal grid of MM5 data to be created)&lt;br /&gt;
 &lt;br /&gt;
 COMPUTE_WINDSTRESS           : 0/1 (1 = compute and write wind stress field; 0 = default)&lt;br /&gt;
 COMPUTE_WINDMODULUS          : 0/1 (1 = compute wind modulus; 0 = default)&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY    : 0/1 (1 = compute and write 2-meter relative humidity field; 0 = default)&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY_3D : 0/1 (1 = compute and write 3D relative humidity field; 0 = default)&lt;br /&gt;
 COMPUTE_PRECIPITATION        : 0/1 (1 = compute and write precipitation field; 0 = default)&lt;br /&gt;
 COMPUTE_MSLP                 : 0/1 (1 = compute and write mean sea level pressure field; 0 = default)&lt;br /&gt;
 &lt;br /&gt;
 WRITE_XYZ                    : 0/1 (1 = write xyz center grid cells; 0 = default)&lt;br /&gt;
 WRITE_TERRAIN                : 0/1 (1 = write MM5 TERRAIN fields; 0 = default)&lt;br /&gt;
 &lt;br /&gt;
 START                        : ... (start date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 END                          : ... (end date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
  &lt;br /&gt;
 (block of MM5 properties to convert)&lt;br /&gt;
 &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;&lt;br /&gt;
 ... (name of MM5 property to convert do HDF5 format, one per line)&lt;br /&gt;
 ... &lt;br /&gt;
 &amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - the name of each MM5 property to convert in &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;...&amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt; block must&lt;br /&gt;
 conform to the MOHID designation specified in code of ModuleGlobalData; the correspondence is &lt;br /&gt;
 the following (see [[Module_InterfaceWaterAir]] for a more detailed explanation).&lt;br /&gt;
 &lt;br /&gt;
           ---MM5 NAME---    ---MOHID NAME---&lt;br /&gt;
             T2             air temperature&lt;br /&gt;
             PSTARCRS       atmospheric pressure&lt;br /&gt;
             U10            wind velocity X&lt;br /&gt;
             V10            wind velocity Y&lt;br /&gt;
             UST            wind shear velocity&lt;br /&gt;
             LHFLUX         latent heat&lt;br /&gt;
             SWDOWN         sensible heat&lt;br /&gt;
             SWDOWN         solar radiation&lt;br /&gt;
             LWDOWN         infrared radiation&lt;br /&gt;
             SWOUT          top outgoing shortwave radiation&lt;br /&gt;
             LWOUT          top outgoing longwave radiation&lt;br /&gt;
             SOIL T 1       soil temperature layer 1&lt;br /&gt;
             SOIL T 1       soil temperature layer 2&lt;br /&gt;
             SOIL T 1       soil temperature layer 3&lt;br /&gt;
             SOIL T 1       soil temperature layer 4&lt;br /&gt;
             SOIL T 1       soil temperature layer 5&lt;br /&gt;
             SOIL T 1       soil temperature layer 6&lt;br /&gt;
             Q2             2-meter mixing ratio&lt;br /&gt;
             TSEASFC        sea water temperature&lt;br /&gt;
             PBL HGT        PBL height&lt;br /&gt;
             PBL REGIME     PBL regime&lt;br /&gt;
             RAIN CON       accumulated convective precipitation        (cm)&lt;br /&gt;
             RAIN NON       accumulated non-convective precipitation    (cm)&lt;br /&gt;
             GROUND T       ground temperature&lt;br /&gt;
             RES TEMP       infinite reservoir slab temperature&lt;br /&gt;
             U              wind velocity X_3D&lt;br /&gt;
             V              wind velocity Y_3D&lt;br /&gt;
             W              wind velocity Z_3D&lt;br /&gt;
             T              air temperature_3D&lt;br /&gt;
             PP             atmospheric pressure_3D&lt;br /&gt;
             Q              mixing ratio_3D&lt;br /&gt;
             CLW            cloud water mixing ratio_3D&lt;br /&gt;
             RNW            rain water mixing ratio_3D&lt;br /&gt;
             ICE            cloud ice mixing ratio_3D&lt;br /&gt;
             SNOW           snow mixing ratio_3D&lt;br /&gt;
             RAD TEND       atmospheric radiation tendency_3D&lt;br /&gt;
&lt;br /&gt;
===CONVERT WRF FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                       : CONVERT WRF FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                     : ... (path/name of WRF file)&lt;br /&gt;
 OUTPUTFILENAME               : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME         : ... (path/name of grid data file with horizontal grid of WRF data&lt;br /&gt;
                                     to be created)&lt;br /&gt;
 &lt;br /&gt;
 COMPUTE_WINDSTRESS           : 0/1 (1 = compute and write wind stress field; 0 = default)&lt;br /&gt;
 COMPUTE_WINDMODULUS          : 0/1 (1 = compute wind modulus; 0 = default)&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY    : 0/1 (1 = compute and write 2-meter relative humidity field; 0 = default)&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY_3D : 0/1 (1 = compute and write 3D relative humidity field; 0 = default)&lt;br /&gt;
 COMPUTE_PRECIPITATION        : 0/1 (1 = compute and write precipitation field; 0 = default)&lt;br /&gt;
 COMPUTE_MSLP_MM5             : 0/1 (1 = compute mean sea level pressure with MM5toGrads algorithm; 0 = default)&lt;br /&gt;
 COMPUTE_MSLP_WRF             : 0/1 (1 = compute mean sea level pressure with ARWPost algorithm; 0 = default)&lt;br /&gt;
 &lt;br /&gt;
 WRITE_XYZ                    : 0/1 (1 = write xyz center grid cells; 0 = default)&lt;br /&gt;
 WRITE_TERRAIN                : 0/1 (1 = write MM5 TERRAIN fields; 0 = default)&lt;br /&gt;
 OUTPUT_DT                    : real (DT interval in seconds between each output; default = 0.0)&lt;br /&gt;
 &lt;br /&gt;
 START                        : ... (start date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 END                          : ... (end date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
  &lt;br /&gt;
 (block of properties to convert)&lt;br /&gt;
 &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;&lt;br /&gt;
 ... (name of property to convert do HDF5 format, one per line)&lt;br /&gt;
 ... &lt;br /&gt;
 &amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
  &lt;br /&gt;
 - the name of each property to convert in &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;...&amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt; block must conform to the MOHID &lt;br /&gt;
   designation specified in code of ModuleGlobalData; the correspondence to WRF is in function &lt;br /&gt;
   VariableIsToRead in ModuleWRFFormat. Conversion is not direct since WRF outputs tendencies and not  &lt;br /&gt;
   total values. &lt;br /&gt;
 &lt;br /&gt;
 - Caution: This action is not extensively tested.&lt;br /&gt;
&lt;br /&gt;
===CONVERT MERCATOR FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT MERCATOR FORMAT&lt;br /&gt;
 &lt;br /&gt;
 READ_OPTION               : 1/2/3/4 (version of MERCATOR files)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : ... (path/name of grid data with horizontal discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME  : ... (path/name of geometry file with vertical discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 &lt;br /&gt;
 (if READ_OPTION : 1:)&lt;br /&gt;
 BASE_BULLETIN             : ...&lt;br /&gt;
 DATES_FILE                : ...&lt;br /&gt;
 NUM_DATES                 : ... &lt;br /&gt;
 &lt;br /&gt;
 (if READ_OPTION : 2/3:)&lt;br /&gt;
 INPUT_GRID_FILENAME       : ... (path/name of file with horizontal discretization of water&lt;br /&gt;
                                  properties and water level data)&lt;br /&gt;
 (if READ_OPTION : 2:)&lt;br /&gt;
 INPUT_GRID_FILENAME_U     : ... (path/name of file with horizontal discretization of velocity&lt;br /&gt;
                                  component U data)&lt;br /&gt;
 INPUT_GRID_FILENAME_V     : ... (path/name of file with horizontal discretization of velocity&lt;br /&gt;
                                  component V data)&lt;br /&gt;
 &lt;br /&gt;
 (if READ_OPTION : 3:)&lt;br /&gt;
 INPUT_BATHY_FILENAME      : ... (path/name of file with bathymetry)&lt;br /&gt;
     &lt;br /&gt;
 (if READ_OPTION : 3/4:)&lt;br /&gt;
 CALC_BAROTROPIC_VEL       : 0/1 (1 = calculate barotropic velocity, 0 = not calculate; &lt;br /&gt;
                                  default = 0)&lt;br /&gt;
 &lt;br /&gt;
 (if CALC_BAROTROPIC_VEL : 1 and READ_OPTION : 3:)&lt;br /&gt;
 INPUT_MESH_ZGRID_FILENAME : ... (path/name of file with information about layers ticknesses)&lt;br /&gt;
 &lt;br /&gt;
 (block of MERCATOR data files)&lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 ... (path/name of MERCATOR NetCDF data file, one per line, can be several)&lt;br /&gt;
 ... &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CONVERT LEVITUS FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT LEVITUS FORMAT&lt;br /&gt;
  &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : ... (path/name of grid data with horizontal discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME  : ... (path/name of geometry file with vertical discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 &lt;br /&gt;
 PERIODICITY               : ... (periodicity of Levitus data: &amp;quot;monthly&amp;quot;/&amp;quot;annual&amp;quot;; default is&lt;br /&gt;
                                  &amp;quot;monthly&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 SPATIAL_RESOLUTION        : ... (spatial resolution (degrees) of horizontal Levitus grid)&lt;br /&gt;
 &lt;br /&gt;
 FILL_VALUE                : ... (real value identificator for missing data; default is &lt;br /&gt;
                                  &amp;quot;-99.999900&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 (definition of spatial window to be present in output HDF5 file)&lt;br /&gt;
 LOWER_LEFT_CORNER         : ... ... (longitude and latitude (degrees) of south west corner)&lt;br /&gt;
 UPPER_RIGHT_CORNER        : ... ... (longitude and latitude (degrees) of north east corner)&lt;br /&gt;
 &lt;br /&gt;
 (block for each water property to be present in output HDF5 file, can be several)&lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                      : ... (name of property)&lt;br /&gt;
 ANNUAL_FILE               : ... (path/name of Levitus annual file)&lt;br /&gt;
 &lt;br /&gt;
 (block of Levitus data files)&lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 ... (path/name of Levitus data file (e.g. a monthly data file), one per line, can be several)&lt;br /&gt;
 ... &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CONVERT HELLERMAN ROSENSTEIN ASCII===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT HELLERMAN ROSENSTEIN ASCII&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : ... (path/name of grid data with horizontal discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
  &lt;br /&gt;
 PERIODICITY               : ... (periodicity of Hellerman Rosenstein data: &amp;quot;monthly&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 SPATIAL_RESOLUTION        : ... (spatial resolution (degrees) of horizontal Hellerman&lt;br /&gt;
                                  Rosenstein grid: default and only allowed value is &amp;quot;2.&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 FILL_VALUE                : ... (real value identificator for missing data; default is &lt;br /&gt;
                                  &amp;quot;-99.999900&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 (definition of spatial window to be present in output HDF5 file)&lt;br /&gt;
 LOWER_LEFT_CORNER         : ... ... (longitude and latitude (degrees) of south west corner)&lt;br /&gt;
 UPPER_RIGHT_CORNER        : ... ... (longitude and latitude (degrees) of north east corner)&lt;br /&gt;
   &lt;br /&gt;
 (block for each Hellerman Rosenstein data file)&lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                      : ... (name of property: &amp;quot;wind stress X&amp;quot;/&amp;quot;wind stress Y&amp;quot;)&lt;br /&gt;
 FILE                      : ... (path/name Hellerman Rosenstein file)&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Samples==&lt;br /&gt;
All sample files are named ''ConvertToHDF5Action.dat''.&lt;br /&gt;
&lt;br /&gt;
===Glue several MOHID(.hdf5) files===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : GLUES HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : SurfaceHydro_OP.hdf5&lt;br /&gt;
  &lt;br /&gt;
 &amp;lt;&amp;lt;begin_list&amp;gt;&amp;gt;&lt;br /&gt;
 D:\Projectos\SurfaceHydrodynamic_21.hdf5&lt;br /&gt;
 D:\Projectos\SurfaceHydrodynamic_22.hdf5&lt;br /&gt;
 &amp;lt;&amp;lt;end_list&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Interpolate 2D MOHID(.hdf5) files to a new grid===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION    : 1&lt;br /&gt;
 FATHER_FILENAME          : D:\Projectos\MohidRun\test\res\Lagrangian_1.hdf5 &lt;br /&gt;
 OUTPUTFILENAME           : OilSpillThickness_GridRegular.hdf5&lt;br /&gt;
  &lt;br /&gt;
 START                    : 2006 6 21 17 22 30&lt;br /&gt;
 END                      : 2006 6 22 17 22 0&lt;br /&gt;
  &lt;br /&gt;
 FATHER_GRID_FILENAME     : D:\Projectos\MohidRun\GeneralData\batim\Tagus.dat_A&lt;br /&gt;
 NEW_GRID_FILENAME        : TagusConstSpacing.dat&lt;br /&gt;
  &lt;br /&gt;
 BASE_GROUP               : /Results/Oil/Data_2D&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Interpolate 3D MOHID(.hdf5) files to a new grid===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION   : 1&lt;br /&gt;
 FATHER_FILENAME         : D:\Projectos\MohidRun\test\res\Lagrangian_1.hdf5 &lt;br /&gt;
 OUTPUTFILENAME          : OilSpillThickness_GridRegular.hdf5&lt;br /&gt;
 &lt;br /&gt;
 START                   : 2006 6 21 17 22 30&lt;br /&gt;
 END                     : 2006 6 22 17 22 0&lt;br /&gt;
 &lt;br /&gt;
 FATHER_GRID_FILENAME    : D:\Projectos\MohidRun\GeneralData\batim\Tagus.dat_A&lt;br /&gt;
 NEW_GRID_FILENAME       : TagusConstSpacing.dat&lt;br /&gt;
 &lt;br /&gt;
 BASE_GROUP              : /Results/Oil/Data_2D&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D         : 1&lt;br /&gt;
 FATHER_GEOMETRY         : D:\Projectos\MohidRun\test\data\Geometry_1.dat&lt;br /&gt;
 NEW_GEOMETRY            : TagusGeometry.dat&lt;br /&gt;
 AUX_GRID_FILENAME       : TagusConstSpacing.dat&lt;br /&gt;
 AUX_OUTPUTFILENAME      : Aux_GridRegular.hdf5&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Patch several MOHID(.hdf5) files to a new grid===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION : PATCH HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION   : 3&lt;br /&gt;
 &lt;br /&gt;
 START                   : 2005 2 28 13 0 0&lt;br /&gt;
 END                     : 2005 3 1 13 0 0&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                   : 3&lt;br /&gt;
 FATHER_FILENAME         : K:\MM5output\2005022812_2005030712\MM5OUT_D1.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME    : K:\MM5output\2005022812_2005030712\grid1.dat&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                   : 2&lt;br /&gt;
 FATHER_FILENAME         : K:\MM5output\2005022812_2005030712\MM5OUT_D2.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME    : K:\MM5output\2005022812_2005030712\grid2.dat&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                   : 1&lt;br /&gt;
 FATHER_FILENAME         : K:\MM5output\2005022812_2005030712\MM5OUT_D3.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME    : K:\MM5output\2005022812_2005030712\grid3.dat&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME          : MM5Forcing.hdf5&lt;br /&gt;
 NEW_GRID_FILENAME       : K:\Simula\GeneralData\Batim\CostaPortuguesa.dat&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert an ERA40 file to MOHID(.hdf5)===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                  : CONVERT ERA40 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                : D:\Aplica\ERA40\1971ERA1973.nc&lt;br /&gt;
 OUTPUTFILENAME          : D:\Aplica\ERA40\1971ERA1973T2&lt;br /&gt;
 &lt;br /&gt;
 CONVERT_TO_ASCII        : 0&lt;br /&gt;
 CONVERT_TO_HDF5         : 1&lt;br /&gt;
 &lt;br /&gt;
 XX_VARIABLE             : longitude&lt;br /&gt;
 YY_VARIABLE             : latitude&lt;br /&gt;
 TIME_VARIABLE           : time&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert a MM5 file to MOHID(.hdf5)===&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT WRF FORMAT&lt;br /&gt;
 FILENAME                  : wrfout_d01_2010-02-15_00:00:00&lt;br /&gt;
 OUTPUTFILENAME            : wrfout_d01.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : wrfout_d01.dat&lt;br /&gt;
 COMPUTE_WINDSTRESS        : 1&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY : 1&lt;br /&gt;
 COMPUTE_PRECIPITATION     : 1&lt;br /&gt;
 COMPUTE_MSLP              : 1&lt;br /&gt;
 COMPUTE_WINDMODULUS       : 1&lt;br /&gt;
 WRITE_XYZ                 : 0&lt;br /&gt;
 WRITE_TERRAIN             : 0&lt;br /&gt;
 OUTPUT_DT                 : 3600&lt;br /&gt;
&lt;br /&gt;
 START                     : 2010 02 15 00 00 00&lt;br /&gt;
 END                       : 2010 02 15 06 00 00&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;&lt;br /&gt;
 air temperature&lt;br /&gt;
 atmospheric pressure&lt;br /&gt;
 downward long wave radiation&lt;br /&gt;
 latent heat&lt;br /&gt;
 sensible heat&lt;br /&gt;
 sea water temperature&lt;br /&gt;
 solar radiation&lt;br /&gt;
 top outgoing shortwave radiation&lt;br /&gt;
 upward long wave radiation&lt;br /&gt;
 wind velocity X&lt;br /&gt;
 wind velocity Y&lt;br /&gt;
 &amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert Mercator-Ocean(.nc) to MOHID(.hdf5)===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : CONVERT MERCATOR FORMAT&lt;br /&gt;
 &lt;br /&gt;
 READ_OPTION              : 2&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : Psy2v2r1v_R20060628/MercatorR20060628.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME     : Psy2v2r1v_R20060628/MercatorGridR20060628.dat&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME : Psy2v2r1v_R20060628/MercatorGeometryR20060628.dat&lt;br /&gt;
 &lt;br /&gt;
 INPUT_GRID_FILENAME      : GridFiles/ist_meteog-gridT.nc&lt;br /&gt;
 INPUT_GRID_FILENAME_U    : GridFiles/ist_meteog-gridU.nc&lt;br /&gt;
 INPUT_GRID_FILENAME_V    : GridFiles/ist_meteog-gridV.nc&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 Psy2v2r1v_R20060628/ist_meteog-mercatorPsy2v2r1v_T_MEAN_ANA_20060621_R20060628.nc&lt;br /&gt;
 Psy2v2r1v_R20060628/ist_meteog-mercatorPsy2v2r1v_T_MEAN_ANA_20060622_R20060628.nc&lt;br /&gt;
 Psy2v2r1v_R20060628/ist_meteog-mercatorPsy2v2r1v_T_MEAN_ANA_20060623_R20060628.nc&lt;br /&gt;
 &amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert Levitus format to MOHID(.hdf5) and interpolate grid===&lt;br /&gt;
==== Convert ====&lt;br /&gt;
First convert the Levitus ASCII format to a raw HDF5 format:&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : CONVERT LEVITUS FORMAT&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : Levitus.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME     : LevitusGrid.dat&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME : LevitusGeometry.dat&lt;br /&gt;
 &lt;br /&gt;
 PERIODICITY              : monthly&lt;br /&gt;
 SPATIAL_RESOLUTION       : 0.25&lt;br /&gt;
 FILL_VALUE               : -99.9999&lt;br /&gt;
 &lt;br /&gt;
 LOWER_LEFT_CORNER        : -16.0  31&lt;br /&gt;
 UPPER_RIGHT_CORNER       :   1.   40&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : salinity&lt;br /&gt;
 ANNUAL_FILE              : DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s000hr.obj&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s001&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s002&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s003&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s004&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s005&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s006&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s007&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s008&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s009&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s010&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s011&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s012&lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : temperature&lt;br /&gt;
 ANNUAL_FILE              : DataCenter\DadosBase\Ocean\Levitus\Data\Temp\t000hr.obj&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t001&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t002&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t003&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t004&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t005&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t006&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t007&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t008&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t009&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t010&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t011&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t012&lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Extrapolate ====&lt;br /&gt;
Then extrapolate the data (still in the raw HDF5 format):&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION    : 1&lt;br /&gt;
 &lt;br /&gt;
 FATHER_FILENAME          : Levitus.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME     : LevitusGrid.dat&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : LeviTusAllPointsWithData.hdf5&lt;br /&gt;
 NEW_GRID_FILENAME        : LevitusGrid.dat&lt;br /&gt;
 &lt;br /&gt;
 START                    : -9999 1  1 0 0 0&lt;br /&gt;
 END                      : -9999 12 1 0 0 0&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D          : 1&lt;br /&gt;
 FATHER_GEOMETRY          : LevitusGeometry.dat&lt;br /&gt;
 NEW_GEOMETRY             : LevitusGeometry.dat&lt;br /&gt;
 AUX_GRID_FILENAME        : LevitusGrid.dat&lt;br /&gt;
 AUX_OUTPUTFILENAME       : AuxLeviTusAllPointsWithData.hdf5&lt;br /&gt;
 &lt;br /&gt;
 POLI_DEGREE              : 3&lt;br /&gt;
 DO_NOT_BELIEVE_MAP       : 1&lt;br /&gt;
 EXTRAPOLATE_2D           : 2&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Interpolate ====&lt;br /&gt;
Finally, interpolate to the final grid and geometry (same as the [[#Interpolate 3D MOHID(.hdf5) files to a new grid| Interpolate 3D sample]]):&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION    : 1&lt;br /&gt;
 FATHER_FILENAME          : LeviTusAllPointsWithData.hdf5&lt;br /&gt;
 OUTPUTFILENAME           : CadizMonthlyLevitus.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME     : LevitusGrid.dat&lt;br /&gt;
 NEW_GRID_FILENAME        : Algarve0.02SigmaSmooth_V3_CartMoreLayers.dat&lt;br /&gt;
 &lt;br /&gt;
 START                    : -9999 1  1 0 0 0&lt;br /&gt;
 END                      : -9999 12 1 0 0 0&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D          : 1&lt;br /&gt;
 FATHER_GEOMETRY          : LevitusGeometry.dat&lt;br /&gt;
 NEW_GEOMETRY             : Geometry_1.dat&lt;br /&gt;
 AUX_OUTPUTFILENAME       : AuxCadizMonthlyLevitus.hdf5&lt;br /&gt;
 AUX_GRID_FILENAME        : Aux12km.dat&lt;br /&gt;
 &lt;br /&gt;
 POLI_DEGREE              : 3&lt;br /&gt;
 DO_NOT_BELIEVE_MAP       : 1&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that the programme may construct a new bathymetry twice. Use this bathymetry only on the AUX_GRID_FILENAME keyword.&lt;br /&gt;
&lt;br /&gt;
===Convert Hellerman Rosenstein ASCII format to MOHID(.hdf5)  ===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : CONVERT HELLERMAN ROSENSTEIN ASCII&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : ClimatologicWindStress.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME     : ClimatologicWindStressGrid.dat&lt;br /&gt;
 &lt;br /&gt;
 PERIODICITY              : monthly&lt;br /&gt;
 SPATIAL_RESOLUTION       : 2.&lt;br /&gt;
 FILL_VALUE               : -99.9999&lt;br /&gt;
 &lt;br /&gt;
 LOWER_LEFT_CORNER        : -180  -90&lt;br /&gt;
 UPPER_RIGHT_CORNER       : 180  90&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : wind stress X&lt;br /&gt;
 FILE                     : D:\Aplica\Dados\Hellerman_Rosenstein\TAUXX.DAT&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : wind stress Y&lt;br /&gt;
 FILE                     : D:\Aplica\Dados\Hellerman_Rosenstein\TAUYY.DAT&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert ALADIN(.nc) format to MOHID(.hdf5)===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT ALADIN FORMAT&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : aladin.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : aladin_griddata.dat&lt;br /&gt;
 &lt;br /&gt;
 !Put here the name of any netcdf file for grid-data generation's sake.&lt;br /&gt;
 INPUT_GRID_FILENAME      :   D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKCLOUD_OPASYMP_19723_20088.nc&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKIR_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKPRES_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKSOLAR_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKTAIR_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKWIND_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_FLUXPRE_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_STRESSU_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_STRESSV_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_U10_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_V10_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKCLOUD_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKHUMI_OPASYMP_19723_20088.nc&lt;br /&gt;
 &amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== OceanColor modules compilation ==&lt;br /&gt;
Compiling the [[ConvertToHDF5]] tool with the OceanColor modules is more complicated than one might expect. A solution is proposed here for a release version using the Compaq Visual Fortran 6.6c. The difficulties rise because C code is embedded with a fortran interface and also, extra libraries such as hdf4 are required.&lt;br /&gt;
&lt;br /&gt;
=== Pre-requisites ===&lt;br /&gt;
&lt;br /&gt;
This is a list of prerequisites to successfully compile the tool:&lt;br /&gt;
*Compaq Visual Fortran 6.5 with patch 6.6c,&lt;br /&gt;
*VS .NET 2003 (Vc7 in particular),&lt;br /&gt;
*Hdf5 libraries ('''hdf5.lib''' '''hdf5_fortran.lib''' '''hdf5_hl.lib'''),&lt;br /&gt;
*Netcdf libraries ('''netcdf.lib''' '''netcdf_.lib'''),&lt;br /&gt;
*Hdf4 libraries ('''hd421.lib''', '''hm421.lib'''),&lt;br /&gt;
*szlib, zlib and jpeg libraries ('''szlib.lib''', '''zlib.lib''' and '''libjpeg.lib'''),&lt;br /&gt;
*the fortran source files ('''ModuleConvertModisL2.F90 ModuleConvertModisL3.F90 ModuleConvertOceanColorL2.F90'''),&lt;br /&gt;
*the C source files and their fortran interface files ('''readL2scan.c readL2Seadas.c''' and '''cdata.f crossp.f fgeonav.f''').&lt;br /&gt;
&lt;br /&gt;
=== CVF IDE configuration ===&lt;br /&gt;
# Configure everything as specified in [[Compiling with CVF]].&lt;br /&gt;
# Add the source files listed in the prerequisites above to the source files listing.&lt;br /&gt;
# Go to '''Tools--&amp;gt;Options...--&amp;gt;Directories'''. There, add the '''$DOTNET2K3/Vc7/bin''' to the '''Executable files''''; the '''$DOTNET2K3/Vc7/include''' and '''$DOTNET2K3/Vc7/PlatformSDK/include''' to the '''Include files'''; and finally, the '''$DOTNET2K3/Vc7/lib''', '''$DOTNET2K3/Vc7/PlatformSDK/lib''' and  '''$DOTNET2K3/Vc7/PlatformSDK/bin''' to the '''Library files'''.&lt;br /&gt;
# Go to '''Projects--&amp;gt;Settings--&amp;gt;Release--&amp;gt;Link--&amp;gt;Input'''. There, add the following libraries: '''netcdf.lib netcdf_.lib hd421.lib hm421.lib libjpeg.lib'''. (Make sure the hdf5 libraries as well as the szlib and zlib libraries are already mentioned).&lt;br /&gt;
&lt;br /&gt;
=== Troubleshoots ===&lt;br /&gt;
'''Q: I get unresolved external references during linkage, but I have all the libraries mentioned above included. What should I do?'''&lt;br /&gt;
&lt;br /&gt;
A: Unresolved external references can come out for two reasons:&lt;br /&gt;
#you didn't specified all the libraries required or all the paths for the default libraries or,&lt;br /&gt;
#[http://en.wikipedia.org/wiki/Name_decoration name mangling] problems. Use the [[dumpbin]] utility to the libraries to checkout which language convention they are using. If that's the problem then you need to try to get new libraries with the correct naming convention.&lt;br /&gt;
&lt;br /&gt;
That's it, you should now be able to build the [[ConvertToHdf5]] project successfully.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Q: I got a message saying the entry point _NF_PUT_ATT_REAL@28 could not be located in netcdf.dll'''&lt;br /&gt;
&lt;br /&gt;
A: copy the file netcdf.dll to the exe folder&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
*[http://www.hdfgroup.org/ HDF5 Homepage]&lt;br /&gt;
*[http://www.hdfgroup.org/ HDF4 Homepage]&lt;br /&gt;
&lt;br /&gt;
== Links ==&lt;br /&gt;
&lt;br /&gt;
*[[Module_Atmosphere]]&lt;br /&gt;
*[[Module_InterfaceWaterAir]]&lt;br /&gt;
*[[Coupling_Water-Atmosphere_User_Manual]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Tools]]&lt;br /&gt;
[[Category:Hdf5]]&lt;/div&gt;</summary>
		<author><name>Anatrancoso</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=ConvertToHDF5&amp;diff=3263</id>
		<title>ConvertToHDF5</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=ConvertToHDF5&amp;diff=3263"/>
				<updated>2010-08-19T17:14:34Z</updated>
		
		<summary type="html">&lt;p&gt;Anatrancoso: /* Introduction */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The '''ConvertToHDF5''' is an application which allows the making of several operations, called '''actions''', involving HDF5 files: conversion of data in other formats (e.g. NETCDF) to HDF5, grid interpolation, concatenation of several files.&lt;br /&gt;
&lt;br /&gt;
Running options for this application are specified by the user in a input file named [[ConvertToHDF5#Input file (ConvertToHDF5Action.dat)|'''ConvertToHDF5Action.dat''']]. Several actions can be specified in the same input file, being processed sequentially by the ConvertToHDF5 application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Introduction=&lt;br /&gt;
The operations involving HDF5 files performed by ConvertToHDF5, specified individually by an action, can be organized in:&lt;br /&gt;
&lt;br /&gt;
* [[#file management|file management]]&lt;br /&gt;
* [[#grid interpolation|grid interpolation]] and &lt;br /&gt;
* [[#format conversion|format conversion]]. &lt;br /&gt;
&lt;br /&gt;
These types and the respective actions are detailed in the next sections. &lt;br /&gt;
&lt;br /&gt;
The input file specification for each action can be found bellow in the [[#Input file (ConvertToHDF5Action.dat)|Input file (ConvertToHDF5Action.dat)]] section.&lt;br /&gt;
&lt;br /&gt;
==File management==&lt;br /&gt;
&lt;br /&gt;
===Glue files===&lt;br /&gt;
This action consists in joining or glue in a single HDF5 file two or more HDF5 files having the same HDF5 data groups and referring to time periods which come in sequence. Both sets of 2D and 3D HDF5 files can be glued.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Glue MOHID Water results files from several runs produced in continuous running of the model, for storage space economy reasons. Can be used to join data from other origins (e.g. results of meteorological models) as long as the HDF5 format is the one supported by MOHID Water.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 files to be glued. &amp;quot;Grid&amp;quot; and &amp;quot;Results&amp;quot; data groups should be equal in all these files.&lt;br /&gt;
&lt;br /&gt;
'''Output:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with glued &amp;quot;Results&amp;quot; data. &amp;quot;Residual&amp;quot; and &amp;quot;Statistics&amp;quot; HDF5 data groups are not copied to the output file since they are time period specific (different values potentially occour in each file). General statistics can be calculated for the glued HDF5 file data using tool [[HDF5Statistics]].&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#GLUES HDF5 FILES|GLUES HDF5 FILES]].&lt;br /&gt;
&lt;br /&gt;
==Grid interpolation==&lt;br /&gt;
&lt;br /&gt;
===Interpolate files===&lt;br /&gt;
This action performs the conversion of one HDF5 file data existing in one 2D or 3D spatial grid to another 2D or 3D spatial grid, creating a new HDF5 file. The interpolation is performed only for the data located a time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
The HDF5 file containing data to be interpolated is called the '''father file'''.&lt;br /&gt;
&lt;br /&gt;
In case of 3D interpolation the application conducts first the horizontal grid interpolation&lt;br /&gt;
(keeping father geometry) and only after it conducts the vertical interpolation (from father geometry to new geometry).&lt;br /&gt;
&lt;br /&gt;
Several types of 2D interpolation are available for use: bilinear, spline 2D and triangulation.&lt;br /&gt;
For vertical interpolation (used in 3D interpolation) can be supplied several polinomial degrees for interpolation.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain an HDF5 file with data for forcing or providing initial conditions for a MOHID Water model, e.g. a meteorological forcing file.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
For 2D/3D interpolation:&lt;br /&gt;
&lt;br /&gt;
- father HDF5 file;&lt;br /&gt;
&lt;br /&gt;
- father horizontal data grid, in a grid data file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
- new horizontal data grid, in a grid data file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
For 3D interpolation also needed:&lt;br /&gt;
&lt;br /&gt;
- father vertical geometry, in a geometry file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
- new vertical geometry, in a geometry file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
- auxiliary horizontal data grid, in a grid data file in the format supported by MOHID; this file is used for horizontal grid interpolation in 3D interpolation operations.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with interpolated data. In case of 3D interpolation also produced an auxiliary HDF5 file with the result of the horizontal grid interpolation, which can be inspected to check if this operation is well performed.&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#INTERPOLATE GRIDS|INTERPOLATE GRIDS]].&lt;br /&gt;
&lt;br /&gt;
===Patch files===&lt;br /&gt;
This action consists in performing an interpolation of HDF5 data between grids, as in action [[#Interpolate files|Interpolate files]], but considering more than one HDF5 file as containing data to be interpolated to the new grid and a priority scale. The interpolation is performed only for the data located in the time window specified by the user. The present version of this action operates only on 2D data.&lt;br /&gt;
&lt;br /&gt;
Each HDF5 file containing data to be interpolated is called a '''father file''' and has an user-attributed '''priority level''' to be respected in the interpolation process: for each new grid cell the ConvertToHDF5 application will look for data first on the Level 1 father file and only in the case this data is inexistent will it look for data in Level 2 file, proceeding in looking for higher level files if no data is found subsequentely.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
To obtain an HDF5 file with data from several HDF5 files each containing data with different spatial resolution and only for a specific part of the new grid. This is, for instance, the case when one is preparing a best resolution meteorological HDF5 file for forcing MOHID Water from several meteorological model domains, having different spatial resolution and span, since the best resolution data is not available for all new grid cells.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
The new horizontal data grid, in a grid data file in the format supported by MOHID, and for each father file:&lt;br /&gt;
&lt;br /&gt;
- level of priority: 1 = maximum priority, priority decreases with increasing level value;&lt;br /&gt;
&lt;br /&gt;
- data grid, in the form of a grid data file in the format supported by MOHID.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with patched data.&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#PATCH HDF5 FILES|PATCH HDF5 FILES]].&lt;br /&gt;
&lt;br /&gt;
==Format conversion==&lt;br /&gt;
&lt;br /&gt;
===Meteorological model data===&lt;br /&gt;
Mohid does not simulate explicitly the atmosphere, but needs information about atmospheric properties in time and space. This requires that atmospheric properties are supplied to MOHID Water in supported formats. These formats can be derived from meteorological data in HDF5 format. Because the results of meteorological models are accessed in different formats conversion is required. &lt;br /&gt;
&lt;br /&gt;
The formats currently convertible to HDF5 in ConvertToHDF5 include the MM5 and the ERA40. These are succintly detailed in the next sections.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====''ERA40''====&lt;br /&gt;
This format refers to the European Centre for Medium-Range Weather Forecasts (ECMWF) 40 years re-analysises results, acessed by site http://data.ecmwf.int/data/d/era40_daily/. This data is available for several meteorological variables with maximum 6 hour periodicity for days in the period from 1957-09-01 to 2002-08-31. &lt;br /&gt;
&lt;br /&gt;
ERA40 data files are supplied by ECMWF in a NetCDF format and with an user-costumized time window, periodicity (time step range from 6 hours to a day) and meteorological properties set. The ERA40 meteorological properties which are recognized by MOHID are presented bellow together with the correspondent MOHID name: &lt;br /&gt;
&lt;br /&gt;
 ---ERA40 NAME---         ---MOHID NAME---&lt;br /&gt;
   sshf                     sensible heat                &lt;br /&gt;
   slhf                     latent heat                  &lt;br /&gt;
   msl                      atmospheric pressure &lt;br /&gt;
   tcc                      cloud cover &lt;br /&gt;
   p10u                     wind velocity X&lt;br /&gt;
   p10v                     wind velocity Y&lt;br /&gt;
   p2t                      air temperature&lt;br /&gt;
   ewss                     wind stress X&lt;br /&gt;
   nsss                     wind stress Y&lt;br /&gt;
&lt;br /&gt;
The standard ConvertToHDF5 action is to convert to HDF5 the data referring to all MOHID Water recognized property available in the ERA40 file, producing an individual HDF5 file for each property. The name of each HDF5 file generated includes the ERA40 meteorological property identificator correspondent to the data contained.&lt;br /&gt;
&lt;br /&gt;
Alternatively, ConvertToHDF5 can copy to a single ASCII file the heading information concerning each meteorological variable considered in the original ERA40 file.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain an HDF5 file with data suitable for being used for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
ERA40 NetCDF file.&lt;br /&gt;
&lt;br /&gt;
'''Output:'''&lt;br /&gt;
&lt;br /&gt;
One HDF5 file for each meteorological property contained in the original NetCDF file.&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT ERA40 FORMAT|CONVERT ERA40 FORMAT]].&lt;br /&gt;
&lt;br /&gt;
====''Aladin''====&lt;br /&gt;
This format relates to Aladin meteorological model results. Some of the atmospheric property needed by MOHID Water is present in Aladin output files, enabling to run prediction simulations with MOHID Water when access to Aladin prevision files is available.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts Aladin results files from the original format to HDF5 format, allowing the easy use of these results in the MOHID framework. Conversion is only performed for the MM5 properties and the time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Produce HDF5 meteorological data usable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
Aladin netcdf results file to convert.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
An HDF5 file with Aladin results and a grid data file in MOHID format with the Aladin grid pseudo-information: a fake orography is created of 100 m depth.&lt;br /&gt;
This last file can be used to interpolate the Aladin data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]), for instance to produce an HDF5 file suitable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Compilation:'''&lt;br /&gt;
&lt;br /&gt;
Caution! The ConvertToHDF5 executable must be compiled with the [[Big-endian little-endian|Big-Endian]] option set (see compatibility in the project's settings).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT ALADIN FORMAT|CONVERT ALADIN FORMAT]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====''MM5''====&lt;br /&gt;
This format relates to the Fifth-Generation NCAR / Penn State Mesoscale Model (MM5) output files format. Almost every atmospheric property needed by MOHID Water is present in MM5 output files.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts MM5 results files from the original format to HDF5 format, allowing the easy use of these results in the MOHID framework. Conversion is only performed for the MM5 properties and the time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
Besides the conversion, the application can calculate some properties not contained in&lt;br /&gt;
the MM5 files using the available information: these are wind stress, relative humidity and mean sea level pressure.&lt;br /&gt;
&lt;br /&gt;
For conversion to be completed it is required the horizontal grid information of MM5 results which is available in special TERRAIN files.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Produce HDF5 meteorological data usable to force MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
MM5 results file to convert and MM5 TERRAIN file. The TERRAIN file supplies the MM5 results grid information. &lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
A HDF5 file with MM5 results and a grid data file in MOHID format with the MM5 grid information.&lt;br /&gt;
This last file can be used to interpolate the MM5 data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]), for instance to produce an HDF5 file suitable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Compilation:'''&lt;br /&gt;
&lt;br /&gt;
Caution! The ConvertToHDF5 executable must be compiled with the [[Big-endian little-endian|Big-Endian]] option set (see compatibility in the project's settings).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT MM5 FORMAT|CONVERT MM5 FORMAT]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====''WRF''====&lt;br /&gt;
This format relates to the Weather Research and Forecast model (WRF) output files format. Almost every atmospheric property needed by MOHID Water is present in WRF output files.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts WRF results files from the original format to HDF5 format, allowing the easy use of these results in the MOHID framework. Conversion is only performed for the WRF properties and the time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
Besides the conversion, the application can calculate some properties not contained in&lt;br /&gt;
the WRF files using the available information: these are wind stress, relative humidity and mean sea level pressure.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Produce HDF5 meteorological data usable to force MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
WRF direct output file.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
An HDF5 file with WRF results and a grid data file in MOHID format with the WRF grid information.&lt;br /&gt;
This last file can be used to interpolate the WRF data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]), for instance to produce an HDF5 file suitable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Compilation:'''&lt;br /&gt;
&lt;br /&gt;
Caution! [[PROJ4 | PROJ4]] library is needed! See [[#Compile_ModuleWRFFormat |  Compile_ModuleWRFFormat]]&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT WRF FORMAT|CONVERT WRF FORMAT]].&lt;br /&gt;
&lt;br /&gt;
===Ocean model data===&lt;br /&gt;
Ocean model data, available in diverse formats, can be used by MOHID Water to specify boundary (open ocean boundary and surface), initial conditions or for validation. These uses require that the model data is in HDF5 format and conversion is therefore needed.&lt;br /&gt;
&lt;br /&gt;
Currently the large scale ocean models formats convertible into HDF5 by ConvertToHDF5 includes MERCATOR.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====''MERCATOR''====&lt;br /&gt;
MERCATOR data files are supplied in a NetCDF format and with an user-costumized spatial window and periodicity. Water level and water properties (temperature and salinity) data is available in type T files, velocity component u data is available in type U files and velocity component v data is available in type V files. The type of data of a specific MERCATOR file is generally indicated in the file name.&lt;br /&gt;
&lt;br /&gt;
The standard ConvertToHDF5 action is to convert to HDF5 the data referring to temperature, salinity, water level, component u of velocity and component v of velocity.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain HDF5 MERCATOR data usable for forcing or validation of MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
NetCDF MERCATOR results data files and NetCDF MERCATOR grid data files. It should be provided one grid data file of each type: T, U and V. These are generally provided by the MERCATOR services together with the results files.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
One HDF5 file containing all properties contained in the recognized set of properties (temperature, salinity, water level, velocity u and velocity v) and the correspondent grid data and geometry files, containing respectively the horizontal grid and the vertical discretization of the HDF5 file. The grid data and geometry files can be used afterwards to interpolate the MERCATOR data to another grid and geometry (see [[#Interpolate files|Interpolate files]]).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT MERCATOR FORMAT|CONVERT MERCATOR FORMAT]].&lt;br /&gt;
&lt;br /&gt;
===Climatological data===&lt;br /&gt;
Climatological data can be used in MOHID Water to specify boundary (open ocean boundary and surface), initial conditions or for validation, in case more realistic data (measurements or model) data is unavailable. This data is generally supplied by producers in formats not readly usable by MOHID Water which justifies the existence of a conversion tool.&lt;br /&gt;
&lt;br /&gt;
Two climatological data format conversions are implemented in ConvertToHDF5: Levitus ocean data and Hellerman Rosenstein meteorological data.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====''Levitus''====&lt;br /&gt;
The Levitus climatology provides results for water temperature and salinity.&lt;br /&gt;
The ConvertToHDF5 action converts the climatological data for the properties and spatial window requested by the user. &lt;br /&gt;
Typically, it requires 3 steps to complete the task:&lt;br /&gt;
&lt;br /&gt;
- convert levitus format &lt;br /&gt;
&lt;br /&gt;
- extrapolate the data to the whole levitus domain(required to avoid uncoincidental coastlines) &lt;br /&gt;
&lt;br /&gt;
- interpolate with the model grid(bathymetry)&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain climatological data in HDF5 format to use as boundary forcing and/or initial condition specification in MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
Levitus climatological data files, one per property and per time period (e.g a month).&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with Levitus climatological data, grid data file with the horizontal&lt;br /&gt;
grid of the data and a geometry file with vertical discretization of the data (MOHID formats).&lt;br /&gt;
The grid data and the geometry files can be used to interpolate the climatological data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT LEVITUS FORMAT|CONVERT LEVITUS FORMAT]].&lt;br /&gt;
&lt;br /&gt;
====''Hellerman Rosenstein''====&lt;br /&gt;
This is a meteorological climatology providing wind stress. There is a file per wind stress component. Since the data refer to surface values it is a 2D field.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts the climatological data for the properties and spatial window provided by the user.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain climatological data in HDF5 format to use as meteorological forcing in MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
Hellerman Rosenstein climatological data ASCII files, one per wind stress component.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with Hellerman Rosenstein climatological data and grid data file with the horizontal&lt;br /&gt;
grid of the climatological data. This grid data file can be used to interpolate the climatological data from the original horizontal grid to a new grid (see [[#Interpolate files|Interpolate files]]).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT HELLERMAN ROSENSTEIN ASCII|CONVERT HELLERMAN ROSENSTEIN ASCII]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====''World Ocean Atlas 2005''====&lt;br /&gt;
The World Ocean Atlas (WOA) 2005 climatology provides results for water temperature, salinity and several water quality and biology properties.&lt;br /&gt;
&lt;br /&gt;
Description, Action and Input Files are described in a separate page: [[ConvertToHDF5 WOA2005]].&lt;br /&gt;
&lt;br /&gt;
==Input file (ConvertToHDF5Action.dat)==&lt;br /&gt;
===General structure===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt; (block containing instructions for running a specific action) &lt;br /&gt;
 ACTION                    : ... (intended action)&lt;br /&gt;
 ... (action specific instructions)&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : ...&lt;br /&gt;
 ...&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===GLUES HDF5 FILES===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : GLUES HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 3D_FILE                   : 0/1 (0 = 2D file, 1 = 3D file)&lt;br /&gt;
 &lt;br /&gt;
 TIME_GROUP                : ... (Default=&amp;quot;Time&amp;quot;. Other option: &amp;quot;SurfaceTime&amp;quot;.)&lt;br /&gt;
 &lt;br /&gt;
 BASE_GROUP                : ... (Default=&amp;quot;Results&amp;quot;. Other options: &amp;quot;Residual&amp;quot;, &amp;quot;SurfaceResults&amp;quot;.)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 &lt;br /&gt;
 (block of HDF5 data files)&lt;br /&gt;
 &amp;lt;&amp;lt;begin_list&amp;gt;&amp;gt;&lt;br /&gt;
 ... (path/name of HDF5 file with data to be included in glue, one per line, at least two files)&lt;br /&gt;
 ...                      &lt;br /&gt;
 &amp;lt;&amp;lt;end_list&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===INTERPOLATE GRIDS===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION     : ... (type of horizontal interpolation: 1 = Bilinear, 2 = Spline2D,&lt;br /&gt;
                                  3 = Triangulation)&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION_WINDOW      : ... ... ... ... (2D spatial window to consider for interpolation: &lt;br /&gt;
                                              Xmin Ymin Xmax Ymax; default = all domain)&lt;br /&gt;
 &lt;br /&gt;
 START                     : ... (start date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 END                       : ... (end date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D           : 0/1 (0 = 2D interpolation, 1 = 3D interpolation)&lt;br /&gt;
 &lt;br /&gt;
 FATHER_FILENAME           : ... (path/name of input HDF5 file with data to be interpolated)&lt;br /&gt;
 FATHER_GRID_FILENAME      : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization of input HDF5 file)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of output HDF5 file to be created)&lt;br /&gt;
 NEW_GRID_FILENAME         : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization intended for output HDF5 file)&lt;br /&gt;
 &lt;br /&gt;
 EXTRAPOLATE_2D            : 0/1/2/3/4/5 (2D extrapolation: 0=no extrapolation, 1=medium&lt;br /&gt;
                                      triangulation, 2=high triangulation, &lt;br /&gt;
                                      3=nearest neighbour, 4=nearest cell, &lt;br /&gt;
                                      5=constant value)&lt;br /&gt;
 &lt;br /&gt;
 EXTRAPOLATE_VALUE         : ... (name of the value to extrapolate to when EXTRAPOLATE_2D is&lt;br /&gt;
                                  set to constant value (5))&lt;br /&gt;
 &lt;br /&gt;
 DO_NOT_BELIEVE_MAP        : 0/1 (0=consider input HDF5 file map, 1=do not consider input HDF5&lt;br /&gt;
                                  file map)&lt;br /&gt;
 &lt;br /&gt;
 BASE_GROUP                : ... (name of base group of HDF5 variables containing data to be &lt;br /&gt;
                                  interpolated; default is &amp;quot;/Results&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 (if INTERPOLATION3D : 1 also required:)&lt;br /&gt;
 FATHER_GEOMETRY           : ... (path/name of file (MOHID format) with vertical discretization&lt;br /&gt;
                                  of input HDF5 file)&lt;br /&gt;
 NEW_GEOMETRY              : ... (path/name of file (MOHID format) with vertical discretization&lt;br /&gt;
                                  intended for output HDF5 file)&lt;br /&gt;
 POLI_DEGREE               : 1/... (degree of vertical interpolation: 1=linear, ...)&lt;br /&gt;
 &lt;br /&gt;
 AUX_GRID_FILENAME         : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization intended for auxiliar output HDF5 file;&lt;br /&gt;
                                  default is file provided in NEW_GRID_FILENAME)&lt;br /&gt;
 &lt;br /&gt;
 AUX_OUTPUTFILENAME        : ... (path/name of auxiliar output HDF5 file to contain result&lt;br /&gt;
                                  of horizontal grid interpolation)   &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - the file indicated in AUX_GRID_FILENAME can be different from the one indicated in&lt;br /&gt;
   NEW_GRID_FILENAME in terms of bathymetry, while the horizontal grid should be, commonly, the&lt;br /&gt;
   same: this altered bathymetry can be used to extend the water column in the original data so&lt;br /&gt;
   that the process of vertical interpolation is done easily;&lt;br /&gt;
 &lt;br /&gt;
 - in case of INTERPOLATION3D : 1, ConvertToHDF5 can generate new versions of bathymetry which &lt;br /&gt;
   are consistent with the geometry definition (extension is '.new'); there are possibly three&lt;br /&gt;
   bathymetry changes referring to father grid, new grid and aux grid (the same bathymetry is&lt;br /&gt;
   not altered twice); although initially new and aux grid are the same they can result &lt;br /&gt;
   different because of bathymetry changes;&lt;br /&gt;
 &lt;br /&gt;
 - in case the new geometry is 2D and father geometry is 3D then POLI_DEGREE : 1 &lt;br /&gt;
   (linear interpolation) should be used;&lt;br /&gt;
 &lt;br /&gt;
 - EXTRAPOLATE_2D : 1/2/3/4/5 should be considered if it is expected that the coast line is not&lt;br /&gt;
   coincidental in the father and new grids, to avoid lack of data in the interpolation&lt;br /&gt;
   process; extrapolation is performed for all cells even the land cells; &lt;br /&gt;
 &lt;br /&gt;
 - in case of DO_NOT_BELIEVE_MAP : 1 the application generates a map based on cells where&lt;br /&gt;
   interpolation results are available; this causes that if EXTRAPOLATE_2D : 1/2/3/4/5 is used&lt;br /&gt;
   the AUX_GRID_FILENAME should not have land cells in order for the new map to be concurrent&lt;br /&gt;
   with the result of extrapolation and avoid errors generation, specially if INTERPOLATION3D :&lt;br /&gt;
   1 is considered.&lt;br /&gt;
&lt;br /&gt;
===PATCH HDF5 FILES===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : PATCH HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION     : ... (type of interpolation: 3 = Triangulation, default and only&lt;br /&gt;
                                  one implemented)&lt;br /&gt;
 &lt;br /&gt;
 START                     : ... (start date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 END                       : ... (end date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 &lt;br /&gt;
 (block for each father HDF5 file, should be at least two)&lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                     : ... (integer priority level: 1 = highest, increase for lower&lt;br /&gt;
                                  priority)&lt;br /&gt;
 FATHER_FILENAME           : ... (path/name of input HDF5 file with data to be interpolated)&lt;br /&gt;
 FATHER_GRID_FILENAME      : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization of input HDF5 file)&lt;br /&gt;
 N_REMOVE_FRAME            : 0   (width, in number of cells, of frame to remove)&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of output HDF5 file to be created)&lt;br /&gt;
 NEW_GRID_FILENAME         : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization intended for output HDF5 file)&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CONVERT ERA40 FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT ERA40 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                  : ... (path/name of ERA40 NetCDF file)&lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
                                 (root of name for all files produced)&lt;br /&gt;
 &lt;br /&gt;
 CONVERT_TO_ASCII          : 0/1 (1 = convert variable heading info for ASCII file; 0 = default)&lt;br /&gt;
 CONVERT_TO_HDF5           : 0/1 (1 = convert to HDF5 file; 0 = default)&lt;br /&gt;
 GRIDTO180                 : 0/1 (1 = convert grid from [0 360] to [-180 180], 0 = default)&lt;br /&gt;
 &lt;br /&gt;
 XX_VARIABLE               : ... (name of longitude variable in the input file: usual name &lt;br /&gt;
                                  is &amp;quot;longitude&amp;quot;)&lt;br /&gt;
 YY_VARIABLE               : ... (name of longitude variable in the input file: usual name &lt;br /&gt;
                                  is &amp;quot;latitude&amp;quot;)&lt;br /&gt;
 TIME_VARIABLE             : ... (name of time variable in the input file: usual name is&lt;br /&gt;
                                  &amp;quot;time&amp;quot;)&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - either CONVERT_TO_ASCII : 1 or CONVERT_TO_HDF5 : 1 must be chosen for any action to be&lt;br /&gt;
 performed by ConvertToHDF5;&lt;br /&gt;
 &lt;br /&gt;
 - when CONVERT_TO_HDF5 : 1 an HDF5 file is produced for every variable contained in the&lt;br /&gt;
 original ERA40 file; the name of each file is composed of the name indicated on FILENAME&lt;br /&gt;
 concatenated with the ERA40 variable identifier;&lt;br /&gt;
 &lt;br /&gt;
 - to the XX_VARIABLE, YY_VARIABLE and TIME_VARIABLE keywords should generally be  &lt;br /&gt;
 specified &amp;quot;longitude&amp;quot;, &amp;quot;latitude&amp;quot; and &amp;quot;time&amp;quot;, respectively; the option to&lt;br /&gt;
 include as keywords was made only to make the application robust to future variable name&lt;br /&gt;
 changes.&lt;br /&gt;
&lt;br /&gt;
===CONVERT ALADIN FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT ALADIN FORMAT&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : aladin.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : aladin_griddata.dat&lt;br /&gt;
 &lt;br /&gt;
 !Put here the name of any netcdf file for grid-data generation's sake.&lt;br /&gt;
 INPUT_GRID_FILENAME      :   D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKCLOUD_OPASYMP_19723_20088.nc&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 (path to aladin netcdf file)\ALADIN_BULKIR_OPASYMP_19723_20088.nc&lt;br /&gt;
 ...&lt;br /&gt;
 &amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - the name of each Aladin property to convert in &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;...&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt; block must conform to the following variables&lt;br /&gt;
 &lt;br /&gt;
           ---ALADIN NAME---    ---MOHID NAME---&lt;br /&gt;
             soclotot            CloudCover_&lt;br /&gt;
             sohumrel            RelativeHumidity_&lt;br /&gt;
             sofluxir            NonSolarFlux_&lt;br /&gt;
             sosspres            AtmosphericPressure_&lt;br /&gt;
             sosolarf            SolarRadiation_&lt;br /&gt;
             sotemair            AirTemperature_&lt;br /&gt;
             sowinmod            WindModulus_&lt;br /&gt;
             sowaprec            Precipitation_&lt;br /&gt;
             sozotaux            WindStressX_&lt;br /&gt;
             sometauy            WindStressY_&lt;br /&gt;
             sowindu10           WindVelocityX_&lt;br /&gt;
             sowindv10           WindVelocityY_&lt;br /&gt;
&lt;br /&gt;
===CONVERT MM5 FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT MM5 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                  : ... (path/name of MM5 file)&lt;br /&gt;
 TERRAIN_FILENAME          : ... (path/name of MM5 TERRAIN file)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME               : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME         : ... (path/name of grid data file with horizontal grid of MM5 data to be created)&lt;br /&gt;
 &lt;br /&gt;
 COMPUTE_WINDSTRESS           : 0/1 (1 = compute and write wind stress field; 0 = default)&lt;br /&gt;
 COMPUTE_WINDMODULUS          : 0/1 (1 = compute wind modulus; 0 = default)&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY    : 0/1 (1 = compute and write 2-meter relative humidity field; 0 = default)&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY_3D : 0/1 (1 = compute and write 3D relative humidity field; 0 = default)&lt;br /&gt;
 COMPUTE_PRECIPITATION        : 0/1 (1 = compute and write precipitation field; 0 = default)&lt;br /&gt;
 COMPUTE_MSLP                 : 0/1 (1 = compute and write mean sea level pressure field; 0 = default)&lt;br /&gt;
 &lt;br /&gt;
 WRITE_XYZ                    : 0/1 (1 = write xyz center grid cells; 0 = default)&lt;br /&gt;
 WRITE_TERRAIN                : 0/1 (1 = write MM5 TERRAIN fields; 0 = default)&lt;br /&gt;
 &lt;br /&gt;
 START                        : ... (start date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 END                          : ... (end date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
  &lt;br /&gt;
 (block of MM5 properties to convert)&lt;br /&gt;
 &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;&lt;br /&gt;
 ... (name of MM5 property to convert do HDF5 format, one per line)&lt;br /&gt;
 ... &lt;br /&gt;
 &amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - the name of each MM5 property to convert in &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;...&amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt; block must&lt;br /&gt;
 conform to the MOHID designation specified in code of ModuleGlobalData; the correspondence is &lt;br /&gt;
 the following (see [[Module_InterfaceWaterAir]] for a more detailed explanation).&lt;br /&gt;
 &lt;br /&gt;
           ---MM5 NAME---    ---MOHID NAME---&lt;br /&gt;
             T2             air temperature&lt;br /&gt;
             PSTARCRS       atmospheric pressure&lt;br /&gt;
             U10            wind velocity X&lt;br /&gt;
             V10            wind velocity Y&lt;br /&gt;
             UST            wind shear velocity&lt;br /&gt;
             LHFLUX         latent heat&lt;br /&gt;
             SWDOWN         sensible heat&lt;br /&gt;
             SWDOWN         solar radiation&lt;br /&gt;
             LWDOWN         infrared radiation&lt;br /&gt;
             SWOUT          top outgoing shortwave radiation&lt;br /&gt;
             LWOUT          top outgoing longwave radiation&lt;br /&gt;
             SOIL T 1       soil temperature layer 1&lt;br /&gt;
             SOIL T 1       soil temperature layer 2&lt;br /&gt;
             SOIL T 1       soil temperature layer 3&lt;br /&gt;
             SOIL T 1       soil temperature layer 4&lt;br /&gt;
             SOIL T 1       soil temperature layer 5&lt;br /&gt;
             SOIL T 1       soil temperature layer 6&lt;br /&gt;
             Q2             2-meter mixing ratio&lt;br /&gt;
             TSEASFC        sea water temperature&lt;br /&gt;
             PBL HGT        PBL height&lt;br /&gt;
             PBL REGIME     PBL regime&lt;br /&gt;
             RAIN CON       accumulated convective precipitation        (cm)&lt;br /&gt;
             RAIN NON       accumulated non-convective precipitation    (cm)&lt;br /&gt;
             GROUND T       ground temperature&lt;br /&gt;
             RES TEMP       infinite reservoir slab temperature&lt;br /&gt;
             U              wind velocity X_3D&lt;br /&gt;
             V              wind velocity Y_3D&lt;br /&gt;
             W              wind velocity Z_3D&lt;br /&gt;
             T              air temperature_3D&lt;br /&gt;
             PP             atmospheric pressure_3D&lt;br /&gt;
             Q              mixing ratio_3D&lt;br /&gt;
             CLW            cloud water mixing ratio_3D&lt;br /&gt;
             RNW            rain water mixing ratio_3D&lt;br /&gt;
             ICE            cloud ice mixing ratio_3D&lt;br /&gt;
             SNOW           snow mixing ratio_3D&lt;br /&gt;
             RAD TEND       atmospheric radiation tendency_3D&lt;br /&gt;
&lt;br /&gt;
===CONVERT WRF FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                       : CONVERT WRF FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                     : ... (path/name of WRF file)&lt;br /&gt;
 OUTPUTFILENAME               : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME         : ... (path/name of grid data file with horizontal grid of WRF data&lt;br /&gt;
                                     to be created)&lt;br /&gt;
 &lt;br /&gt;
 COMPUTE_WINDSTRESS           : 0/1 (1 = compute and write wind stress field; 0 = default)&lt;br /&gt;
 COMPUTE_WINDMODULUS          : 0/1 (1 = compute wind modulus; 0 = default)&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY    : 0/1 (1 = compute and write 2-meter relative humidity field; 0 = default)&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY_3D : 0/1 (1 = compute and write 3D relative humidity field; 0 = default)&lt;br /&gt;
 COMPUTE_PRECIPITATION        : 0/1 (1 = compute and write precipitation field; 0 = default)&lt;br /&gt;
 COMPUTE_MSLP_MM5             : 0/1 (1 = compute mean sea level pressure with MM5toGrads algorithm; 0 = default)&lt;br /&gt;
 COMPUTE_MSLP_WRF             : 0/1 (1 = compute mean sea level pressure with ARWPost algorithm; 0 = default)&lt;br /&gt;
 &lt;br /&gt;
 WRITE_XYZ                    : 0/1 (1 = write xyz center grid cells; 0 = default)&lt;br /&gt;
 WRITE_TERRAIN                : 0/1 (1 = write MM5 TERRAIN fields; 0 = default)&lt;br /&gt;
 OUTPUT_DT                    : real (DT interval in seconds between each output; default = 0.0)&lt;br /&gt;
 &lt;br /&gt;
 START                        : ... (start date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 END                          : ... (end date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
  &lt;br /&gt;
 (block of properties to convert)&lt;br /&gt;
 &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;&lt;br /&gt;
 ... (name of property to convert do HDF5 format, one per line)&lt;br /&gt;
 ... &lt;br /&gt;
 &amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
  &lt;br /&gt;
 - the name of each property to convert in &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;...&amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt; block must conform to the MOHID &lt;br /&gt;
   designation specified in code of ModuleGlobalData; the correspondence to WRF is in function &lt;br /&gt;
   VariableIsToRead in ModuleWRFFormat. Conversion is not direct since WRF outputs tendencies and not  &lt;br /&gt;
   total values. &lt;br /&gt;
 &lt;br /&gt;
 - Caution: This action is not extensively tested.&lt;br /&gt;
&lt;br /&gt;
===CONVERT MERCATOR FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT MERCATOR FORMAT&lt;br /&gt;
 &lt;br /&gt;
 READ_OPTION               : 1/2/3/4 (version of MERCATOR files)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : ... (path/name of grid data with horizontal discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME  : ... (path/name of geometry file with vertical discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 &lt;br /&gt;
 (if READ_OPTION : 1:)&lt;br /&gt;
 BASE_BULLETIN             : ...&lt;br /&gt;
 DATES_FILE                : ...&lt;br /&gt;
 NUM_DATES                 : ... &lt;br /&gt;
 &lt;br /&gt;
 (if READ_OPTION : 2/3:)&lt;br /&gt;
 INPUT_GRID_FILENAME       : ... (path/name of file with horizontal discretization of water&lt;br /&gt;
                                  properties and water level data)&lt;br /&gt;
 (if READ_OPTION : 2:)&lt;br /&gt;
 INPUT_GRID_FILENAME_U     : ... (path/name of file with horizontal discretization of velocity&lt;br /&gt;
                                  component U data)&lt;br /&gt;
 INPUT_GRID_FILENAME_V     : ... (path/name of file with horizontal discretization of velocity&lt;br /&gt;
                                  component V data)&lt;br /&gt;
 &lt;br /&gt;
 (if READ_OPTION : 3:)&lt;br /&gt;
 INPUT_BATHY_FILENAME      : ... (path/name of file with bathymetry)&lt;br /&gt;
     &lt;br /&gt;
 (if READ_OPTION : 3/4:)&lt;br /&gt;
 CALC_BAROTROPIC_VEL       : 0/1 (1 = calculate barotropic velocity, 0 = not calculate; &lt;br /&gt;
                                  default = 0)&lt;br /&gt;
 &lt;br /&gt;
 (if CALC_BAROTROPIC_VEL : 1 and READ_OPTION : 3:)&lt;br /&gt;
 INPUT_MESH_ZGRID_FILENAME : ... (path/name of file with information about layers ticknesses)&lt;br /&gt;
 &lt;br /&gt;
 (block of MERCATOR data files)&lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 ... (path/name of MERCATOR NetCDF data file, one per line, can be several)&lt;br /&gt;
 ... &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CONVERT LEVITUS FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT LEVITUS FORMAT&lt;br /&gt;
  &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : ... (path/name of grid data with horizontal discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME  : ... (path/name of geometry file with vertical discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 &lt;br /&gt;
 PERIODICITY               : ... (periodicity of Levitus data: &amp;quot;monthly&amp;quot;/&amp;quot;annual&amp;quot;; default is&lt;br /&gt;
                                  &amp;quot;monthly&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 SPATIAL_RESOLUTION        : ... (spatial resolution (degrees) of horizontal Levitus grid)&lt;br /&gt;
 &lt;br /&gt;
 FILL_VALUE                : ... (real value identificator for missing data; default is &lt;br /&gt;
                                  &amp;quot;-99.999900&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 (definition of spatial window to be present in output HDF5 file)&lt;br /&gt;
 LOWER_LEFT_CORNER         : ... ... (longitude and latitude (degrees) of south west corner)&lt;br /&gt;
 UPPER_RIGHT_CORNER        : ... ... (longitude and latitude (degrees) of north east corner)&lt;br /&gt;
 &lt;br /&gt;
 (block for each water property to be present in output HDF5 file, can be several)&lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                      : ... (name of property)&lt;br /&gt;
 ANNUAL_FILE               : ... (path/name of Levitus annual file)&lt;br /&gt;
 &lt;br /&gt;
 (block of Levitus data files)&lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 ... (path/name of Levitus data file (e.g. a monthly data file), one per line, can be several)&lt;br /&gt;
 ... &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CONVERT HELLERMAN ROSENSTEIN ASCII===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT HELLERMAN ROSENSTEIN ASCII&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : ... (path/name of grid data with horizontal discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
  &lt;br /&gt;
 PERIODICITY               : ... (periodicity of Hellerman Rosenstein data: &amp;quot;monthly&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 SPATIAL_RESOLUTION        : ... (spatial resolution (degrees) of horizontal Hellerman&lt;br /&gt;
                                  Rosenstein grid: default and only allowed value is &amp;quot;2.&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 FILL_VALUE                : ... (real value identificator for missing data; default is &lt;br /&gt;
                                  &amp;quot;-99.999900&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 (definition of spatial window to be present in output HDF5 file)&lt;br /&gt;
 LOWER_LEFT_CORNER         : ... ... (longitude and latitude (degrees) of south west corner)&lt;br /&gt;
 UPPER_RIGHT_CORNER        : ... ... (longitude and latitude (degrees) of north east corner)&lt;br /&gt;
   &lt;br /&gt;
 (block for each Hellerman Rosenstein data file)&lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                      : ... (name of property: &amp;quot;wind stress X&amp;quot;/&amp;quot;wind stress Y&amp;quot;)&lt;br /&gt;
 FILE                      : ... (path/name Hellerman Rosenstein file)&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Samples==&lt;br /&gt;
All sample files are named ''ConvertToHDF5Action.dat''.&lt;br /&gt;
&lt;br /&gt;
===Glue several MOHID(.hdf5) files===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : GLUES HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : SurfaceHydro_OP.hdf5&lt;br /&gt;
  &lt;br /&gt;
 &amp;lt;&amp;lt;begin_list&amp;gt;&amp;gt;&lt;br /&gt;
 D:\Projectos\SurfaceHydrodynamic_21.hdf5&lt;br /&gt;
 D:\Projectos\SurfaceHydrodynamic_22.hdf5&lt;br /&gt;
 &amp;lt;&amp;lt;end_list&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Interpolate 2D MOHID(.hdf5) files to a new grid===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION    : 1&lt;br /&gt;
 FATHER_FILENAME          : D:\Projectos\MohidRun\test\res\Lagrangian_1.hdf5 &lt;br /&gt;
 OUTPUTFILENAME           : OilSpillThickness_GridRegular.hdf5&lt;br /&gt;
  &lt;br /&gt;
 START                    : 2006 6 21 17 22 30&lt;br /&gt;
 END                      : 2006 6 22 17 22 0&lt;br /&gt;
  &lt;br /&gt;
 FATHER_GRID_FILENAME     : D:\Projectos\MohidRun\GeneralData\batim\Tagus.dat_A&lt;br /&gt;
 NEW_GRID_FILENAME        : TagusConstSpacing.dat&lt;br /&gt;
  &lt;br /&gt;
 BASE_GROUP               : /Results/Oil/Data_2D&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Interpolate 3D MOHID(.hdf5) files to a new grid===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION   : 1&lt;br /&gt;
 FATHER_FILENAME         : D:\Projectos\MohidRun\test\res\Lagrangian_1.hdf5 &lt;br /&gt;
 OUTPUTFILENAME          : OilSpillThickness_GridRegular.hdf5&lt;br /&gt;
 &lt;br /&gt;
 START                   : 2006 6 21 17 22 30&lt;br /&gt;
 END                     : 2006 6 22 17 22 0&lt;br /&gt;
 &lt;br /&gt;
 FATHER_GRID_FILENAME    : D:\Projectos\MohidRun\GeneralData\batim\Tagus.dat_A&lt;br /&gt;
 NEW_GRID_FILENAME       : TagusConstSpacing.dat&lt;br /&gt;
 &lt;br /&gt;
 BASE_GROUP              : /Results/Oil/Data_2D&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D         : 1&lt;br /&gt;
 FATHER_GEOMETRY         : D:\Projectos\MohidRun\test\data\Geometry_1.dat&lt;br /&gt;
 NEW_GEOMETRY            : TagusGeometry.dat&lt;br /&gt;
 AUX_GRID_FILENAME       : TagusConstSpacing.dat&lt;br /&gt;
 AUX_OUTPUTFILENAME      : Aux_GridRegular.hdf5&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Patch several MOHID(.hdf5) files to a new grid===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION : PATCH HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION   : 3&lt;br /&gt;
 &lt;br /&gt;
 START                   : 2005 2 28 13 0 0&lt;br /&gt;
 END                     : 2005 3 1 13 0 0&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                   : 3&lt;br /&gt;
 FATHER_FILENAME         : K:\MM5output\2005022812_2005030712\MM5OUT_D1.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME    : K:\MM5output\2005022812_2005030712\grid1.dat&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                   : 2&lt;br /&gt;
 FATHER_FILENAME         : K:\MM5output\2005022812_2005030712\MM5OUT_D2.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME    : K:\MM5output\2005022812_2005030712\grid2.dat&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                   : 1&lt;br /&gt;
 FATHER_FILENAME         : K:\MM5output\2005022812_2005030712\MM5OUT_D3.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME    : K:\MM5output\2005022812_2005030712\grid3.dat&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME          : MM5Forcing.hdf5&lt;br /&gt;
 NEW_GRID_FILENAME       : K:\Simula\GeneralData\Batim\CostaPortuguesa.dat&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert an ERA40 file to MOHID(.hdf5)===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                  : CONVERT ERA40 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                : D:\Aplica\ERA40\1971ERA1973.nc&lt;br /&gt;
 OUTPUTFILENAME          : D:\Aplica\ERA40\1971ERA1973T2&lt;br /&gt;
 &lt;br /&gt;
 CONVERT_TO_ASCII        : 0&lt;br /&gt;
 CONVERT_TO_HDF5         : 1&lt;br /&gt;
 &lt;br /&gt;
 XX_VARIABLE             : longitude&lt;br /&gt;
 YY_VARIABLE             : latitude&lt;br /&gt;
 TIME_VARIABLE           : time&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert a MM5 file to MOHID(.hdf5)===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                  : CONVERT MM5 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                : K:\MM5output\DataCenter\Modelos\Meteo_IST\Fev2005\MMOUT_D3&lt;br /&gt;
 TERRAIN_FILENAME        : K:\MM5output\DataCenter\Modelos\Meteo_IST\Fev2005\TERRAIN_D3&lt;br /&gt;
 OUTPUT_GRID_FILENAME    : K:\MM5output\DataCenter\Modelos\Meteo_IST\Fev2005\grid3.dat&lt;br /&gt;
 OUTPUTFILENAME          : K:\MM5output\DataCenter\Modelos\Meteo_IST\Fev2005\MM5_D3.hdf5&lt;br /&gt;
 &lt;br /&gt;
 COMPUTE_WINDSTRESS        : 0&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY : 1&lt;br /&gt;
 WRITE_XYZ                 : 0&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;&lt;br /&gt;
 solar radiation&lt;br /&gt;
 air temperature&lt;br /&gt;
 wind velocity X&lt;br /&gt;
 wind velocity Y&lt;br /&gt;
 sensible heat&lt;br /&gt;
 latent heat&lt;br /&gt;
 atmospheric pressure&lt;br /&gt;
 sea water temperature&lt;br /&gt;
 &amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert Mercator-Ocean(.nc) to MOHID(.hdf5)===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : CONVERT MERCATOR FORMAT&lt;br /&gt;
 &lt;br /&gt;
 READ_OPTION              : 2&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : Psy2v2r1v_R20060628/MercatorR20060628.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME     : Psy2v2r1v_R20060628/MercatorGridR20060628.dat&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME : Psy2v2r1v_R20060628/MercatorGeometryR20060628.dat&lt;br /&gt;
 &lt;br /&gt;
 INPUT_GRID_FILENAME      : GridFiles/ist_meteog-gridT.nc&lt;br /&gt;
 INPUT_GRID_FILENAME_U    : GridFiles/ist_meteog-gridU.nc&lt;br /&gt;
 INPUT_GRID_FILENAME_V    : GridFiles/ist_meteog-gridV.nc&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 Psy2v2r1v_R20060628/ist_meteog-mercatorPsy2v2r1v_T_MEAN_ANA_20060621_R20060628.nc&lt;br /&gt;
 Psy2v2r1v_R20060628/ist_meteog-mercatorPsy2v2r1v_T_MEAN_ANA_20060622_R20060628.nc&lt;br /&gt;
 Psy2v2r1v_R20060628/ist_meteog-mercatorPsy2v2r1v_T_MEAN_ANA_20060623_R20060628.nc&lt;br /&gt;
 &amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert Levitus format to MOHID(.hdf5) and interpolate grid===&lt;br /&gt;
==== Convert ====&lt;br /&gt;
First convert the Levitus ASCII format to a raw HDF5 format:&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : CONVERT LEVITUS FORMAT&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : Levitus.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME     : LevitusGrid.dat&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME : LevitusGeometry.dat&lt;br /&gt;
 &lt;br /&gt;
 PERIODICITY              : monthly&lt;br /&gt;
 SPATIAL_RESOLUTION       : 0.25&lt;br /&gt;
 FILL_VALUE               : -99.9999&lt;br /&gt;
 &lt;br /&gt;
 LOWER_LEFT_CORNER        : -16.0  31&lt;br /&gt;
 UPPER_RIGHT_CORNER       :   1.   40&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : salinity&lt;br /&gt;
 ANNUAL_FILE              : DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s000hr.obj&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s001&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s002&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s003&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s004&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s005&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s006&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s007&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s008&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s009&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s010&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s011&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s012&lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : temperature&lt;br /&gt;
 ANNUAL_FILE              : DataCenter\DadosBase\Ocean\Levitus\Data\Temp\t000hr.obj&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t001&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t002&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t003&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t004&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t005&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t006&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t007&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t008&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t009&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t010&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t011&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t012&lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Extrapolate ====&lt;br /&gt;
Then extrapolate the data (still in the raw HDF5 format):&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION    : 1&lt;br /&gt;
 &lt;br /&gt;
 FATHER_FILENAME          : Levitus.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME     : LevitusGrid.dat&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : LeviTusAllPointsWithData.hdf5&lt;br /&gt;
 NEW_GRID_FILENAME        : LevitusGrid.dat&lt;br /&gt;
 &lt;br /&gt;
 START                    : -9999 1  1 0 0 0&lt;br /&gt;
 END                      : -9999 12 1 0 0 0&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D          : 1&lt;br /&gt;
 FATHER_GEOMETRY          : LevitusGeometry.dat&lt;br /&gt;
 NEW_GEOMETRY             : LevitusGeometry.dat&lt;br /&gt;
 AUX_GRID_FILENAME        : LevitusGrid.dat&lt;br /&gt;
 AUX_OUTPUTFILENAME       : AuxLeviTusAllPointsWithData.hdf5&lt;br /&gt;
 &lt;br /&gt;
 POLI_DEGREE              : 3&lt;br /&gt;
 DO_NOT_BELIEVE_MAP       : 1&lt;br /&gt;
 EXTRAPOLATE_2D           : 2&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Interpolate ====&lt;br /&gt;
Finally, interpolate to the final grid and geometry (same as the [[#Interpolate 3D MOHID(.hdf5) files to a new grid| Interpolate 3D sample]]):&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION    : 1&lt;br /&gt;
 FATHER_FILENAME          : LeviTusAllPointsWithData.hdf5&lt;br /&gt;
 OUTPUTFILENAME           : CadizMonthlyLevitus.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME     : LevitusGrid.dat&lt;br /&gt;
 NEW_GRID_FILENAME        : Algarve0.02SigmaSmooth_V3_CartMoreLayers.dat&lt;br /&gt;
 &lt;br /&gt;
 START                    : -9999 1  1 0 0 0&lt;br /&gt;
 END                      : -9999 12 1 0 0 0&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D          : 1&lt;br /&gt;
 FATHER_GEOMETRY          : LevitusGeometry.dat&lt;br /&gt;
 NEW_GEOMETRY             : Geometry_1.dat&lt;br /&gt;
 AUX_OUTPUTFILENAME       : AuxCadizMonthlyLevitus.hdf5&lt;br /&gt;
 AUX_GRID_FILENAME        : Aux12km.dat&lt;br /&gt;
 &lt;br /&gt;
 POLI_DEGREE              : 3&lt;br /&gt;
 DO_NOT_BELIEVE_MAP       : 1&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that the programme may construct a new bathymetry twice. Use this bathymetry only on the AUX_GRID_FILENAME keyword.&lt;br /&gt;
&lt;br /&gt;
===Convert Hellerman Rosenstein ASCII format to MOHID(.hdf5)  ===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : CONVERT HELLERMAN ROSENSTEIN ASCII&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : ClimatologicWindStress.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME     : ClimatologicWindStressGrid.dat&lt;br /&gt;
 &lt;br /&gt;
 PERIODICITY              : monthly&lt;br /&gt;
 SPATIAL_RESOLUTION       : 2.&lt;br /&gt;
 FILL_VALUE               : -99.9999&lt;br /&gt;
 &lt;br /&gt;
 LOWER_LEFT_CORNER        : -180  -90&lt;br /&gt;
 UPPER_RIGHT_CORNER       : 180  90&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : wind stress X&lt;br /&gt;
 FILE                     : D:\Aplica\Dados\Hellerman_Rosenstein\TAUXX.DAT&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : wind stress Y&lt;br /&gt;
 FILE                     : D:\Aplica\Dados\Hellerman_Rosenstein\TAUYY.DAT&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert ALADIN(.nc) format to MOHID(.hdf5)===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT ALADIN FORMAT&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : aladin.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : aladin_griddata.dat&lt;br /&gt;
 &lt;br /&gt;
 !Put here the name of any netcdf file for grid-data generation's sake.&lt;br /&gt;
 INPUT_GRID_FILENAME      :   D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKCLOUD_OPASYMP_19723_20088.nc&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKIR_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKPRES_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKSOLAR_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKTAIR_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKWIND_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_FLUXPRE_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_STRESSU_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_STRESSV_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_U10_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_V10_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKCLOUD_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKHUMI_OPASYMP_19723_20088.nc&lt;br /&gt;
 &amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== OceanColor modules compilation ==&lt;br /&gt;
Compiling the [[ConvertToHDF5]] tool with the OceanColor modules is more complicated than one might expect. A solution is proposed here for a release version using the Compaq Visual Fortran 6.6c. The difficulties rise because C code is embedded with a fortran interface and also, extra libraries such as hdf4 are required.&lt;br /&gt;
&lt;br /&gt;
=== Pre-requisites ===&lt;br /&gt;
&lt;br /&gt;
This is a list of prerequisites to successfully compile the tool:&lt;br /&gt;
*Compaq Visual Fortran 6.5 with patch 6.6c,&lt;br /&gt;
*VS .NET 2003 (Vc7 in particular),&lt;br /&gt;
*Hdf5 libraries ('''hdf5.lib''' '''hdf5_fortran.lib''' '''hdf5_hl.lib'''),&lt;br /&gt;
*Netcdf libraries ('''netcdf.lib''' '''netcdf_.lib'''),&lt;br /&gt;
*Hdf4 libraries ('''hd421.lib''', '''hm421.lib'''),&lt;br /&gt;
*szlib, zlib and jpeg libraries ('''szlib.lib''', '''zlib.lib''' and '''libjpeg.lib'''),&lt;br /&gt;
*the fortran source files ('''ModuleConvertModisL2.F90 ModuleConvertModisL3.F90 ModuleConvertOceanColorL2.F90'''),&lt;br /&gt;
*the C source files and their fortran interface files ('''readL2scan.c readL2Seadas.c''' and '''cdata.f crossp.f fgeonav.f''').&lt;br /&gt;
&lt;br /&gt;
=== CVF IDE configuration ===&lt;br /&gt;
# Configure everything as specified in [[Compiling with CVF]].&lt;br /&gt;
# Add the source files listed in the prerequisites above to the source files listing.&lt;br /&gt;
# Go to '''Tools--&amp;gt;Options...--&amp;gt;Directories'''. There, add the '''$DOTNET2K3/Vc7/bin''' to the '''Executable files''''; the '''$DOTNET2K3/Vc7/include''' and '''$DOTNET2K3/Vc7/PlatformSDK/include''' to the '''Include files'''; and finally, the '''$DOTNET2K3/Vc7/lib''', '''$DOTNET2K3/Vc7/PlatformSDK/lib''' and  '''$DOTNET2K3/Vc7/PlatformSDK/bin''' to the '''Library files'''.&lt;br /&gt;
# Go to '''Projects--&amp;gt;Settings--&amp;gt;Release--&amp;gt;Link--&amp;gt;Input'''. There, add the following libraries: '''netcdf.lib netcdf_.lib hd421.lib hm421.lib libjpeg.lib'''. (Make sure the hdf5 libraries as well as the szlib and zlib libraries are already mentioned).&lt;br /&gt;
&lt;br /&gt;
=== Troubleshoots ===&lt;br /&gt;
'''Q: I get unresolved external references during linkage, but I have all the libraries mentioned above included. What should I do?'''&lt;br /&gt;
&lt;br /&gt;
A: Unresolved external references can come out for two reasons:&lt;br /&gt;
#you didn't specified all the libraries required or all the paths for the default libraries or,&lt;br /&gt;
#[http://en.wikipedia.org/wiki/Name_decoration name mangling] problems. Use the [[dumpbin]] utility to the libraries to checkout which language convention they are using. If that's the problem then you need to try to get new libraries with the correct naming convention.&lt;br /&gt;
&lt;br /&gt;
That's it, you should now be able to build the [[ConvertToHdf5]] project successfully.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Q: I got a message saying the entry point _NF_PUT_ATT_REAL@28 could not be located in netcdf.dll'''&lt;br /&gt;
&lt;br /&gt;
A: copy the file netcdf.dll to the exe folder&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
*[http://www.hdfgroup.org/ HDF5 Homepage]&lt;br /&gt;
*[http://www.hdfgroup.org/ HDF4 Homepage]&lt;br /&gt;
&lt;br /&gt;
== Links ==&lt;br /&gt;
&lt;br /&gt;
*[[Module_Atmosphere]]&lt;br /&gt;
*[[Module_InterfaceWaterAir]]&lt;br /&gt;
*[[Coupling_Water-Atmosphere_User_Manual]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Tools]]&lt;br /&gt;
[[Category:Hdf5]]&lt;/div&gt;</summary>
		<author><name>Anatrancoso</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=ConvertToHDF5&amp;diff=3262</id>
		<title>ConvertToHDF5</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=ConvertToHDF5&amp;diff=3262"/>
				<updated>2010-08-19T17:10:17Z</updated>
		
		<summary type="html">&lt;p&gt;Anatrancoso: /* Compilation Settings */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The '''ConvertToHDF5''' is an application which allows the making of several operations, called '''actions''', involving HDF5 files: conversion of data in other formats (e.g. NETCDF) to HDF5, grid interpolation, concatenation of several files.&lt;br /&gt;
&lt;br /&gt;
Running options for this application are specified by the user in a input file named [[ConvertToHDF5#Input file (ConvertToHDF5Action.dat)|'''ConvertToHDF5Action.dat''']]. Several actions can be specified in the same input file, being processed sequentially by the ConvertToHDF5 application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
The operations involving HDF5 files performed by ConvertToHDF5, specified individually by an action, can be organized in [[#file management|file management]], [[#grid interpolation|grid interpolation]] and [[#format conversion|format conversion]]. These types and the respective actions are detailed in the next sections. &lt;br /&gt;
&lt;br /&gt;
The input file specification for each action can be found bellow in the [[#Input file (ConvertToHDF5Action.dat)|Input file (ConvertToHDF5Action.dat)]] section.&lt;br /&gt;
&lt;br /&gt;
===Compilation Settings===&lt;br /&gt;
&lt;br /&gt;
====With VS2008====&lt;br /&gt;
&lt;br /&gt;
Use codeplex solution.&lt;br /&gt;
&lt;br /&gt;
====With Compaq Visual Fortran====&lt;br /&gt;
&lt;br /&gt;
#File / New / Fortran Console Application&lt;br /&gt;
#Project / Add to Project / Files / *.f90 (do not add ModuleWRFFormat.f90 and proj4.f90 if you don't want to use [[libfproj4]] library).&lt;br /&gt;
#Project /Settings:&lt;br /&gt;
#*Fortran tab:&lt;br /&gt;
#**Compatibility “Big Endian” to work with MM5 files.&lt;br /&gt;
#**Compilation Diagnostics / Fortran Standards Checking / Fortran95.&lt;br /&gt;
#**Preprocessor:&lt;br /&gt;
#*** Check FPP.&lt;br /&gt;
#*** INCLUDE and USE Paths: path to Libs folder.&lt;br /&gt;
#* C/C++ tab:&lt;br /&gt;
#** Preprocessor / Additional include directories: path to Libs.&lt;br /&gt;
#* Link tab:&lt;br /&gt;
#** General / Object/library modules: kernel32.lib hdf5.lib hdf5_hl.lib hdf5_fortran.lib zlib.lib szlib.lib netcdf.lib netcdf_.lib &lt;br /&gt;
#** Input / Additional library path: path to Libs.&lt;br /&gt;
# Buil / Rebuild All&lt;br /&gt;
&lt;br /&gt;
To run this executable, copy ''netcdf.dll'' to its directory.&lt;br /&gt;
To work with large files, compile with: Project / Settings / Link tab / Reserve: 10^6.&lt;br /&gt;
&lt;br /&gt;
===== Compile ModuleWRFFormat =====&lt;br /&gt;
&lt;br /&gt;
To convert [[Meteo|WRF]] files or work with other projection beside UTM and Lambert Conformal, ConvertToHDF5 must be compiled with [[libfproj4]] library. To do that:&lt;br /&gt;
# Same settings as above.&lt;br /&gt;
# Project / Add to Project / Files:&lt;br /&gt;
#* ModuleWRFFormat.f90&lt;br /&gt;
#* Proj4.f90&lt;br /&gt;
# Project / Settings:&lt;br /&gt;
#* Fortran tab / Predefined Preprocessor symbols: _USE_PROJ4&lt;br /&gt;
#* Link tab / General / Object/library modules: add libfproj4.lib (Note: ''libfproj4.lib'' and ''proj4.inc'' must be in Libs folder)&lt;br /&gt;
# Build / Rebuild All.&lt;br /&gt;
&lt;br /&gt;
===File management===&lt;br /&gt;
&lt;br /&gt;
====Glue files====&lt;br /&gt;
This action consists in joining or glue in a single HDF5 file two or more HDF5 files having the same HDF5 data groups and referring to time periods which come in sequence. Both sets of 2D and 3D HDF5 files can be glued.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Glue MOHID Water results files from several runs produced in continuous running of the model, for storage space economy reasons. Can be used to join data from other origins (e.g. results of meteorological models) as long as the HDF5 format is the one supported by MOHID Water.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 files to be glued. &amp;quot;Grid&amp;quot; and &amp;quot;Results&amp;quot; data groups should be equal in all these files.&lt;br /&gt;
&lt;br /&gt;
'''Output:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with glued &amp;quot;Results&amp;quot; data. &amp;quot;Residual&amp;quot; and &amp;quot;Statistics&amp;quot; HDF5 data groups are not copied to the output file since they are time period specific (different values potentially occour in each file). General statistics can be calculated for the glued HDF5 file data using tool [[HDF5Statistics]].&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#GLUES HDF5 FILES|GLUES HDF5 FILES]].&lt;br /&gt;
&lt;br /&gt;
===Grid interpolation===&lt;br /&gt;
&lt;br /&gt;
====Interpolate files====&lt;br /&gt;
This action performs the conversion of one HDF5 file data existing in one 2D or 3D spatial grid to another 2D or 3D spatial grid, creating a new HDF5 file. The interpolation is performed only for the data located a time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
The HDF5 file containing data to be interpolated is called the '''father file'''.&lt;br /&gt;
&lt;br /&gt;
In case of 3D interpolation the application conducts first the horizontal grid interpolation&lt;br /&gt;
(keeping father geometry) and only after it conducts the vertical interpolation (from father geometry to new geometry).&lt;br /&gt;
&lt;br /&gt;
Several types of 2D interpolation are available for use: bilinear, spline 2D and triangulation.&lt;br /&gt;
For vertical interpolation (used in 3D interpolation) can be supplied several polinomial degrees for interpolation.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain an HDF5 file with data for forcing or providing initial conditions for a MOHID Water model, e.g. a meteorological forcing file.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
For 2D/3D interpolation:&lt;br /&gt;
&lt;br /&gt;
- father HDF5 file;&lt;br /&gt;
&lt;br /&gt;
- father horizontal data grid, in a grid data file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
- new horizontal data grid, in a grid data file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
For 3D interpolation also needed:&lt;br /&gt;
&lt;br /&gt;
- father vertical geometry, in a geometry file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
- new vertical geometry, in a geometry file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
- auxiliary horizontal data grid, in a grid data file in the format supported by MOHID; this file is used for horizontal grid interpolation in 3D interpolation operations.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with interpolated data. In case of 3D interpolation also produced an auxiliary HDF5 file with the result of the horizontal grid interpolation, which can be inspected to check if this operation is well performed.&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#INTERPOLATE GRIDS|INTERPOLATE GRIDS]].&lt;br /&gt;
&lt;br /&gt;
====Patch files====&lt;br /&gt;
This action consists in performing an interpolation of HDF5 data between grids, as in action [[#Interpolate files|Interpolate files]], but considering more than one HDF5 file as containing data to be interpolated to the new grid and a priority scale. The interpolation is performed only for the data located in the time window specified by the user. The present version of this action operates only on 2D data.&lt;br /&gt;
&lt;br /&gt;
Each HDF5 file containing data to be interpolated is called a '''father file''' and has an user-attributed '''priority level''' to be respected in the interpolation process: for each new grid cell the ConvertToHDF5 application will look for data first on the Level 1 father file and only in the case this data is inexistent will it look for data in Level 2 file, proceeding in looking for higher level files if no data is found subsequentely.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
To obtain an HDF5 file with data from several HDF5 files each containing data with different spatial resolution and only for a specific part of the new grid. This is, for instance, the case when one is preparing a best resolution meteorological HDF5 file for forcing MOHID Water from several meteorological model domains, having different spatial resolution and span, since the best resolution data is not available for all new grid cells.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
The new horizontal data grid, in a grid data file in the format supported by MOHID, and for each father file:&lt;br /&gt;
&lt;br /&gt;
- level of priority: 1 = maximum priority, priority decreases with increasing level value;&lt;br /&gt;
&lt;br /&gt;
- data grid, in the form of a grid data file in the format supported by MOHID.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with patched data.&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#PATCH HDF5 FILES|PATCH HDF5 FILES]].&lt;br /&gt;
&lt;br /&gt;
===Format conversion===&lt;br /&gt;
&lt;br /&gt;
====Meteorological model data====&lt;br /&gt;
Mohid does not simulate explicitly the atmosphere, but needs information about atmospheric properties in time and space. This requires that atmospheric properties are supplied to MOHID Water in supported formats. These formats can be derived from meteorological data in HDF5 format. Because the results of meteorological models are accessed in different formats conversion is required. &lt;br /&gt;
&lt;br /&gt;
The formats currently convertible to HDF5 in ConvertToHDF5 include the MM5 and the ERA40. These are succintly detailed in the next sections.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''ERA40''=====&lt;br /&gt;
This format refers to the European Centre for Medium-Range Weather Forecasts (ECMWF) 40 years re-analysises results, acessed by site http://data.ecmwf.int/data/d/era40_daily/. This data is available for several meteorological variables with maximum 6 hour periodicity for days in the period from 1957-09-01 to 2002-08-31. &lt;br /&gt;
&lt;br /&gt;
ERA40 data files are supplied by ECMWF in a NetCDF format and with an user-costumized time window, periodicity (time step range from 6 hours to a day) and meteorological properties set. The ERA40 meteorological properties which are recognized by MOHID are presented bellow together with the correspondent MOHID name: &lt;br /&gt;
&lt;br /&gt;
 ---ERA40 NAME---         ---MOHID NAME---&lt;br /&gt;
   sshf                     sensible heat                &lt;br /&gt;
   slhf                     latent heat                  &lt;br /&gt;
   msl                      atmospheric pressure &lt;br /&gt;
   tcc                      cloud cover &lt;br /&gt;
   p10u                     wind velocity X&lt;br /&gt;
   p10v                     wind velocity Y&lt;br /&gt;
   p2t                      air temperature&lt;br /&gt;
   ewss                     wind stress X&lt;br /&gt;
   nsss                     wind stress Y&lt;br /&gt;
&lt;br /&gt;
The standard ConvertToHDF5 action is to convert to HDF5 the data referring to all MOHID Water recognized property available in the ERA40 file, producing an individual HDF5 file for each property. The name of each HDF5 file generated includes the ERA40 meteorological property identificator correspondent to the data contained.&lt;br /&gt;
&lt;br /&gt;
Alternatively, ConvertToHDF5 can copy to a single ASCII file the heading information concerning each meteorological variable considered in the original ERA40 file.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain an HDF5 file with data suitable for being used for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
ERA40 NetCDF file.&lt;br /&gt;
&lt;br /&gt;
'''Output:'''&lt;br /&gt;
&lt;br /&gt;
One HDF5 file for each meteorological property contained in the original NetCDF file.&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT ERA40 FORMAT|CONVERT ERA40 FORMAT]].&lt;br /&gt;
&lt;br /&gt;
=====''Aladin''=====&lt;br /&gt;
This format relates to Aladin meteorological model results. Some of the atmospheric property needed by MOHID Water is present in Aladin output files, enabling to run prediction simulations with MOHID Water when access to Aladin prevision files is available.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts Aladin results files from the original format to HDF5 format, allowing the easy use of these results in the MOHID framework. Conversion is only performed for the MM5 properties and the time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Produce HDF5 meteorological data usable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
Aladin netcdf results file to convert.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
An HDF5 file with Aladin results and a grid data file in MOHID format with the Aladin grid pseudo-information: a fake orography is created of 100 m depth.&lt;br /&gt;
This last file can be used to interpolate the Aladin data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]), for instance to produce an HDF5 file suitable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Compilation:'''&lt;br /&gt;
&lt;br /&gt;
Caution! The ConvertToHDF5 executable must be compiled with the [[Big-endian little-endian|Big-Endian]] option set (see compatibility in the project's settings).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT ALADIN FORMAT|CONVERT ALADIN FORMAT]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''MM5''=====&lt;br /&gt;
This format relates to the Fifth-Generation NCAR / Penn State Mesoscale Model (MM5) output files format. Almost every atmospheric property needed by MOHID Water is present in MM5 output files.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts MM5 results files from the original format to HDF5 format, allowing the easy use of these results in the MOHID framework. Conversion is only performed for the MM5 properties and the time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
Besides the conversion, the application can calculate some properties not contained in&lt;br /&gt;
the MM5 files using the available information: these are wind stress, relative humidity and mean sea level pressure.&lt;br /&gt;
&lt;br /&gt;
For conversion to be completed it is required the horizontal grid information of MM5 results which is available in special TERRAIN files.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Produce HDF5 meteorological data usable to force MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
MM5 results file to convert and MM5 TERRAIN file. The TERRAIN file supplies the MM5 results grid information. &lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
A HDF5 file with MM5 results and a grid data file in MOHID format with the MM5 grid information.&lt;br /&gt;
This last file can be used to interpolate the MM5 data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]), for instance to produce an HDF5 file suitable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Compilation:'''&lt;br /&gt;
&lt;br /&gt;
Caution! The ConvertToHDF5 executable must be compiled with the [[Big-endian little-endian|Big-Endian]] option set (see compatibility in the project's settings).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT MM5 FORMAT|CONVERT MM5 FORMAT]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''WRF''=====&lt;br /&gt;
This format relates to the Weather Research and Forecast model (WRF) output files format. Almost every atmospheric property needed by MOHID Water is present in WRF output files.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts WRF results files from the original format to HDF5 format, allowing the easy use of these results in the MOHID framework. Conversion is only performed for the WRF properties and the time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
Besides the conversion, the application can calculate some properties not contained in&lt;br /&gt;
the WRF files using the available information: these are wind stress, relative humidity and mean sea level pressure.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Produce HDF5 meteorological data usable to force MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
WRF direct output file.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
An HDF5 file with WRF results and a grid data file in MOHID format with the WRF grid information.&lt;br /&gt;
This last file can be used to interpolate the WRF data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]), for instance to produce an HDF5 file suitable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Compilation:'''&lt;br /&gt;
&lt;br /&gt;
Caution! [[PROJ4 | PROJ4]] library is needed! See [[#Compile_ModuleWRFFormat |  Compile_ModuleWRFFormat]]&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT WRF FORMAT|CONVERT WRF FORMAT]].&lt;br /&gt;
&lt;br /&gt;
====Ocean model data====&lt;br /&gt;
Ocean model data, available in diverse formats, can be used by MOHID Water to specify boundary (open ocean boundary and surface), initial conditions or for validation. These uses require that the model data is in HDF5 format and conversion is therefore needed.&lt;br /&gt;
&lt;br /&gt;
Currently the large scale ocean models formats convertible into HDF5 by ConvertToHDF5 includes MERCATOR.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''MERCATOR''=====&lt;br /&gt;
MERCATOR data files are supplied in a NetCDF format and with an user-costumized spatial window and periodicity. Water level and water properties (temperature and salinity) data is available in type T files, velocity component u data is available in type U files and velocity component v data is available in type V files. The type of data of a specific MERCATOR file is generally indicated in the file name.&lt;br /&gt;
&lt;br /&gt;
The standard ConvertToHDF5 action is to convert to HDF5 the data referring to temperature, salinity, water level, component u of velocity and component v of velocity.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain HDF5 MERCATOR data usable for forcing or validation of MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
NetCDF MERCATOR results data files and NetCDF MERCATOR grid data files. It should be provided one grid data file of each type: T, U and V. These are generally provided by the MERCATOR services together with the results files.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
One HDF5 file containing all properties contained in the recognized set of properties (temperature, salinity, water level, velocity u and velocity v) and the correspondent grid data and geometry files, containing respectively the horizontal grid and the vertical discretization of the HDF5 file. The grid data and geometry files can be used afterwards to interpolate the MERCATOR data to another grid and geometry (see [[#Interpolate files|Interpolate files]]).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT MERCATOR FORMAT|CONVERT MERCATOR FORMAT]].&lt;br /&gt;
&lt;br /&gt;
====Climatological data====&lt;br /&gt;
Climatological data can be used in MOHID Water to specify boundary (open ocean boundary and surface), initial conditions or for validation, in case more realistic data (measurements or model) data is unavailable. This data is generally supplied by producers in formats not readly usable by MOHID Water which justifies the existence of a conversion tool.&lt;br /&gt;
&lt;br /&gt;
Two climatological data format conversions are implemented in ConvertToHDF5: Levitus ocean data and Hellerman Rosenstein meteorological data.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''Levitus''=====&lt;br /&gt;
The Levitus climatology provides results for water temperature and salinity.&lt;br /&gt;
The ConvertToHDF5 action converts the climatological data for the properties and spatial window requested by the user. &lt;br /&gt;
Typically, it requires 3 steps to complete the task:&lt;br /&gt;
&lt;br /&gt;
- convert levitus format &lt;br /&gt;
&lt;br /&gt;
- extrapolate the data to the whole levitus domain(required to avoid uncoincidental coastlines) &lt;br /&gt;
&lt;br /&gt;
- interpolate with the model grid(bathymetry)&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain climatological data in HDF5 format to use as boundary forcing and/or initial condition specification in MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
Levitus climatological data files, one per property and per time period (e.g a month).&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with Levitus climatological data, grid data file with the horizontal&lt;br /&gt;
grid of the data and a geometry file with vertical discretization of the data (MOHID formats).&lt;br /&gt;
The grid data and the geometry files can be used to interpolate the climatological data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT LEVITUS FORMAT|CONVERT LEVITUS FORMAT]].&lt;br /&gt;
&lt;br /&gt;
=====''Hellerman Rosenstein''=====&lt;br /&gt;
This is a meteorological climatology providing wind stress. There is a file per wind stress component. Since the data refer to surface values it is a 2D field.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts the climatological data for the properties and spatial window provided by the user.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain climatological data in HDF5 format to use as meteorological forcing in MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
Hellerman Rosenstein climatological data ASCII files, one per wind stress component.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with Hellerman Rosenstein climatological data and grid data file with the horizontal&lt;br /&gt;
grid of the climatological data. This grid data file can be used to interpolate the climatological data from the original horizontal grid to a new grid (see [[#Interpolate files|Interpolate files]]).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT HELLERMAN ROSENSTEIN ASCII|CONVERT HELLERMAN ROSENSTEIN ASCII]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''World Ocean Atlas 2005''=====&lt;br /&gt;
The World Ocean Atlas (WOA) 2005 climatology provides results for water temperature, salinity and several water quality and biology properties.&lt;br /&gt;
&lt;br /&gt;
Description, Action and Input Files are described in a separate page: [[ConvertToHDF5 WOA2005]].&lt;br /&gt;
&lt;br /&gt;
==Input file (ConvertToHDF5Action.dat)==&lt;br /&gt;
===General structure===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt; (block containing instructions for running a specific action) &lt;br /&gt;
 ACTION                    : ... (intended action)&lt;br /&gt;
 ... (action specific instructions)&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : ...&lt;br /&gt;
 ...&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===GLUES HDF5 FILES===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : GLUES HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 3D_FILE                   : 0/1 (0 = 2D file, 1 = 3D file)&lt;br /&gt;
 &lt;br /&gt;
 TIME_GROUP                : ... (Default=&amp;quot;Time&amp;quot;. Other option: &amp;quot;SurfaceTime&amp;quot;.)&lt;br /&gt;
 &lt;br /&gt;
 BASE_GROUP                : ... (Default=&amp;quot;Results&amp;quot;. Other options: &amp;quot;Residual&amp;quot;, &amp;quot;SurfaceResults&amp;quot;.)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 &lt;br /&gt;
 (block of HDF5 data files)&lt;br /&gt;
 &amp;lt;&amp;lt;begin_list&amp;gt;&amp;gt;&lt;br /&gt;
 ... (path/name of HDF5 file with data to be included in glue, one per line, at least two files)&lt;br /&gt;
 ...                      &lt;br /&gt;
 &amp;lt;&amp;lt;end_list&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===INTERPOLATE GRIDS===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION     : ... (type of horizontal interpolation: 1 = Bilinear, 2 = Spline2D,&lt;br /&gt;
                                  3 = Triangulation)&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION_WINDOW      : ... ... ... ... (2D spatial window to consider for interpolation: &lt;br /&gt;
                                              Xmin Ymin Xmax Ymax; default = all domain)&lt;br /&gt;
 &lt;br /&gt;
 START                     : ... (start date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 END                       : ... (end date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D           : 0/1 (0 = 2D interpolation, 1 = 3D interpolation)&lt;br /&gt;
 &lt;br /&gt;
 FATHER_FILENAME           : ... (path/name of input HDF5 file with data to be interpolated)&lt;br /&gt;
 FATHER_GRID_FILENAME      : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization of input HDF5 file)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of output HDF5 file to be created)&lt;br /&gt;
 NEW_GRID_FILENAME         : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization intended for output HDF5 file)&lt;br /&gt;
 &lt;br /&gt;
 EXTRAPOLATE_2D            : 0/1/2/3/4/5 (2D extrapolation: 0=no extrapolation, 1=medium&lt;br /&gt;
                                      triangulation, 2=high triangulation, &lt;br /&gt;
                                      3=nearest neighbour, 4=nearest cell, &lt;br /&gt;
                                      5=constant value)&lt;br /&gt;
 &lt;br /&gt;
 EXTRAPOLATE_VALUE         : ... (name of the value to extrapolate to when EXTRAPOLATE_2D is&lt;br /&gt;
                                  set to constant value (5))&lt;br /&gt;
 &lt;br /&gt;
 DO_NOT_BELIEVE_MAP        : 0/1 (0=consider input HDF5 file map, 1=do not consider input HDF5&lt;br /&gt;
                                  file map)&lt;br /&gt;
 &lt;br /&gt;
 BASE_GROUP                : ... (name of base group of HDF5 variables containing data to be &lt;br /&gt;
                                  interpolated; default is &amp;quot;/Results&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 (if INTERPOLATION3D : 1 also required:)&lt;br /&gt;
 FATHER_GEOMETRY           : ... (path/name of file (MOHID format) with vertical discretization&lt;br /&gt;
                                  of input HDF5 file)&lt;br /&gt;
 NEW_GEOMETRY              : ... (path/name of file (MOHID format) with vertical discretization&lt;br /&gt;
                                  intended for output HDF5 file)&lt;br /&gt;
 POLI_DEGREE               : 1/... (degree of vertical interpolation: 1=linear, ...)&lt;br /&gt;
 &lt;br /&gt;
 AUX_GRID_FILENAME         : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization intended for auxiliar output HDF5 file;&lt;br /&gt;
                                  default is file provided in NEW_GRID_FILENAME)&lt;br /&gt;
 &lt;br /&gt;
 AUX_OUTPUTFILENAME        : ... (path/name of auxiliar output HDF5 file to contain result&lt;br /&gt;
                                  of horizontal grid interpolation)   &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - the file indicated in AUX_GRID_FILENAME can be different from the one indicated in&lt;br /&gt;
   NEW_GRID_FILENAME in terms of bathymetry, while the horizontal grid should be, commonly, the&lt;br /&gt;
   same: this altered bathymetry can be used to extend the water column in the original data so&lt;br /&gt;
   that the process of vertical interpolation is done easily;&lt;br /&gt;
 &lt;br /&gt;
 - in case of INTERPOLATION3D : 1, ConvertToHDF5 can generate new versions of bathymetry which &lt;br /&gt;
   are consistent with the geometry definition (extension is '.new'); there are possibly three&lt;br /&gt;
   bathymetry changes referring to father grid, new grid and aux grid (the same bathymetry is&lt;br /&gt;
   not altered twice); although initially new and aux grid are the same they can result &lt;br /&gt;
   different because of bathymetry changes;&lt;br /&gt;
 &lt;br /&gt;
 - in case the new geometry is 2D and father geometry is 3D then POLI_DEGREE : 1 &lt;br /&gt;
   (linear interpolation) should be used;&lt;br /&gt;
 &lt;br /&gt;
 - EXTRAPOLATE_2D : 1/2/3/4/5 should be considered if it is expected that the coast line is not&lt;br /&gt;
   coincidental in the father and new grids, to avoid lack of data in the interpolation&lt;br /&gt;
   process; extrapolation is performed for all cells even the land cells; &lt;br /&gt;
 &lt;br /&gt;
 - in case of DO_NOT_BELIEVE_MAP : 1 the application generates a map based on cells where&lt;br /&gt;
   interpolation results are available; this causes that if EXTRAPOLATE_2D : 1/2/3/4/5 is used&lt;br /&gt;
   the AUX_GRID_FILENAME should not have land cells in order for the new map to be concurrent&lt;br /&gt;
   with the result of extrapolation and avoid errors generation, specially if INTERPOLATION3D :&lt;br /&gt;
   1 is considered.&lt;br /&gt;
&lt;br /&gt;
===PATCH HDF5 FILES===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : PATCH HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION     : ... (type of interpolation: 3 = Triangulation, default and only&lt;br /&gt;
                                  one implemented)&lt;br /&gt;
 &lt;br /&gt;
 START                     : ... (start date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 END                       : ... (end date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 &lt;br /&gt;
 (block for each father HDF5 file, should be at least two)&lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                     : ... (integer priority level: 1 = highest, increase for lower&lt;br /&gt;
                                  priority)&lt;br /&gt;
 FATHER_FILENAME           : ... (path/name of input HDF5 file with data to be interpolated)&lt;br /&gt;
 FATHER_GRID_FILENAME      : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization of input HDF5 file)&lt;br /&gt;
 N_REMOVE_FRAME            : 0   (width, in number of cells, of frame to remove)&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of output HDF5 file to be created)&lt;br /&gt;
 NEW_GRID_FILENAME         : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization intended for output HDF5 file)&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CONVERT ERA40 FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT ERA40 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                  : ... (path/name of ERA40 NetCDF file)&lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
                                 (root of name for all files produced)&lt;br /&gt;
 &lt;br /&gt;
 CONVERT_TO_ASCII          : 0/1 (1 = convert variable heading info for ASCII file; 0 = default)&lt;br /&gt;
 CONVERT_TO_HDF5           : 0/1 (1 = convert to HDF5 file; 0 = default)&lt;br /&gt;
 GRIDTO180                 : 0/1 (1 = convert grid from [0 360] to [-180 180], 0 = default)&lt;br /&gt;
 &lt;br /&gt;
 XX_VARIABLE               : ... (name of longitude variable in the input file: usual name &lt;br /&gt;
                                  is &amp;quot;longitude&amp;quot;)&lt;br /&gt;
 YY_VARIABLE               : ... (name of longitude variable in the input file: usual name &lt;br /&gt;
                                  is &amp;quot;latitude&amp;quot;)&lt;br /&gt;
 TIME_VARIABLE             : ... (name of time variable in the input file: usual name is&lt;br /&gt;
                                  &amp;quot;time&amp;quot;)&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - either CONVERT_TO_ASCII : 1 or CONVERT_TO_HDF5 : 1 must be chosen for any action to be&lt;br /&gt;
 performed by ConvertToHDF5;&lt;br /&gt;
 &lt;br /&gt;
 - when CONVERT_TO_HDF5 : 1 an HDF5 file is produced for every variable contained in the&lt;br /&gt;
 original ERA40 file; the name of each file is composed of the name indicated on FILENAME&lt;br /&gt;
 concatenated with the ERA40 variable identifier;&lt;br /&gt;
 &lt;br /&gt;
 - to the XX_VARIABLE, YY_VARIABLE and TIME_VARIABLE keywords should generally be  &lt;br /&gt;
 specified &amp;quot;longitude&amp;quot;, &amp;quot;latitude&amp;quot; and &amp;quot;time&amp;quot;, respectively; the option to&lt;br /&gt;
 include as keywords was made only to make the application robust to future variable name&lt;br /&gt;
 changes.&lt;br /&gt;
&lt;br /&gt;
===CONVERT ALADIN FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT ALADIN FORMAT&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : aladin.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : aladin_griddata.dat&lt;br /&gt;
 &lt;br /&gt;
 !Put here the name of any netcdf file for grid-data generation's sake.&lt;br /&gt;
 INPUT_GRID_FILENAME      :   D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKCLOUD_OPASYMP_19723_20088.nc&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 (path to aladin netcdf file)\ALADIN_BULKIR_OPASYMP_19723_20088.nc&lt;br /&gt;
 ...&lt;br /&gt;
 &amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - the name of each Aladin property to convert in &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;...&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt; block must conform to the following variables&lt;br /&gt;
 &lt;br /&gt;
           ---ALADIN NAME---    ---MOHID NAME---&lt;br /&gt;
             soclotot            CloudCover_&lt;br /&gt;
             sohumrel            RelativeHumidity_&lt;br /&gt;
             sofluxir            NonSolarFlux_&lt;br /&gt;
             sosspres            AtmosphericPressure_&lt;br /&gt;
             sosolarf            SolarRadiation_&lt;br /&gt;
             sotemair            AirTemperature_&lt;br /&gt;
             sowinmod            WindModulus_&lt;br /&gt;
             sowaprec            Precipitation_&lt;br /&gt;
             sozotaux            WindStressX_&lt;br /&gt;
             sometauy            WindStressY_&lt;br /&gt;
             sowindu10           WindVelocityX_&lt;br /&gt;
             sowindv10           WindVelocityY_&lt;br /&gt;
&lt;br /&gt;
===CONVERT MM5 FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT MM5 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                  : ... (path/name of MM5 file)&lt;br /&gt;
 TERRAIN_FILENAME          : ... (path/name of MM5 TERRAIN file)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME               : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME         : ... (path/name of grid data file with horizontal grid of MM5 data to be created)&lt;br /&gt;
 &lt;br /&gt;
 COMPUTE_WINDSTRESS           : 0/1 (1 = compute and write wind stress field; 0 = default)&lt;br /&gt;
 COMPUTE_WINDMODULUS          : 0/1 (1 = compute wind modulus; 0 = default)&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY    : 0/1 (1 = compute and write 2-meter relative humidity field; 0 = default)&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY_3D : 0/1 (1 = compute and write 3D relative humidity field; 0 = default)&lt;br /&gt;
 COMPUTE_PRECIPITATION        : 0/1 (1 = compute and write precipitation field; 0 = default)&lt;br /&gt;
 COMPUTE_MSLP                 : 0/1 (1 = compute and write mean sea level pressure field; 0 = default)&lt;br /&gt;
 &lt;br /&gt;
 WRITE_XYZ                    : 0/1 (1 = write xyz center grid cells; 0 = default)&lt;br /&gt;
 WRITE_TERRAIN                : 0/1 (1 = write MM5 TERRAIN fields; 0 = default)&lt;br /&gt;
 &lt;br /&gt;
 START                        : ... (start date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 END                          : ... (end date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
  &lt;br /&gt;
 (block of MM5 properties to convert)&lt;br /&gt;
 &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;&lt;br /&gt;
 ... (name of MM5 property to convert do HDF5 format, one per line)&lt;br /&gt;
 ... &lt;br /&gt;
 &amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - the name of each MM5 property to convert in &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;...&amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt; block must&lt;br /&gt;
 conform to the MOHID designation specified in code of ModuleGlobalData; the correspondence is &lt;br /&gt;
 the following (see [[Module_InterfaceWaterAir]] for a more detailed explanation).&lt;br /&gt;
 &lt;br /&gt;
           ---MM5 NAME---    ---MOHID NAME---&lt;br /&gt;
             T2             air temperature&lt;br /&gt;
             PSTARCRS       atmospheric pressure&lt;br /&gt;
             U10            wind velocity X&lt;br /&gt;
             V10            wind velocity Y&lt;br /&gt;
             UST            wind shear velocity&lt;br /&gt;
             LHFLUX         latent heat&lt;br /&gt;
             SWDOWN         sensible heat&lt;br /&gt;
             SWDOWN         solar radiation&lt;br /&gt;
             LWDOWN         infrared radiation&lt;br /&gt;
             SWOUT          top outgoing shortwave radiation&lt;br /&gt;
             LWOUT          top outgoing longwave radiation&lt;br /&gt;
             SOIL T 1       soil temperature layer 1&lt;br /&gt;
             SOIL T 1       soil temperature layer 2&lt;br /&gt;
             SOIL T 1       soil temperature layer 3&lt;br /&gt;
             SOIL T 1       soil temperature layer 4&lt;br /&gt;
             SOIL T 1       soil temperature layer 5&lt;br /&gt;
             SOIL T 1       soil temperature layer 6&lt;br /&gt;
             Q2             2-meter mixing ratio&lt;br /&gt;
             TSEASFC        sea water temperature&lt;br /&gt;
             PBL HGT        PBL height&lt;br /&gt;
             PBL REGIME     PBL regime&lt;br /&gt;
             RAIN CON       accumulated convective precipitation        (cm)&lt;br /&gt;
             RAIN NON       accumulated non-convective precipitation    (cm)&lt;br /&gt;
             GROUND T       ground temperature&lt;br /&gt;
             RES TEMP       infinite reservoir slab temperature&lt;br /&gt;
             U              wind velocity X_3D&lt;br /&gt;
             V              wind velocity Y_3D&lt;br /&gt;
             W              wind velocity Z_3D&lt;br /&gt;
             T              air temperature_3D&lt;br /&gt;
             PP             atmospheric pressure_3D&lt;br /&gt;
             Q              mixing ratio_3D&lt;br /&gt;
             CLW            cloud water mixing ratio_3D&lt;br /&gt;
             RNW            rain water mixing ratio_3D&lt;br /&gt;
             ICE            cloud ice mixing ratio_3D&lt;br /&gt;
             SNOW           snow mixing ratio_3D&lt;br /&gt;
             RAD TEND       atmospheric radiation tendency_3D&lt;br /&gt;
&lt;br /&gt;
===CONVERT WRF FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                       : CONVERT WRF FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                     : ... (path/name of WRF file)&lt;br /&gt;
 OUTPUTFILENAME               : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME         : ... (path/name of grid data file with horizontal grid of WRF data&lt;br /&gt;
                                     to be created)&lt;br /&gt;
 &lt;br /&gt;
 COMPUTE_WINDSTRESS           : 0/1 (1 = compute and write wind stress field; 0 = default)&lt;br /&gt;
 COMPUTE_WINDMODULUS          : 0/1 (1 = compute wind modulus; 0 = default)&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY    : 0/1 (1 = compute and write 2-meter relative humidity field; 0 = default)&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY_3D : 0/1 (1 = compute and write 3D relative humidity field; 0 = default)&lt;br /&gt;
 COMPUTE_PRECIPITATION        : 0/1 (1 = compute and write precipitation field; 0 = default)&lt;br /&gt;
 COMPUTE_MSLP_MM5             : 0/1 (1 = compute mean sea level pressure with MM5toGrads algorithm; 0 = default)&lt;br /&gt;
 COMPUTE_MSLP_WRF             : 0/1 (1 = compute mean sea level pressure with ARWPost algorithm; 0 = default)&lt;br /&gt;
 &lt;br /&gt;
 WRITE_XYZ                    : 0/1 (1 = write xyz center grid cells; 0 = default)&lt;br /&gt;
 WRITE_TERRAIN                : 0/1 (1 = write MM5 TERRAIN fields; 0 = default)&lt;br /&gt;
 OUTPUT_DT                    : real (DT interval in seconds between each output; default = 0.0)&lt;br /&gt;
 &lt;br /&gt;
 START                        : ... (start date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 END                          : ... (end date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
  &lt;br /&gt;
 (block of properties to convert)&lt;br /&gt;
 &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;&lt;br /&gt;
 ... (name of property to convert do HDF5 format, one per line)&lt;br /&gt;
 ... &lt;br /&gt;
 &amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
  &lt;br /&gt;
 - the name of each property to convert in &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;...&amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt; block must conform to the MOHID &lt;br /&gt;
   designation specified in code of ModuleGlobalData; the correspondence to WRF is in function &lt;br /&gt;
   VariableIsToRead in ModuleWRFFormat. Conversion is not direct since WRF outputs tendencies and not  &lt;br /&gt;
   total values. &lt;br /&gt;
 &lt;br /&gt;
 - Caution: This action is not extensively tested.&lt;br /&gt;
&lt;br /&gt;
===CONVERT MERCATOR FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT MERCATOR FORMAT&lt;br /&gt;
 &lt;br /&gt;
 READ_OPTION               : 1/2/3/4 (version of MERCATOR files)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : ... (path/name of grid data with horizontal discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME  : ... (path/name of geometry file with vertical discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 &lt;br /&gt;
 (if READ_OPTION : 1:)&lt;br /&gt;
 BASE_BULLETIN             : ...&lt;br /&gt;
 DATES_FILE                : ...&lt;br /&gt;
 NUM_DATES                 : ... &lt;br /&gt;
 &lt;br /&gt;
 (if READ_OPTION : 2/3:)&lt;br /&gt;
 INPUT_GRID_FILENAME       : ... (path/name of file with horizontal discretization of water&lt;br /&gt;
                                  properties and water level data)&lt;br /&gt;
 (if READ_OPTION : 2:)&lt;br /&gt;
 INPUT_GRID_FILENAME_U     : ... (path/name of file with horizontal discretization of velocity&lt;br /&gt;
                                  component U data)&lt;br /&gt;
 INPUT_GRID_FILENAME_V     : ... (path/name of file with horizontal discretization of velocity&lt;br /&gt;
                                  component V data)&lt;br /&gt;
 &lt;br /&gt;
 (if READ_OPTION : 3:)&lt;br /&gt;
 INPUT_BATHY_FILENAME      : ... (path/name of file with bathymetry)&lt;br /&gt;
     &lt;br /&gt;
 (if READ_OPTION : 3/4:)&lt;br /&gt;
 CALC_BAROTROPIC_VEL       : 0/1 (1 = calculate barotropic velocity, 0 = not calculate; &lt;br /&gt;
                                  default = 0)&lt;br /&gt;
 &lt;br /&gt;
 (if CALC_BAROTROPIC_VEL : 1 and READ_OPTION : 3:)&lt;br /&gt;
 INPUT_MESH_ZGRID_FILENAME : ... (path/name of file with information about layers ticknesses)&lt;br /&gt;
 &lt;br /&gt;
 (block of MERCATOR data files)&lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 ... (path/name of MERCATOR NetCDF data file, one per line, can be several)&lt;br /&gt;
 ... &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CONVERT LEVITUS FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT LEVITUS FORMAT&lt;br /&gt;
  &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : ... (path/name of grid data with horizontal discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME  : ... (path/name of geometry file with vertical discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 &lt;br /&gt;
 PERIODICITY               : ... (periodicity of Levitus data: &amp;quot;monthly&amp;quot;/&amp;quot;annual&amp;quot;; default is&lt;br /&gt;
                                  &amp;quot;monthly&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 SPATIAL_RESOLUTION        : ... (spatial resolution (degrees) of horizontal Levitus grid)&lt;br /&gt;
 &lt;br /&gt;
 FILL_VALUE                : ... (real value identificator for missing data; default is &lt;br /&gt;
                                  &amp;quot;-99.999900&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 (definition of spatial window to be present in output HDF5 file)&lt;br /&gt;
 LOWER_LEFT_CORNER         : ... ... (longitude and latitude (degrees) of south west corner)&lt;br /&gt;
 UPPER_RIGHT_CORNER        : ... ... (longitude and latitude (degrees) of north east corner)&lt;br /&gt;
 &lt;br /&gt;
 (block for each water property to be present in output HDF5 file, can be several)&lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                      : ... (name of property)&lt;br /&gt;
 ANNUAL_FILE               : ... (path/name of Levitus annual file)&lt;br /&gt;
 &lt;br /&gt;
 (block of Levitus data files)&lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 ... (path/name of Levitus data file (e.g. a monthly data file), one per line, can be several)&lt;br /&gt;
 ... &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CONVERT HELLERMAN ROSENSTEIN ASCII===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT HELLERMAN ROSENSTEIN ASCII&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : ... (path/name of grid data with horizontal discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
  &lt;br /&gt;
 PERIODICITY               : ... (periodicity of Hellerman Rosenstein data: &amp;quot;monthly&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 SPATIAL_RESOLUTION        : ... (spatial resolution (degrees) of horizontal Hellerman&lt;br /&gt;
                                  Rosenstein grid: default and only allowed value is &amp;quot;2.&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 FILL_VALUE                : ... (real value identificator for missing data; default is &lt;br /&gt;
                                  &amp;quot;-99.999900&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 (definition of spatial window to be present in output HDF5 file)&lt;br /&gt;
 LOWER_LEFT_CORNER         : ... ... (longitude and latitude (degrees) of south west corner)&lt;br /&gt;
 UPPER_RIGHT_CORNER        : ... ... (longitude and latitude (degrees) of north east corner)&lt;br /&gt;
   &lt;br /&gt;
 (block for each Hellerman Rosenstein data file)&lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                      : ... (name of property: &amp;quot;wind stress X&amp;quot;/&amp;quot;wind stress Y&amp;quot;)&lt;br /&gt;
 FILE                      : ... (path/name Hellerman Rosenstein file)&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Samples==&lt;br /&gt;
All sample files are named ''ConvertToHDF5Action.dat''.&lt;br /&gt;
&lt;br /&gt;
===Glue several MOHID(.hdf5) files===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : GLUES HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : SurfaceHydro_OP.hdf5&lt;br /&gt;
  &lt;br /&gt;
 &amp;lt;&amp;lt;begin_list&amp;gt;&amp;gt;&lt;br /&gt;
 D:\Projectos\SurfaceHydrodynamic_21.hdf5&lt;br /&gt;
 D:\Projectos\SurfaceHydrodynamic_22.hdf5&lt;br /&gt;
 &amp;lt;&amp;lt;end_list&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Interpolate 2D MOHID(.hdf5) files to a new grid===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION    : 1&lt;br /&gt;
 FATHER_FILENAME          : D:\Projectos\MohidRun\test\res\Lagrangian_1.hdf5 &lt;br /&gt;
 OUTPUTFILENAME           : OilSpillThickness_GridRegular.hdf5&lt;br /&gt;
  &lt;br /&gt;
 START                    : 2006 6 21 17 22 30&lt;br /&gt;
 END                      : 2006 6 22 17 22 0&lt;br /&gt;
  &lt;br /&gt;
 FATHER_GRID_FILENAME     : D:\Projectos\MohidRun\GeneralData\batim\Tagus.dat_A&lt;br /&gt;
 NEW_GRID_FILENAME        : TagusConstSpacing.dat&lt;br /&gt;
  &lt;br /&gt;
 BASE_GROUP               : /Results/Oil/Data_2D&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Interpolate 3D MOHID(.hdf5) files to a new grid===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION   : 1&lt;br /&gt;
 FATHER_FILENAME         : D:\Projectos\MohidRun\test\res\Lagrangian_1.hdf5 &lt;br /&gt;
 OUTPUTFILENAME          : OilSpillThickness_GridRegular.hdf5&lt;br /&gt;
 &lt;br /&gt;
 START                   : 2006 6 21 17 22 30&lt;br /&gt;
 END                     : 2006 6 22 17 22 0&lt;br /&gt;
 &lt;br /&gt;
 FATHER_GRID_FILENAME    : D:\Projectos\MohidRun\GeneralData\batim\Tagus.dat_A&lt;br /&gt;
 NEW_GRID_FILENAME       : TagusConstSpacing.dat&lt;br /&gt;
 &lt;br /&gt;
 BASE_GROUP              : /Results/Oil/Data_2D&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D         : 1&lt;br /&gt;
 FATHER_GEOMETRY         : D:\Projectos\MohidRun\test\data\Geometry_1.dat&lt;br /&gt;
 NEW_GEOMETRY            : TagusGeometry.dat&lt;br /&gt;
 AUX_GRID_FILENAME       : TagusConstSpacing.dat&lt;br /&gt;
 AUX_OUTPUTFILENAME      : Aux_GridRegular.hdf5&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Patch several MOHID(.hdf5) files to a new grid===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION : PATCH HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION   : 3&lt;br /&gt;
 &lt;br /&gt;
 START                   : 2005 2 28 13 0 0&lt;br /&gt;
 END                     : 2005 3 1 13 0 0&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                   : 3&lt;br /&gt;
 FATHER_FILENAME         : K:\MM5output\2005022812_2005030712\MM5OUT_D1.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME    : K:\MM5output\2005022812_2005030712\grid1.dat&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                   : 2&lt;br /&gt;
 FATHER_FILENAME         : K:\MM5output\2005022812_2005030712\MM5OUT_D2.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME    : K:\MM5output\2005022812_2005030712\grid2.dat&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                   : 1&lt;br /&gt;
 FATHER_FILENAME         : K:\MM5output\2005022812_2005030712\MM5OUT_D3.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME    : K:\MM5output\2005022812_2005030712\grid3.dat&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME          : MM5Forcing.hdf5&lt;br /&gt;
 NEW_GRID_FILENAME       : K:\Simula\GeneralData\Batim\CostaPortuguesa.dat&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert an ERA40 file to MOHID(.hdf5)===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                  : CONVERT ERA40 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                : D:\Aplica\ERA40\1971ERA1973.nc&lt;br /&gt;
 OUTPUTFILENAME          : D:\Aplica\ERA40\1971ERA1973T2&lt;br /&gt;
 &lt;br /&gt;
 CONVERT_TO_ASCII        : 0&lt;br /&gt;
 CONVERT_TO_HDF5         : 1&lt;br /&gt;
 &lt;br /&gt;
 XX_VARIABLE             : longitude&lt;br /&gt;
 YY_VARIABLE             : latitude&lt;br /&gt;
 TIME_VARIABLE           : time&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert a MM5 file to MOHID(.hdf5)===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                  : CONVERT MM5 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                : K:\MM5output\DataCenter\Modelos\Meteo_IST\Fev2005\MMOUT_D3&lt;br /&gt;
 TERRAIN_FILENAME        : K:\MM5output\DataCenter\Modelos\Meteo_IST\Fev2005\TERRAIN_D3&lt;br /&gt;
 OUTPUT_GRID_FILENAME    : K:\MM5output\DataCenter\Modelos\Meteo_IST\Fev2005\grid3.dat&lt;br /&gt;
 OUTPUTFILENAME          : K:\MM5output\DataCenter\Modelos\Meteo_IST\Fev2005\MM5_D3.hdf5&lt;br /&gt;
 &lt;br /&gt;
 COMPUTE_WINDSTRESS        : 0&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY : 1&lt;br /&gt;
 WRITE_XYZ                 : 0&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;&lt;br /&gt;
 solar radiation&lt;br /&gt;
 air temperature&lt;br /&gt;
 wind velocity X&lt;br /&gt;
 wind velocity Y&lt;br /&gt;
 sensible heat&lt;br /&gt;
 latent heat&lt;br /&gt;
 atmospheric pressure&lt;br /&gt;
 sea water temperature&lt;br /&gt;
 &amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert Mercator-Ocean(.nc) to MOHID(.hdf5)===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : CONVERT MERCATOR FORMAT&lt;br /&gt;
 &lt;br /&gt;
 READ_OPTION              : 2&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : Psy2v2r1v_R20060628/MercatorR20060628.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME     : Psy2v2r1v_R20060628/MercatorGridR20060628.dat&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME : Psy2v2r1v_R20060628/MercatorGeometryR20060628.dat&lt;br /&gt;
 &lt;br /&gt;
 INPUT_GRID_FILENAME      : GridFiles/ist_meteog-gridT.nc&lt;br /&gt;
 INPUT_GRID_FILENAME_U    : GridFiles/ist_meteog-gridU.nc&lt;br /&gt;
 INPUT_GRID_FILENAME_V    : GridFiles/ist_meteog-gridV.nc&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 Psy2v2r1v_R20060628/ist_meteog-mercatorPsy2v2r1v_T_MEAN_ANA_20060621_R20060628.nc&lt;br /&gt;
 Psy2v2r1v_R20060628/ist_meteog-mercatorPsy2v2r1v_T_MEAN_ANA_20060622_R20060628.nc&lt;br /&gt;
 Psy2v2r1v_R20060628/ist_meteog-mercatorPsy2v2r1v_T_MEAN_ANA_20060623_R20060628.nc&lt;br /&gt;
 &amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert Levitus format to MOHID(.hdf5) and interpolate grid===&lt;br /&gt;
==== Convert ====&lt;br /&gt;
First convert the Levitus ASCII format to a raw HDF5 format:&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : CONVERT LEVITUS FORMAT&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : Levitus.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME     : LevitusGrid.dat&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME : LevitusGeometry.dat&lt;br /&gt;
 &lt;br /&gt;
 PERIODICITY              : monthly&lt;br /&gt;
 SPATIAL_RESOLUTION       : 0.25&lt;br /&gt;
 FILL_VALUE               : -99.9999&lt;br /&gt;
 &lt;br /&gt;
 LOWER_LEFT_CORNER        : -16.0  31&lt;br /&gt;
 UPPER_RIGHT_CORNER       :   1.   40&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : salinity&lt;br /&gt;
 ANNUAL_FILE              : DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s000hr.obj&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s001&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s002&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s003&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s004&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s005&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s006&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s007&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s008&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s009&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s010&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s011&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s012&lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : temperature&lt;br /&gt;
 ANNUAL_FILE              : DataCenter\DadosBase\Ocean\Levitus\Data\Temp\t000hr.obj&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t001&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t002&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t003&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t004&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t005&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t006&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t007&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t008&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t009&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t010&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t011&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t012&lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Extrapolate ====&lt;br /&gt;
Then extrapolate the data (still in the raw HDF5 format):&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION    : 1&lt;br /&gt;
 &lt;br /&gt;
 FATHER_FILENAME          : Levitus.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME     : LevitusGrid.dat&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : LeviTusAllPointsWithData.hdf5&lt;br /&gt;
 NEW_GRID_FILENAME        : LevitusGrid.dat&lt;br /&gt;
 &lt;br /&gt;
 START                    : -9999 1  1 0 0 0&lt;br /&gt;
 END                      : -9999 12 1 0 0 0&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D          : 1&lt;br /&gt;
 FATHER_GEOMETRY          : LevitusGeometry.dat&lt;br /&gt;
 NEW_GEOMETRY             : LevitusGeometry.dat&lt;br /&gt;
 AUX_GRID_FILENAME        : LevitusGrid.dat&lt;br /&gt;
 AUX_OUTPUTFILENAME       : AuxLeviTusAllPointsWithData.hdf5&lt;br /&gt;
 &lt;br /&gt;
 POLI_DEGREE              : 3&lt;br /&gt;
 DO_NOT_BELIEVE_MAP       : 1&lt;br /&gt;
 EXTRAPOLATE_2D           : 2&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Interpolate ====&lt;br /&gt;
Finally, interpolate to the final grid and geometry (same as the [[#Interpolate 3D MOHID(.hdf5) files to a new grid| Interpolate 3D sample]]):&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION    : 1&lt;br /&gt;
 FATHER_FILENAME          : LeviTusAllPointsWithData.hdf5&lt;br /&gt;
 OUTPUTFILENAME           : CadizMonthlyLevitus.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME     : LevitusGrid.dat&lt;br /&gt;
 NEW_GRID_FILENAME        : Algarve0.02SigmaSmooth_V3_CartMoreLayers.dat&lt;br /&gt;
 &lt;br /&gt;
 START                    : -9999 1  1 0 0 0&lt;br /&gt;
 END                      : -9999 12 1 0 0 0&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D          : 1&lt;br /&gt;
 FATHER_GEOMETRY          : LevitusGeometry.dat&lt;br /&gt;
 NEW_GEOMETRY             : Geometry_1.dat&lt;br /&gt;
 AUX_OUTPUTFILENAME       : AuxCadizMonthlyLevitus.hdf5&lt;br /&gt;
 AUX_GRID_FILENAME        : Aux12km.dat&lt;br /&gt;
 &lt;br /&gt;
 POLI_DEGREE              : 3&lt;br /&gt;
 DO_NOT_BELIEVE_MAP       : 1&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that the programme may construct a new bathymetry twice. Use this bathymetry only on the AUX_GRID_FILENAME keyword.&lt;br /&gt;
&lt;br /&gt;
===Convert Hellerman Rosenstein ASCII format to MOHID(.hdf5)  ===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : CONVERT HELLERMAN ROSENSTEIN ASCII&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : ClimatologicWindStress.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME     : ClimatologicWindStressGrid.dat&lt;br /&gt;
 &lt;br /&gt;
 PERIODICITY              : monthly&lt;br /&gt;
 SPATIAL_RESOLUTION       : 2.&lt;br /&gt;
 FILL_VALUE               : -99.9999&lt;br /&gt;
 &lt;br /&gt;
 LOWER_LEFT_CORNER        : -180  -90&lt;br /&gt;
 UPPER_RIGHT_CORNER       : 180  90&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : wind stress X&lt;br /&gt;
 FILE                     : D:\Aplica\Dados\Hellerman_Rosenstein\TAUXX.DAT&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : wind stress Y&lt;br /&gt;
 FILE                     : D:\Aplica\Dados\Hellerman_Rosenstein\TAUYY.DAT&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert ALADIN(.nc) format to MOHID(.hdf5)===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT ALADIN FORMAT&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : aladin.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : aladin_griddata.dat&lt;br /&gt;
 &lt;br /&gt;
 !Put here the name of any netcdf file for grid-data generation's sake.&lt;br /&gt;
 INPUT_GRID_FILENAME      :   D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKCLOUD_OPASYMP_19723_20088.nc&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKIR_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKPRES_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKSOLAR_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKTAIR_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKWIND_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_FLUXPRE_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_STRESSU_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_STRESSV_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_U10_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_V10_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKCLOUD_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKHUMI_OPASYMP_19723_20088.nc&lt;br /&gt;
 &amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== OceanColor modules compilation ==&lt;br /&gt;
Compiling the [[ConvertToHDF5]] tool with the OceanColor modules is more complicated than one might expect. A solution is proposed here for a release version using the Compaq Visual Fortran 6.6c. The difficulties rise because C code is embedded with a fortran interface and also, extra libraries such as hdf4 are required.&lt;br /&gt;
&lt;br /&gt;
=== Pre-requisites ===&lt;br /&gt;
&lt;br /&gt;
This is a list of prerequisites to successfully compile the tool:&lt;br /&gt;
*Compaq Visual Fortran 6.5 with patch 6.6c,&lt;br /&gt;
*VS .NET 2003 (Vc7 in particular),&lt;br /&gt;
*Hdf5 libraries ('''hdf5.lib''' '''hdf5_fortran.lib''' '''hdf5_hl.lib'''),&lt;br /&gt;
*Netcdf libraries ('''netcdf.lib''' '''netcdf_.lib'''),&lt;br /&gt;
*Hdf4 libraries ('''hd421.lib''', '''hm421.lib'''),&lt;br /&gt;
*szlib, zlib and jpeg libraries ('''szlib.lib''', '''zlib.lib''' and '''libjpeg.lib'''),&lt;br /&gt;
*the fortran source files ('''ModuleConvertModisL2.F90 ModuleConvertModisL3.F90 ModuleConvertOceanColorL2.F90'''),&lt;br /&gt;
*the C source files and their fortran interface files ('''readL2scan.c readL2Seadas.c''' and '''cdata.f crossp.f fgeonav.f''').&lt;br /&gt;
&lt;br /&gt;
=== CVF IDE configuration ===&lt;br /&gt;
# Configure everything as specified in [[Compiling with CVF]].&lt;br /&gt;
# Add the source files listed in the prerequisites above to the source files listing.&lt;br /&gt;
# Go to '''Tools--&amp;gt;Options...--&amp;gt;Directories'''. There, add the '''$DOTNET2K3/Vc7/bin''' to the '''Executable files''''; the '''$DOTNET2K3/Vc7/include''' and '''$DOTNET2K3/Vc7/PlatformSDK/include''' to the '''Include files'''; and finally, the '''$DOTNET2K3/Vc7/lib''', '''$DOTNET2K3/Vc7/PlatformSDK/lib''' and  '''$DOTNET2K3/Vc7/PlatformSDK/bin''' to the '''Library files'''.&lt;br /&gt;
# Go to '''Projects--&amp;gt;Settings--&amp;gt;Release--&amp;gt;Link--&amp;gt;Input'''. There, add the following libraries: '''netcdf.lib netcdf_.lib hd421.lib hm421.lib libjpeg.lib'''. (Make sure the hdf5 libraries as well as the szlib and zlib libraries are already mentioned).&lt;br /&gt;
&lt;br /&gt;
=== Troubleshoots ===&lt;br /&gt;
'''Q: I get unresolved external references during linkage, but I have all the libraries mentioned above included. What should I do?'''&lt;br /&gt;
&lt;br /&gt;
A: Unresolved external references can come out for two reasons:&lt;br /&gt;
#you didn't specified all the libraries required or all the paths for the default libraries or,&lt;br /&gt;
#[http://en.wikipedia.org/wiki/Name_decoration name mangling] problems. Use the [[dumpbin]] utility to the libraries to checkout which language convention they are using. If that's the problem then you need to try to get new libraries with the correct naming convention.&lt;br /&gt;
&lt;br /&gt;
That's it, you should now be able to build the [[ConvertToHdf5]] project successfully.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Q: I got a message saying the entry point _NF_PUT_ATT_REAL@28 could not be located in netcdf.dll'''&lt;br /&gt;
&lt;br /&gt;
A: copy the file netcdf.dll to the exe folder&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
*[http://www.hdfgroup.org/ HDF5 Homepage]&lt;br /&gt;
*[http://www.hdfgroup.org/ HDF4 Homepage]&lt;br /&gt;
&lt;br /&gt;
== Links ==&lt;br /&gt;
&lt;br /&gt;
*[[Module_Atmosphere]]&lt;br /&gt;
*[[Module_InterfaceWaterAir]]&lt;br /&gt;
*[[Coupling_Water-Atmosphere_User_Manual]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Tools]]&lt;br /&gt;
[[Category:Hdf5]]&lt;/div&gt;</summary>
		<author><name>Anatrancoso</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Libfproj4&amp;diff=3261</id>
		<title>Libfproj4</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Libfproj4&amp;diff=3261"/>
				<updated>2010-08-19T17:06:00Z</updated>
		
		<summary type="html">&lt;p&gt;Anatrancoso: /* InternalLinks */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;libfproj4 is a Fortran wrapper for [[PROJ4]] library. It was developed as of the [http://www.cbcb.umd.edu/software/glimmer/ GLIMMER] project and can be found in [http://forge.nesc.ac.uk/download.php/10/libfproj4-1.0.tar.gz libfproj4-1.0.tar.gz]. &lt;br /&gt;
This wrapper is necessary if we want to call PROJ4 conversion subroutines (in C) from a Fortran program. &lt;br /&gt;
It is used in MOHID by the ConvertToHDF5 tool to be able to deal with different projections from other models.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Compilation (Static Library)=&lt;br /&gt;
&lt;br /&gt;
libfproj4 it's a library build on top of [[PROJ4]]. It can se used dynamically or statically. Here, only the static compilation is explained, as the instructions for dynamic compilation are included in the library source code. The first steps in compiling are:&lt;br /&gt;
&lt;br /&gt;
*Download libfproj4 source code from [http://forge.nesc.ac.uk/download.php/10/libfproj4-1.0.tar.gz] or \\kepler\Software\PROJ4\libfproj4-1.0.tar.&lt;br /&gt;
*Download proj4 source code from [http://download.osgeo.org/proj/proj-4.7.0.tar.gz] or \\kepler\Software\PROJ4\proj-4.7.0.tar.&lt;br /&gt;
*Extract all contents to a place in your computer, from now referred to as ROOT_DIR.&lt;br /&gt;
&lt;br /&gt;
==Windows==&lt;br /&gt;
&lt;br /&gt;
===Compaq Visual Studio===&lt;br /&gt;
&lt;br /&gt;
(Already compiled in \\kepler\Software\PROJ4\libfproj4.lib)&lt;br /&gt;
&lt;br /&gt;
#New project W32 static lib&lt;br /&gt;
#Add fort-proj.c (from libfproj4-1.0.tar.gz) and all *.c files (from proj4 source), except all that have main function : css2css, geod, nad2bin, nad2nad, proj.c.&lt;br /&gt;
#Project Settings / C/C++ / General / Preprocessor definitions : VISUAL_CPLUSPLUS ou IFORT&lt;br /&gt;
#Project Settings / C/C++ / Preprocessor / include : whatever\proj-4.6.0\src (the folder that has projects.h, because of directives #include &amp;lt;projects.h&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
===Visual Studio 2008 with Intel Fortran===&lt;br /&gt;
&lt;br /&gt;
(Already compiled in [http://mohid.codeplex.com] ExternalLibs/Proj4)&lt;br /&gt;
&lt;br /&gt;
#Open Visual Studio and select File/New/Project/Visual C++/W32/Win32 Console Application. Name it libfproj4, and select location as $ROOT_DIR\libfproj4-1.0. Click ok.&lt;br /&gt;
#In the wizard, click Next and then choose &amp;quot;Console application&amp;quot; and &amp;quot;Empty project&amp;quot; in the following window. Then click Finish.&lt;br /&gt;
#Go to Project / Properties / Configuration Properties / Configuration Type and select &amp;quot;Static Library (.lib)&amp;quot;. Click ok. (we don't choose this type in the project creation because if so VS2008 automatic header files that we don't want).&lt;br /&gt;
#Go to Project / Add Existing Item. Add $ROOT_DIR\libfproj4-1.0\fort-proj.c.&lt;br /&gt;
#Go to Project / Add Existing Item. Add all *.c files in $ROOT_DIR\proj-4.7.0\src except the ones that have the main function: cs2cs.c, geod.c, nad2bin.c, nad2nad.c, proj.c.&lt;br /&gt;
#Rename proj_config.h.in to proj_config.h in ROOT_DIR\proj-4.7.0\src&lt;br /&gt;
#Go to Project / libfproj4 Properties:&lt;br /&gt;
#*C/C++ / General / Additional Include Directories: ..\..\..\proj-4.7.0\src (where the *.h files are)&lt;br /&gt;
#*C/C++ / Preprocessor / Preprocessor Definitions: IFORT&lt;br /&gt;
#*C/C++ / Code Generation / Runtime Library : Multi-threaded Debug (/MTd) (para versao Debug)&lt;br /&gt;
#*C/C++ / Code Generation / Runtime Library : Multi-threaded (/MT) (para versao Release)&lt;br /&gt;
#Build Solution&lt;br /&gt;
&lt;br /&gt;
==Linux==&lt;br /&gt;
&lt;br /&gt;
Prepare files and folders:&lt;br /&gt;
 cd $ROOT_DIR&lt;br /&gt;
 tar -zxvf proj-4.7.0.tar.gz&lt;br /&gt;
 tar -zxvf libfproj4-1.0.tar.gz&lt;br /&gt;
 mkdir src&lt;br /&gt;
 cp libfproj4-1.0/fort-proj.c src/&lt;br /&gt;
 cp libfproj4-1.0/cfortran.h src/&lt;br /&gt;
 cp -r proj-4.7.0/src/*.c src/&lt;br /&gt;
 cp -r proj-4.7.0/src/*.h src/&lt;br /&gt;
 cp proj-4.7.0/src/proj_config.h.in src/proj_config.h&lt;br /&gt;
&lt;br /&gt;
Compile:&lt;br /&gt;
 &lt;br /&gt;
 cd $ROOT_DIR/src&lt;br /&gt;
 rm -rf cs2cs.c geod.c nad2nad.c nad2bin.c proj.c  # with main functions&lt;br /&gt;
 icc -DIFORT -c *.c&lt;br /&gt;
 ar rc libfproj4.a *.o&lt;br /&gt;
&lt;br /&gt;
Install:&lt;br /&gt;
&lt;br /&gt;
 cd $ROOT_DIR&lt;br /&gt;
 mkdir lib&lt;br /&gt;
 mkdir include&lt;br /&gt;
 cp src/libfproj4.a lib/&lt;br /&gt;
 cp libfproj4-1.0/proj4.inc include&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
==Windows==&lt;br /&gt;
&lt;br /&gt;
#Create $ROOT_DIR\teste&lt;br /&gt;
#Copy test-proj.f90, proj4.f90 and proj4.inc from $ROOT_DIR\libfproj4-1.0 to $ROOT_DIR\teste.&lt;br /&gt;
#Copy libfproj4.lib from $ROOT_DIR\libfproj4-1.0\libfproj4\Debug to $ROOT_DIR\teste.&lt;br /&gt;
#Open Visual Studio and select File/New/Project/Intel(R) Visual Fortran / Console Application / Empty Project. Name it teste and select location as $ROOT_DIR\teste. Click ok.&lt;br /&gt;
#Project / Add Existing Item: Add test-proj.f90 and proj4.f90&lt;br /&gt;
#Project / Properties:&lt;br /&gt;
#*Linker / General / Additional Library Directories: ..\..\..\teste (or where libfproj4.lib file is).&lt;br /&gt;
#*Linker / Input / Additional Dependencies: libfproj4.lib&lt;br /&gt;
&lt;br /&gt;
==Linux==&lt;br /&gt;
    &lt;br /&gt;
 cd $ROOT_DIR/&lt;br /&gt;
 mkdir teste&lt;br /&gt;
 cd teste&lt;br /&gt;
 cp ../libfproj4-1.0/test-proj.f90 .&lt;br /&gt;
 cp ../libfproj4-1.0/proj4.f90 .&lt;br /&gt;
 cp ../libfproj4-1.0/proj4.inc .&lt;br /&gt;
 cp ../src/libfproj4.a .&lt;br /&gt;
 ifort -c proj4.f90      #-I../libfproj4-1.0       # needs proj4.inc&lt;br /&gt;
 ifort -c test-proj.f90&lt;br /&gt;
 ifort proj4.o test-proj.o libfproj4.a -o test-proj.exe&lt;br /&gt;
 ./test-proj.exe&lt;br /&gt;
&lt;br /&gt;
=InternalLinks=&lt;br /&gt;
&lt;br /&gt;
*[[PROJ4]]&lt;br /&gt;
*[[ConvertToHDF5]]&lt;br /&gt;
&lt;br /&gt;
=External Links=&lt;br /&gt;
*[http://forge.nesc.ac.uk/download.php/10/libfproj4-1.0.tar.gz libfproj4-1.0.tar.gz].&lt;br /&gt;
&lt;br /&gt;
[[Category:Tools]]&lt;/div&gt;</summary>
		<author><name>Anatrancoso</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Libfproj4&amp;diff=3260</id>
		<title>Libfproj4</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Libfproj4&amp;diff=3260"/>
				<updated>2010-08-19T17:05:43Z</updated>
		
		<summary type="html">&lt;p&gt;Anatrancoso: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;libfproj4 is a Fortran wrapper for [[PROJ4]] library. It was developed as of the [http://www.cbcb.umd.edu/software/glimmer/ GLIMMER] project and can be found in [http://forge.nesc.ac.uk/download.php/10/libfproj4-1.0.tar.gz libfproj4-1.0.tar.gz]. &lt;br /&gt;
This wrapper is necessary if we want to call PROJ4 conversion subroutines (in C) from a Fortran program. &lt;br /&gt;
It is used in MOHID by the ConvertToHDF5 tool to be able to deal with different projections from other models.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Compilation (Static Library)=&lt;br /&gt;
&lt;br /&gt;
libfproj4 it's a library build on top of [[PROJ4]]. It can se used dynamically or statically. Here, only the static compilation is explained, as the instructions for dynamic compilation are included in the library source code. The first steps in compiling are:&lt;br /&gt;
&lt;br /&gt;
*Download libfproj4 source code from [http://forge.nesc.ac.uk/download.php/10/libfproj4-1.0.tar.gz] or \\kepler\Software\PROJ4\libfproj4-1.0.tar.&lt;br /&gt;
*Download proj4 source code from [http://download.osgeo.org/proj/proj-4.7.0.tar.gz] or \\kepler\Software\PROJ4\proj-4.7.0.tar.&lt;br /&gt;
*Extract all contents to a place in your computer, from now referred to as ROOT_DIR.&lt;br /&gt;
&lt;br /&gt;
==Windows==&lt;br /&gt;
&lt;br /&gt;
===Compaq Visual Studio===&lt;br /&gt;
&lt;br /&gt;
(Already compiled in \\kepler\Software\PROJ4\libfproj4.lib)&lt;br /&gt;
&lt;br /&gt;
#New project W32 static lib&lt;br /&gt;
#Add fort-proj.c (from libfproj4-1.0.tar.gz) and all *.c files (from proj4 source), except all that have main function : css2css, geod, nad2bin, nad2nad, proj.c.&lt;br /&gt;
#Project Settings / C/C++ / General / Preprocessor definitions : VISUAL_CPLUSPLUS ou IFORT&lt;br /&gt;
#Project Settings / C/C++ / Preprocessor / include : whatever\proj-4.6.0\src (the folder that has projects.h, because of directives #include &amp;lt;projects.h&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
===Visual Studio 2008 with Intel Fortran===&lt;br /&gt;
&lt;br /&gt;
(Already compiled in [http://mohid.codeplex.com] ExternalLibs/Proj4)&lt;br /&gt;
&lt;br /&gt;
#Open Visual Studio and select File/New/Project/Visual C++/W32/Win32 Console Application. Name it libfproj4, and select location as $ROOT_DIR\libfproj4-1.0. Click ok.&lt;br /&gt;
#In the wizard, click Next and then choose &amp;quot;Console application&amp;quot; and &amp;quot;Empty project&amp;quot; in the following window. Then click Finish.&lt;br /&gt;
#Go to Project / Properties / Configuration Properties / Configuration Type and select &amp;quot;Static Library (.lib)&amp;quot;. Click ok. (we don't choose this type in the project creation because if so VS2008 automatic header files that we don't want).&lt;br /&gt;
#Go to Project / Add Existing Item. Add $ROOT_DIR\libfproj4-1.0\fort-proj.c.&lt;br /&gt;
#Go to Project / Add Existing Item. Add all *.c files in $ROOT_DIR\proj-4.7.0\src except the ones that have the main function: cs2cs.c, geod.c, nad2bin.c, nad2nad.c, proj.c.&lt;br /&gt;
#Rename proj_config.h.in to proj_config.h in ROOT_DIR\proj-4.7.0\src&lt;br /&gt;
#Go to Project / libfproj4 Properties:&lt;br /&gt;
#*C/C++ / General / Additional Include Directories: ..\..\..\proj-4.7.0\src (where the *.h files are)&lt;br /&gt;
#*C/C++ / Preprocessor / Preprocessor Definitions: IFORT&lt;br /&gt;
#*C/C++ / Code Generation / Runtime Library : Multi-threaded Debug (/MTd) (para versao Debug)&lt;br /&gt;
#*C/C++ / Code Generation / Runtime Library : Multi-threaded (/MT) (para versao Release)&lt;br /&gt;
#Build Solution&lt;br /&gt;
&lt;br /&gt;
==Linux==&lt;br /&gt;
&lt;br /&gt;
Prepare files and folders:&lt;br /&gt;
 cd $ROOT_DIR&lt;br /&gt;
 tar -zxvf proj-4.7.0.tar.gz&lt;br /&gt;
 tar -zxvf libfproj4-1.0.tar.gz&lt;br /&gt;
 mkdir src&lt;br /&gt;
 cp libfproj4-1.0/fort-proj.c src/&lt;br /&gt;
 cp libfproj4-1.0/cfortran.h src/&lt;br /&gt;
 cp -r proj-4.7.0/src/*.c src/&lt;br /&gt;
 cp -r proj-4.7.0/src/*.h src/&lt;br /&gt;
 cp proj-4.7.0/src/proj_config.h.in src/proj_config.h&lt;br /&gt;
&lt;br /&gt;
Compile:&lt;br /&gt;
 &lt;br /&gt;
 cd $ROOT_DIR/src&lt;br /&gt;
 rm -rf cs2cs.c geod.c nad2nad.c nad2bin.c proj.c  # with main functions&lt;br /&gt;
 icc -DIFORT -c *.c&lt;br /&gt;
 ar rc libfproj4.a *.o&lt;br /&gt;
&lt;br /&gt;
Install:&lt;br /&gt;
&lt;br /&gt;
 cd $ROOT_DIR&lt;br /&gt;
 mkdir lib&lt;br /&gt;
 mkdir include&lt;br /&gt;
 cp src/libfproj4.a lib/&lt;br /&gt;
 cp libfproj4-1.0/proj4.inc include&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
==Windows==&lt;br /&gt;
&lt;br /&gt;
#Create $ROOT_DIR\teste&lt;br /&gt;
#Copy test-proj.f90, proj4.f90 and proj4.inc from $ROOT_DIR\libfproj4-1.0 to $ROOT_DIR\teste.&lt;br /&gt;
#Copy libfproj4.lib from $ROOT_DIR\libfproj4-1.0\libfproj4\Debug to $ROOT_DIR\teste.&lt;br /&gt;
#Open Visual Studio and select File/New/Project/Intel(R) Visual Fortran / Console Application / Empty Project. Name it teste and select location as $ROOT_DIR\teste. Click ok.&lt;br /&gt;
#Project / Add Existing Item: Add test-proj.f90 and proj4.f90&lt;br /&gt;
#Project / Properties:&lt;br /&gt;
#*Linker / General / Additional Library Directories: ..\..\..\teste (or where libfproj4.lib file is).&lt;br /&gt;
#*Linker / Input / Additional Dependencies: libfproj4.lib&lt;br /&gt;
&lt;br /&gt;
==Linux==&lt;br /&gt;
    &lt;br /&gt;
 cd $ROOT_DIR/&lt;br /&gt;
 mkdir teste&lt;br /&gt;
 cd teste&lt;br /&gt;
 cp ../libfproj4-1.0/test-proj.f90 .&lt;br /&gt;
 cp ../libfproj4-1.0/proj4.f90 .&lt;br /&gt;
 cp ../libfproj4-1.0/proj4.inc .&lt;br /&gt;
 cp ../src/libfproj4.a .&lt;br /&gt;
 ifort -c proj4.f90      #-I../libfproj4-1.0       # needs proj4.inc&lt;br /&gt;
 ifort -c test-proj.f90&lt;br /&gt;
 ifort proj4.o test-proj.o libfproj4.a -o test-proj.exe&lt;br /&gt;
 ./test-proj.exe&lt;br /&gt;
&lt;br /&gt;
=InternalLinks=&lt;br /&gt;
&lt;br /&gt;
*[[PROJ4]]&lt;br /&gt;
*[[ConverToHDF5]]&lt;br /&gt;
&lt;br /&gt;
=External Links=&lt;br /&gt;
*[http://forge.nesc.ac.uk/download.php/10/libfproj4-1.0.tar.gz libfproj4-1.0.tar.gz].&lt;br /&gt;
&lt;br /&gt;
[[Category:Tools]]&lt;/div&gt;</summary>
		<author><name>Anatrancoso</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=PROJ4&amp;diff=3259</id>
		<title>PROJ4</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=PROJ4&amp;diff=3259"/>
				<updated>2010-08-19T17:04:52Z</updated>
		
		<summary type="html">&lt;p&gt;Anatrancoso: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page explains what is [http://proj.maptools.org/ PROJ4] library and how to use it from the command line, in Windows and in Linux.&lt;br /&gt;
&lt;br /&gt;
[http://proj.maptools.org/ PROJ4] is an open-source Cartographic Projections library originally written by Gerald Evenden then of the USGS. This library has almost all projection types and it is very usefull to convert coordinates for a series of points.&lt;br /&gt;
&lt;br /&gt;
It is written in C but a Fortran wrapper was developed as part of the [http://www.cbcb.umd.edu/software/glimmer/ GLIMMER] project. More information can be found in [[libfproj4]]&lt;br /&gt;
&lt;br /&gt;
=Installation=&lt;br /&gt;
===Windows===&lt;br /&gt;
* Download http://download.osgeo.org/proj/proj446_win32_bin.zip&lt;br /&gt;
* Extract and copy &amp;quot;proj&amp;quot; folder to C:\&lt;br /&gt;
* Right-click &amp;quot;My Computer&amp;quot; and select &amp;quot;Properties&amp;quot;&lt;br /&gt;
* Select &amp;quot;Advanced&amp;quot; tab&lt;br /&gt;
* Select &amp;quot;Environment Variables&amp;quot;&lt;br /&gt;
* In the &amp;quot;System Variables&amp;quot; box select &amp;quot;Path&amp;quot; and click &amp;quot;Edit&amp;quot;.&lt;br /&gt;
* At the end of the line, add &amp;quot;C:\proj\bin&amp;quot; and click &amp;quot;OK&amp;quot;.&lt;br /&gt;
* In the &amp;quot;System Variables&amp;quot; box, click &amp;quot;New&amp;quot;.&lt;br /&gt;
* &amp;quot;Variable Name&amp;quot; is PROJ_LIB and &amp;quot;Variable Value&amp;quot; is &amp;quot;C:\proj\nad&amp;quot;.&lt;br /&gt;
* Click OK to close windows.&lt;br /&gt;
&lt;br /&gt;
Now test it:&lt;br /&gt;
*Windows/Run/cmd&lt;br /&gt;
*cd .. until prompt is C:\&amp;gt;&lt;br /&gt;
*write &amp;quot;proj -V&amp;quot; to see the version of the library.&lt;br /&gt;
&lt;br /&gt;
===Linux===&lt;br /&gt;
* Go to your Package Manager or download source code from http://trac.osgeo.org/proj/ and follow the instructions.&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
The Proj4 is well documented. Here are some commands that I found useful.&lt;br /&gt;
&lt;br /&gt;
===Basic===&lt;br /&gt;
====degrees to meters (forward projection)====&lt;br /&gt;
&lt;br /&gt;
 proj -f &amp;quot;%.2f&amp;quot; +proj=utm +zone=29 +ellps=WGS84&lt;br /&gt;
 -7.1 38.2                                         (input)&lt;br /&gt;
 666368.11       4229712.04                        (output)&lt;br /&gt;
&lt;br /&gt;
====meters to degrees (inverse projection)====&lt;br /&gt;
&lt;br /&gt;
 proj -I -f &amp;quot;%.2f&amp;quot; +proj=utm +zone=29 +ellps=WGS84  &lt;br /&gt;
 666368.11 4229712.04                                 (input)&lt;br /&gt;
 -7.10   38.20                                        (output)&lt;br /&gt;
&lt;br /&gt;
===Portuguese Military Coordinates (Hayford-Gauss Military System)===&lt;br /&gt;
&lt;br /&gt;
*Projection: Gauss-Kruger&lt;br /&gt;
*Ellipsoid: Hayford (internacional 1924): a=6378.388Km, b=6356.912 Km&lt;br /&gt;
*Datum : Lisbon (Castelo S.Jorge: 38º42’43.631’’N, 9º07’54.862’'W, 111.229m)&lt;br /&gt;
*Central Point: 39º40’N, 8º07’54.862’’W &lt;br /&gt;
*Origin: -200Km horizontally and -300 Km vertically&lt;br /&gt;
&lt;br /&gt;
 proj -f &amp;quot;%.2f&amp;quot; +init=epsg:20790&lt;br /&gt;
&lt;br /&gt;
or &lt;br /&gt;
&lt;br /&gt;
 proj -f &amp;quot;%.2f&amp;quot; +init=esri:102164&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
 proj -f &amp;quot;%.2f&amp;quot; +proj=tmerc +lat_0=39.66666666666666 +lon_0=-8.131906111111112 +k=1.000000 &lt;br /&gt;
                +x_0=200000 +y_0=300000 +ellps=intl +pm=lisbon +units=m +no_defs  no_defs&lt;br /&gt;
&lt;br /&gt;
===Universal Transverse Mercator (zone 29N)===&lt;br /&gt;
&lt;br /&gt;
 proj -f &amp;quot;%.2f&amp;quot; +init=esri:32629&lt;br /&gt;
&lt;br /&gt;
or &lt;br /&gt;
&lt;br /&gt;
 proj -f &amp;quot;%.2f&amp;quot; +proj=utm +zone=29 +ellps=WGS84 +datum=WGS84 +units=m&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===List of projections===&lt;br /&gt;
&lt;br /&gt;
List of projections in PROJ4: proj -lp&lt;br /&gt;
&lt;br /&gt;
===List of ellipsoids===&lt;br /&gt;
&lt;br /&gt;
List of ellipsoids in PROJ4: proj -le&lt;br /&gt;
&lt;br /&gt;
More popular:&lt;br /&gt;
**International 1909 (Hayford)  intl		a=6378388.0m	b=6356912m     rf=297.          &lt;br /&gt;
**New International 1967	new_intl 	a=6378157.5m	b=6356772m      &lt;br /&gt;
**WGS 84    			WGS84 		a=6378137.0m    b=6357002m     rf=298.257223563 &lt;br /&gt;
**Normal Sphere (r=6370997)	sphere 		a=6370997.0m    b=6370997m      &lt;br /&gt;
&lt;br /&gt;
b = a*(1-f) = a*(1-1/rf)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Portuguese Coordinate Systems in PROJ4===&lt;br /&gt;
&lt;br /&gt;
You might want to get the libraries containing the coordinate transformations with Portuguese datum&lt;br /&gt;
pre-configured [http://www.fc.up.pt/pessoas/jagoncal/coordenadas/parte2.htm here]. Install the libs in the proj_lib folder, inside the [http://fwtools.maptools.org/ FWTools] folder. By the way, you may want to [http://fwtools.maptools.org/ install FWTools first].&lt;br /&gt;
&lt;br /&gt;
Here's the command line on how to convert from military portuguese to wgs84:&lt;br /&gt;
  cs2cs +init=pt:dlxhgmil +to +init=pt:etrs89 &amp;lt; coords_input.txt&lt;br /&gt;
&lt;br /&gt;
=Internal Links=&lt;br /&gt;
*[[libfproj4]]&lt;br /&gt;
*[[ConvertToHDF5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=External Links=&lt;br /&gt;
*[http://proj.maptools.org/ PROJ4]&lt;br /&gt;
*[http://www.isa.utl.pt/dm/sigdr/sigdr04-05/9_SistRefPortugueses.ppt Sistemas Referencia Portugueses]&lt;br /&gt;
*[http://dl.maptools.org/dl/omsug/osgis2004/PROJ4_HandlingCoordinateSystems.pdf PROJ4_HandlingCoordinateSystems.pdf]&lt;br /&gt;
*[http://www.posc.org/Epicentre.2_2/DataModel/ExamplesofUsage/eu_cs34.html Projections and Projected Coordinate System Formulas]&lt;br /&gt;
&lt;br /&gt;
[[Category:Tools]]&lt;/div&gt;</summary>
		<author><name>Anatrancoso</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=PROJ4&amp;diff=3258</id>
		<title>PROJ4</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=PROJ4&amp;diff=3258"/>
				<updated>2010-08-19T16:59:22Z</updated>
		
		<summary type="html">&lt;p&gt;Anatrancoso: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page explains what is [http://proj.maptools.org/ PROJ4] library and how to use it from the command line, in Windows and in Linux.&lt;br /&gt;
&lt;br /&gt;
[http://proj.maptools.org/ PROJ4] is an open-source Cartographic Projections library originally written by Gerald Evenden then of the USGS. This library has almost all projection types and it is very usefull to convert coordinates for a series of points.&lt;br /&gt;
&lt;br /&gt;
It is written in C but a Fortran wrapper was developed as part of the [http://www.cbcb.umd.edu/software/glimmer/ GLIMMER] project. More information can be found in [[libfproj4]]&lt;br /&gt;
&lt;br /&gt;
=Installation=&lt;br /&gt;
===Windows===&lt;br /&gt;
* Download http://download.osgeo.org/proj/proj446_win32_bin.zip&lt;br /&gt;
* Extract and copy &amp;quot;proj&amp;quot; folder to C:\&lt;br /&gt;
* Right-click &amp;quot;My Computer&amp;quot; and select &amp;quot;Properties&amp;quot;&lt;br /&gt;
* Select &amp;quot;Advanced&amp;quot; tab&lt;br /&gt;
* Select &amp;quot;Environment Variables&amp;quot;&lt;br /&gt;
* In the &amp;quot;System Variables&amp;quot; box select &amp;quot;Path&amp;quot; and click &amp;quot;Edit&amp;quot;.&lt;br /&gt;
* At the end of the line, add &amp;quot;C:\proj\bin&amp;quot; and click &amp;quot;OK&amp;quot;.&lt;br /&gt;
* In the &amp;quot;System Variables&amp;quot; box, click &amp;quot;New&amp;quot;.&lt;br /&gt;
* &amp;quot;Variable Name&amp;quot; is PROJ_LIB and &amp;quot;Variable Value&amp;quot; is &amp;quot;C:\proj\nad&amp;quot;.&lt;br /&gt;
* Click OK to close windows.&lt;br /&gt;
&lt;br /&gt;
Now test it:&lt;br /&gt;
*Windows/Run/cmd&lt;br /&gt;
*cd .. until prompt is C:\&amp;gt;&lt;br /&gt;
*write &amp;quot;proj -V&amp;quot; to see the version of the library.&lt;br /&gt;
&lt;br /&gt;
===Linux===&lt;br /&gt;
* Go to your Package Manager or download source code from http://trac.osgeo.org/proj/ and follow the instructions.&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
The Proj4 is well documented. Here are some commands that I found useful.&lt;br /&gt;
&lt;br /&gt;
===Basic===&lt;br /&gt;
====degrees to meters (forward projection)====&lt;br /&gt;
&lt;br /&gt;
 proj -f &amp;quot;%.2f&amp;quot; +proj=utm +zone=29 +ellps=WGS84&lt;br /&gt;
 -7.1 38.2                                         (input)&lt;br /&gt;
 666368.11       4229712.04                        (output)&lt;br /&gt;
&lt;br /&gt;
====meters to degrees (inverse projection)====&lt;br /&gt;
&lt;br /&gt;
 proj -I -f &amp;quot;%.2f&amp;quot; +proj=utm +zone=29 +ellps=WGS84  &lt;br /&gt;
 666368.11 4229712.04                                 (input)&lt;br /&gt;
 -7.10   38.20                                        (output)&lt;br /&gt;
&lt;br /&gt;
===Portuguese Military Coordinates (Hayford-Gauss Military System)===&lt;br /&gt;
&lt;br /&gt;
*Projection: Gauss-Kruger&lt;br /&gt;
*Ellipsoid: Hayford (internacional 1924): a=6378.388Km, b=6356.912 Km&lt;br /&gt;
*Datum : Lisbon (Castelo S.Jorge: 38º42’43.631’’N, 9º07’54.862’'W, 111.229m)&lt;br /&gt;
*Central Point: 39º40’N, 8º07’54.862’’W &lt;br /&gt;
*Origin: -200Km horizontally and -300 Km vertically&lt;br /&gt;
&lt;br /&gt;
 proj -f &amp;quot;%.2f&amp;quot; +init=epsg:20790&lt;br /&gt;
&lt;br /&gt;
or &lt;br /&gt;
&lt;br /&gt;
 proj -f &amp;quot;%.2f&amp;quot; +init=esri:102164&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
 proj -f &amp;quot;%.2f&amp;quot; +proj=tmerc +lat_0=39.66666666666666 +lon_0=-8.131906111111112 +k=1.000000 &lt;br /&gt;
                +x_0=200000 +y_0=300000 +ellps=intl +pm=lisbon +units=m +no_defs  no_defs&lt;br /&gt;
&lt;br /&gt;
===Universal Transverse Mercator (zone 29N)===&lt;br /&gt;
&lt;br /&gt;
 proj -f &amp;quot;%.2f&amp;quot; +init=esri:32629&lt;br /&gt;
&lt;br /&gt;
or &lt;br /&gt;
&lt;br /&gt;
 proj -f &amp;quot;%.2f&amp;quot; +proj=utm +zone=29 +ellps=WGS84 +datum=WGS84 +units=m&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===List of projections===&lt;br /&gt;
&lt;br /&gt;
List of projections in PROJ4: proj -lp&lt;br /&gt;
&lt;br /&gt;
===List of ellipsoids===&lt;br /&gt;
&lt;br /&gt;
List of ellipsoids in PROJ4: proj -le&lt;br /&gt;
&lt;br /&gt;
More popular:&lt;br /&gt;
**International 1909 (Hayford)  intl		a=6378388.0m	b=6356912m     rf=297.          &lt;br /&gt;
**New International 1967	new_intl 	a=6378157.5m	b=6356772m      &lt;br /&gt;
**WGS 84    			WGS84 		a=6378137.0m    b=6357002m     rf=298.257223563 &lt;br /&gt;
**Normal Sphere (r=6370997)	sphere 		a=6370997.0m    b=6370997m      &lt;br /&gt;
&lt;br /&gt;
b = a*(1-f) = a*(1-1/rf)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Portuguese Coordinate Systems in PROJ4===&lt;br /&gt;
&lt;br /&gt;
You might want to get the libraries containing the coordinate transformations with Portuguese datum&lt;br /&gt;
pre-configured [http://www.fc.up.pt/pessoas/jagoncal/coordenadas/parte2.htm here]. Install the libs in the proj_lib folder, inside the [http://fwtools.maptools.org/ FWTools] folder. By the way, you may want to [http://fwtools.maptools.org/ install FWTools first].&lt;br /&gt;
&lt;br /&gt;
Here's the command line on how to convert from military portuguese to wgs84:&lt;br /&gt;
  cs2cs +init=pt:dlxhgmil +to +init=pt:etrs89 &amp;lt; coords_input.txt&lt;br /&gt;
&lt;br /&gt;
=External Links=&lt;br /&gt;
*[http://proj.maptools.org/ PROJ4]&lt;br /&gt;
*[http://www.isa.utl.pt/dm/sigdr/sigdr04-05/9_SistRefPortugueses.ppt Sistemas Referencia Portugueses]&lt;br /&gt;
*[http://dl.maptools.org/dl/omsug/osgis2004/PROJ4_HandlingCoordinateSystems.pdf PROJ4_HandlingCoordinateSystems.pdf]&lt;br /&gt;
*[http://www.posc.org/Epicentre.2_2/DataModel/ExamplesofUsage/eu_cs34.html Projections and Projected Coordinate System Formulas]&lt;/div&gt;</summary>
		<author><name>Anatrancoso</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Libfproj4&amp;diff=3257</id>
		<title>Libfproj4</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Libfproj4&amp;diff=3257"/>
				<updated>2010-08-19T16:46:07Z</updated>
		
		<summary type="html">&lt;p&gt;Anatrancoso: New page: libfproj4 is a Fortran wrapper for PROJ4 library. It was developed as of the [http://www.cbcb.umd.edu/software/glimmer/ GLIMMER] project and can be found in [http://forge.nesc.ac.uk/do...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;libfproj4 is a Fortran wrapper for [[PROJ4]] library. It was developed as of the [http://www.cbcb.umd.edu/software/glimmer/ GLIMMER] project and can be found in [http://forge.nesc.ac.uk/download.php/10/libfproj4-1.0.tar.gz libfproj4-1.0.tar.gz]. &lt;br /&gt;
This wrapper is necessary if we want to call PROJ4 conversion subroutines (in C) from a Fortran program. &lt;br /&gt;
It is used in MOHID by the ConvertToHDF5 tool to be able to deal with different projections from other models.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Compilation (Static Library)=&lt;br /&gt;
&lt;br /&gt;
libfproj4 it's a library build on top of [[PROJ4]]. It can se used dynamically or statically. Here, only the static compilation is explained, as the instructions for dynamic compilation are included in the library source code. The first steps in compiling are:&lt;br /&gt;
&lt;br /&gt;
*Download libfproj4 source code from [http://forge.nesc.ac.uk/download.php/10/libfproj4-1.0.tar.gz] or \\kepler\Software\PROJ4\libfproj4-1.0.tar.&lt;br /&gt;
*Download proj4 source code from [http://download.osgeo.org/proj/proj-4.7.0.tar.gz] or \\kepler\Software\PROJ4\proj-4.7.0.tar.&lt;br /&gt;
*Extract all contents to a place in your computer, from now referred to as ROOT_DIR.&lt;br /&gt;
&lt;br /&gt;
==Windows==&lt;br /&gt;
&lt;br /&gt;
===Compaq Visual Studio===&lt;br /&gt;
&lt;br /&gt;
(Already compiled in \\kepler\Software\PROJ4\libfproj4.lib)&lt;br /&gt;
&lt;br /&gt;
#New project W32 static lib&lt;br /&gt;
#Add fort-proj.c (from libfproj4-1.0.tar.gz) and all *.c files (from proj4 source), except all that have main function : css2css, geod, nad2bin, nad2nad, proj.c.&lt;br /&gt;
#Project Settings / C/C++ / General / Preprocessor definitions : VISUAL_CPLUSPLUS ou IFORT&lt;br /&gt;
#Project Settings / C/C++ / Preprocessor / include : whatever\proj-4.6.0\src (the folder that has projects.h, because of directives #include &amp;lt;projects.h&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
===Visual Studio 2008 with Intel Fortran===&lt;br /&gt;
&lt;br /&gt;
(Already compiled in [http://mohid.codeplex.com] ExternalLibs/Proj4)&lt;br /&gt;
&lt;br /&gt;
#Open Visual Studio and select File/New/Project/Visual C++/W32/Win32 Console Application. Name it libfproj4, and select location as $ROOT_DIR\libfproj4-1.0. Click ok.&lt;br /&gt;
#In the wizard, click Next and then choose &amp;quot;Console application&amp;quot; and &amp;quot;Empty project&amp;quot; in the following window. Then click Finish.&lt;br /&gt;
#Go to Project / Properties / Configuration Properties / Configuration Type and select &amp;quot;Static Library (.lib)&amp;quot;. Click ok. (we don't choose this type in the project creation because if so VS2008 automatic header files that we don't want).&lt;br /&gt;
#Go to Project / Add Existing Item. Add $ROOT_DIR\libfproj4-1.0\fort-proj.c.&lt;br /&gt;
#Go to Project / Add Existing Item. Add all *.c files in $ROOT_DIR\proj-4.7.0\src except the ones that have the main function: cs2cs.c, geod.c, nad2bin.c, nad2nad.c, proj.c.&lt;br /&gt;
#Rename proj_config.h.in to proj_config.h in ROOT_DIR\proj-4.7.0\src&lt;br /&gt;
#Go to Project / libfproj4 Properties:&lt;br /&gt;
#*C/C++ / General / Additional Include Directories: ..\..\..\proj-4.7.0\src (where the *.h files are)&lt;br /&gt;
#*C/C++ / Preprocessor / Preprocessor Definitions: IFORT&lt;br /&gt;
#*C/C++ / Code Generation / Runtime Library : Multi-threaded Debug (/MTd) (para versao Debug)&lt;br /&gt;
#*C/C++ / Code Generation / Runtime Library : Multi-threaded (/MT) (para versao Release)&lt;br /&gt;
#Build Solution&lt;br /&gt;
&lt;br /&gt;
==Linux==&lt;br /&gt;
&lt;br /&gt;
Prepare files and folders:&lt;br /&gt;
 cd $ROOT_DIR&lt;br /&gt;
 tar -zxvf proj-4.7.0.tar.gz&lt;br /&gt;
 tar -zxvf libfproj4-1.0.tar.gz&lt;br /&gt;
 mkdir src&lt;br /&gt;
 cp libfproj4-1.0/fort-proj.c src/&lt;br /&gt;
 cp libfproj4-1.0/cfortran.h src/&lt;br /&gt;
 cp -r proj-4.7.0/src/*.c src/&lt;br /&gt;
 cp -r proj-4.7.0/src/*.h src/&lt;br /&gt;
 cp proj-4.7.0/src/proj_config.h.in src/proj_config.h&lt;br /&gt;
&lt;br /&gt;
Compile:&lt;br /&gt;
 &lt;br /&gt;
 cd $ROOT_DIR/src&lt;br /&gt;
 rm -rf cs2cs.c geod.c nad2nad.c nad2bin.c proj.c  # with main functions&lt;br /&gt;
 icc -DIFORT -c *.c&lt;br /&gt;
 ar rc libfproj4.a *.o&lt;br /&gt;
&lt;br /&gt;
Install:&lt;br /&gt;
&lt;br /&gt;
 cd $ROOT_DIR&lt;br /&gt;
 mkdir lib&lt;br /&gt;
 mkdir include&lt;br /&gt;
 cp src/libfproj4.a lib/&lt;br /&gt;
 cp libfproj4-1.0/proj4.inc include&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
==Windows==&lt;br /&gt;
&lt;br /&gt;
#Create $ROOT_DIR\teste&lt;br /&gt;
#Copy test-proj.f90, proj4.f90 and proj4.inc from $ROOT_DIR\libfproj4-1.0 to $ROOT_DIR\teste.&lt;br /&gt;
#Copy libfproj4.lib from $ROOT_DIR\libfproj4-1.0\libfproj4\Debug to $ROOT_DIR\teste.&lt;br /&gt;
#Open Visual Studio and select File/New/Project/Intel(R) Visual Fortran / Console Application / Empty Project. Name it teste and select location as $ROOT_DIR\teste. Click ok.&lt;br /&gt;
#Project / Add Existing Item: Add test-proj.f90 and proj4.f90&lt;br /&gt;
#Project / Properties:&lt;br /&gt;
#*Linker / General / Additional Library Directories: ..\..\..\teste (or where libfproj4.lib file is).&lt;br /&gt;
#*Linker / Input / Additional Dependencies: libfproj4.lib&lt;br /&gt;
&lt;br /&gt;
==Linux==&lt;br /&gt;
    &lt;br /&gt;
 cd $ROOT_DIR/&lt;br /&gt;
 mkdir teste&lt;br /&gt;
 cd teste&lt;br /&gt;
 cp ../libfproj4-1.0/test-proj.f90 .&lt;br /&gt;
 cp ../libfproj4-1.0/proj4.f90 .&lt;br /&gt;
 cp ../libfproj4-1.0/proj4.inc .&lt;br /&gt;
 cp ../src/libfproj4.a .&lt;br /&gt;
 ifort -c proj4.f90      #-I../libfproj4-1.0       # needs proj4.inc&lt;br /&gt;
 ifort -c test-proj.f90&lt;br /&gt;
 ifort proj4.o test-proj.o libfproj4.a -o test-proj.exe&lt;br /&gt;
 ./test-proj.exe&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=External Links=&lt;br /&gt;
*[http://forge.nesc.ac.uk/download.php/10/libfproj4-1.0.tar.gz libfproj4-1.0.tar.gz].&lt;/div&gt;</summary>
		<author><name>Anatrancoso</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=PROJ4&amp;diff=3256</id>
		<title>PROJ4</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=PROJ4&amp;diff=3256"/>
				<updated>2010-08-19T16:07:38Z</updated>
		
		<summary type="html">&lt;p&gt;Anatrancoso: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page explains what is [http://proj.maptools.org/ PROJ4] library and how to use it from the command line, in Windows and in Linux.&lt;br /&gt;
&lt;br /&gt;
[http://proj.maptools.org/ PROJ4] is an open-source Cartographic Projections library originally written by Gerald Evenden then of the USGS. This library has almost all projection types and it is very usefull to convert coordinates for a series of points.&lt;br /&gt;
&lt;br /&gt;
It is written in C but a Fortran wrapper was developed as part of the [http://www.cbcb.umd.edu/software/glimmer/ GLIMMER] project. More information can be found in [[libfproj4]]&lt;br /&gt;
&lt;br /&gt;
=Installation=&lt;br /&gt;
===Windows===&lt;br /&gt;
* Download http://download.osgeo.org/proj/proj446_win32_bin.zip&lt;br /&gt;
* Extract and copy &amp;quot;proj&amp;quot; folder to C:\&lt;br /&gt;
* Right-click &amp;quot;My Computer&amp;quot; and select &amp;quot;Properties&amp;quot;&lt;br /&gt;
* Select &amp;quot;Advanced&amp;quot; tab&lt;br /&gt;
* Select &amp;quot;Environment Variables&amp;quot;&lt;br /&gt;
* In the &amp;quot;System Variables&amp;quot; box select &amp;quot;Path&amp;quot; and click &amp;quot;Edit&amp;quot;.&lt;br /&gt;
* At the end of the line, add &amp;quot;C:\proj\bin&amp;quot; and click &amp;quot;OK&amp;quot;.&lt;br /&gt;
* In the &amp;quot;System Variables&amp;quot; box, click &amp;quot;New&amp;quot;.&lt;br /&gt;
* &amp;quot;Variable Name&amp;quot; is PROJ_LIB and &amp;quot;Variable Value&amp;quot; is &amp;quot;C:\proj\nad&amp;quot;.&lt;br /&gt;
* Click OK to close windows.&lt;br /&gt;
&lt;br /&gt;
Now test it:&lt;br /&gt;
*Windows/Run/cmd&lt;br /&gt;
*cd .. until prompt is C:\&amp;gt;&lt;br /&gt;
*write &amp;quot;proj -V&amp;quot; to see the version of the library.&lt;br /&gt;
&lt;br /&gt;
===Linux===&lt;br /&gt;
* Go to your Package Manager or download source code from http://trac.osgeo.org/proj/ and follow the instructions.&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
The Proj4 is well documented. Here are some commands that I found useful.&lt;br /&gt;
&lt;br /&gt;
===Projections===&lt;br /&gt;
&lt;br /&gt;
*List of projections in PROJ4: proj -lp&lt;br /&gt;
&lt;br /&gt;
===Ellipsoids===&lt;br /&gt;
*List of ellipsoids in PROJ4: proj -le&lt;br /&gt;
*More popular:&lt;br /&gt;
**International 1909 (Hayford)  intl		a=6378388.0m	b=6356912m     rf=297.          &lt;br /&gt;
**New International 1967	new_intl 	a=6378157.5m	b=6356772m      &lt;br /&gt;
**WGS 84    			WGS84 		a=6378137.0m    b=6357002m     rf=298.257223563 &lt;br /&gt;
**Normal Sphere (r=6370997)	sphere 		a=6370997.0m    b=6370997m      &lt;br /&gt;
&lt;br /&gt;
b = a*(1-f) = a*(1-1/rf)&lt;br /&gt;
&lt;br /&gt;
===Portuguese Coordinate Systems in PROJ4===&lt;br /&gt;
&lt;br /&gt;
You might want to get the libraries containing the coordinate transformations with portuguese datum&lt;br /&gt;
pre-configured [http://www.fc.up.pt/pessoas/jagoncal/coordenadas/parte2.htm here]. Install the libs in the proj_lib folder, inside the [http://fwtools.maptools.org/ FWTools] folder. By the way, you may want to [http://fwtools.maptools.org/ install FWTools first].&lt;br /&gt;
&lt;br /&gt;
Here's the command line on how to convert from military portuguese to wgs84:&lt;br /&gt;
  cs2cs +init=pt:dlxhgmil +to +init=pt:etrs89 &amp;lt; coords_input.txt&lt;br /&gt;
&lt;br /&gt;
===Portuguese Military Coordinates (Hayford-Gauss Military System)===&lt;br /&gt;
&lt;br /&gt;
*Projection: Gauss-Kruger&lt;br /&gt;
*Ellipsoid: Hayford (internacional 1924): a=6378.388Km, b=6356.912 Km&lt;br /&gt;
*Datum : Lisbon (Castelo S.Jorge: 38º42’43.631’’N, 9º07’54.862’'W, 111.229m)&lt;br /&gt;
*Central Point: 39º40’N, 8º07’54.862’’W &lt;br /&gt;
*Origin: -200Km horizontally and -300 Km vertically&lt;br /&gt;
&lt;br /&gt;
Usage: &lt;br /&gt;
&lt;br /&gt;
*'''+init=epsg:20790''' &amp;lt;=&amp;gt; +proj=tmerc +lat_0=39.66666666666666 +lon_0=-8.131906111111112 +k=1.000000 &lt;br /&gt;
+x_0=200000 +y_0=300000 +ellps=intl +pm=lisbon +units=m +no_defs  no_defs &amp;lt;&amp;gt;&lt;br /&gt;
*'''+init=esri:102164''' &amp;lt;=&amp;gt; +proj=tmerc +lat_0=39.666666667 +lon_0=-8.131906111 +k=1.000000 &lt;br /&gt;
+x_0=200000.000 +y_0=300000.000 +ellps=intl +units=m (no reference to Lisbon Datum!!)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Universal Transverse Mercator (zone 29N)===&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
*ModuleHorizontalGrid: '''+init=esri:32629''' &amp;lt;=&amp;gt; +proj=utm +zone=29 +ellps=WGS84 +datum=WGS84 +units=m&lt;br /&gt;
&lt;br /&gt;
=External Links=&lt;br /&gt;
*[http://proj.maptools.org/ PROJ4]&lt;br /&gt;
*[http://www.isa.utl.pt/dm/sigdr/sigdr04-05/9_SistRefPortugueses.ppt Sistemas Referencia Portugueses]&lt;br /&gt;
*[http://dl.maptools.org/dl/omsug/osgis2004/PROJ4_HandlingCoordinateSystems.pdf PROJ4_HandlingCoordinateSystems.pdf]&lt;br /&gt;
*[http://www.posc.org/Epicentre.2_2/DataModel/ExamplesofUsage/eu_cs34.html Projections and Projected Coordinate System Formulas]&lt;/div&gt;</summary>
		<author><name>Anatrancoso</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=PROJ4&amp;diff=3255</id>
		<title>PROJ4</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=PROJ4&amp;diff=3255"/>
				<updated>2010-08-19T16:01:30Z</updated>
		
		<summary type="html">&lt;p&gt;Anatrancoso: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page explains what is [http://proj.maptools.org/ PROJ4] library and how to use it from the command line, in Windows and in Linux.&lt;br /&gt;
&lt;br /&gt;
[http://proj.maptools.org/ PROJ4] is an open-source Cartographic Projections library originally written by Gerald Evenden then of the USGS. This library has almost all projection types and it is very usefull to convert coordinates for a series of points.&lt;br /&gt;
&lt;br /&gt;
It is written in C but a Fortran wrapper was developed as part of the [http://www.cbcb.umd.edu/software/glimmer/ GLIMMER] project. More information can be found in [[libfproj4]]&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
===Windows===&lt;br /&gt;
* Download http://download.osgeo.org/proj/proj446_win32_bin.zip&lt;br /&gt;
* Extract and copy &amp;quot;proj&amp;quot; folder to C:\&lt;br /&gt;
* Right-click &amp;quot;My Computer&amp;quot; and select &amp;quot;Properties&amp;quot;&lt;br /&gt;
* Select &amp;quot;Advanced&amp;quot; tab&lt;br /&gt;
* Select &amp;quot;Environment Variables&amp;quot;&lt;br /&gt;
* In the &amp;quot;System Variables&amp;quot; box select &amp;quot;Path&amp;quot; and click &amp;quot;Edit&amp;quot;.&lt;br /&gt;
* At the end of the line, add &amp;quot;C:\proj\bin&amp;quot; and click &amp;quot;OK&amp;quot;.&lt;br /&gt;
* In the &amp;quot;System Variables&amp;quot; box, click &amp;quot;New&amp;quot;.&lt;br /&gt;
* &amp;quot;Variable Name&amp;quot; is PROJ_LIB and &amp;quot;Variable Value&amp;quot; is &amp;quot;C:\proj\nad&amp;quot;.&lt;br /&gt;
* Click OK to close windows.&lt;br /&gt;
&lt;br /&gt;
Now test it:&lt;br /&gt;
*Windows/Run/cmd&lt;br /&gt;
*cd .. until prompt is C:\&amp;gt;&lt;br /&gt;
*write &amp;quot;proj -V&amp;quot; to see the version of the library.&lt;br /&gt;
&lt;br /&gt;
===Linux===&lt;br /&gt;
* Go to your Package Manager or download source code from http://trac.osgeo.org/proj/ and follow the instructions.&lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
&lt;br /&gt;
The Proj4 is well documented. Here are some commands that I found useful.&lt;br /&gt;
&lt;br /&gt;
===Projections===&lt;br /&gt;
&lt;br /&gt;
*List of projections in PROJ4: proj -lp&lt;br /&gt;
&lt;br /&gt;
===Ellipsoids===&lt;br /&gt;
*List of ellipsoids in PROJ4: proj -le&lt;br /&gt;
*More popular:&lt;br /&gt;
**International 1909 (Hayford)  intl		a=6378388.0m	b=6356912m     rf=297.          &lt;br /&gt;
**New International 1967	new_intl 	a=6378157.5m	b=6356772m      &lt;br /&gt;
**WGS 84    			WGS84 		a=6378137.0m    b=6357002m     rf=298.257223563 &lt;br /&gt;
**Normal Sphere (r=6370997)	sphere 		a=6370997.0m    b=6370997m      &lt;br /&gt;
&lt;br /&gt;
b = a*(1-f) = a*(1-1/rf)&lt;br /&gt;
&lt;br /&gt;
===Portuguese Coordinate Systems in PROJ4===&lt;br /&gt;
&lt;br /&gt;
You might want to get the libraries containing the coordinate transformations with portuguese datum&lt;br /&gt;
pre-configured [http://www.fc.up.pt/pessoas/jagoncal/coordenadas/parte2.htm here]. Install the libs in the proj_lib folder, inside the [http://fwtools.maptools.org/ FWTools] folder. By the way, you may want to [http://fwtools.maptools.org/ install FWTools first].&lt;br /&gt;
&lt;br /&gt;
Here's the command line on how to convert from military portuguese to wgs84:&lt;br /&gt;
  cs2cs +init=pt:dlxhgmil +to +init=pt:etrs89 &amp;lt; coords_input.txt&lt;br /&gt;
&lt;br /&gt;
===Portuguese Military Coordinates (Hayford-Gauss Military System)===&lt;br /&gt;
&lt;br /&gt;
*Projection: Gauss-Kruger&lt;br /&gt;
*Ellipsoid: Hayford (internacional 1924): a=6378.388Km, b=6356.912 Km&lt;br /&gt;
*Datum : Lisbon (Castelo S.Jorge: 38º42’43.631’’N, 9º07’54.862’'W, 111.229m)&lt;br /&gt;
*Central Point: 39º40’N, 8º07’54.862’’W &lt;br /&gt;
*Origin: -200Km horizontally and -300 Km vertically&lt;br /&gt;
&lt;br /&gt;
Usage: &lt;br /&gt;
&lt;br /&gt;
*'''+init=epsg:20790''' &amp;lt;=&amp;gt; +proj=tmerc +lat_0=39.66666666666666 +lon_0=-8.131906111111112 +k=1.000000 &lt;br /&gt;
+x_0=200000 +y_0=300000 +ellps=intl +pm=lisbon +units=m +no_defs  no_defs &amp;lt;&amp;gt;&lt;br /&gt;
*'''+init=esri:102164''' &amp;lt;=&amp;gt; +proj=tmerc +lat_0=39.666666667 +lon_0=-8.131906111 +k=1.000000 &lt;br /&gt;
+x_0=200000.000 +y_0=300000.000 +ellps=intl +units=m (no reference to Lisbon Datum!!)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Universal Transverse Mercator (zone 29N)===&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
*ModuleHorizontalGrid: '''+init=esri:32629''' &amp;lt;=&amp;gt; +proj=utm +zone=29 +ellps=WGS84 +datum=WGS84 +units=m&lt;br /&gt;
&lt;br /&gt;
=External Links=&lt;br /&gt;
*[http://proj.maptools.org/ PROJ4]&lt;br /&gt;
*[http://www.isa.utl.pt/dm/sigdr/sigdr04-05/9_SistRefPortugueses.ppt Sistemas Referencia Portugueses]&lt;br /&gt;
*[http://dl.maptools.org/dl/omsug/osgis2004/PROJ4_HandlingCoordinateSystems.pdf PROJ4_HandlingCoordinateSystems.pdf]&lt;br /&gt;
*[http://www.posc.org/Epicentre.2_2/DataModel/ExamplesofUsage/eu_cs34.html Projections and Projected Coordinate System Formulas]&lt;/div&gt;</summary>
		<author><name>Anatrancoso</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=PROJ4&amp;diff=3254</id>
		<title>PROJ4</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=PROJ4&amp;diff=3254"/>
				<updated>2010-08-19T15:53:18Z</updated>
		
		<summary type="html">&lt;p&gt;Anatrancoso: /* PROJ4 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page explains what is [http://proj.maptools.org/ PROJ4] library and how to use it, both from command line and from a Fortran program. &lt;br /&gt;
&lt;br /&gt;
[http://proj.maptools.org/ PROJ4] is a Cartographic Projections library originally written by Gerald Evenden then of the USGS. This library has almost all projection types. Being written in C, a Fortran wrapper was developed as part of the [http://www.cbcb.umd.edu/software/glimmer/ GLIMMER] project and can be found in [http://forge.nesc.ac.uk/download.php/10/libfproj4-1.0.tar.gz libfproj4-1.0.tar.gz]. &lt;br /&gt;
&lt;br /&gt;
==PROJ4==&lt;br /&gt;
===Installation===&lt;br /&gt;
====Windows====&lt;br /&gt;
* Download http://download.osgeo.org/proj/proj446_win32_bin.zip&lt;br /&gt;
* Extract and copy &amp;quot;proj&amp;quot; folder to C:\&lt;br /&gt;
* Right-click &amp;quot;My Computer&amp;quot; and select &amp;quot;Properties&amp;quot;&lt;br /&gt;
* Select &amp;quot;Advanced&amp;quot; tab&lt;br /&gt;
* Select &amp;quot;Environment Variables&amp;quot;&lt;br /&gt;
* In the &amp;quot;System Variables&amp;quot; box select &amp;quot;Path&amp;quot; and click &amp;quot;Edit&amp;quot;.&lt;br /&gt;
* At the end of the line, add &amp;quot;C:\proj\bin&amp;quot; and click &amp;quot;OK&amp;quot;.&lt;br /&gt;
* In the &amp;quot;System Variables&amp;quot; box, click &amp;quot;New&amp;quot;.&lt;br /&gt;
* &amp;quot;Variable Name&amp;quot; is PROJ_LIB and &amp;quot;Variable Value&amp;quot; is &amp;quot;C:\proj\nad&amp;quot;.&lt;br /&gt;
* Click OK to close windows.&lt;br /&gt;
&lt;br /&gt;
Now test it:&lt;br /&gt;
*Windows/Run/cmd&lt;br /&gt;
*cd .. until prompt is C:\&amp;gt;&lt;br /&gt;
*write &amp;quot;proj -V&amp;quot; to see the version of the library.&lt;br /&gt;
&lt;br /&gt;
====Linux====&lt;br /&gt;
* Go to your Package Manager or download source code from http://trac.osgeo.org/proj/ and follow the instructions.&lt;br /&gt;
&lt;br /&gt;
===Usage===&lt;br /&gt;
&lt;br /&gt;
==libfproj4 (Fortran Wrapper)==&lt;br /&gt;
&lt;br /&gt;
===Compilation===&lt;br /&gt;
====UNIX====&lt;br /&gt;
&lt;br /&gt;
*extract [http://forge.nesc.ac.uk/download.php/10/libfproj4-1.0.tar.gz libfproj4.tar.gz] to some place (e.g. DIR)&lt;br /&gt;
*cd $DIR&lt;br /&gt;
*export export CC=icc&lt;br /&gt;
*export CFLAGS=-Bstatic&lt;br /&gt;
*export FC=ifort&lt;br /&gt;
*export FCFLAGS=-Bstatic&lt;br /&gt;
*./configure --prefix=$DIR/libfproj4 --with-proj4=/usr/lib64 2&amp;gt;&amp;amp;1 | tee configure.mylog&lt;br /&gt;
&lt;br /&gt;
*make 2&amp;gt;&amp;amp;1 | tee make.log&lt;br /&gt;
*make check 2&amp;gt;&amp;amp;1 | tee check.log&lt;br /&gt;
*make install 2&amp;gt;&amp;amp;1 | tee install.log&lt;br /&gt;
&lt;br /&gt;
====Windows====&lt;br /&gt;
*Download [[\\kepler\Software\PROJ4\libfproj4.lib]] for Compaq Visual Studio, or&lt;br /&gt;
*Compile W32 static lib:&lt;br /&gt;
*#Extract proj4 source code and configure it (bash configure).&lt;br /&gt;
*#New project W32 static lib&lt;br /&gt;
*#Add fort-proj.c (from libfproj4-1.0.tar.gz) and all *.c files (from proj4 source), except all that have main function : css2css, geod, nad2bin, nad2nad, proj.c.&lt;br /&gt;
*# Project Settings / C/C++ / General / Preprocessor definitions : VISUAL_CPLUSPLUS ou IFORT&lt;br /&gt;
*# Project Settings / C/C++ / Preprocessor / include : whatever\proj-4.6.0\src (the folder that has projects.h, because of directives #include &amp;lt;projects.h&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
===Usage===&lt;br /&gt;
====UNIX====&lt;br /&gt;
&lt;br /&gt;
*pgf95 -g  -o libfproj4_teste.exe  libfproj4_teste.f90 /home/jjdd/Downloads/libfproj4-1.0/libfproj4.a -lproj -lm&lt;br /&gt;
&lt;br /&gt;
====Windows====&lt;br /&gt;
*Files needed: libfproj4.lib, proj4.inc, proj4.f90, test-proj.f90&lt;br /&gt;
#New Fortran console application&lt;br /&gt;
#add fortran files&lt;br /&gt;
#project settings:&lt;br /&gt;
## Link / Input / Obj/library modules : libfproj4.lib&lt;br /&gt;
## Link / Input / Additional include path : path to libfproj4.lib and proj4.inc)&lt;br /&gt;
&lt;br /&gt;
==Ellipsoids==&lt;br /&gt;
*List of ellipsoids in PROJ4: proj -le&lt;br /&gt;
*More popular:&lt;br /&gt;
**International 1909 (Hayford)  intl		a=6378388.0m	b=6356912m     rf=297.          &lt;br /&gt;
**New International 1967	new_intl 	a=6378157.5m	b=6356772m      &lt;br /&gt;
**WGS 84    			WGS84 		a=6378137.0m    b=6357002m     rf=298.257223563 &lt;br /&gt;
**Normal Sphere (r=6370997)	sphere 		a=6370997.0m    b=6370997m      &lt;br /&gt;
&lt;br /&gt;
b = a*(1-f) = a*(1-1/rf)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Portuguese Coordinate Systems in PROJ4==&lt;br /&gt;
&lt;br /&gt;
You might want to get the libraries containing the coordinate transformations with portuguese datum&lt;br /&gt;
pre-configured [http://www.fc.up.pt/pessoas/jagoncal/coordenadas/parte2.htm here]. Install the libs in the proj_lib folder, inside the [http://fwtools.maptools.org/ FWTools] folder. By the way, you may want to [http://fwtools.maptools.org/ install FWTools first].&lt;br /&gt;
&lt;br /&gt;
Here's the command line on how to convert from military portuguese to wgs84:&lt;br /&gt;
 &amp;gt; cs2cs +init=pt:dlxhgmil +to +init=pt:etrs89 &amp;lt; coords_input.txt&lt;br /&gt;
&lt;br /&gt;
===Portuguese Military Coordinates (Hayford-Gauss Military System)===&lt;br /&gt;
&lt;br /&gt;
*Projection: Gauss-Kruger&lt;br /&gt;
*Ellipsoid: Hayford (internacional 1924): a=6378.388Km, b=6356.912 Km&lt;br /&gt;
*Datum : Lisbon (Castelo S.Jorge: 38º42’43.631’’N, 9º07’54.862’'W, 111.229m)&lt;br /&gt;
*Central Point: 39º40’N, 8º07’54.862’’W &lt;br /&gt;
*Origin: -200Km horizontally and -300 Km vertically&lt;br /&gt;
*Usage: &lt;br /&gt;
**'''+init=epsg:20790''' &amp;lt;=&amp;gt; +proj=tmerc +lat_0=39.66666666666666 +lon_0=-8.131906111111112 +k=1.000000 &lt;br /&gt;
+x_0=200000 +y_0=300000 +ellps=intl +pm=lisbon +units=m +no_defs  no_defs &amp;lt;&amp;gt;&lt;br /&gt;
**'''+init=esri:102164''' &amp;lt;=&amp;gt; +proj=tmerc +lat_0=39.666666667 +lon_0=-8.131906111 +k=1.000000 &lt;br /&gt;
+x_0=200000.000 +y_0=300000.000 +ellps=intl +units=m (no reference to Lisbon Datum!!)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Universal Transverse Mercator (zone 29N)===&lt;br /&gt;
&lt;br /&gt;
*Usage:&lt;br /&gt;
**ModuleHorizontalGrid: '''+init=esri:32629''' &amp;lt;=&amp;gt; +proj=utm +zone=29 +ellps=WGS84 +datum=WGS84 +units=m&lt;br /&gt;
&lt;br /&gt;
=External Links=&lt;br /&gt;
*[http://proj.maptools.org/ PROJ4]&lt;br /&gt;
*[http://forge.nesc.ac.uk/download.php/10/libfproj4-1.0.tar.gz libfproj4-1.0.tar.gz]. &lt;br /&gt;
*[http://www.isa.utl.pt/dm/sigdr/sigdr04-05/9_SistRefPortugueses.ppt Sistemas Referencia Portugueses]&lt;br /&gt;
*[http://dl.maptools.org/dl/omsug/osgis2004/PROJ4_HandlingCoordinateSystems.pdf PROJ4_HandlingCoordinateSystems.pdf]&lt;br /&gt;
*[http://www.posc.org/Epicentre.2_2/DataModel/ExamplesofUsage/eu_cs34.html Projections and Projected Coordinate System Formulas]&lt;/div&gt;</summary>
		<author><name>Anatrancoso</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=PROJ4&amp;diff=3253</id>
		<title>PROJ4</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=PROJ4&amp;diff=3253"/>
				<updated>2010-08-19T14:00:41Z</updated>
		
		<summary type="html">&lt;p&gt;Anatrancoso: /* UNIX */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page explains what is [http://proj.maptools.org/ PROJ4] library and how to use it, both from command line and from a Fortran program. &lt;br /&gt;
&lt;br /&gt;
[http://proj.maptools.org/ PROJ4] is a Cartographic Projections library originally written by Gerald Evenden then of the USGS. This library has almost all projection types. Being written in C, a Fortran wrapper was developed as part of the [http://www.cbcb.umd.edu/software/glimmer/ GLIMMER] project and can be found in [http://forge.nesc.ac.uk/download.php/10/libfproj4-1.0.tar.gz libfproj4-1.0.tar.gz]. &lt;br /&gt;
&lt;br /&gt;
==PROJ4==&lt;br /&gt;
===Installation===&lt;br /&gt;
====Windows====&lt;br /&gt;
* Download http://download.osgeo.org/proj/proj446_win32_bin.zip&lt;br /&gt;
* Extract and copy &amp;quot;proj&amp;quot; folder to C:\&lt;br /&gt;
* Right-click &amp;quot;My Computer&amp;quot; and select &amp;quot;Properties&amp;quot;&lt;br /&gt;
* Select &amp;quot;Advanced&amp;quot; tab&lt;br /&gt;
* Select &amp;quot;Environment Variables&amp;quot;&lt;br /&gt;
* In the &amp;quot;System Variables&amp;quot; box select &amp;quot;Path&amp;quot; and click &amp;quot;Edit&amp;quot;.&lt;br /&gt;
* At the end of the line, add &amp;quot;C:\proj\bin&amp;quot; and click &amp;quot;OK&amp;quot;.&lt;br /&gt;
* In the &amp;quot;System Variables&amp;quot; box, click &amp;quot;New&amp;quot;.&lt;br /&gt;
* &amp;quot;Variable Name&amp;quot; is PROJ_LIB and &amp;quot;Variable Value&amp;quot; is &amp;quot;C:\proj\nad&amp;quot;.&lt;br /&gt;
* Click OK to close windows.&lt;br /&gt;
&lt;br /&gt;
Now test it:&lt;br /&gt;
*Windows/Run/cmd&lt;br /&gt;
*cd .. until prompt is C:\&amp;gt;&lt;br /&gt;
*write &amp;quot;proj -V&amp;quot; to see the version of the library.&lt;br /&gt;
&lt;br /&gt;
==libfproj4 (Fortran Wrapper)==&lt;br /&gt;
&lt;br /&gt;
===Compilation===&lt;br /&gt;
====UNIX====&lt;br /&gt;
&lt;br /&gt;
*extract [http://forge.nesc.ac.uk/download.php/10/libfproj4-1.0.tar.gz libfproj4.tar.gz] to some place (e.g. DIR)&lt;br /&gt;
*cd $DIR&lt;br /&gt;
*export export CC=icc&lt;br /&gt;
*export CFLAGS=-Bstatic&lt;br /&gt;
*export FC=ifort&lt;br /&gt;
*export FCFLAGS=-Bstatic&lt;br /&gt;
*./configure --prefix=$DIR/libfproj4 --with-proj4=/usr/lib64 2&amp;gt;&amp;amp;1 | tee configure.mylog&lt;br /&gt;
&lt;br /&gt;
*make 2&amp;gt;&amp;amp;1 | tee make.log&lt;br /&gt;
*make check 2&amp;gt;&amp;amp;1 | tee check.log&lt;br /&gt;
*make install 2&amp;gt;&amp;amp;1 | tee install.log&lt;br /&gt;
&lt;br /&gt;
====Windows====&lt;br /&gt;
*Download [[\\kepler\Software\PROJ4\libfproj4.lib]] for Compaq Visual Studio, or&lt;br /&gt;
*Compile W32 static lib:&lt;br /&gt;
*#Extract proj4 source code and configure it (bash configure).&lt;br /&gt;
*#New project W32 static lib&lt;br /&gt;
*#Add fort-proj.c (from libfproj4-1.0.tar.gz) and all *.c files (from proj4 source), except all that have main function : css2css, geod, nad2bin, nad2nad, proj.c.&lt;br /&gt;
*# Project Settings / C/C++ / General / Preprocessor definitions : VISUAL_CPLUSPLUS ou IFORT&lt;br /&gt;
*# Project Settings / C/C++ / Preprocessor / include : whatever\proj-4.6.0\src (the folder that has projects.h, because of directives #include &amp;lt;projects.h&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
===Usage===&lt;br /&gt;
====UNIX====&lt;br /&gt;
&lt;br /&gt;
*pgf95 -g  -o libfproj4_teste.exe  libfproj4_teste.f90 /home/jjdd/Downloads/libfproj4-1.0/libfproj4.a -lproj -lm&lt;br /&gt;
&lt;br /&gt;
====Windows====&lt;br /&gt;
*Files needed: libfproj4.lib, proj4.inc, proj4.f90, test-proj.f90&lt;br /&gt;
#New Fortran console application&lt;br /&gt;
#add fortran files&lt;br /&gt;
#project settings:&lt;br /&gt;
## Link / Input / Obj/library modules : libfproj4.lib&lt;br /&gt;
## Link / Input / Additional include path : path to libfproj4.lib and proj4.inc)&lt;br /&gt;
&lt;br /&gt;
==Ellipsoids==&lt;br /&gt;
*List of ellipsoids in PROJ4: proj -le&lt;br /&gt;
*More popular:&lt;br /&gt;
**International 1909 (Hayford)  intl		a=6378388.0m	b=6356912m     rf=297.          &lt;br /&gt;
**New International 1967	new_intl 	a=6378157.5m	b=6356772m      &lt;br /&gt;
**WGS 84    			WGS84 		a=6378137.0m    b=6357002m     rf=298.257223563 &lt;br /&gt;
**Normal Sphere (r=6370997)	sphere 		a=6370997.0m    b=6370997m      &lt;br /&gt;
&lt;br /&gt;
b = a*(1-f) = a*(1-1/rf)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Portuguese Coordinate Systems in PROJ4==&lt;br /&gt;
&lt;br /&gt;
You might want to get the libraries containing the coordinate transformations with portuguese datum&lt;br /&gt;
pre-configured [http://www.fc.up.pt/pessoas/jagoncal/coordenadas/parte2.htm here]. Install the libs in the proj_lib folder, inside the [http://fwtools.maptools.org/ FWTools] folder. By the way, you may want to [http://fwtools.maptools.org/ install FWTools first].&lt;br /&gt;
&lt;br /&gt;
Here's the command line on how to convert from military portuguese to wgs84:&lt;br /&gt;
 &amp;gt; cs2cs +init=pt:dlxhgmil +to +init=pt:etrs89 &amp;lt; coords_input.txt&lt;br /&gt;
&lt;br /&gt;
===Portuguese Military Coordinates (Hayford-Gauss Military System)===&lt;br /&gt;
&lt;br /&gt;
*Projection: Gauss-Kruger&lt;br /&gt;
*Ellipsoid: Hayford (internacional 1924): a=6378.388Km, b=6356.912 Km&lt;br /&gt;
*Datum : Lisbon (Castelo S.Jorge: 38º42’43.631’’N, 9º07’54.862’'W, 111.229m)&lt;br /&gt;
*Central Point: 39º40’N, 8º07’54.862’’W &lt;br /&gt;
*Origin: -200Km horizontally and -300 Km vertically&lt;br /&gt;
*Usage: &lt;br /&gt;
**'''+init=epsg:20790''' &amp;lt;=&amp;gt; +proj=tmerc +lat_0=39.66666666666666 +lon_0=-8.131906111111112 +k=1.000000 &lt;br /&gt;
+x_0=200000 +y_0=300000 +ellps=intl +pm=lisbon +units=m +no_defs  no_defs &amp;lt;&amp;gt;&lt;br /&gt;
**'''+init=esri:102164''' &amp;lt;=&amp;gt; +proj=tmerc +lat_0=39.666666667 +lon_0=-8.131906111 +k=1.000000 &lt;br /&gt;
+x_0=200000.000 +y_0=300000.000 +ellps=intl +units=m (no reference to Lisbon Datum!!)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Universal Transverse Mercator (zone 29N)===&lt;br /&gt;
&lt;br /&gt;
*Usage:&lt;br /&gt;
**ModuleHorizontalGrid: '''+init=esri:32629''' &amp;lt;=&amp;gt; +proj=utm +zone=29 +ellps=WGS84 +datum=WGS84 +units=m&lt;br /&gt;
&lt;br /&gt;
=External Links=&lt;br /&gt;
*[http://proj.maptools.org/ PROJ4]&lt;br /&gt;
*[http://forge.nesc.ac.uk/download.php/10/libfproj4-1.0.tar.gz libfproj4-1.0.tar.gz]. &lt;br /&gt;
*[http://www.isa.utl.pt/dm/sigdr/sigdr04-05/9_SistRefPortugueses.ppt Sistemas Referencia Portugueses]&lt;br /&gt;
*[http://dl.maptools.org/dl/omsug/osgis2004/PROJ4_HandlingCoordinateSystems.pdf PROJ4_HandlingCoordinateSystems.pdf]&lt;br /&gt;
*[http://www.posc.org/Epicentre.2_2/DataModel/ExamplesofUsage/eu_cs34.html Projections and Projected Coordinate System Formulas]&lt;/div&gt;</summary>
		<author><name>Anatrancoso</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=PROJ4&amp;diff=3252</id>
		<title>PROJ4</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=PROJ4&amp;diff=3252"/>
				<updated>2010-08-19T13:53:23Z</updated>
		
		<summary type="html">&lt;p&gt;Anatrancoso: /* Usage */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page explains what is [http://proj.maptools.org/ PROJ4] library and how to use it, both from command line and from a Fortran program. &lt;br /&gt;
&lt;br /&gt;
[http://proj.maptools.org/ PROJ4] is a Cartographic Projections library originally written by Gerald Evenden then of the USGS. This library has almost all projection types. Being written in C, a Fortran wrapper was developed as part of the [http://www.cbcb.umd.edu/software/glimmer/ GLIMMER] project and can be found in [http://forge.nesc.ac.uk/download.php/10/libfproj4-1.0.tar.gz libfproj4-1.0.tar.gz]. &lt;br /&gt;
&lt;br /&gt;
==PROJ4==&lt;br /&gt;
===Installation===&lt;br /&gt;
====Windows====&lt;br /&gt;
* Download http://download.osgeo.org/proj/proj446_win32_bin.zip&lt;br /&gt;
* Extract and copy &amp;quot;proj&amp;quot; folder to C:\&lt;br /&gt;
* Right-click &amp;quot;My Computer&amp;quot; and select &amp;quot;Properties&amp;quot;&lt;br /&gt;
* Select &amp;quot;Advanced&amp;quot; tab&lt;br /&gt;
* Select &amp;quot;Environment Variables&amp;quot;&lt;br /&gt;
* In the &amp;quot;System Variables&amp;quot; box select &amp;quot;Path&amp;quot; and click &amp;quot;Edit&amp;quot;.&lt;br /&gt;
* At the end of the line, add &amp;quot;C:\proj\bin&amp;quot; and click &amp;quot;OK&amp;quot;.&lt;br /&gt;
* In the &amp;quot;System Variables&amp;quot; box, click &amp;quot;New&amp;quot;.&lt;br /&gt;
* &amp;quot;Variable Name&amp;quot; is PROJ_LIB and &amp;quot;Variable Value&amp;quot; is &amp;quot;C:\proj\nad&amp;quot;.&lt;br /&gt;
* Click OK to close windows.&lt;br /&gt;
&lt;br /&gt;
Now test it:&lt;br /&gt;
*Windows/Run/cmd&lt;br /&gt;
*cd .. until prompt is C:\&amp;gt;&lt;br /&gt;
*write &amp;quot;proj -V&amp;quot; to see the version of the library.&lt;br /&gt;
&lt;br /&gt;
==libfproj4 (Fortran Wrapper)==&lt;br /&gt;
&lt;br /&gt;
===Compilation===&lt;br /&gt;
====UNIX====&lt;br /&gt;
&lt;br /&gt;
*extract [http://forge.nesc.ac.uk/download.php/10/libfproj4-1.0.tar.gz libfproj4.tar.gz] to some place (e.g. DIR)&lt;br /&gt;
*cd $DIR&lt;br /&gt;
*export export CC=icc&lt;br /&gt;
*export CFLAGS=-Bstatic&lt;br /&gt;
*export FC=ifort&lt;br /&gt;
*export FCFLAGS=-Bstatic&lt;br /&gt;
*./configure --prefix=$DIR/libfproj4 --with-proj4=/usr/lib64 2&amp;gt;&amp;amp;1 | tee configure.mylog&lt;br /&gt;
&lt;br /&gt;
*make 2&amp;gt;&amp;amp;1 | tee make.log&lt;br /&gt;
*make check 2&amp;gt;&amp;amp;1 | tee check.log&lt;br /&gt;
*make install 2&amp;gt;&amp;amp;1 | tee install.log&lt;br /&gt;
&lt;br /&gt;
====Windows====&lt;br /&gt;
*Download [[\\kepler\Software\PROJ4\libfproj4.lib]] for Compaq Visual Studio, or&lt;br /&gt;
*Compile W32 static lib:&lt;br /&gt;
*#Extract proj4 source code and configure it (bash configure).&lt;br /&gt;
*#New project W32 static lib&lt;br /&gt;
*#Add fort-proj.c (from libfproj4-1.0.tar.gz) and all *.c files (from proj4 source), except all that have main function : css2css, geod, nad2bin, nad2nad, proj.c.&lt;br /&gt;
*# Project Settings / C/C++ / General / Preprocessor definitions : VISUAL_CPLUSPLUS ou IFORT&lt;br /&gt;
*# Project Settings / C/C++ / Preprocessor / include : whatever\proj-4.6.0\src (the folder that has projects.h, because of directives #include &amp;lt;projects.h&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
===Usage===&lt;br /&gt;
====UNIX====&lt;br /&gt;
*pgf95 -g  -o libfproj4_teste.exe  libfproj4_teste.f90 /home/jjdd/Downloads/libfproj4-1.0/libfproj4.a -lproj -lm&lt;br /&gt;
&lt;br /&gt;
====Windows====&lt;br /&gt;
*Files needed: libfproj4.lib, proj4.inc, proj4.f90, test-proj.f90&lt;br /&gt;
#New Fortran console application&lt;br /&gt;
#add fortran files&lt;br /&gt;
#project settings:&lt;br /&gt;
## Link / Input / Obj/library modules : libfproj4.lib&lt;br /&gt;
## Link / Input / Additional include path : path to libfproj4.lib and proj4.inc)&lt;br /&gt;
&lt;br /&gt;
==Ellipsoids==&lt;br /&gt;
*List of ellipsoids in PROJ4: proj -le&lt;br /&gt;
*More popular:&lt;br /&gt;
**International 1909 (Hayford)  intl		a=6378388.0m	b=6356912m     rf=297.          &lt;br /&gt;
**New International 1967	new_intl 	a=6378157.5m	b=6356772m      &lt;br /&gt;
**WGS 84    			WGS84 		a=6378137.0m    b=6357002m     rf=298.257223563 &lt;br /&gt;
**Normal Sphere (r=6370997)	sphere 		a=6370997.0m    b=6370997m      &lt;br /&gt;
&lt;br /&gt;
b = a*(1-f) = a*(1-1/rf)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Portuguese Coordinate Systems in PROJ4==&lt;br /&gt;
&lt;br /&gt;
You might want to get the libraries containing the coordinate transformations with portuguese datum&lt;br /&gt;
pre-configured [http://www.fc.up.pt/pessoas/jagoncal/coordenadas/parte2.htm here]. Install the libs in the proj_lib folder, inside the [http://fwtools.maptools.org/ FWTools] folder. By the way, you may want to [http://fwtools.maptools.org/ install FWTools first].&lt;br /&gt;
&lt;br /&gt;
Here's the command line on how to convert from military portuguese to wgs84:&lt;br /&gt;
 &amp;gt; cs2cs +init=pt:dlxhgmil +to +init=pt:etrs89 &amp;lt; coords_input.txt&lt;br /&gt;
&lt;br /&gt;
===Portuguese Military Coordinates (Hayford-Gauss Military System)===&lt;br /&gt;
&lt;br /&gt;
*Projection: Gauss-Kruger&lt;br /&gt;
*Ellipsoid: Hayford (internacional 1924): a=6378.388Km, b=6356.912 Km&lt;br /&gt;
*Datum : Lisbon (Castelo S.Jorge: 38º42’43.631’’N, 9º07’54.862’'W, 111.229m)&lt;br /&gt;
*Central Point: 39º40’N, 8º07’54.862’’W &lt;br /&gt;
*Origin: -200Km horizontally and -300 Km vertically&lt;br /&gt;
*Usage: &lt;br /&gt;
**'''+init=epsg:20790''' &amp;lt;=&amp;gt; +proj=tmerc +lat_0=39.66666666666666 +lon_0=-8.131906111111112 +k=1.000000 &lt;br /&gt;
+x_0=200000 +y_0=300000 +ellps=intl +pm=lisbon +units=m +no_defs  no_defs &amp;lt;&amp;gt;&lt;br /&gt;
**'''+init=esri:102164''' &amp;lt;=&amp;gt; +proj=tmerc +lat_0=39.666666667 +lon_0=-8.131906111 +k=1.000000 &lt;br /&gt;
+x_0=200000.000 +y_0=300000.000 +ellps=intl +units=m (no reference to Lisbon Datum!!)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Universal Transverse Mercator (zone 29N)===&lt;br /&gt;
&lt;br /&gt;
*Usage:&lt;br /&gt;
**ModuleHorizontalGrid: '''+init=esri:32629''' &amp;lt;=&amp;gt; +proj=utm +zone=29 +ellps=WGS84 +datum=WGS84 +units=m&lt;br /&gt;
&lt;br /&gt;
=External Links=&lt;br /&gt;
*[http://proj.maptools.org/ PROJ4]&lt;br /&gt;
*[http://forge.nesc.ac.uk/download.php/10/libfproj4-1.0.tar.gz libfproj4-1.0.tar.gz]. &lt;br /&gt;
*[http://www.isa.utl.pt/dm/sigdr/sigdr04-05/9_SistRefPortugueses.ppt Sistemas Referencia Portugueses]&lt;br /&gt;
*[http://dl.maptools.org/dl/omsug/osgis2004/PROJ4_HandlingCoordinateSystems.pdf PROJ4_HandlingCoordinateSystems.pdf]&lt;br /&gt;
*[http://www.posc.org/Epicentre.2_2/DataModel/ExamplesofUsage/eu_cs34.html Projections and Projected Coordinate System Formulas]&lt;/div&gt;</summary>
		<author><name>Anatrancoso</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=PROJ4&amp;diff=3251</id>
		<title>PROJ4</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=PROJ4&amp;diff=3251"/>
				<updated>2010-08-19T13:51:36Z</updated>
		
		<summary type="html">&lt;p&gt;Anatrancoso: /* UNIX */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page explains what is [http://proj.maptools.org/ PROJ4] library and how to use it, both from command line and from a Fortran program. &lt;br /&gt;
&lt;br /&gt;
[http://proj.maptools.org/ PROJ4] is a Cartographic Projections library originally written by Gerald Evenden then of the USGS. This library has almost all projection types. Being written in C, a Fortran wrapper was developed as part of the [http://www.cbcb.umd.edu/software/glimmer/ GLIMMER] project and can be found in [http://forge.nesc.ac.uk/download.php/10/libfproj4-1.0.tar.gz libfproj4-1.0.tar.gz]. &lt;br /&gt;
&lt;br /&gt;
==PROJ4==&lt;br /&gt;
===Installation===&lt;br /&gt;
====Windows====&lt;br /&gt;
* Download http://download.osgeo.org/proj/proj446_win32_bin.zip&lt;br /&gt;
* Extract and copy &amp;quot;proj&amp;quot; folder to C:\&lt;br /&gt;
* Right-click &amp;quot;My Computer&amp;quot; and select &amp;quot;Properties&amp;quot;&lt;br /&gt;
* Select &amp;quot;Advanced&amp;quot; tab&lt;br /&gt;
* Select &amp;quot;Environment Variables&amp;quot;&lt;br /&gt;
* In the &amp;quot;System Variables&amp;quot; box select &amp;quot;Path&amp;quot; and click &amp;quot;Edit&amp;quot;.&lt;br /&gt;
* At the end of the line, add &amp;quot;C:\proj\bin&amp;quot; and click &amp;quot;OK&amp;quot;.&lt;br /&gt;
* In the &amp;quot;System Variables&amp;quot; box, click &amp;quot;New&amp;quot;.&lt;br /&gt;
* &amp;quot;Variable Name&amp;quot; is PROJ_LIB and &amp;quot;Variable Value&amp;quot; is &amp;quot;C:\proj\nad&amp;quot;.&lt;br /&gt;
* Click OK to close windows.&lt;br /&gt;
&lt;br /&gt;
Now test it:&lt;br /&gt;
*Windows/Run/cmd&lt;br /&gt;
*cd .. until prompt is C:\&amp;gt;&lt;br /&gt;
*write &amp;quot;proj -V&amp;quot; to see the version of the library.&lt;br /&gt;
&lt;br /&gt;
==libfproj4 (Fortran Wrapper)==&lt;br /&gt;
&lt;br /&gt;
===Compilation===&lt;br /&gt;
====UNIX====&lt;br /&gt;
&lt;br /&gt;
*extract [http://forge.nesc.ac.uk/download.php/10/libfproj4-1.0.tar.gz libfproj4.tar.gz] to some place (e.g. DIR)&lt;br /&gt;
*cd $DIR&lt;br /&gt;
*export export CC=icc&lt;br /&gt;
*export CFLAGS=-Bstatic&lt;br /&gt;
*export FC=ifort&lt;br /&gt;
*export FCFLAGS=-Bstatic&lt;br /&gt;
*./configure --prefix=$DIR/libfproj4 --with-proj4=/usr/lib64 2&amp;gt;&amp;amp;1 | tee configure.mylog&lt;br /&gt;
&lt;br /&gt;
*make 2&amp;gt;&amp;amp;1 | tee make.log&lt;br /&gt;
*make check 2&amp;gt;&amp;amp;1 | tee check.log&lt;br /&gt;
*make install 2&amp;gt;&amp;amp;1 | tee install.log&lt;br /&gt;
&lt;br /&gt;
====Windows====&lt;br /&gt;
*Download [[\\kepler\Software\PROJ4\libfproj4.lib]] for Compaq Visual Studio, or&lt;br /&gt;
*Compile W32 static lib:&lt;br /&gt;
*#Extract proj4 source code and configure it (bash configure).&lt;br /&gt;
*#New project W32 static lib&lt;br /&gt;
*#Add fort-proj.c (from libfproj4-1.0.tar.gz) and all *.c files (from proj4 source), except all that have main function : css2css, geod, nad2bin, nad2nad, proj.c.&lt;br /&gt;
*# Project Settings / C/C++ / General / Preprocessor definitions : VISUAL_CPLUSPLUS ou IFORT&lt;br /&gt;
*# Project Settings / C/C++ / Preprocessor / include : whatever\proj-4.6.0\src (the folder that has projects.h, because of directives #include &amp;lt;projects.h&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
===Usage===&lt;br /&gt;
=====UNIX====&lt;br /&gt;
*pgf95 -g  -o libfproj4_teste.exe  libfproj4_teste.f90 /home/jjdd/Downloads/libfproj4-1.0/libfproj4.a -lproj -lm&lt;br /&gt;
&lt;br /&gt;
====Windows====&lt;br /&gt;
*Files needed: libfproj4.lib, proj4.inc, proj4.f90, test-proj.f90&lt;br /&gt;
#New Fortran console application&lt;br /&gt;
#add fortran files&lt;br /&gt;
#project settings:&lt;br /&gt;
## Link / Input / Obj/library modules : libfproj4.lib&lt;br /&gt;
## Link / Input / Additional include path : path to libfproj4.lib and proj4.inc)&lt;br /&gt;
&lt;br /&gt;
==Ellipsoids==&lt;br /&gt;
*List of ellipsoids in PROJ4: proj -le&lt;br /&gt;
*More popular:&lt;br /&gt;
**International 1909 (Hayford)  intl		a=6378388.0m	b=6356912m     rf=297.          &lt;br /&gt;
**New International 1967	new_intl 	a=6378157.5m	b=6356772m      &lt;br /&gt;
**WGS 84    			WGS84 		a=6378137.0m    b=6357002m     rf=298.257223563 &lt;br /&gt;
**Normal Sphere (r=6370997)	sphere 		a=6370997.0m    b=6370997m      &lt;br /&gt;
&lt;br /&gt;
b = a*(1-f) = a*(1-1/rf)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Portuguese Coordinate Systems in PROJ4==&lt;br /&gt;
&lt;br /&gt;
You might want to get the libraries containing the coordinate transformations with portuguese datum&lt;br /&gt;
pre-configured [http://www.fc.up.pt/pessoas/jagoncal/coordenadas/parte2.htm here]. Install the libs in the proj_lib folder, inside the [http://fwtools.maptools.org/ FWTools] folder. By the way, you may want to [http://fwtools.maptools.org/ install FWTools first].&lt;br /&gt;
&lt;br /&gt;
Here's the command line on how to convert from military portuguese to wgs84:&lt;br /&gt;
 &amp;gt; cs2cs +init=pt:dlxhgmil +to +init=pt:etrs89 &amp;lt; coords_input.txt&lt;br /&gt;
&lt;br /&gt;
===Portuguese Military Coordinates (Hayford-Gauss Military System)===&lt;br /&gt;
&lt;br /&gt;
*Projection: Gauss-Kruger&lt;br /&gt;
*Ellipsoid: Hayford (internacional 1924): a=6378.388Km, b=6356.912 Km&lt;br /&gt;
*Datum : Lisbon (Castelo S.Jorge: 38º42’43.631’’N, 9º07’54.862’'W, 111.229m)&lt;br /&gt;
*Central Point: 39º40’N, 8º07’54.862’’W &lt;br /&gt;
*Origin: -200Km horizontally and -300 Km vertically&lt;br /&gt;
*Usage: &lt;br /&gt;
**'''+init=epsg:20790''' &amp;lt;=&amp;gt; +proj=tmerc +lat_0=39.66666666666666 +lon_0=-8.131906111111112 +k=1.000000 &lt;br /&gt;
+x_0=200000 +y_0=300000 +ellps=intl +pm=lisbon +units=m +no_defs  no_defs &amp;lt;&amp;gt;&lt;br /&gt;
**'''+init=esri:102164''' &amp;lt;=&amp;gt; +proj=tmerc +lat_0=39.666666667 +lon_0=-8.131906111 +k=1.000000 &lt;br /&gt;
+x_0=200000.000 +y_0=300000.000 +ellps=intl +units=m (no reference to Lisbon Datum!!)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Universal Transverse Mercator (zone 29N)===&lt;br /&gt;
&lt;br /&gt;
*Usage:&lt;br /&gt;
**ModuleHorizontalGrid: '''+init=esri:32629''' &amp;lt;=&amp;gt; +proj=utm +zone=29 +ellps=WGS84 +datum=WGS84 +units=m&lt;br /&gt;
&lt;br /&gt;
=External Links=&lt;br /&gt;
*[http://proj.maptools.org/ PROJ4]&lt;br /&gt;
*[http://forge.nesc.ac.uk/download.php/10/libfproj4-1.0.tar.gz libfproj4-1.0.tar.gz]. &lt;br /&gt;
*[http://www.isa.utl.pt/dm/sigdr/sigdr04-05/9_SistRefPortugueses.ppt Sistemas Referencia Portugueses]&lt;br /&gt;
*[http://dl.maptools.org/dl/omsug/osgis2004/PROJ4_HandlingCoordinateSystems.pdf PROJ4_HandlingCoordinateSystems.pdf]&lt;br /&gt;
*[http://www.posc.org/Epicentre.2_2/DataModel/ExamplesofUsage/eu_cs34.html Projections and Projected Coordinate System Formulas]&lt;/div&gt;</summary>
		<author><name>Anatrancoso</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=PROJ4&amp;diff=3250</id>
		<title>PROJ4</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=PROJ4&amp;diff=3250"/>
				<updated>2010-08-19T13:50:26Z</updated>
		
		<summary type="html">&lt;p&gt;Anatrancoso: /* UNIX */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page explains what is [http://proj.maptools.org/ PROJ4] library and how to use it, both from command line and from a Fortran program. &lt;br /&gt;
&lt;br /&gt;
[http://proj.maptools.org/ PROJ4] is a Cartographic Projections library originally written by Gerald Evenden then of the USGS. This library has almost all projection types. Being written in C, a Fortran wrapper was developed as part of the [http://www.cbcb.umd.edu/software/glimmer/ GLIMMER] project and can be found in [http://forge.nesc.ac.uk/download.php/10/libfproj4-1.0.tar.gz libfproj4-1.0.tar.gz]. &lt;br /&gt;
&lt;br /&gt;
==PROJ4==&lt;br /&gt;
===Installation===&lt;br /&gt;
====Windows====&lt;br /&gt;
* Download http://download.osgeo.org/proj/proj446_win32_bin.zip&lt;br /&gt;
* Extract and copy &amp;quot;proj&amp;quot; folder to C:\&lt;br /&gt;
* Right-click &amp;quot;My Computer&amp;quot; and select &amp;quot;Properties&amp;quot;&lt;br /&gt;
* Select &amp;quot;Advanced&amp;quot; tab&lt;br /&gt;
* Select &amp;quot;Environment Variables&amp;quot;&lt;br /&gt;
* In the &amp;quot;System Variables&amp;quot; box select &amp;quot;Path&amp;quot; and click &amp;quot;Edit&amp;quot;.&lt;br /&gt;
* At the end of the line, add &amp;quot;C:\proj\bin&amp;quot; and click &amp;quot;OK&amp;quot;.&lt;br /&gt;
* In the &amp;quot;System Variables&amp;quot; box, click &amp;quot;New&amp;quot;.&lt;br /&gt;
* &amp;quot;Variable Name&amp;quot; is PROJ_LIB and &amp;quot;Variable Value&amp;quot; is &amp;quot;C:\proj\nad&amp;quot;.&lt;br /&gt;
* Click OK to close windows.&lt;br /&gt;
&lt;br /&gt;
Now test it:&lt;br /&gt;
*Windows/Run/cmd&lt;br /&gt;
*cd .. until prompt is C:\&amp;gt;&lt;br /&gt;
*write &amp;quot;proj -V&amp;quot; to see the version of the library.&lt;br /&gt;
&lt;br /&gt;
==libfproj4 (Fortran Wrapper)==&lt;br /&gt;
&lt;br /&gt;
===Compilation===&lt;br /&gt;
====UNIX====&lt;br /&gt;
&lt;br /&gt;
*extract libfproj4.tar.gz to some place (e.g. DIR)&lt;br /&gt;
*cd $DIR&lt;br /&gt;
*export export CC=icc&lt;br /&gt;
*export CFLAGS=-Bstatic&lt;br /&gt;
*export FC=ifort&lt;br /&gt;
*export FCFLAGS=-Bstatic&lt;br /&gt;
*./configure --prefix=$DIR/libfproj4 --with-proj4=/usr/lib64 2&amp;gt;&amp;amp;1 | tee configure.mylog&lt;br /&gt;
&lt;br /&gt;
*make 2&amp;gt;&amp;amp;1 | tee make.log&lt;br /&gt;
*make check 2&amp;gt;&amp;amp;1 | tee check.log&lt;br /&gt;
*make install 2&amp;gt;&amp;amp;1 | tee install.log&lt;br /&gt;
&lt;br /&gt;
====Windows====&lt;br /&gt;
*Download [[\\kepler\Software\PROJ4\libfproj4.lib]] for Compaq Visual Studio, or&lt;br /&gt;
*Compile W32 static lib:&lt;br /&gt;
*#Extract proj4 source code and configure it (bash configure).&lt;br /&gt;
*#New project W32 static lib&lt;br /&gt;
*#Add fort-proj.c (from libfproj4-1.0.tar.gz) and all *.c files (from proj4 source), except all that have main function : css2css, geod, nad2bin, nad2nad, proj.c.&lt;br /&gt;
*# Project Settings / C/C++ / General / Preprocessor definitions : VISUAL_CPLUSPLUS ou IFORT&lt;br /&gt;
*# Project Settings / C/C++ / Preprocessor / include : whatever\proj-4.6.0\src (the folder that has projects.h, because of directives #include &amp;lt;projects.h&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
===Usage===&lt;br /&gt;
=====UNIX====&lt;br /&gt;
*pgf95 -g  -o libfproj4_teste.exe  libfproj4_teste.f90 /home/jjdd/Downloads/libfproj4-1.0/libfproj4.a -lproj -lm&lt;br /&gt;
&lt;br /&gt;
====Windows====&lt;br /&gt;
*Files needed: libfproj4.lib, proj4.inc, proj4.f90, test-proj.f90&lt;br /&gt;
#New Fortran console application&lt;br /&gt;
#add fortran files&lt;br /&gt;
#project settings:&lt;br /&gt;
## Link / Input / Obj/library modules : libfproj4.lib&lt;br /&gt;
## Link / Input / Additional include path : path to libfproj4.lib and proj4.inc)&lt;br /&gt;
&lt;br /&gt;
==Ellipsoids==&lt;br /&gt;
*List of ellipsoids in PROJ4: proj -le&lt;br /&gt;
*More popular:&lt;br /&gt;
**International 1909 (Hayford)  intl		a=6378388.0m	b=6356912m     rf=297.          &lt;br /&gt;
**New International 1967	new_intl 	a=6378157.5m	b=6356772m      &lt;br /&gt;
**WGS 84    			WGS84 		a=6378137.0m    b=6357002m     rf=298.257223563 &lt;br /&gt;
**Normal Sphere (r=6370997)	sphere 		a=6370997.0m    b=6370997m      &lt;br /&gt;
&lt;br /&gt;
b = a*(1-f) = a*(1-1/rf)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Portuguese Coordinate Systems in PROJ4==&lt;br /&gt;
&lt;br /&gt;
You might want to get the libraries containing the coordinate transformations with portuguese datum&lt;br /&gt;
pre-configured [http://www.fc.up.pt/pessoas/jagoncal/coordenadas/parte2.htm here]. Install the libs in the proj_lib folder, inside the [http://fwtools.maptools.org/ FWTools] folder. By the way, you may want to [http://fwtools.maptools.org/ install FWTools first].&lt;br /&gt;
&lt;br /&gt;
Here's the command line on how to convert from military portuguese to wgs84:&lt;br /&gt;
 &amp;gt; cs2cs +init=pt:dlxhgmil +to +init=pt:etrs89 &amp;lt; coords_input.txt&lt;br /&gt;
&lt;br /&gt;
===Portuguese Military Coordinates (Hayford-Gauss Military System)===&lt;br /&gt;
&lt;br /&gt;
*Projection: Gauss-Kruger&lt;br /&gt;
*Ellipsoid: Hayford (internacional 1924): a=6378.388Km, b=6356.912 Km&lt;br /&gt;
*Datum : Lisbon (Castelo S.Jorge: 38º42’43.631’’N, 9º07’54.862’'W, 111.229m)&lt;br /&gt;
*Central Point: 39º40’N, 8º07’54.862’’W &lt;br /&gt;
*Origin: -200Km horizontally and -300 Km vertically&lt;br /&gt;
*Usage: &lt;br /&gt;
**'''+init=epsg:20790''' &amp;lt;=&amp;gt; +proj=tmerc +lat_0=39.66666666666666 +lon_0=-8.131906111111112 +k=1.000000 &lt;br /&gt;
+x_0=200000 +y_0=300000 +ellps=intl +pm=lisbon +units=m +no_defs  no_defs &amp;lt;&amp;gt;&lt;br /&gt;
**'''+init=esri:102164''' &amp;lt;=&amp;gt; +proj=tmerc +lat_0=39.666666667 +lon_0=-8.131906111 +k=1.000000 &lt;br /&gt;
+x_0=200000.000 +y_0=300000.000 +ellps=intl +units=m (no reference to Lisbon Datum!!)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Universal Transverse Mercator (zone 29N)===&lt;br /&gt;
&lt;br /&gt;
*Usage:&lt;br /&gt;
**ModuleHorizontalGrid: '''+init=esri:32629''' &amp;lt;=&amp;gt; +proj=utm +zone=29 +ellps=WGS84 +datum=WGS84 +units=m&lt;br /&gt;
&lt;br /&gt;
=External Links=&lt;br /&gt;
*[http://proj.maptools.org/ PROJ4]&lt;br /&gt;
*[http://forge.nesc.ac.uk/download.php/10/libfproj4-1.0.tar.gz libfproj4-1.0.tar.gz]. &lt;br /&gt;
*[http://www.isa.utl.pt/dm/sigdr/sigdr04-05/9_SistRefPortugueses.ppt Sistemas Referencia Portugueses]&lt;br /&gt;
*[http://dl.maptools.org/dl/omsug/osgis2004/PROJ4_HandlingCoordinateSystems.pdf PROJ4_HandlingCoordinateSystems.pdf]&lt;br /&gt;
*[http://www.posc.org/Epicentre.2_2/DataModel/ExamplesofUsage/eu_cs34.html Projections and Projected Coordinate System Formulas]&lt;/div&gt;</summary>
		<author><name>Anatrancoso</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=PROJ4&amp;diff=3249</id>
		<title>PROJ4</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=PROJ4&amp;diff=3249"/>
				<updated>2010-08-18T19:07:01Z</updated>
		
		<summary type="html">&lt;p&gt;Anatrancoso: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page explains what is [http://proj.maptools.org/ PROJ4] library and how to use it, both from command line and from a Fortran program. &lt;br /&gt;
&lt;br /&gt;
[http://proj.maptools.org/ PROJ4] is a Cartographic Projections library originally written by Gerald Evenden then of the USGS. This library has almost all projection types. Being written in C, a Fortran wrapper was developed as part of the [http://www.cbcb.umd.edu/software/glimmer/ GLIMMER] project and can be found in [http://forge.nesc.ac.uk/download.php/10/libfproj4-1.0.tar.gz libfproj4-1.0.tar.gz]. &lt;br /&gt;
&lt;br /&gt;
==PROJ4==&lt;br /&gt;
===Installation===&lt;br /&gt;
====Windows====&lt;br /&gt;
* Download http://download.osgeo.org/proj/proj446_win32_bin.zip&lt;br /&gt;
* Extract and copy &amp;quot;proj&amp;quot; folder to C:\&lt;br /&gt;
* Right-click &amp;quot;My Computer&amp;quot; and select &amp;quot;Properties&amp;quot;&lt;br /&gt;
* Select &amp;quot;Advanced&amp;quot; tab&lt;br /&gt;
* Select &amp;quot;Environment Variables&amp;quot;&lt;br /&gt;
* In the &amp;quot;System Variables&amp;quot; box select &amp;quot;Path&amp;quot; and click &amp;quot;Edit&amp;quot;.&lt;br /&gt;
* At the end of the line, add &amp;quot;C:\proj\bin&amp;quot; and click &amp;quot;OK&amp;quot;.&lt;br /&gt;
* In the &amp;quot;System Variables&amp;quot; box, click &amp;quot;New&amp;quot;.&lt;br /&gt;
* &amp;quot;Variable Name&amp;quot; is PROJ_LIB and &amp;quot;Variable Value&amp;quot; is &amp;quot;C:\proj\nad&amp;quot;.&lt;br /&gt;
* Click OK to close windows.&lt;br /&gt;
&lt;br /&gt;
Now test it:&lt;br /&gt;
*Windows/Run/cmd&lt;br /&gt;
*cd .. until prompt is C:\&amp;gt;&lt;br /&gt;
*write &amp;quot;proj -V&amp;quot; to see the version of the library.&lt;br /&gt;
&lt;br /&gt;
==libfproj4 (Fortran Wrapper)==&lt;br /&gt;
&lt;br /&gt;
===Compilation===&lt;br /&gt;
====UNIX====&lt;br /&gt;
Just follow the instructions.&lt;br /&gt;
====Windows====&lt;br /&gt;
*Download [[\\kepler\Software\PROJ4\libfproj4.lib]] for Compaq Visual Studio, or&lt;br /&gt;
*Compile W32 static lib:&lt;br /&gt;
*#Extract proj4 source code and configure it (bash configure).&lt;br /&gt;
*#New project W32 static lib&lt;br /&gt;
*#Add fort-proj.c (from libfproj4-1.0.tar.gz) and all *.c files (from proj4 source), except all that have main function : css2css, geod, nad2bin, nad2nad, proj.c.&lt;br /&gt;
*# Project Settings / C/C++ / General / Preprocessor definitions : VISUAL_CPLUSPLUS ou IFORT&lt;br /&gt;
*# Project Settings / C/C++ / Preprocessor / include : whatever\proj-4.6.0\src (the folder that has projects.h, because of directives #include &amp;lt;projects.h&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
===Usage===&lt;br /&gt;
=====UNIX====&lt;br /&gt;
*pgf95 -g  -o libfproj4_teste.exe  libfproj4_teste.f90 /home/jjdd/Downloads/libfproj4-1.0/libfproj4.a -lproj -lm&lt;br /&gt;
&lt;br /&gt;
====Windows====&lt;br /&gt;
*Files needed: libfproj4.lib, proj4.inc, proj4.f90, test-proj.f90&lt;br /&gt;
#New Fortran console application&lt;br /&gt;
#add fortran files&lt;br /&gt;
#project settings:&lt;br /&gt;
## Link / Input / Obj/library modules : libfproj4.lib&lt;br /&gt;
## Link / Input / Additional include path : path to libfproj4.lib and proj4.inc)&lt;br /&gt;
&lt;br /&gt;
==Ellipsoids==&lt;br /&gt;
*List of ellipsoids in PROJ4: proj -le&lt;br /&gt;
*More popular:&lt;br /&gt;
**International 1909 (Hayford)  intl		a=6378388.0m	b=6356912m     rf=297.          &lt;br /&gt;
**New International 1967	new_intl 	a=6378157.5m	b=6356772m      &lt;br /&gt;
**WGS 84    			WGS84 		a=6378137.0m    b=6357002m     rf=298.257223563 &lt;br /&gt;
**Normal Sphere (r=6370997)	sphere 		a=6370997.0m    b=6370997m      &lt;br /&gt;
&lt;br /&gt;
b = a*(1-f) = a*(1-1/rf)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Portuguese Coordinate Systems in PROJ4==&lt;br /&gt;
&lt;br /&gt;
You might want to get the libraries containing the coordinate transformations with portuguese datum&lt;br /&gt;
pre-configured [http://www.fc.up.pt/pessoas/jagoncal/coordenadas/parte2.htm here]. Install the libs in the proj_lib folder, inside the [http://fwtools.maptools.org/ FWTools] folder. By the way, you may want to [http://fwtools.maptools.org/ install FWTools first].&lt;br /&gt;
&lt;br /&gt;
Here's the command line on how to convert from military portuguese to wgs84:&lt;br /&gt;
 &amp;gt; cs2cs +init=pt:dlxhgmil +to +init=pt:etrs89 &amp;lt; coords_input.txt&lt;br /&gt;
&lt;br /&gt;
===Portuguese Military Coordinates (Hayford-Gauss Military System)===&lt;br /&gt;
&lt;br /&gt;
*Projection: Gauss-Kruger&lt;br /&gt;
*Ellipsoid: Hayford (internacional 1924): a=6378.388Km, b=6356.912 Km&lt;br /&gt;
*Datum : Lisbon (Castelo S.Jorge: 38º42’43.631’’N, 9º07’54.862’'W, 111.229m)&lt;br /&gt;
*Central Point: 39º40’N, 8º07’54.862’’W &lt;br /&gt;
*Origin: -200Km horizontally and -300 Km vertically&lt;br /&gt;
*Usage: &lt;br /&gt;
**'''+init=epsg:20790''' &amp;lt;=&amp;gt; +proj=tmerc +lat_0=39.66666666666666 +lon_0=-8.131906111111112 +k=1.000000 &lt;br /&gt;
+x_0=200000 +y_0=300000 +ellps=intl +pm=lisbon +units=m +no_defs  no_defs &amp;lt;&amp;gt;&lt;br /&gt;
**'''+init=esri:102164''' &amp;lt;=&amp;gt; +proj=tmerc +lat_0=39.666666667 +lon_0=-8.131906111 +k=1.000000 &lt;br /&gt;
+x_0=200000.000 +y_0=300000.000 +ellps=intl +units=m (no reference to Lisbon Datum!!)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Universal Transverse Mercator (zone 29N)===&lt;br /&gt;
&lt;br /&gt;
*Usage:&lt;br /&gt;
**ModuleHorizontalGrid: '''+init=esri:32629''' &amp;lt;=&amp;gt; +proj=utm +zone=29 +ellps=WGS84 +datum=WGS84 +units=m&lt;br /&gt;
&lt;br /&gt;
=External Links=&lt;br /&gt;
*[http://proj.maptools.org/ PROJ4]&lt;br /&gt;
*[http://forge.nesc.ac.uk/download.php/10/libfproj4-1.0.tar.gz libfproj4-1.0.tar.gz]. &lt;br /&gt;
*[http://www.isa.utl.pt/dm/sigdr/sigdr04-05/9_SistRefPortugueses.ppt Sistemas Referencia Portugueses]&lt;br /&gt;
*[http://dl.maptools.org/dl/omsug/osgis2004/PROJ4_HandlingCoordinateSystems.pdf PROJ4_HandlingCoordinateSystems.pdf]&lt;br /&gt;
*[http://www.posc.org/Epicentre.2_2/DataModel/ExamplesofUsage/eu_cs34.html Projections and Projected Coordinate System Formulas]&lt;/div&gt;</summary>
		<author><name>Anatrancoso</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=PROJ4&amp;diff=3248</id>
		<title>PROJ4</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=PROJ4&amp;diff=3248"/>
				<updated>2010-08-18T18:58:47Z</updated>
		
		<summary type="html">&lt;p&gt;Anatrancoso: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page explains what is [http://proj.maptools.org/ PROJ4] library and how to use it, both from command line and from a Fortran program. &lt;br /&gt;
&lt;br /&gt;
[http://proj.maptools.org/ PROJ4] is a Cartographic Projections library originally written by Gerald Evenden then of the USGS. This library has almost all projection types. Being written in C, a Fortran wrapper was developed as part of the [http://www.cbcb.umd.edu/software/glimmer/ GLIMMER] project and can be found in [http://forge.nesc.ac.uk/download.php/10/libfproj4-1.0.tar.gz libfproj4-1.0.tar.gz]. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Compilation==&lt;br /&gt;
===UNIX===&lt;br /&gt;
Just follow the instructions.&lt;br /&gt;
===Windows===&lt;br /&gt;
*Download [[\\kepler\Software\PROJ4\libfproj4.lib]] for Compaq Visual Studio, or&lt;br /&gt;
*Compile W32 static lib:&lt;br /&gt;
*#Extract proj4 source code and configure it (bash configure).&lt;br /&gt;
*#New project W32 static lib&lt;br /&gt;
*#Add fort-proj.c (from libfproj4-1.0.tar.gz) and all *.c files (from proj4 source), except all that have main function : css2css, geod, nad2bin, nad2nad, proj.c.&lt;br /&gt;
*# Project Settings / C/C++ / General / Preprocessor definitions : VISUAL_CPLUSPLUS ou IFORT&lt;br /&gt;
*# Project Settings / C/C++ / Preprocessor / include : whatever\proj-4.6.0\src (the folder that has projects.h, because of directives #include &amp;lt;projects.h&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
==Test Fortran API==&lt;br /&gt;
===UNIX===&lt;br /&gt;
*pgf95 -g  -o libfproj4_teste.exe  libfproj4_teste.f90 /home/jjdd/Downloads/libfproj4-1.0/libfproj4.a -lproj -lm&lt;br /&gt;
&lt;br /&gt;
===Windows===&lt;br /&gt;
*Files needed: libfproj4.lib, proj4.inc, proj4.f90, test-proj.f90&lt;br /&gt;
#New Fortran console application&lt;br /&gt;
#add fortran files&lt;br /&gt;
#project settings:&lt;br /&gt;
## Link / Input / Obj/library modules : libfproj4.lib&lt;br /&gt;
## Link / Input / Additional include path : path to libfproj4.lib and proj4.inc)&lt;br /&gt;
&lt;br /&gt;
==Ellipsoids==&lt;br /&gt;
*List of ellipsoids in PROJ4: proj -le&lt;br /&gt;
*More popular:&lt;br /&gt;
**International 1909 (Hayford)  intl		a=6378388.0m	b=6356912m     rf=297.          &lt;br /&gt;
**New International 1967	new_intl 	a=6378157.5m	b=6356772m      &lt;br /&gt;
**WGS 84    			WGS84 		a=6378137.0m    b=6357002m     rf=298.257223563 &lt;br /&gt;
**Normal Sphere (r=6370997)	sphere 		a=6370997.0m    b=6370997m      &lt;br /&gt;
&lt;br /&gt;
b = a*(1-f) = a*(1-1/rf)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Portuguese Coordinate Systems in PROJ4==&lt;br /&gt;
&lt;br /&gt;
You might want to get the libraries containing the coordinate transformations with portuguese datum&lt;br /&gt;
pre-configured [http://www.fc.up.pt/pessoas/jagoncal/coordenadas/parte2.htm here]. Install the libs in the proj_lib folder, inside the [http://fwtools.maptools.org/ FWTools] folder. By the way, you may want to [http://fwtools.maptools.org/ install FWTools first].&lt;br /&gt;
&lt;br /&gt;
Here's the command line on how to convert from military portuguese to wgs84:&lt;br /&gt;
 &amp;gt; cs2cs +init=pt:dlxhgmil +to +init=pt:etrs89 &amp;lt; coords_input.txt&lt;br /&gt;
&lt;br /&gt;
===Portuguese Military Coordinates (Hayford-Gauss Military System)===&lt;br /&gt;
&lt;br /&gt;
*Projection: Gauss-Kruger&lt;br /&gt;
*Ellipsoid: Hayford (internacional 1924): a=6378.388Km, b=6356.912 Km&lt;br /&gt;
*Datum : Lisbon (Castelo S.Jorge: 38º42’43.631’’N, 9º07’54.862’'W, 111.229m)&lt;br /&gt;
*Central Point: 39º40’N, 8º07’54.862’’W &lt;br /&gt;
*Origin: -200Km horizontally and -300 Km vertically&lt;br /&gt;
*Usage: &lt;br /&gt;
**'''+init=epsg:20790''' &amp;lt;=&amp;gt; +proj=tmerc +lat_0=39.66666666666666 +lon_0=-8.131906111111112 +k=1.000000 &lt;br /&gt;
+x_0=200000 +y_0=300000 +ellps=intl +pm=lisbon +units=m +no_defs  no_defs &amp;lt;&amp;gt;&lt;br /&gt;
**'''+init=esri:102164''' &amp;lt;=&amp;gt; +proj=tmerc +lat_0=39.666666667 +lon_0=-8.131906111 +k=1.000000 &lt;br /&gt;
+x_0=200000.000 +y_0=300000.000 +ellps=intl +units=m (no reference to Lisbon Datum!!)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Universal Transverse Mercator (zone 29N)===&lt;br /&gt;
&lt;br /&gt;
*Usage:&lt;br /&gt;
**ModuleHorizontalGrid: '''+init=esri:32629''' &amp;lt;=&amp;gt; +proj=utm +zone=29 +ellps=WGS84 +datum=WGS84 +units=m&lt;br /&gt;
&lt;br /&gt;
=External Links=&lt;br /&gt;
*[http://proj.maptools.org/ PROJ4]&lt;br /&gt;
*[http://forge.nesc.ac.uk/download.php/10/libfproj4-1.0.tar.gz libfproj4-1.0.tar.gz]. &lt;br /&gt;
*[http://www.isa.utl.pt/dm/sigdr/sigdr04-05/9_SistRefPortugueses.ppt Sistemas Referencia Portugueses]&lt;br /&gt;
*[http://dl.maptools.org/dl/omsug/osgis2004/PROJ4_HandlingCoordinateSystems.pdf PROJ4_HandlingCoordinateSystems.pdf]&lt;br /&gt;
*[http://www.posc.org/Epicentre.2_2/DataModel/ExamplesofUsage/eu_cs34.html Projections and Projected Coordinate System Formulas]&lt;/div&gt;</summary>
		<author><name>Anatrancoso</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=ConvertToHDF5&amp;diff=3243</id>
		<title>ConvertToHDF5</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=ConvertToHDF5&amp;diff=3243"/>
				<updated>2010-08-10T14:54:04Z</updated>
		
		<summary type="html">&lt;p&gt;Anatrancoso: /* Compile ModuleWRFFormat */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The '''ConvertToHDF5''' is an application which allows the making of several operations, called '''actions''', involving HDF5 files: conversion of data in other formats (e.g. NETCDF) to HDF5, grid interpolation, concatenation of several files.&lt;br /&gt;
&lt;br /&gt;
Running options for this application are specified by the user in a input file named [[ConvertToHDF5#Input file (ConvertToHDF5Action.dat)|'''ConvertToHDF5Action.dat''']]. Several actions can be specified in the same input file, being processed sequentially by the ConvertToHDF5 application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
The operations involving HDF5 files performed by ConvertToHDF5, specified individually by an action, can be organized in [[#file management|file management]], [[#grid interpolation|grid interpolation]] and [[#format conversion|format conversion]]. These types and the respective actions are detailed in the next sections. &lt;br /&gt;
&lt;br /&gt;
The input file specification for each action can be found bellow in the [[#Input file (ConvertToHDF5Action.dat)|Input file (ConvertToHDF5Action.dat)]] section.&lt;br /&gt;
&lt;br /&gt;
===Compilation Settings===&lt;br /&gt;
&lt;br /&gt;
====With Compaq Visual Fortran====&lt;br /&gt;
&lt;br /&gt;
* File -&amp;gt; New -&amp;gt; Fortran Console Application&lt;br /&gt;
* Project -&amp;gt; Add to Project -&amp;gt; Files -&amp;gt; *.f90 (do not add ModuleWRFFormat.f90 and proj4.f90 if you don't want to use [[PROJ4]] library).&lt;br /&gt;
* Project -&amp;gt; Settings:&lt;br /&gt;
** Fortran tab:&lt;br /&gt;
*** Compatibility “Big Endian” to work with MM5 files.&lt;br /&gt;
*** Compilation Diagnostics -&amp;gt; Fortran Standards Checking -&amp;gt; Fortran95.&lt;br /&gt;
*** Preprocessor:&lt;br /&gt;
**** Check FPP.&lt;br /&gt;
**** INCLUDE and USE Paths: path to Libs folder.&lt;br /&gt;
** C/C++ tab:&lt;br /&gt;
*** Preprocessor -&amp;gt; Additional include directories: path to Libs.&lt;br /&gt;
** Link tab:&lt;br /&gt;
*** General -&amp;gt; Object/library modules: kernel32.lib hdf5.lib hdf5_hl.lib hdf5_fortran.lib zlib.lib szlib.lib netcdf.lib netcdf_.lib &lt;br /&gt;
*** Input -&amp;gt; Additional library path: path to Libs.&lt;br /&gt;
* Buil -&amp;gt; Rebuild All&lt;br /&gt;
&lt;br /&gt;
To run this executable, copy ''netcdf.dll'' to its directory.&lt;br /&gt;
To work with large files, compile with: Project -&amp;gt; Settings -&amp;gt; Link tab -&amp;gt; Reserve: 10^6.&lt;br /&gt;
&lt;br /&gt;
===== Compile ModuleWRFFormat =====&lt;br /&gt;
&lt;br /&gt;
To convert [[Meteo|WRF]] files or work with other projection beside UTM and Lambert Conformal, ConvertToHDF5 must be compiled with [[PROJ4]] library. To do that:&lt;br /&gt;
* Same settings as above.&lt;br /&gt;
* Project -&amp;gt; Add to Project -&amp;gt; Files:&lt;br /&gt;
** ModuleWRFFormat.f90&lt;br /&gt;
** Proj4.f90&lt;br /&gt;
* Project -&amp;gt; Settings:&lt;br /&gt;
** Fortran tab -&amp;gt; Predefined Preprocessor symbols: _USE_PROJ4&lt;br /&gt;
** Link tab -&amp;gt; General -&amp;gt; Object/library modules: add [[PROJ4 | libfproj4.lib ]] (Note: ''libfproj4.lib'' and ''proj4.inc'' must be in Libs folder)&lt;br /&gt;
* Build -&amp;gt; Rebuild All.&lt;br /&gt;
&lt;br /&gt;
===File management===&lt;br /&gt;
&lt;br /&gt;
====Glue files====&lt;br /&gt;
This action consists in joining or glue in a single HDF5 file two or more HDF5 files having the same HDF5 data groups and referring to time periods which come in sequence. Both sets of 2D and 3D HDF5 files can be glued.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Glue MOHID Water results files from several runs produced in continuous running of the model, for storage space economy reasons. Can be used to join data from other origins (e.g. results of meteorological models) as long as the HDF5 format is the one supported by MOHID Water.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 files to be glued. &amp;quot;Grid&amp;quot; and &amp;quot;Results&amp;quot; data groups should be equal in all these files.&lt;br /&gt;
&lt;br /&gt;
'''Output:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with glued &amp;quot;Results&amp;quot; data. &amp;quot;Residual&amp;quot; and &amp;quot;Statistics&amp;quot; HDF5 data groups are not copied to the output file since they are time period specific (different values potentially occour in each file). General statistics can be calculated for the glued HDF5 file data using tool [[HDF5Statistics]].&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#GLUES HDF5 FILES|GLUES HDF5 FILES]].&lt;br /&gt;
&lt;br /&gt;
===Grid interpolation===&lt;br /&gt;
&lt;br /&gt;
====Interpolate files====&lt;br /&gt;
This action performs the conversion of one HDF5 file data existing in one 2D or 3D spatial grid to another 2D or 3D spatial grid, creating a new HDF5 file. The interpolation is performed only for the data located a time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
The HDF5 file containing data to be interpolated is called the '''father file'''.&lt;br /&gt;
&lt;br /&gt;
In case of 3D interpolation the application conducts first the horizontal grid interpolation&lt;br /&gt;
(keeping father geometry) and only after it conducts the vertical interpolation (from father geometry to new geometry).&lt;br /&gt;
&lt;br /&gt;
Several types of 2D interpolation are available for use: bilinear, spline 2D and triangulation.&lt;br /&gt;
For vertical interpolation (used in 3D interpolation) can be supplied several polinomial degrees for interpolation.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain an HDF5 file with data for forcing or providing initial conditions for a MOHID Water model, e.g. a meteorological forcing file.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
For 2D/3D interpolation:&lt;br /&gt;
&lt;br /&gt;
- father HDF5 file;&lt;br /&gt;
&lt;br /&gt;
- father horizontal data grid, in a grid data file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
- new horizontal data grid, in a grid data file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
For 3D interpolation also needed:&lt;br /&gt;
&lt;br /&gt;
- father vertical geometry, in a geometry file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
- new vertical geometry, in a geometry file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
- auxiliary horizontal data grid, in a grid data file in the format supported by MOHID; this file is used for horizontal grid interpolation in 3D interpolation operations.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with interpolated data. In case of 3D interpolation also produced an auxiliary HDF5 file with the result of the horizontal grid interpolation, which can be inspected to check if this operation is well performed.&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#INTERPOLATE GRIDS|INTERPOLATE GRIDS]].&lt;br /&gt;
&lt;br /&gt;
====Patch files====&lt;br /&gt;
This action consists in performing an interpolation of HDF5 data between grids, as in action [[#Interpolate files|Interpolate files]], but considering more than one HDF5 file as containing data to be interpolated to the new grid and a priority scale. The interpolation is performed only for the data located in the time window specified by the user. The present version of this action operates only on 2D data.&lt;br /&gt;
&lt;br /&gt;
Each HDF5 file containing data to be interpolated is called a '''father file''' and has an user-attributed '''priority level''' to be respected in the interpolation process: for each new grid cell the ConvertToHDF5 application will look for data first on the Level 1 father file and only in the case this data is inexistent will it look for data in Level 2 file, proceeding in looking for higher level files if no data is found subsequentely.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
To obtain an HDF5 file with data from several HDF5 files each containing data with different spatial resolution and only for a specific part of the new grid. This is, for instance, the case when one is preparing a best resolution meteorological HDF5 file for forcing MOHID Water from several meteorological model domains, having different spatial resolution and span, since the best resolution data is not available for all new grid cells.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
The new horizontal data grid, in a grid data file in the format supported by MOHID, and for each father file:&lt;br /&gt;
&lt;br /&gt;
- level of priority: 1 = maximum priority, priority decreases with increasing level value;&lt;br /&gt;
&lt;br /&gt;
- data grid, in the form of a grid data file in the format supported by MOHID.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with patched data.&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#PATCH HDF5 FILES|PATCH HDF5 FILES]].&lt;br /&gt;
&lt;br /&gt;
===Format conversion===&lt;br /&gt;
&lt;br /&gt;
====Meteorological model data====&lt;br /&gt;
Mohid does not simulate explicitly the atmosphere, but needs information about atmospheric properties in time and space. This requires that atmospheric properties are supplied to MOHID Water in supported formats. These formats can be derived from meteorological data in HDF5 format. Because the results of meteorological models are accessed in different formats conversion is required. &lt;br /&gt;
&lt;br /&gt;
The formats currently convertible to HDF5 in ConvertToHDF5 include the MM5 and the ERA40. These are succintly detailed in the next sections.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''ERA40''=====&lt;br /&gt;
This format refers to the European Centre for Medium-Range Weather Forecasts (ECMWF) 40 years re-analysises results, acessed by site http://data.ecmwf.int/data/d/era40_daily/. This data is available for several meteorological variables with maximum 6 hour periodicity for days in the period from 1957-09-01 to 2002-08-31. &lt;br /&gt;
&lt;br /&gt;
ERA40 data files are supplied by ECMWF in a NetCDF format and with an user-costumized time window, periodicity (time step range from 6 hours to a day) and meteorological properties set. The ERA40 meteorological properties which are recognized by MOHID are presented bellow together with the correspondent MOHID name: &lt;br /&gt;
&lt;br /&gt;
 ---ERA40 NAME---         ---MOHID NAME---&lt;br /&gt;
   sshf                     sensible heat                &lt;br /&gt;
   slhf                     latent heat                  &lt;br /&gt;
   msl                      atmospheric pressure &lt;br /&gt;
   tcc                      cloud cover &lt;br /&gt;
   p10u                     wind velocity X&lt;br /&gt;
   p10v                     wind velocity Y&lt;br /&gt;
   p2t                      air temperature&lt;br /&gt;
   ewss                     wind stress X&lt;br /&gt;
   nsss                     wind stress Y&lt;br /&gt;
&lt;br /&gt;
The standard ConvertToHDF5 action is to convert to HDF5 the data referring to all MOHID Water recognized property available in the ERA40 file, producing an individual HDF5 file for each property. The name of each HDF5 file generated includes the ERA40 meteorological property identificator correspondent to the data contained.&lt;br /&gt;
&lt;br /&gt;
Alternatively, ConvertToHDF5 can copy to a single ASCII file the heading information concerning each meteorological variable considered in the original ERA40 file.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain an HDF5 file with data suitable for being used for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
ERA40 NetCDF file.&lt;br /&gt;
&lt;br /&gt;
'''Output:'''&lt;br /&gt;
&lt;br /&gt;
One HDF5 file for each meteorological property contained in the original NetCDF file.&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT ERA40 FORMAT|CONVERT ERA40 FORMAT]].&lt;br /&gt;
&lt;br /&gt;
=====''Aladin''=====&lt;br /&gt;
This format relates to Aladin meteorological model results. Some of the atmospheric property needed by MOHID Water is present in Aladin output files, enabling to run prediction simulations with MOHID Water when access to Aladin prevision files is available.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts Aladin results files from the original format to HDF5 format, allowing the easy use of these results in the MOHID framework. Conversion is only performed for the MM5 properties and the time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Produce HDF5 meteorological data usable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
Aladin netcdf results file to convert.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
An HDF5 file with Aladin results and a grid data file in MOHID format with the Aladin grid pseudo-information: a fake orography is created of 100 m depth.&lt;br /&gt;
This last file can be used to interpolate the Aladin data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]), for instance to produce an HDF5 file suitable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Compilation:'''&lt;br /&gt;
&lt;br /&gt;
Caution! The ConvertToHDF5 executable must be compiled with the [[Big-endian little-endian|Big-Endian]] option set (see compatibility in the project's settings).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT ALADIN FORMAT|CONVERT ALADIN FORMAT]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''MM5''=====&lt;br /&gt;
This format relates to the Fifth-Generation NCAR / Penn State Mesoscale Model (MM5) output files format. Almost every atmospheric property needed by MOHID Water is present in MM5 output files.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts MM5 results files from the original format to HDF5 format, allowing the easy use of these results in the MOHID framework. Conversion is only performed for the MM5 properties and the time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
Besides the conversion, the application can calculate some properties not contained in&lt;br /&gt;
the MM5 files using the available information: these are wind stress, relative humidity and mean sea level pressure.&lt;br /&gt;
&lt;br /&gt;
For conversion to be completed it is required the horizontal grid information of MM5 results which is available in special TERRAIN files.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Produce HDF5 meteorological data usable to force MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
MM5 results file to convert and MM5 TERRAIN file. The TERRAIN file supplies the MM5 results grid information. &lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
A HDF5 file with MM5 results and a grid data file in MOHID format with the MM5 grid information.&lt;br /&gt;
This last file can be used to interpolate the MM5 data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]), for instance to produce an HDF5 file suitable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Compilation:'''&lt;br /&gt;
&lt;br /&gt;
Caution! The ConvertToHDF5 executable must be compiled with the [[Big-endian little-endian|Big-Endian]] option set (see compatibility in the project's settings).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT MM5 FORMAT|CONVERT MM5 FORMAT]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''WRF''=====&lt;br /&gt;
This format relates to the Weather Research and Forecast model (WRF) output files format. Almost every atmospheric property needed by MOHID Water is present in WRF output files.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts WRF results files from the original format to HDF5 format, allowing the easy use of these results in the MOHID framework. Conversion is only performed for the WRF properties and the time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
Besides the conversion, the application can calculate some properties not contained in&lt;br /&gt;
the WRF files using the available information: these are wind stress, relative humidity and mean sea level pressure.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Produce HDF5 meteorological data usable to force MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
WRF direct output file.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
An HDF5 file with WRF results and a grid data file in MOHID format with the WRF grid information.&lt;br /&gt;
This last file can be used to interpolate the WRF data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]), for instance to produce an HDF5 file suitable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Compilation:'''&lt;br /&gt;
&lt;br /&gt;
Caution! [[PROJ4 | PROJ4]] library is needed! See [[#Compile_ModuleWRFFormat |  Compile_ModuleWRFFormat]]&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT WRF FORMAT|CONVERT WRF FORMAT]].&lt;br /&gt;
&lt;br /&gt;
====Ocean model data====&lt;br /&gt;
Ocean model data, available in diverse formats, can be used by MOHID Water to specify boundary (open ocean boundary and surface), initial conditions or for validation. These uses require that the model data is in HDF5 format and conversion is therefore needed.&lt;br /&gt;
&lt;br /&gt;
Currently the large scale ocean models formats convertible into HDF5 by ConvertToHDF5 includes MERCATOR.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''MERCATOR''=====&lt;br /&gt;
MERCATOR data files are supplied in a NetCDF format and with an user-costumized spatial window and periodicity. Water level and water properties (temperature and salinity) data is available in type T files, velocity component u data is available in type U files and velocity component v data is available in type V files. The type of data of a specific MERCATOR file is generally indicated in the file name.&lt;br /&gt;
&lt;br /&gt;
The standard ConvertToHDF5 action is to convert to HDF5 the data referring to temperature, salinity, water level, component u of velocity and component v of velocity.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain HDF5 MERCATOR data usable for forcing or validation of MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
NetCDF MERCATOR results data files and NetCDF MERCATOR grid data files. It should be provided one grid data file of each type: T, U and V. These are generally provided by the MERCATOR services together with the results files.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
One HDF5 file containing all properties contained in the recognized set of properties (temperature, salinity, water level, velocity u and velocity v) and the correspondent grid data and geometry files, containing respectively the horizontal grid and the vertical discretization of the HDF5 file. The grid data and geometry files can be used afterwards to interpolate the MERCATOR data to another grid and geometry (see [[#Interpolate files|Interpolate files]]).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT MERCATOR FORMAT|CONVERT MERCATOR FORMAT]].&lt;br /&gt;
&lt;br /&gt;
====Climatological data====&lt;br /&gt;
Climatological data can be used in MOHID Water to specify boundary (open ocean boundary and surface), initial conditions or for validation, in case more realistic data (measurements or model) data is unavailable. This data is generally supplied by producers in formats not readly usable by MOHID Water which justifies the existence of a conversion tool.&lt;br /&gt;
&lt;br /&gt;
Two climatological data format conversions are implemented in ConvertToHDF5: Levitus ocean data and Hellerman Rosenstein meteorological data.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''Levitus''=====&lt;br /&gt;
The Levitus climatology provides results for water temperature and salinity.&lt;br /&gt;
The ConvertToHDF5 action converts the climatological data for the properties and spatial window requested by the user. &lt;br /&gt;
Typically, it requires 3 steps to complete the task:&lt;br /&gt;
&lt;br /&gt;
- convert levitus format &lt;br /&gt;
&lt;br /&gt;
- extrapolate the data to the whole levitus domain(required to avoid uncoincidental coastlines) &lt;br /&gt;
&lt;br /&gt;
- interpolate with the model grid(bathymetry)&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain climatological data in HDF5 format to use as boundary forcing and/or initial condition specification in MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
Levitus climatological data files, one per property and per time period (e.g a month).&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with Levitus climatological data, grid data file with the horizontal&lt;br /&gt;
grid of the data and a geometry file with vertical discretization of the data (MOHID formats).&lt;br /&gt;
The grid data and the geometry files can be used to interpolate the climatological data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT LEVITUS FORMAT|CONVERT LEVITUS FORMAT]].&lt;br /&gt;
&lt;br /&gt;
=====''Hellerman Rosenstein''=====&lt;br /&gt;
This is a meteorological climatology providing wind stress. There is a file per wind stress component. Since the data refer to surface values it is a 2D field.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts the climatological data for the properties and spatial window provided by the user.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain climatological data in HDF5 format to use as meteorological forcing in MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
Hellerman Rosenstein climatological data ASCII files, one per wind stress component.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with Hellerman Rosenstein climatological data and grid data file with the horizontal&lt;br /&gt;
grid of the climatological data. This grid data file can be used to interpolate the climatological data from the original horizontal grid to a new grid (see [[#Interpolate files|Interpolate files]]).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT HELLERMAN ROSENSTEIN ASCII|CONVERT HELLERMAN ROSENSTEIN ASCII]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''World Ocean Atlas 2005''=====&lt;br /&gt;
The World Ocean Atlas (WOA) 2005 climatology provides results for water temperature, salinity and several water quality and biology properties.&lt;br /&gt;
&lt;br /&gt;
Description, Action and Input Files are described in a separate page: [[ConvertToHDF5 WOA2005]].&lt;br /&gt;
&lt;br /&gt;
==Input file (ConvertToHDF5Action.dat)==&lt;br /&gt;
===General structure===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt; (block containing instructions for running a specific action) &lt;br /&gt;
 ACTION                    : ... (intended action)&lt;br /&gt;
 ... (action specific instructions)&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : ...&lt;br /&gt;
 ...&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===GLUES HDF5 FILES===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : GLUES HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 3D_FILE                   : 0/1 (0 = 2D file, 1 = 3D file)&lt;br /&gt;
 &lt;br /&gt;
 TIME_GROUP                : ... (Default=&amp;quot;Time&amp;quot;. Other option: &amp;quot;SurfaceTime&amp;quot;.)&lt;br /&gt;
 &lt;br /&gt;
 BASE_GROUP                : ... (Default=&amp;quot;Results&amp;quot;. Other options: &amp;quot;Residual&amp;quot;, &amp;quot;SurfaceResults&amp;quot;.)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 &lt;br /&gt;
 (block of HDF5 data files)&lt;br /&gt;
 &amp;lt;&amp;lt;begin_list&amp;gt;&amp;gt;&lt;br /&gt;
 ... (path/name of HDF5 file with data to be included in glue, one per line, at least two files)&lt;br /&gt;
 ...                      &lt;br /&gt;
 &amp;lt;&amp;lt;end_list&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===INTERPOLATE GRIDS===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION     : ... (type of horizontal interpolation: 1 = Bilinear, 2 = Spline2D,&lt;br /&gt;
                                  3 = Triangulation)&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION_WINDOW      : ... ... ... ... (2D spatial window to consider for interpolation: &lt;br /&gt;
                                              Xmin Ymin Xmax Ymax; default = all domain)&lt;br /&gt;
 &lt;br /&gt;
 START                     : ... (start date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 END                       : ... (end date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D           : 0/1 (0 = 2D interpolation, 1 = 3D interpolation)&lt;br /&gt;
 &lt;br /&gt;
 FATHER_FILENAME           : ... (path/name of input HDF5 file with data to be interpolated)&lt;br /&gt;
 FATHER_GRID_FILENAME      : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization of input HDF5 file)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of output HDF5 file to be created)&lt;br /&gt;
 NEW_GRID_FILENAME         : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization intended for output HDF5 file)&lt;br /&gt;
 &lt;br /&gt;
 EXTRAPOLATE_2D            : 0/1/2/3/4/5 (2D extrapolation: 0=no extrapolation, 1=medium&lt;br /&gt;
                                      triangulation, 2=high triangulation, &lt;br /&gt;
                                      3=nearest neighbour, 4=nearest cell, &lt;br /&gt;
                                      5=constant value)&lt;br /&gt;
 &lt;br /&gt;
 EXTRAPOLATE_VALUE         : ... (name of the value to extrapolate to when EXTRAPOLATE_2D is&lt;br /&gt;
                                  set to constant value (5))&lt;br /&gt;
 &lt;br /&gt;
 DO_NOT_BELIEVE_MAP        : 0/1 (0=consider input HDF5 file map, 1=do not consider input HDF5&lt;br /&gt;
                                  file map)&lt;br /&gt;
 &lt;br /&gt;
 BASE_GROUP                : ... (name of base group of HDF5 variables containing data to be &lt;br /&gt;
                                  interpolated; default is &amp;quot;/Results&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 (if INTERPOLATION3D : 1 also required:)&lt;br /&gt;
 FATHER_GEOMETRY           : ... (path/name of file (MOHID format) with vertical discretization&lt;br /&gt;
                                  of input HDF5 file)&lt;br /&gt;
 NEW_GEOMETRY              : ... (path/name of file (MOHID format) with vertical discretization&lt;br /&gt;
                                  intended for output HDF5 file)&lt;br /&gt;
 POLI_DEGREE               : 1/... (degree of vertical interpolation: 1=linear, ...)&lt;br /&gt;
 &lt;br /&gt;
 AUX_GRID_FILENAME         : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization intended for auxiliar output HDF5 file;&lt;br /&gt;
                                  default is file provided in NEW_GRID_FILENAME)&lt;br /&gt;
 &lt;br /&gt;
 AUX_OUTPUTFILENAME        : ... (path/name of auxiliar output HDF5 file to contain result&lt;br /&gt;
                                  of horizontal grid interpolation)   &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - the file indicated in AUX_GRID_FILENAME can be different from the one indicated in&lt;br /&gt;
   NEW_GRID_FILENAME in terms of bathymetry, while the horizontal grid should be, commonly, the&lt;br /&gt;
   same: this altered bathymetry can be used to extend the water column in the original data so&lt;br /&gt;
   that the process of vertical interpolation is done easily;&lt;br /&gt;
 &lt;br /&gt;
 - in case of INTERPOLATION3D : 1, ConvertToHDF5 can generate new versions of bathymetry which &lt;br /&gt;
   are consistent with the geometry definition (extension is '.new'); there are possibly three&lt;br /&gt;
   bathymetry changes referring to father grid, new grid and aux grid (the same bathymetry is&lt;br /&gt;
   not altered twice); although initially new and aux grid are the same they can result &lt;br /&gt;
   different because of bathymetry changes;&lt;br /&gt;
 &lt;br /&gt;
 - in case the new geometry is 2D and father geometry is 3D then POLI_DEGREE : 1 &lt;br /&gt;
   (linear interpolation) should be used;&lt;br /&gt;
 &lt;br /&gt;
 - EXTRAPOLATE_2D : 1/2/3/4/5 should be considered if it is expected that the coast line is not&lt;br /&gt;
   coincidental in the father and new grids, to avoid lack of data in the interpolation&lt;br /&gt;
   process; extrapolation is performed for all cells even the land cells; &lt;br /&gt;
 &lt;br /&gt;
 - in case of DO_NOT_BELIEVE_MAP : 1 the application generates a map based on cells where&lt;br /&gt;
   interpolation results are available; this causes that if EXTRAPOLATE_2D : 1/2/3/4/5 is used&lt;br /&gt;
   the AUX_GRID_FILENAME should not have land cells in order for the new map to be concurrent&lt;br /&gt;
   with the result of extrapolation and avoid errors generation, specially if INTERPOLATION3D :&lt;br /&gt;
   1 is considered.&lt;br /&gt;
&lt;br /&gt;
===PATCH HDF5 FILES===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : PATCH HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION     : ... (type of interpolation: 3 = Triangulation, default and only&lt;br /&gt;
                                  one implemented)&lt;br /&gt;
 &lt;br /&gt;
 START                     : ... (start date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 END                       : ... (end date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 &lt;br /&gt;
 (block for each father HDF5 file, should be at least two)&lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                     : ... (integer priority level: 1 = highest, increase for lower&lt;br /&gt;
                                  priority)&lt;br /&gt;
 FATHER_FILENAME           : ... (path/name of input HDF5 file with data to be interpolated)&lt;br /&gt;
 FATHER_GRID_FILENAME      : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization of input HDF5 file)&lt;br /&gt;
 N_REMOVE_FRAME            : 0   (width, in number of cells, of frame to remove)&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of output HDF5 file to be created)&lt;br /&gt;
 NEW_GRID_FILENAME         : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization intended for output HDF5 file)&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CONVERT ERA40 FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT ERA40 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                  : ... (path/name of ERA40 NetCDF file)&lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
                                 (root of name for all files produced)&lt;br /&gt;
 &lt;br /&gt;
 CONVERT_TO_ASCII          : 0/1 (1 = convert variable heading info for ASCII file; 0 = default)&lt;br /&gt;
 CONVERT_TO_HDF5           : 0/1 (1 = convert to HDF5 file; 0 = default)&lt;br /&gt;
 GRIDTO180                 : 0/1 (1 = convert grid from [0 360] to [-180 180], 0 = default)&lt;br /&gt;
 &lt;br /&gt;
 XX_VARIABLE               : ... (name of longitude variable in the input file: usual name &lt;br /&gt;
                                  is &amp;quot;longitude&amp;quot;)&lt;br /&gt;
 YY_VARIABLE               : ... (name of longitude variable in the input file: usual name &lt;br /&gt;
                                  is &amp;quot;latitude&amp;quot;)&lt;br /&gt;
 TIME_VARIABLE             : ... (name of time variable in the input file: usual name is&lt;br /&gt;
                                  &amp;quot;time&amp;quot;)&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - either CONVERT_TO_ASCII : 1 or CONVERT_TO_HDF5 : 1 must be chosen for any action to be&lt;br /&gt;
 performed by ConvertToHDF5;&lt;br /&gt;
 &lt;br /&gt;
 - when CONVERT_TO_HDF5 : 1 an HDF5 file is produced for every variable contained in the&lt;br /&gt;
 original ERA40 file; the name of each file is composed of the name indicated on FILENAME&lt;br /&gt;
 concatenated with the ERA40 variable identifier;&lt;br /&gt;
 &lt;br /&gt;
 - to the XX_VARIABLE, YY_VARIABLE and TIME_VARIABLE keywords should generally be  &lt;br /&gt;
 specified &amp;quot;longitude&amp;quot;, &amp;quot;latitude&amp;quot; and &amp;quot;time&amp;quot;, respectively; the option to&lt;br /&gt;
 include as keywords was made only to make the application robust to future variable name&lt;br /&gt;
 changes.&lt;br /&gt;
&lt;br /&gt;
===CONVERT ALADIN FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT ALADIN FORMAT&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : aladin.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : aladin_griddata.dat&lt;br /&gt;
 &lt;br /&gt;
 !Put here the name of any netcdf file for grid-data generation's sake.&lt;br /&gt;
 INPUT_GRID_FILENAME      :   D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKCLOUD_OPASYMP_19723_20088.nc&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 (path to aladin netcdf file)\ALADIN_BULKIR_OPASYMP_19723_20088.nc&lt;br /&gt;
 ...&lt;br /&gt;
 &amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - the name of each Aladin property to convert in &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;...&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt; block must conform to the following variables&lt;br /&gt;
 &lt;br /&gt;
           ---ALADIN NAME---    ---MOHID NAME---&lt;br /&gt;
             soclotot            CloudCover_&lt;br /&gt;
             sohumrel            RelativeHumidity_&lt;br /&gt;
             sofluxir            NonSolarFlux_&lt;br /&gt;
             sosspres            AtmosphericPressure_&lt;br /&gt;
             sosolarf            SolarRadiation_&lt;br /&gt;
             sotemair            AirTemperature_&lt;br /&gt;
             sowinmod            WindModulus_&lt;br /&gt;
             sowaprec            Precipitation_&lt;br /&gt;
             sozotaux            WindStressX_&lt;br /&gt;
             sometauy            WindStressY_&lt;br /&gt;
             sowindu10           WindVelocityX_&lt;br /&gt;
             sowindv10           WindVelocityY_&lt;br /&gt;
&lt;br /&gt;
===CONVERT MM5 FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT MM5 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                  : ... (path/name of MM5 file)&lt;br /&gt;
 TERRAIN_FILENAME          : ... (path/name of MM5 TERRAIN file)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME               : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME         : ... (path/name of grid data file with horizontal grid of MM5 data to be created)&lt;br /&gt;
 &lt;br /&gt;
 COMPUTE_WINDSTRESS           : 0/1 (1 = compute and write wind stress field; 0 = default)&lt;br /&gt;
 COMPUTE_WINDMODULUS          : 0/1 (1 = compute wind modulus; 0 = default)&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY    : 0/1 (1 = compute and write 2-meter relative humidity field; 0 = default)&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY_3D : 0/1 (1 = compute and write 3D relative humidity field; 0 = default)&lt;br /&gt;
 COMPUTE_PRECIPITATION        : 0/1 (1 = compute and write precipitation field; 0 = default)&lt;br /&gt;
 COMPUTE_MSLP                 : 0/1 (1 = compute and write mean sea level pressure field; 0 = default)&lt;br /&gt;
 &lt;br /&gt;
 WRITE_XYZ                    : 0/1 (1 = write xyz center grid cells; 0 = default)&lt;br /&gt;
 WRITE_TERRAIN                : 0/1 (1 = write MM5 TERRAIN fields; 0 = default)&lt;br /&gt;
 &lt;br /&gt;
 START                        : ... (start date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 END                          : ... (end date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
  &lt;br /&gt;
 (block of MM5 properties to convert)&lt;br /&gt;
 &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;&lt;br /&gt;
 ... (name of MM5 property to convert do HDF5 format, one per line)&lt;br /&gt;
 ... &lt;br /&gt;
 &amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - the name of each MM5 property to convert in &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;...&amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt; block must&lt;br /&gt;
 conform to the MOHID designation specified in code of ModuleGlobalData; the correspondence is &lt;br /&gt;
 the following (see [[Module_InterfaceWaterAir]] for a more detailed explanation).&lt;br /&gt;
 &lt;br /&gt;
           ---MM5 NAME---    ---MOHID NAME---&lt;br /&gt;
             T2             air temperature&lt;br /&gt;
             PSTARCRS       atmospheric pressure&lt;br /&gt;
             U10            wind velocity X&lt;br /&gt;
             V10            wind velocity Y&lt;br /&gt;
             UST            wind shear velocity&lt;br /&gt;
             LHFLUX         latent heat&lt;br /&gt;
             SWDOWN         sensible heat&lt;br /&gt;
             SWDOWN         solar radiation&lt;br /&gt;
             LWDOWN         infrared radiation&lt;br /&gt;
             SWOUT          top outgoing shortwave radiation&lt;br /&gt;
             LWOUT          top outgoing longwave radiation&lt;br /&gt;
             SOIL T 1       soil temperature layer 1&lt;br /&gt;
             SOIL T 1       soil temperature layer 2&lt;br /&gt;
             SOIL T 1       soil temperature layer 3&lt;br /&gt;
             SOIL T 1       soil temperature layer 4&lt;br /&gt;
             SOIL T 1       soil temperature layer 5&lt;br /&gt;
             SOIL T 1       soil temperature layer 6&lt;br /&gt;
             Q2             2-meter mixing ratio&lt;br /&gt;
             TSEASFC        sea water temperature&lt;br /&gt;
             PBL HGT        PBL height&lt;br /&gt;
             PBL REGIME     PBL regime&lt;br /&gt;
             RAIN CON       accumulated convective precipitation        (cm)&lt;br /&gt;
             RAIN NON       accumulated non-convective precipitation    (cm)&lt;br /&gt;
             GROUND T       ground temperature&lt;br /&gt;
             RES TEMP       infinite reservoir slab temperature&lt;br /&gt;
             U              wind velocity X_3D&lt;br /&gt;
             V              wind velocity Y_3D&lt;br /&gt;
             W              wind velocity Z_3D&lt;br /&gt;
             T              air temperature_3D&lt;br /&gt;
             PP             atmospheric pressure_3D&lt;br /&gt;
             Q              mixing ratio_3D&lt;br /&gt;
             CLW            cloud water mixing ratio_3D&lt;br /&gt;
             RNW            rain water mixing ratio_3D&lt;br /&gt;
             ICE            cloud ice mixing ratio_3D&lt;br /&gt;
             SNOW           snow mixing ratio_3D&lt;br /&gt;
             RAD TEND       atmospheric radiation tendency_3D&lt;br /&gt;
&lt;br /&gt;
===CONVERT WRF FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                       : CONVERT WRF FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                     : ... (path/name of WRF file)&lt;br /&gt;
 OUTPUTFILENAME               : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME         : ... (path/name of grid data file with horizontal grid of WRF data&lt;br /&gt;
                                     to be created)&lt;br /&gt;
 &lt;br /&gt;
 COMPUTE_WINDSTRESS           : 0/1 (1 = compute and write wind stress field; 0 = default)&lt;br /&gt;
 COMPUTE_WINDMODULUS          : 0/1 (1 = compute wind modulus; 0 = default)&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY    : 0/1 (1 = compute and write 2-meter relative humidity field; 0 = default)&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY_3D : 0/1 (1 = compute and write 3D relative humidity field; 0 = default)&lt;br /&gt;
 COMPUTE_PRECIPITATION        : 0/1 (1 = compute and write precipitation field; 0 = default)&lt;br /&gt;
 COMPUTE_MSLP_MM5             : 0/1 (1 = compute mean sea level pressure with MM5toGrads algorithm; 0 = default)&lt;br /&gt;
 COMPUTE_MSLP_WRF             : 0/1 (1 = compute mean sea level pressure with ARWPost algorithm; 0 = default)&lt;br /&gt;
 &lt;br /&gt;
 WRITE_XYZ                    : 0/1 (1 = write xyz center grid cells; 0 = default)&lt;br /&gt;
 WRITE_TERRAIN                : 0/1 (1 = write MM5 TERRAIN fields; 0 = default)&lt;br /&gt;
 OUTPUT_DT                    : real (DT interval in seconds between each output; default = 0.0)&lt;br /&gt;
 &lt;br /&gt;
 START                        : ... (start date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 END                          : ... (end date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
  &lt;br /&gt;
 (block of properties to convert)&lt;br /&gt;
 &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;&lt;br /&gt;
 ... (name of property to convert do HDF5 format, one per line)&lt;br /&gt;
 ... &lt;br /&gt;
 &amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
  &lt;br /&gt;
 - the name of each property to convert in &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;...&amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt; block must conform to the MOHID &lt;br /&gt;
   designation specified in code of ModuleGlobalData; the correspondence to WRF is in function &lt;br /&gt;
   VariableIsToRead in ModuleWRFFormat. Conversion is not direct since WRF outputs tendencies and not  &lt;br /&gt;
   total values. &lt;br /&gt;
 &lt;br /&gt;
 - Caution: This action is not extensively tested.&lt;br /&gt;
&lt;br /&gt;
===CONVERT MERCATOR FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT MERCATOR FORMAT&lt;br /&gt;
 &lt;br /&gt;
 READ_OPTION               : 1/2/3/4 (version of MERCATOR files)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : ... (path/name of grid data with horizontal discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME  : ... (path/name of geometry file with vertical discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 &lt;br /&gt;
 (if READ_OPTION : 1:)&lt;br /&gt;
 BASE_BULLETIN             : ...&lt;br /&gt;
 DATES_FILE                : ...&lt;br /&gt;
 NUM_DATES                 : ... &lt;br /&gt;
 &lt;br /&gt;
 (if READ_OPTION : 2/3:)&lt;br /&gt;
 INPUT_GRID_FILENAME       : ... (path/name of file with horizontal discretization of water&lt;br /&gt;
                                  properties and water level data)&lt;br /&gt;
 (if READ_OPTION : 2:)&lt;br /&gt;
 INPUT_GRID_FILENAME_U     : ... (path/name of file with horizontal discretization of velocity&lt;br /&gt;
                                  component U data)&lt;br /&gt;
 INPUT_GRID_FILENAME_V     : ... (path/name of file with horizontal discretization of velocity&lt;br /&gt;
                                  component V data)&lt;br /&gt;
 &lt;br /&gt;
 (if READ_OPTION : 3:)&lt;br /&gt;
 INPUT_BATHY_FILENAME      : ... (path/name of file with bathymetry)&lt;br /&gt;
     &lt;br /&gt;
 (if READ_OPTION : 3/4:)&lt;br /&gt;
 CALC_BAROTROPIC_VEL       : 0/1 (1 = calculate barotropic velocity, 0 = not calculate; &lt;br /&gt;
                                  default = 0)&lt;br /&gt;
 &lt;br /&gt;
 (if CALC_BAROTROPIC_VEL : 1 and READ_OPTION : 3:)&lt;br /&gt;
 INPUT_MESH_ZGRID_FILENAME : ... (path/name of file with information about layers ticknesses)&lt;br /&gt;
 &lt;br /&gt;
 (block of MERCATOR data files)&lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 ... (path/name of MERCATOR NetCDF data file, one per line, can be several)&lt;br /&gt;
 ... &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CONVERT LEVITUS FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT LEVITUS FORMAT&lt;br /&gt;
  &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : ... (path/name of grid data with horizontal discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME  : ... (path/name of geometry file with vertical discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 &lt;br /&gt;
 PERIODICITY               : ... (periodicity of Levitus data: &amp;quot;monthly&amp;quot;/&amp;quot;annual&amp;quot;; default is&lt;br /&gt;
                                  &amp;quot;monthly&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 SPATIAL_RESOLUTION        : ... (spatial resolution (degrees) of horizontal Levitus grid)&lt;br /&gt;
 &lt;br /&gt;
 FILL_VALUE                : ... (real value identificator for missing data; default is &lt;br /&gt;
                                  &amp;quot;-99.999900&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 (definition of spatial window to be present in output HDF5 file)&lt;br /&gt;
 LOWER_LEFT_CORNER         : ... ... (longitude and latitude (degrees) of south west corner)&lt;br /&gt;
 UPPER_RIGHT_CORNER        : ... ... (longitude and latitude (degrees) of north east corner)&lt;br /&gt;
 &lt;br /&gt;
 (block for each water property to be present in output HDF5 file, can be several)&lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                      : ... (name of property)&lt;br /&gt;
 ANNUAL_FILE               : ... (path/name of Levitus annual file)&lt;br /&gt;
 &lt;br /&gt;
 (block of Levitus data files)&lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 ... (path/name of Levitus data file (e.g. a monthly data file), one per line, can be several)&lt;br /&gt;
 ... &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CONVERT HELLERMAN ROSENSTEIN ASCII===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT HELLERMAN ROSENSTEIN ASCII&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : ... (path/name of grid data with horizontal discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
  &lt;br /&gt;
 PERIODICITY               : ... (periodicity of Hellerman Rosenstein data: &amp;quot;monthly&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 SPATIAL_RESOLUTION        : ... (spatial resolution (degrees) of horizontal Hellerman&lt;br /&gt;
                                  Rosenstein grid: default and only allowed value is &amp;quot;2.&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 FILL_VALUE                : ... (real value identificator for missing data; default is &lt;br /&gt;
                                  &amp;quot;-99.999900&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 (definition of spatial window to be present in output HDF5 file)&lt;br /&gt;
 LOWER_LEFT_CORNER         : ... ... (longitude and latitude (degrees) of south west corner)&lt;br /&gt;
 UPPER_RIGHT_CORNER        : ... ... (longitude and latitude (degrees) of north east corner)&lt;br /&gt;
   &lt;br /&gt;
 (block for each Hellerman Rosenstein data file)&lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                      : ... (name of property: &amp;quot;wind stress X&amp;quot;/&amp;quot;wind stress Y&amp;quot;)&lt;br /&gt;
 FILE                      : ... (path/name Hellerman Rosenstein file)&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Samples==&lt;br /&gt;
All sample files are named ''ConvertToHDF5Action.dat''.&lt;br /&gt;
&lt;br /&gt;
===Glue several MOHID(.hdf5) files===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : GLUES HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : SurfaceHydro_OP.hdf5&lt;br /&gt;
  &lt;br /&gt;
 &amp;lt;&amp;lt;begin_list&amp;gt;&amp;gt;&lt;br /&gt;
 D:\Projectos\SurfaceHydrodynamic_21.hdf5&lt;br /&gt;
 D:\Projectos\SurfaceHydrodynamic_22.hdf5&lt;br /&gt;
 &amp;lt;&amp;lt;end_list&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Interpolate 2D MOHID(.hdf5) files to a new grid===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION    : 1&lt;br /&gt;
 FATHER_FILENAME          : D:\Projectos\MohidRun\test\res\Lagrangian_1.hdf5 &lt;br /&gt;
 OUTPUTFILENAME           : OilSpillThickness_GridRegular.hdf5&lt;br /&gt;
  &lt;br /&gt;
 START                    : 2006 6 21 17 22 30&lt;br /&gt;
 END                      : 2006 6 22 17 22 0&lt;br /&gt;
  &lt;br /&gt;
 FATHER_GRID_FILENAME     : D:\Projectos\MohidRun\GeneralData\batim\Tagus.dat_A&lt;br /&gt;
 NEW_GRID_FILENAME        : TagusConstSpacing.dat&lt;br /&gt;
  &lt;br /&gt;
 BASE_GROUP               : /Results/Oil/Data_2D&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Interpolate 3D MOHID(.hdf5) files to a new grid===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION   : 1&lt;br /&gt;
 FATHER_FILENAME         : D:\Projectos\MohidRun\test\res\Lagrangian_1.hdf5 &lt;br /&gt;
 OUTPUTFILENAME          : OilSpillThickness_GridRegular.hdf5&lt;br /&gt;
 &lt;br /&gt;
 START                   : 2006 6 21 17 22 30&lt;br /&gt;
 END                     : 2006 6 22 17 22 0&lt;br /&gt;
 &lt;br /&gt;
 FATHER_GRID_FILENAME    : D:\Projectos\MohidRun\GeneralData\batim\Tagus.dat_A&lt;br /&gt;
 NEW_GRID_FILENAME       : TagusConstSpacing.dat&lt;br /&gt;
 &lt;br /&gt;
 BASE_GROUP              : /Results/Oil/Data_2D&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D         : 1&lt;br /&gt;
 FATHER_GEOMETRY         : D:\Projectos\MohidRun\test\data\Geometry_1.dat&lt;br /&gt;
 NEW_GEOMETRY            : TagusGeometry.dat&lt;br /&gt;
 AUX_GRID_FILENAME       : TagusConstSpacing.dat&lt;br /&gt;
 AUX_OUTPUTFILENAME      : Aux_GridRegular.hdf5&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Patch several MOHID(.hdf5) files to a new grid===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION : PATCH HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION   : 3&lt;br /&gt;
 &lt;br /&gt;
 START                   : 2005 2 28 13 0 0&lt;br /&gt;
 END                     : 2005 3 1 13 0 0&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                   : 3&lt;br /&gt;
 FATHER_FILENAME         : K:\MM5output\2005022812_2005030712\MM5OUT_D1.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME    : K:\MM5output\2005022812_2005030712\grid1.dat&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                   : 2&lt;br /&gt;
 FATHER_FILENAME         : K:\MM5output\2005022812_2005030712\MM5OUT_D2.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME    : K:\MM5output\2005022812_2005030712\grid2.dat&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                   : 1&lt;br /&gt;
 FATHER_FILENAME         : K:\MM5output\2005022812_2005030712\MM5OUT_D3.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME    : K:\MM5output\2005022812_2005030712\grid3.dat&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME          : MM5Forcing.hdf5&lt;br /&gt;
 NEW_GRID_FILENAME       : K:\Simula\GeneralData\Batim\CostaPortuguesa.dat&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert an ERA40 file to MOHID(.hdf5)===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                  : CONVERT ERA40 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                : D:\Aplica\ERA40\1971ERA1973.nc&lt;br /&gt;
 OUTPUTFILENAME          : D:\Aplica\ERA40\1971ERA1973T2&lt;br /&gt;
 &lt;br /&gt;
 CONVERT_TO_ASCII        : 0&lt;br /&gt;
 CONVERT_TO_HDF5         : 1&lt;br /&gt;
 &lt;br /&gt;
 XX_VARIABLE             : longitude&lt;br /&gt;
 YY_VARIABLE             : latitude&lt;br /&gt;
 TIME_VARIABLE           : time&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert a MM5 file to MOHID(.hdf5)===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                  : CONVERT MM5 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                : K:\MM5output\DataCenter\Modelos\Meteo_IST\Fev2005\MMOUT_D3&lt;br /&gt;
 TERRAIN_FILENAME        : K:\MM5output\DataCenter\Modelos\Meteo_IST\Fev2005\TERRAIN_D3&lt;br /&gt;
 OUTPUT_GRID_FILENAME    : K:\MM5output\DataCenter\Modelos\Meteo_IST\Fev2005\grid3.dat&lt;br /&gt;
 OUTPUTFILENAME          : K:\MM5output\DataCenter\Modelos\Meteo_IST\Fev2005\MM5_D3.hdf5&lt;br /&gt;
 &lt;br /&gt;
 COMPUTE_WINDSTRESS        : 0&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY : 1&lt;br /&gt;
 WRITE_XYZ                 : 0&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;&lt;br /&gt;
 solar radiation&lt;br /&gt;
 air temperature&lt;br /&gt;
 wind velocity X&lt;br /&gt;
 wind velocity Y&lt;br /&gt;
 sensible heat&lt;br /&gt;
 latent heat&lt;br /&gt;
 atmospheric pressure&lt;br /&gt;
 sea water temperature&lt;br /&gt;
 &amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert Mercator-Ocean(.nc) to MOHID(.hdf5)===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : CONVERT MERCATOR FORMAT&lt;br /&gt;
 &lt;br /&gt;
 READ_OPTION              : 2&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : Psy2v2r1v_R20060628/MercatorR20060628.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME     : Psy2v2r1v_R20060628/MercatorGridR20060628.dat&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME : Psy2v2r1v_R20060628/MercatorGeometryR20060628.dat&lt;br /&gt;
 &lt;br /&gt;
 INPUT_GRID_FILENAME      : GridFiles/ist_meteog-gridT.nc&lt;br /&gt;
 INPUT_GRID_FILENAME_U    : GridFiles/ist_meteog-gridU.nc&lt;br /&gt;
 INPUT_GRID_FILENAME_V    : GridFiles/ist_meteog-gridV.nc&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 Psy2v2r1v_R20060628/ist_meteog-mercatorPsy2v2r1v_T_MEAN_ANA_20060621_R20060628.nc&lt;br /&gt;
 Psy2v2r1v_R20060628/ist_meteog-mercatorPsy2v2r1v_T_MEAN_ANA_20060622_R20060628.nc&lt;br /&gt;
 Psy2v2r1v_R20060628/ist_meteog-mercatorPsy2v2r1v_T_MEAN_ANA_20060623_R20060628.nc&lt;br /&gt;
 &amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert Levitus format to MOHID(.hdf5) and interpolate grid===&lt;br /&gt;
==== Convert ====&lt;br /&gt;
First convert the Levitus ASCII format to a raw HDF5 format:&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : CONVERT LEVITUS FORMAT&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : Levitus.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME     : LevitusGrid.dat&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME : LevitusGeometry.dat&lt;br /&gt;
 &lt;br /&gt;
 PERIODICITY              : monthly&lt;br /&gt;
 SPATIAL_RESOLUTION       : 0.25&lt;br /&gt;
 FILL_VALUE               : -99.9999&lt;br /&gt;
 &lt;br /&gt;
 LOWER_LEFT_CORNER        : -16.0  31&lt;br /&gt;
 UPPER_RIGHT_CORNER       :   1.   40&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : salinity&lt;br /&gt;
 ANNUAL_FILE              : DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s000hr.obj&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s001&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s002&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s003&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s004&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s005&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s006&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s007&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s008&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s009&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s010&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s011&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s012&lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : temperature&lt;br /&gt;
 ANNUAL_FILE              : DataCenter\DadosBase\Ocean\Levitus\Data\Temp\t000hr.obj&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t001&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t002&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t003&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t004&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t005&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t006&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t007&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t008&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t009&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t010&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t011&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t012&lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Extrapolate ====&lt;br /&gt;
Then extrapolate the data (still in the raw HDF5 format):&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION    : 1&lt;br /&gt;
 &lt;br /&gt;
 FATHER_FILENAME          : Levitus.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME     : LevitusGrid.dat&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : LeviTusAllPointsWithData.hdf5&lt;br /&gt;
 NEW_GRID_FILENAME        : LevitusGrid.dat&lt;br /&gt;
 &lt;br /&gt;
 START                    : -9999 1  1 0 0 0&lt;br /&gt;
 END                      : -9999 12 1 0 0 0&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D          : 1&lt;br /&gt;
 FATHER_GEOMETRY          : LevitusGeometry.dat&lt;br /&gt;
 NEW_GEOMETRY             : LevitusGeometry.dat&lt;br /&gt;
 AUX_GRID_FILENAME        : LevitusGrid.dat&lt;br /&gt;
 AUX_OUTPUTFILENAME       : AuxLeviTusAllPointsWithData.hdf5&lt;br /&gt;
 &lt;br /&gt;
 POLI_DEGREE              : 3&lt;br /&gt;
 DO_NOT_BELIEVE_MAP       : 1&lt;br /&gt;
 EXTRAPOLATE_2D           : 2&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Interpolate ====&lt;br /&gt;
Finally, interpolate to the final grid and geometry (same as the [[#Interpolate 3D MOHID(.hdf5) files to a new grid| Interpolate 3D sample]]):&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION    : 1&lt;br /&gt;
 FATHER_FILENAME          : LeviTusAllPointsWithData.hdf5&lt;br /&gt;
 OUTPUTFILENAME           : CadizMonthlyLevitus.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME     : LevitusGrid.dat&lt;br /&gt;
 NEW_GRID_FILENAME        : Algarve0.02SigmaSmooth_V3_CartMoreLayers.dat&lt;br /&gt;
 &lt;br /&gt;
 START                    : -9999 1  1 0 0 0&lt;br /&gt;
 END                      : -9999 12 1 0 0 0&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D          : 1&lt;br /&gt;
 FATHER_GEOMETRY          : LevitusGeometry.dat&lt;br /&gt;
 NEW_GEOMETRY             : Geometry_1.dat&lt;br /&gt;
 AUX_OUTPUTFILENAME       : AuxCadizMonthlyLevitus.hdf5&lt;br /&gt;
 AUX_GRID_FILENAME        : Aux12km.dat&lt;br /&gt;
 &lt;br /&gt;
 POLI_DEGREE              : 3&lt;br /&gt;
 DO_NOT_BELIEVE_MAP       : 1&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that the programme may construct a new bathymetry twice. Use this bathymetry only on the AUX_GRID_FILENAME keyword.&lt;br /&gt;
&lt;br /&gt;
===Convert Hellerman Rosenstein ASCII format to MOHID(.hdf5)  ===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : CONVERT HELLERMAN ROSENSTEIN ASCII&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : ClimatologicWindStress.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME     : ClimatologicWindStressGrid.dat&lt;br /&gt;
 &lt;br /&gt;
 PERIODICITY              : monthly&lt;br /&gt;
 SPATIAL_RESOLUTION       : 2.&lt;br /&gt;
 FILL_VALUE               : -99.9999&lt;br /&gt;
 &lt;br /&gt;
 LOWER_LEFT_CORNER        : -180  -90&lt;br /&gt;
 UPPER_RIGHT_CORNER       : 180  90&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : wind stress X&lt;br /&gt;
 FILE                     : D:\Aplica\Dados\Hellerman_Rosenstein\TAUXX.DAT&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : wind stress Y&lt;br /&gt;
 FILE                     : D:\Aplica\Dados\Hellerman_Rosenstein\TAUYY.DAT&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert ALADIN(.nc) format to MOHID(.hdf5)===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT ALADIN FORMAT&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : aladin.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : aladin_griddata.dat&lt;br /&gt;
 &lt;br /&gt;
 !Put here the name of any netcdf file for grid-data generation's sake.&lt;br /&gt;
 INPUT_GRID_FILENAME      :   D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKCLOUD_OPASYMP_19723_20088.nc&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKIR_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKPRES_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKSOLAR_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKTAIR_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKWIND_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_FLUXPRE_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_STRESSU_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_STRESSV_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_U10_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_V10_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKCLOUD_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKHUMI_OPASYMP_19723_20088.nc&lt;br /&gt;
 &amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== OceanColor modules compilation ==&lt;br /&gt;
Compiling the [[ConvertToHDF5]] tool with the OceanColor modules is more complicated than one might expect. A solution is proposed here for a release version using the Compaq Visual Fortran 6.6c. The difficulties rise because C code is embedded with a fortran interface and also, extra libraries such as hdf4 are required.&lt;br /&gt;
&lt;br /&gt;
=== Pre-requisites ===&lt;br /&gt;
&lt;br /&gt;
This is a list of prerequisites to successfully compile the tool:&lt;br /&gt;
*Compaq Visual Fortran 6.5 with patch 6.6c,&lt;br /&gt;
*VS .NET 2003 (Vc7 in particular),&lt;br /&gt;
*Hdf5 libraries ('''hdf5.lib''' '''hdf5_fortran.lib''' '''hdf5_hl.lib'''),&lt;br /&gt;
*Netcdf libraries ('''netcdf.lib''' '''netcdf_.lib'''),&lt;br /&gt;
*Hdf4 libraries ('''hd421.lib''', '''hm421.lib'''),&lt;br /&gt;
*szlib, zlib and jpeg libraries ('''szlib.lib''', '''zlib.lib''' and '''libjpeg.lib'''),&lt;br /&gt;
*the fortran source files ('''ModuleConvertModisL2.F90 ModuleConvertModisL3.F90 ModuleConvertOceanColorL2.F90'''),&lt;br /&gt;
*the C source files and their fortran interface files ('''readL2scan.c readL2Seadas.c''' and '''cdata.f crossp.f fgeonav.f''').&lt;br /&gt;
&lt;br /&gt;
=== CVF IDE configuration ===&lt;br /&gt;
# Configure everything as specified in [[Compiling with CVF]].&lt;br /&gt;
# Add the source files listed in the prerequisites above to the source files listing.&lt;br /&gt;
# Go to '''Tools--&amp;gt;Options...--&amp;gt;Directories'''. There, add the '''$DOTNET2K3/Vc7/bin''' to the '''Executable files''''; the '''$DOTNET2K3/Vc7/include''' and '''$DOTNET2K3/Vc7/PlatformSDK/include''' to the '''Include files'''; and finally, the '''$DOTNET2K3/Vc7/lib''', '''$DOTNET2K3/Vc7/PlatformSDK/lib''' and  '''$DOTNET2K3/Vc7/PlatformSDK/bin''' to the '''Library files'''.&lt;br /&gt;
# Go to '''Projects--&amp;gt;Settings--&amp;gt;Release--&amp;gt;Link--&amp;gt;Input'''. There, add the following libraries: '''netcdf.lib netcdf_.lib hd421.lib hm421.lib libjpeg.lib'''. (Make sure the hdf5 libraries as well as the szlib and zlib libraries are already mentioned).&lt;br /&gt;
&lt;br /&gt;
=== Troubleshoots ===&lt;br /&gt;
'''Q: I get unresolved external references during linkage, but I have all the libraries mentioned above included. What should I do?'''&lt;br /&gt;
&lt;br /&gt;
A: Unresolved external references can come out for two reasons:&lt;br /&gt;
#you didn't specified all the libraries required or all the paths for the default libraries or,&lt;br /&gt;
#[http://en.wikipedia.org/wiki/Name_decoration name mangling] problems. Use the [[dumpbin]] utility to the libraries to checkout which language convention they are using. If that's the problem then you need to try to get new libraries with the correct naming convention.&lt;br /&gt;
&lt;br /&gt;
That's it, you should now be able to build the [[ConvertToHdf5]] project successfully.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Q: I got a message saying the entry point _NF_PUT_ATT_REAL@28 could not be located in netcdf.dll'''&lt;br /&gt;
&lt;br /&gt;
A: copy the file netcdf.dll to the exe folder&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
*[http://www.hdfgroup.org/ HDF5 Homepage]&lt;br /&gt;
*[http://www.hdfgroup.org/ HDF4 Homepage]&lt;br /&gt;
&lt;br /&gt;
== Links ==&lt;br /&gt;
&lt;br /&gt;
*[[Module_Atmosphere]]&lt;br /&gt;
*[[Module_InterfaceWaterAir]]&lt;br /&gt;
*[[Coupling_Water-Atmosphere_User_Manual]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Tools]]&lt;br /&gt;
[[Category:Hdf5]]&lt;/div&gt;</summary>
		<author><name>Anatrancoso</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=ConvertToHDF5&amp;diff=3242</id>
		<title>ConvertToHDF5</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=ConvertToHDF5&amp;diff=3242"/>
				<updated>2010-08-06T16:19:22Z</updated>
		
		<summary type="html">&lt;p&gt;Anatrancoso: /* CONVERT WRF FORMAT */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The '''ConvertToHDF5''' is an application which allows the making of several operations, called '''actions''', involving HDF5 files: conversion of data in other formats (e.g. NETCDF) to HDF5, grid interpolation, concatenation of several files.&lt;br /&gt;
&lt;br /&gt;
Running options for this application are specified by the user in a input file named [[ConvertToHDF5#Input file (ConvertToHDF5Action.dat)|'''ConvertToHDF5Action.dat''']]. Several actions can be specified in the same input file, being processed sequentially by the ConvertToHDF5 application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
The operations involving HDF5 files performed by ConvertToHDF5, specified individually by an action, can be organized in [[#file management|file management]], [[#grid interpolation|grid interpolation]] and [[#format conversion|format conversion]]. These types and the respective actions are detailed in the next sections. &lt;br /&gt;
&lt;br /&gt;
The input file specification for each action can be found bellow in the [[#Input file (ConvertToHDF5Action.dat)|Input file (ConvertToHDF5Action.dat)]] section.&lt;br /&gt;
&lt;br /&gt;
===Compilation Settings===&lt;br /&gt;
&lt;br /&gt;
====With Compaq Visual Fortran====&lt;br /&gt;
&lt;br /&gt;
* File -&amp;gt; New -&amp;gt; Fortran Console Application&lt;br /&gt;
* Project -&amp;gt; Add to Project -&amp;gt; Files -&amp;gt; *.f90 (do not add ModuleWRFFormat.f90 and proj4.f90 if you don't want to use [[PROJ4]] library).&lt;br /&gt;
* Project -&amp;gt; Settings:&lt;br /&gt;
** Fortran tab:&lt;br /&gt;
*** Compatibility “Big Endian” to work with MM5 files.&lt;br /&gt;
*** Compilation Diagnostics -&amp;gt; Fortran Standards Checking -&amp;gt; Fortran95.&lt;br /&gt;
*** Preprocessor:&lt;br /&gt;
**** Check FPP.&lt;br /&gt;
**** INCLUDE and USE Paths: path to Libs folder.&lt;br /&gt;
** C/C++ tab:&lt;br /&gt;
*** Preprocessor -&amp;gt; Additional include directories: path to Libs.&lt;br /&gt;
** Link tab:&lt;br /&gt;
*** General -&amp;gt; Object/library modules: kernel32.lib hdf5.lib hdf5_hl.lib hdf5_fortran.lib zlib.lib szlib.lib netcdf.lib netcdf_.lib &lt;br /&gt;
*** Input -&amp;gt; Additional library path: path to Libs.&lt;br /&gt;
* Buil -&amp;gt; Rebuild All&lt;br /&gt;
&lt;br /&gt;
To run this executable, copy ''netcdf.dll'' to its directory.&lt;br /&gt;
To work with large files, compile with: Project -&amp;gt; Settings -&amp;gt; Link tab -&amp;gt; Reserve: 10^6.&lt;br /&gt;
&lt;br /&gt;
===== Compile ModuleWRFFormat =====&lt;br /&gt;
&lt;br /&gt;
To convert [[Meteo|WRF]] files or work with other projection beside UTM and Lambert Conformal, ConvertToHDF5 must be compiled with [[PROJ4]] library. To do that:&lt;br /&gt;
* Same settings as above.&lt;br /&gt;
* Project -&amp;gt; Add to Project -&amp;gt; Files:&lt;br /&gt;
** ModuleWRFFormat.f90&lt;br /&gt;
** Proj4.f90&lt;br /&gt;
* Project -&amp;gt; Settings:&lt;br /&gt;
** Fortran tab -&amp;gt; Predefined Preprocessor symbols: _USE_PROJ4&lt;br /&gt;
** Link tab -&amp;gt; General -&amp;gt; Object/library modules: add libfproj4.lib (Note: ''libfproj4.lib'' and ''proj4.inc'' must be in Libs folder)&lt;br /&gt;
* Build -&amp;gt; Rebuild All.&lt;br /&gt;
&lt;br /&gt;
===File management===&lt;br /&gt;
&lt;br /&gt;
====Glue files====&lt;br /&gt;
This action consists in joining or glue in a single HDF5 file two or more HDF5 files having the same HDF5 data groups and referring to time periods which come in sequence. Both sets of 2D and 3D HDF5 files can be glued.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Glue MOHID Water results files from several runs produced in continuous running of the model, for storage space economy reasons. Can be used to join data from other origins (e.g. results of meteorological models) as long as the HDF5 format is the one supported by MOHID Water.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 files to be glued. &amp;quot;Grid&amp;quot; and &amp;quot;Results&amp;quot; data groups should be equal in all these files.&lt;br /&gt;
&lt;br /&gt;
'''Output:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with glued &amp;quot;Results&amp;quot; data. &amp;quot;Residual&amp;quot; and &amp;quot;Statistics&amp;quot; HDF5 data groups are not copied to the output file since they are time period specific (different values potentially occour in each file). General statistics can be calculated for the glued HDF5 file data using tool [[HDF5Statistics]].&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#GLUES HDF5 FILES|GLUES HDF5 FILES]].&lt;br /&gt;
&lt;br /&gt;
===Grid interpolation===&lt;br /&gt;
&lt;br /&gt;
====Interpolate files====&lt;br /&gt;
This action performs the conversion of one HDF5 file data existing in one 2D or 3D spatial grid to another 2D or 3D spatial grid, creating a new HDF5 file. The interpolation is performed only for the data located a time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
The HDF5 file containing data to be interpolated is called the '''father file'''.&lt;br /&gt;
&lt;br /&gt;
In case of 3D interpolation the application conducts first the horizontal grid interpolation&lt;br /&gt;
(keeping father geometry) and only after it conducts the vertical interpolation (from father geometry to new geometry).&lt;br /&gt;
&lt;br /&gt;
Several types of 2D interpolation are available for use: bilinear, spline 2D and triangulation.&lt;br /&gt;
For vertical interpolation (used in 3D interpolation) can be supplied several polinomial degrees for interpolation.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain an HDF5 file with data for forcing or providing initial conditions for a MOHID Water model, e.g. a meteorological forcing file.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
For 2D/3D interpolation:&lt;br /&gt;
&lt;br /&gt;
- father HDF5 file;&lt;br /&gt;
&lt;br /&gt;
- father horizontal data grid, in a grid data file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
- new horizontal data grid, in a grid data file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
For 3D interpolation also needed:&lt;br /&gt;
&lt;br /&gt;
- father vertical geometry, in a geometry file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
- new vertical geometry, in a geometry file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
- auxiliary horizontal data grid, in a grid data file in the format supported by MOHID; this file is used for horizontal grid interpolation in 3D interpolation operations.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with interpolated data. In case of 3D interpolation also produced an auxiliary HDF5 file with the result of the horizontal grid interpolation, which can be inspected to check if this operation is well performed.&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#INTERPOLATE GRIDS|INTERPOLATE GRIDS]].&lt;br /&gt;
&lt;br /&gt;
====Patch files====&lt;br /&gt;
This action consists in performing an interpolation of HDF5 data between grids, as in action [[#Interpolate files|Interpolate files]], but considering more than one HDF5 file as containing data to be interpolated to the new grid and a priority scale. The interpolation is performed only for the data located in the time window specified by the user. The present version of this action operates only on 2D data.&lt;br /&gt;
&lt;br /&gt;
Each HDF5 file containing data to be interpolated is called a '''father file''' and has an user-attributed '''priority level''' to be respected in the interpolation process: for each new grid cell the ConvertToHDF5 application will look for data first on the Level 1 father file and only in the case this data is inexistent will it look for data in Level 2 file, proceeding in looking for higher level files if no data is found subsequentely.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
To obtain an HDF5 file with data from several HDF5 files each containing data with different spatial resolution and only for a specific part of the new grid. This is, for instance, the case when one is preparing a best resolution meteorological HDF5 file for forcing MOHID Water from several meteorological model domains, having different spatial resolution and span, since the best resolution data is not available for all new grid cells.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
The new horizontal data grid, in a grid data file in the format supported by MOHID, and for each father file:&lt;br /&gt;
&lt;br /&gt;
- level of priority: 1 = maximum priority, priority decreases with increasing level value;&lt;br /&gt;
&lt;br /&gt;
- data grid, in the form of a grid data file in the format supported by MOHID.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with patched data.&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#PATCH HDF5 FILES|PATCH HDF5 FILES]].&lt;br /&gt;
&lt;br /&gt;
===Format conversion===&lt;br /&gt;
&lt;br /&gt;
====Meteorological model data====&lt;br /&gt;
Mohid does not simulate explicitly the atmosphere, but needs information about atmospheric properties in time and space. This requires that atmospheric properties are supplied to MOHID Water in supported formats. These formats can be derived from meteorological data in HDF5 format. Because the results of meteorological models are accessed in different formats conversion is required. &lt;br /&gt;
&lt;br /&gt;
The formats currently convertible to HDF5 in ConvertToHDF5 include the MM5 and the ERA40. These are succintly detailed in the next sections.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''ERA40''=====&lt;br /&gt;
This format refers to the European Centre for Medium-Range Weather Forecasts (ECMWF) 40 years re-analysises results, acessed by site http://data.ecmwf.int/data/d/era40_daily/. This data is available for several meteorological variables with maximum 6 hour periodicity for days in the period from 1957-09-01 to 2002-08-31. &lt;br /&gt;
&lt;br /&gt;
ERA40 data files are supplied by ECMWF in a NetCDF format and with an user-costumized time window, periodicity (time step range from 6 hours to a day) and meteorological properties set. The ERA40 meteorological properties which are recognized by MOHID are presented bellow together with the correspondent MOHID name: &lt;br /&gt;
&lt;br /&gt;
 ---ERA40 NAME---         ---MOHID NAME---&lt;br /&gt;
   sshf                     sensible heat                &lt;br /&gt;
   slhf                     latent heat                  &lt;br /&gt;
   msl                      atmospheric pressure &lt;br /&gt;
   tcc                      cloud cover &lt;br /&gt;
   p10u                     wind velocity X&lt;br /&gt;
   p10v                     wind velocity Y&lt;br /&gt;
   p2t                      air temperature&lt;br /&gt;
   ewss                     wind stress X&lt;br /&gt;
   nsss                     wind stress Y&lt;br /&gt;
&lt;br /&gt;
The standard ConvertToHDF5 action is to convert to HDF5 the data referring to all MOHID Water recognized property available in the ERA40 file, producing an individual HDF5 file for each property. The name of each HDF5 file generated includes the ERA40 meteorological property identificator correspondent to the data contained.&lt;br /&gt;
&lt;br /&gt;
Alternatively, ConvertToHDF5 can copy to a single ASCII file the heading information concerning each meteorological variable considered in the original ERA40 file.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain an HDF5 file with data suitable for being used for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
ERA40 NetCDF file.&lt;br /&gt;
&lt;br /&gt;
'''Output:'''&lt;br /&gt;
&lt;br /&gt;
One HDF5 file for each meteorological property contained in the original NetCDF file.&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT ERA40 FORMAT|CONVERT ERA40 FORMAT]].&lt;br /&gt;
&lt;br /&gt;
=====''Aladin''=====&lt;br /&gt;
This format relates to Aladin meteorological model results. Some of the atmospheric property needed by MOHID Water is present in Aladin output files, enabling to run prediction simulations with MOHID Water when access to Aladin prevision files is available.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts Aladin results files from the original format to HDF5 format, allowing the easy use of these results in the MOHID framework. Conversion is only performed for the MM5 properties and the time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Produce HDF5 meteorological data usable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
Aladin netcdf results file to convert.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
An HDF5 file with Aladin results and a grid data file in MOHID format with the Aladin grid pseudo-information: a fake orography is created of 100 m depth.&lt;br /&gt;
This last file can be used to interpolate the Aladin data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]), for instance to produce an HDF5 file suitable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Compilation:'''&lt;br /&gt;
&lt;br /&gt;
Caution! The ConvertToHDF5 executable must be compiled with the [[Big-endian little-endian|Big-Endian]] option set (see compatibility in the project's settings).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT ALADIN FORMAT|CONVERT ALADIN FORMAT]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''MM5''=====&lt;br /&gt;
This format relates to the Fifth-Generation NCAR / Penn State Mesoscale Model (MM5) output files format. Almost every atmospheric property needed by MOHID Water is present in MM5 output files.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts MM5 results files from the original format to HDF5 format, allowing the easy use of these results in the MOHID framework. Conversion is only performed for the MM5 properties and the time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
Besides the conversion, the application can calculate some properties not contained in&lt;br /&gt;
the MM5 files using the available information: these are wind stress, relative humidity and mean sea level pressure.&lt;br /&gt;
&lt;br /&gt;
For conversion to be completed it is required the horizontal grid information of MM5 results which is available in special TERRAIN files.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Produce HDF5 meteorological data usable to force MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
MM5 results file to convert and MM5 TERRAIN file. The TERRAIN file supplies the MM5 results grid information. &lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
A HDF5 file with MM5 results and a grid data file in MOHID format with the MM5 grid information.&lt;br /&gt;
This last file can be used to interpolate the MM5 data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]), for instance to produce an HDF5 file suitable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Compilation:'''&lt;br /&gt;
&lt;br /&gt;
Caution! The ConvertToHDF5 executable must be compiled with the [[Big-endian little-endian|Big-Endian]] option set (see compatibility in the project's settings).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT MM5 FORMAT|CONVERT MM5 FORMAT]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''WRF''=====&lt;br /&gt;
This format relates to the Weather Research and Forecast model (WRF) output files format. Almost every atmospheric property needed by MOHID Water is present in WRF output files.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts WRF results files from the original format to HDF5 format, allowing the easy use of these results in the MOHID framework. Conversion is only performed for the WRF properties and the time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
Besides the conversion, the application can calculate some properties not contained in&lt;br /&gt;
the WRF files using the available information: these are wind stress, relative humidity and mean sea level pressure.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Produce HDF5 meteorological data usable to force MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
WRF direct output file.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
An HDF5 file with WRF results and a grid data file in MOHID format with the WRF grid information.&lt;br /&gt;
This last file can be used to interpolate the WRF data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]), for instance to produce an HDF5 file suitable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Compilation:'''&lt;br /&gt;
&lt;br /&gt;
Caution! [[PROJ4 | PROJ4]] library is needed! See [[#Compile_ModuleWRFFormat |  Compile_ModuleWRFFormat]]&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT WRF FORMAT|CONVERT WRF FORMAT]].&lt;br /&gt;
&lt;br /&gt;
====Ocean model data====&lt;br /&gt;
Ocean model data, available in diverse formats, can be used by MOHID Water to specify boundary (open ocean boundary and surface), initial conditions or for validation. These uses require that the model data is in HDF5 format and conversion is therefore needed.&lt;br /&gt;
&lt;br /&gt;
Currently the large scale ocean models formats convertible into HDF5 by ConvertToHDF5 includes MERCATOR.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''MERCATOR''=====&lt;br /&gt;
MERCATOR data files are supplied in a NetCDF format and with an user-costumized spatial window and periodicity. Water level and water properties (temperature and salinity) data is available in type T files, velocity component u data is available in type U files and velocity component v data is available in type V files. The type of data of a specific MERCATOR file is generally indicated in the file name.&lt;br /&gt;
&lt;br /&gt;
The standard ConvertToHDF5 action is to convert to HDF5 the data referring to temperature, salinity, water level, component u of velocity and component v of velocity.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain HDF5 MERCATOR data usable for forcing or validation of MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
NetCDF MERCATOR results data files and NetCDF MERCATOR grid data files. It should be provided one grid data file of each type: T, U and V. These are generally provided by the MERCATOR services together with the results files.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
One HDF5 file containing all properties contained in the recognized set of properties (temperature, salinity, water level, velocity u and velocity v) and the correspondent grid data and geometry files, containing respectively the horizontal grid and the vertical discretization of the HDF5 file. The grid data and geometry files can be used afterwards to interpolate the MERCATOR data to another grid and geometry (see [[#Interpolate files|Interpolate files]]).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT MERCATOR FORMAT|CONVERT MERCATOR FORMAT]].&lt;br /&gt;
&lt;br /&gt;
====Climatological data====&lt;br /&gt;
Climatological data can be used in MOHID Water to specify boundary (open ocean boundary and surface), initial conditions or for validation, in case more realistic data (measurements or model) data is unavailable. This data is generally supplied by producers in formats not readly usable by MOHID Water which justifies the existence of a conversion tool.&lt;br /&gt;
&lt;br /&gt;
Two climatological data format conversions are implemented in ConvertToHDF5: Levitus ocean data and Hellerman Rosenstein meteorological data.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''Levitus''=====&lt;br /&gt;
The Levitus climatology provides results for water temperature and salinity.&lt;br /&gt;
The ConvertToHDF5 action converts the climatological data for the properties and spatial window requested by the user. &lt;br /&gt;
Typically, it requires 3 steps to complete the task:&lt;br /&gt;
&lt;br /&gt;
- convert levitus format &lt;br /&gt;
&lt;br /&gt;
- extrapolate the data to the whole levitus domain(required to avoid uncoincidental coastlines) &lt;br /&gt;
&lt;br /&gt;
- interpolate with the model grid(bathymetry)&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain climatological data in HDF5 format to use as boundary forcing and/or initial condition specification in MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
Levitus climatological data files, one per property and per time period (e.g a month).&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with Levitus climatological data, grid data file with the horizontal&lt;br /&gt;
grid of the data and a geometry file with vertical discretization of the data (MOHID formats).&lt;br /&gt;
The grid data and the geometry files can be used to interpolate the climatological data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT LEVITUS FORMAT|CONVERT LEVITUS FORMAT]].&lt;br /&gt;
&lt;br /&gt;
=====''Hellerman Rosenstein''=====&lt;br /&gt;
This is a meteorological climatology providing wind stress. There is a file per wind stress component. Since the data refer to surface values it is a 2D field.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts the climatological data for the properties and spatial window provided by the user.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain climatological data in HDF5 format to use as meteorological forcing in MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
Hellerman Rosenstein climatological data ASCII files, one per wind stress component.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with Hellerman Rosenstein climatological data and grid data file with the horizontal&lt;br /&gt;
grid of the climatological data. This grid data file can be used to interpolate the climatological data from the original horizontal grid to a new grid (see [[#Interpolate files|Interpolate files]]).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT HELLERMAN ROSENSTEIN ASCII|CONVERT HELLERMAN ROSENSTEIN ASCII]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''World Ocean Atlas 2005''=====&lt;br /&gt;
The World Ocean Atlas (WOA) 2005 climatology provides results for water temperature, salinity and several water quality and biology properties.&lt;br /&gt;
&lt;br /&gt;
Description, Action and Input Files are described in a separate page: [[ConvertToHDF5 WOA2005]].&lt;br /&gt;
&lt;br /&gt;
==Input file (ConvertToHDF5Action.dat)==&lt;br /&gt;
===General structure===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt; (block containing instructions for running a specific action) &lt;br /&gt;
 ACTION                    : ... (intended action)&lt;br /&gt;
 ... (action specific instructions)&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : ...&lt;br /&gt;
 ...&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===GLUES HDF5 FILES===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : GLUES HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 3D_FILE                   : 0/1 (0 = 2D file, 1 = 3D file)&lt;br /&gt;
 &lt;br /&gt;
 TIME_GROUP                : ... (Default=&amp;quot;Time&amp;quot;. Other option: &amp;quot;SurfaceTime&amp;quot;.)&lt;br /&gt;
 &lt;br /&gt;
 BASE_GROUP                : ... (Default=&amp;quot;Results&amp;quot;. Other options: &amp;quot;Residual&amp;quot;, &amp;quot;SurfaceResults&amp;quot;.)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 &lt;br /&gt;
 (block of HDF5 data files)&lt;br /&gt;
 &amp;lt;&amp;lt;begin_list&amp;gt;&amp;gt;&lt;br /&gt;
 ... (path/name of HDF5 file with data to be included in glue, one per line, at least two files)&lt;br /&gt;
 ...                      &lt;br /&gt;
 &amp;lt;&amp;lt;end_list&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===INTERPOLATE GRIDS===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION     : ... (type of horizontal interpolation: 1 = Bilinear, 2 = Spline2D,&lt;br /&gt;
                                  3 = Triangulation)&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION_WINDOW      : ... ... ... ... (2D spatial window to consider for interpolation: &lt;br /&gt;
                                              Xmin Ymin Xmax Ymax; default = all domain)&lt;br /&gt;
 &lt;br /&gt;
 START                     : ... (start date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 END                       : ... (end date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D           : 0/1 (0 = 2D interpolation, 1 = 3D interpolation)&lt;br /&gt;
 &lt;br /&gt;
 FATHER_FILENAME           : ... (path/name of input HDF5 file with data to be interpolated)&lt;br /&gt;
 FATHER_GRID_FILENAME      : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization of input HDF5 file)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of output HDF5 file to be created)&lt;br /&gt;
 NEW_GRID_FILENAME         : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization intended for output HDF5 file)&lt;br /&gt;
 &lt;br /&gt;
 EXTRAPOLATE_2D            : 0/1/2/3/4/5 (2D extrapolation: 0=no extrapolation, 1=medium&lt;br /&gt;
                                      triangulation, 2=high triangulation, &lt;br /&gt;
                                      3=nearest neighbour, 4=nearest cell, &lt;br /&gt;
                                      5=constant value)&lt;br /&gt;
 &lt;br /&gt;
 EXTRAPOLATE_VALUE         : ... (name of the value to extrapolate to when EXTRAPOLATE_2D is&lt;br /&gt;
                                  set to constant value (5))&lt;br /&gt;
 &lt;br /&gt;
 DO_NOT_BELIEVE_MAP        : 0/1 (0=consider input HDF5 file map, 1=do not consider input HDF5&lt;br /&gt;
                                  file map)&lt;br /&gt;
 &lt;br /&gt;
 BASE_GROUP                : ... (name of base group of HDF5 variables containing data to be &lt;br /&gt;
                                  interpolated; default is &amp;quot;/Results&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 (if INTERPOLATION3D : 1 also required:)&lt;br /&gt;
 FATHER_GEOMETRY           : ... (path/name of file (MOHID format) with vertical discretization&lt;br /&gt;
                                  of input HDF5 file)&lt;br /&gt;
 NEW_GEOMETRY              : ... (path/name of file (MOHID format) with vertical discretization&lt;br /&gt;
                                  intended for output HDF5 file)&lt;br /&gt;
 POLI_DEGREE               : 1/... (degree of vertical interpolation: 1=linear, ...)&lt;br /&gt;
 &lt;br /&gt;
 AUX_GRID_FILENAME         : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization intended for auxiliar output HDF5 file;&lt;br /&gt;
                                  default is file provided in NEW_GRID_FILENAME)&lt;br /&gt;
 &lt;br /&gt;
 AUX_OUTPUTFILENAME        : ... (path/name of auxiliar output HDF5 file to contain result&lt;br /&gt;
                                  of horizontal grid interpolation)   &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - the file indicated in AUX_GRID_FILENAME can be different from the one indicated in&lt;br /&gt;
   NEW_GRID_FILENAME in terms of bathymetry, while the horizontal grid should be, commonly, the&lt;br /&gt;
   same: this altered bathymetry can be used to extend the water column in the original data so&lt;br /&gt;
   that the process of vertical interpolation is done easily;&lt;br /&gt;
 &lt;br /&gt;
 - in case of INTERPOLATION3D : 1, ConvertToHDF5 can generate new versions of bathymetry which &lt;br /&gt;
   are consistent with the geometry definition (extension is '.new'); there are possibly three&lt;br /&gt;
   bathymetry changes referring to father grid, new grid and aux grid (the same bathymetry is&lt;br /&gt;
   not altered twice); although initially new and aux grid are the same they can result &lt;br /&gt;
   different because of bathymetry changes;&lt;br /&gt;
 &lt;br /&gt;
 - in case the new geometry is 2D and father geometry is 3D then POLI_DEGREE : 1 &lt;br /&gt;
   (linear interpolation) should be used;&lt;br /&gt;
 &lt;br /&gt;
 - EXTRAPOLATE_2D : 1/2/3/4/5 should be considered if it is expected that the coast line is not&lt;br /&gt;
   coincidental in the father and new grids, to avoid lack of data in the interpolation&lt;br /&gt;
   process; extrapolation is performed for all cells even the land cells; &lt;br /&gt;
 &lt;br /&gt;
 - in case of DO_NOT_BELIEVE_MAP : 1 the application generates a map based on cells where&lt;br /&gt;
   interpolation results are available; this causes that if EXTRAPOLATE_2D : 1/2/3/4/5 is used&lt;br /&gt;
   the AUX_GRID_FILENAME should not have land cells in order for the new map to be concurrent&lt;br /&gt;
   with the result of extrapolation and avoid errors generation, specially if INTERPOLATION3D :&lt;br /&gt;
   1 is considered.&lt;br /&gt;
&lt;br /&gt;
===PATCH HDF5 FILES===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : PATCH HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION     : ... (type of interpolation: 3 = Triangulation, default and only&lt;br /&gt;
                                  one implemented)&lt;br /&gt;
 &lt;br /&gt;
 START                     : ... (start date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 END                       : ... (end date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 &lt;br /&gt;
 (block for each father HDF5 file, should be at least two)&lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                     : ... (integer priority level: 1 = highest, increase for lower&lt;br /&gt;
                                  priority)&lt;br /&gt;
 FATHER_FILENAME           : ... (path/name of input HDF5 file with data to be interpolated)&lt;br /&gt;
 FATHER_GRID_FILENAME      : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization of input HDF5 file)&lt;br /&gt;
 N_REMOVE_FRAME            : 0   (width, in number of cells, of frame to remove)&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of output HDF5 file to be created)&lt;br /&gt;
 NEW_GRID_FILENAME         : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization intended for output HDF5 file)&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CONVERT ERA40 FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT ERA40 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                  : ... (path/name of ERA40 NetCDF file)&lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
                                 (root of name for all files produced)&lt;br /&gt;
 &lt;br /&gt;
 CONVERT_TO_ASCII          : 0/1 (1 = convert variable heading info for ASCII file; 0 = default)&lt;br /&gt;
 CONVERT_TO_HDF5           : 0/1 (1 = convert to HDF5 file; 0 = default)&lt;br /&gt;
 GRIDTO180                 : 0/1 (1 = convert grid from [0 360] to [-180 180], 0 = default)&lt;br /&gt;
 &lt;br /&gt;
 XX_VARIABLE               : ... (name of longitude variable in the input file: usual name &lt;br /&gt;
                                  is &amp;quot;longitude&amp;quot;)&lt;br /&gt;
 YY_VARIABLE               : ... (name of longitude variable in the input file: usual name &lt;br /&gt;
                                  is &amp;quot;latitude&amp;quot;)&lt;br /&gt;
 TIME_VARIABLE             : ... (name of time variable in the input file: usual name is&lt;br /&gt;
                                  &amp;quot;time&amp;quot;)&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - either CONVERT_TO_ASCII : 1 or CONVERT_TO_HDF5 : 1 must be chosen for any action to be&lt;br /&gt;
 performed by ConvertToHDF5;&lt;br /&gt;
 &lt;br /&gt;
 - when CONVERT_TO_HDF5 : 1 an HDF5 file is produced for every variable contained in the&lt;br /&gt;
 original ERA40 file; the name of each file is composed of the name indicated on FILENAME&lt;br /&gt;
 concatenated with the ERA40 variable identifier;&lt;br /&gt;
 &lt;br /&gt;
 - to the XX_VARIABLE, YY_VARIABLE and TIME_VARIABLE keywords should generally be  &lt;br /&gt;
 specified &amp;quot;longitude&amp;quot;, &amp;quot;latitude&amp;quot; and &amp;quot;time&amp;quot;, respectively; the option to&lt;br /&gt;
 include as keywords was made only to make the application robust to future variable name&lt;br /&gt;
 changes.&lt;br /&gt;
&lt;br /&gt;
===CONVERT ALADIN FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT ALADIN FORMAT&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : aladin.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : aladin_griddata.dat&lt;br /&gt;
 &lt;br /&gt;
 !Put here the name of any netcdf file for grid-data generation's sake.&lt;br /&gt;
 INPUT_GRID_FILENAME      :   D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKCLOUD_OPASYMP_19723_20088.nc&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 (path to aladin netcdf file)\ALADIN_BULKIR_OPASYMP_19723_20088.nc&lt;br /&gt;
 ...&lt;br /&gt;
 &amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - the name of each Aladin property to convert in &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;...&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt; block must conform to the following variables&lt;br /&gt;
 &lt;br /&gt;
           ---ALADIN NAME---    ---MOHID NAME---&lt;br /&gt;
             soclotot            CloudCover_&lt;br /&gt;
             sohumrel            RelativeHumidity_&lt;br /&gt;
             sofluxir            NonSolarFlux_&lt;br /&gt;
             sosspres            AtmosphericPressure_&lt;br /&gt;
             sosolarf            SolarRadiation_&lt;br /&gt;
             sotemair            AirTemperature_&lt;br /&gt;
             sowinmod            WindModulus_&lt;br /&gt;
             sowaprec            Precipitation_&lt;br /&gt;
             sozotaux            WindStressX_&lt;br /&gt;
             sometauy            WindStressY_&lt;br /&gt;
             sowindu10           WindVelocityX_&lt;br /&gt;
             sowindv10           WindVelocityY_&lt;br /&gt;
&lt;br /&gt;
===CONVERT MM5 FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT MM5 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                  : ... (path/name of MM5 file)&lt;br /&gt;
 TERRAIN_FILENAME          : ... (path/name of MM5 TERRAIN file)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME               : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME         : ... (path/name of grid data file with horizontal grid of MM5 data to be created)&lt;br /&gt;
 &lt;br /&gt;
 COMPUTE_WINDSTRESS           : 0/1 (1 = compute and write wind stress field; 0 = default)&lt;br /&gt;
 COMPUTE_WINDMODULUS          : 0/1 (1 = compute wind modulus; 0 = default)&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY    : 0/1 (1 = compute and write 2-meter relative humidity field; 0 = default)&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY_3D : 0/1 (1 = compute and write 3D relative humidity field; 0 = default)&lt;br /&gt;
 COMPUTE_PRECIPITATION        : 0/1 (1 = compute and write precipitation field; 0 = default)&lt;br /&gt;
 COMPUTE_MSLP                 : 0/1 (1 = compute and write mean sea level pressure field; 0 = default)&lt;br /&gt;
 &lt;br /&gt;
 WRITE_XYZ                    : 0/1 (1 = write xyz center grid cells; 0 = default)&lt;br /&gt;
 WRITE_TERRAIN                : 0/1 (1 = write MM5 TERRAIN fields; 0 = default)&lt;br /&gt;
 &lt;br /&gt;
 START                        : ... (start date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 END                          : ... (end date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
  &lt;br /&gt;
 (block of MM5 properties to convert)&lt;br /&gt;
 &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;&lt;br /&gt;
 ... (name of MM5 property to convert do HDF5 format, one per line)&lt;br /&gt;
 ... &lt;br /&gt;
 &amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - the name of each MM5 property to convert in &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;...&amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt; block must&lt;br /&gt;
 conform to the MOHID designation specified in code of ModuleGlobalData; the correspondence is &lt;br /&gt;
 the following (see [[Module_InterfaceWaterAir]] for a more detailed explanation).&lt;br /&gt;
 &lt;br /&gt;
           ---MM5 NAME---    ---MOHID NAME---&lt;br /&gt;
             T2             air temperature&lt;br /&gt;
             PSTARCRS       atmospheric pressure&lt;br /&gt;
             U10            wind velocity X&lt;br /&gt;
             V10            wind velocity Y&lt;br /&gt;
             UST            wind shear velocity&lt;br /&gt;
             LHFLUX         latent heat&lt;br /&gt;
             SWDOWN         sensible heat&lt;br /&gt;
             SWDOWN         solar radiation&lt;br /&gt;
             LWDOWN         infrared radiation&lt;br /&gt;
             SWOUT          top outgoing shortwave radiation&lt;br /&gt;
             LWOUT          top outgoing longwave radiation&lt;br /&gt;
             SOIL T 1       soil temperature layer 1&lt;br /&gt;
             SOIL T 1       soil temperature layer 2&lt;br /&gt;
             SOIL T 1       soil temperature layer 3&lt;br /&gt;
             SOIL T 1       soil temperature layer 4&lt;br /&gt;
             SOIL T 1       soil temperature layer 5&lt;br /&gt;
             SOIL T 1       soil temperature layer 6&lt;br /&gt;
             Q2             2-meter mixing ratio&lt;br /&gt;
             TSEASFC        sea water temperature&lt;br /&gt;
             PBL HGT        PBL height&lt;br /&gt;
             PBL REGIME     PBL regime&lt;br /&gt;
             RAIN CON       accumulated convective precipitation        (cm)&lt;br /&gt;
             RAIN NON       accumulated non-convective precipitation    (cm)&lt;br /&gt;
             GROUND T       ground temperature&lt;br /&gt;
             RES TEMP       infinite reservoir slab temperature&lt;br /&gt;
             U              wind velocity X_3D&lt;br /&gt;
             V              wind velocity Y_3D&lt;br /&gt;
             W              wind velocity Z_3D&lt;br /&gt;
             T              air temperature_3D&lt;br /&gt;
             PP             atmospheric pressure_3D&lt;br /&gt;
             Q              mixing ratio_3D&lt;br /&gt;
             CLW            cloud water mixing ratio_3D&lt;br /&gt;
             RNW            rain water mixing ratio_3D&lt;br /&gt;
             ICE            cloud ice mixing ratio_3D&lt;br /&gt;
             SNOW           snow mixing ratio_3D&lt;br /&gt;
             RAD TEND       atmospheric radiation tendency_3D&lt;br /&gt;
&lt;br /&gt;
===CONVERT WRF FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                       : CONVERT WRF FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                     : ... (path/name of WRF file)&lt;br /&gt;
 OUTPUTFILENAME               : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME         : ... (path/name of grid data file with horizontal grid of WRF data&lt;br /&gt;
                                     to be created)&lt;br /&gt;
 &lt;br /&gt;
 COMPUTE_WINDSTRESS           : 0/1 (1 = compute and write wind stress field; 0 = default)&lt;br /&gt;
 COMPUTE_WINDMODULUS          : 0/1 (1 = compute wind modulus; 0 = default)&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY    : 0/1 (1 = compute and write 2-meter relative humidity field; 0 = default)&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY_3D : 0/1 (1 = compute and write 3D relative humidity field; 0 = default)&lt;br /&gt;
 COMPUTE_PRECIPITATION        : 0/1 (1 = compute and write precipitation field; 0 = default)&lt;br /&gt;
 COMPUTE_MSLP_MM5             : 0/1 (1 = compute mean sea level pressure with MM5toGrads algorithm; 0 = default)&lt;br /&gt;
 COMPUTE_MSLP_WRF             : 0/1 (1 = compute mean sea level pressure with ARWPost algorithm; 0 = default)&lt;br /&gt;
 &lt;br /&gt;
 WRITE_XYZ                    : 0/1 (1 = write xyz center grid cells; 0 = default)&lt;br /&gt;
 WRITE_TERRAIN                : 0/1 (1 = write MM5 TERRAIN fields; 0 = default)&lt;br /&gt;
 OUTPUT_DT                    : real (DT interval in seconds between each output; default = 0.0)&lt;br /&gt;
 &lt;br /&gt;
 START                        : ... (start date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 END                          : ... (end date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
  &lt;br /&gt;
 (block of properties to convert)&lt;br /&gt;
 &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;&lt;br /&gt;
 ... (name of property to convert do HDF5 format, one per line)&lt;br /&gt;
 ... &lt;br /&gt;
 &amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
  &lt;br /&gt;
 - the name of each property to convert in &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;...&amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt; block must conform to the MOHID &lt;br /&gt;
   designation specified in code of ModuleGlobalData; the correspondence to WRF is in function &lt;br /&gt;
   VariableIsToRead in ModuleWRFFormat. Conversion is not direct since WRF outputs tendencies and not  &lt;br /&gt;
   total values. &lt;br /&gt;
 &lt;br /&gt;
 - Caution: This action is not extensively tested.&lt;br /&gt;
&lt;br /&gt;
===CONVERT MERCATOR FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT MERCATOR FORMAT&lt;br /&gt;
 &lt;br /&gt;
 READ_OPTION               : 1/2/3/4 (version of MERCATOR files)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : ... (path/name of grid data with horizontal discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME  : ... (path/name of geometry file with vertical discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 &lt;br /&gt;
 (if READ_OPTION : 1:)&lt;br /&gt;
 BASE_BULLETIN             : ...&lt;br /&gt;
 DATES_FILE                : ...&lt;br /&gt;
 NUM_DATES                 : ... &lt;br /&gt;
 &lt;br /&gt;
 (if READ_OPTION : 2/3:)&lt;br /&gt;
 INPUT_GRID_FILENAME       : ... (path/name of file with horizontal discretization of water&lt;br /&gt;
                                  properties and water level data)&lt;br /&gt;
 (if READ_OPTION : 2:)&lt;br /&gt;
 INPUT_GRID_FILENAME_U     : ... (path/name of file with horizontal discretization of velocity&lt;br /&gt;
                                  component U data)&lt;br /&gt;
 INPUT_GRID_FILENAME_V     : ... (path/name of file with horizontal discretization of velocity&lt;br /&gt;
                                  component V data)&lt;br /&gt;
 &lt;br /&gt;
 (if READ_OPTION : 3:)&lt;br /&gt;
 INPUT_BATHY_FILENAME      : ... (path/name of file with bathymetry)&lt;br /&gt;
     &lt;br /&gt;
 (if READ_OPTION : 3/4:)&lt;br /&gt;
 CALC_BAROTROPIC_VEL       : 0/1 (1 = calculate barotropic velocity, 0 = not calculate; &lt;br /&gt;
                                  default = 0)&lt;br /&gt;
 &lt;br /&gt;
 (if CALC_BAROTROPIC_VEL : 1 and READ_OPTION : 3:)&lt;br /&gt;
 INPUT_MESH_ZGRID_FILENAME : ... (path/name of file with information about layers ticknesses)&lt;br /&gt;
 &lt;br /&gt;
 (block of MERCATOR data files)&lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 ... (path/name of MERCATOR NetCDF data file, one per line, can be several)&lt;br /&gt;
 ... &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CONVERT LEVITUS FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT LEVITUS FORMAT&lt;br /&gt;
  &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : ... (path/name of grid data with horizontal discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME  : ... (path/name of geometry file with vertical discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 &lt;br /&gt;
 PERIODICITY               : ... (periodicity of Levitus data: &amp;quot;monthly&amp;quot;/&amp;quot;annual&amp;quot;; default is&lt;br /&gt;
                                  &amp;quot;monthly&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 SPATIAL_RESOLUTION        : ... (spatial resolution (degrees) of horizontal Levitus grid)&lt;br /&gt;
 &lt;br /&gt;
 FILL_VALUE                : ... (real value identificator for missing data; default is &lt;br /&gt;
                                  &amp;quot;-99.999900&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 (definition of spatial window to be present in output HDF5 file)&lt;br /&gt;
 LOWER_LEFT_CORNER         : ... ... (longitude and latitude (degrees) of south west corner)&lt;br /&gt;
 UPPER_RIGHT_CORNER        : ... ... (longitude and latitude (degrees) of north east corner)&lt;br /&gt;
 &lt;br /&gt;
 (block for each water property to be present in output HDF5 file, can be several)&lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                      : ... (name of property)&lt;br /&gt;
 ANNUAL_FILE               : ... (path/name of Levitus annual file)&lt;br /&gt;
 &lt;br /&gt;
 (block of Levitus data files)&lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 ... (path/name of Levitus data file (e.g. a monthly data file), one per line, can be several)&lt;br /&gt;
 ... &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CONVERT HELLERMAN ROSENSTEIN ASCII===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT HELLERMAN ROSENSTEIN ASCII&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : ... (path/name of grid data with horizontal discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
  &lt;br /&gt;
 PERIODICITY               : ... (periodicity of Hellerman Rosenstein data: &amp;quot;monthly&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 SPATIAL_RESOLUTION        : ... (spatial resolution (degrees) of horizontal Hellerman&lt;br /&gt;
                                  Rosenstein grid: default and only allowed value is &amp;quot;2.&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 FILL_VALUE                : ... (real value identificator for missing data; default is &lt;br /&gt;
                                  &amp;quot;-99.999900&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 (definition of spatial window to be present in output HDF5 file)&lt;br /&gt;
 LOWER_LEFT_CORNER         : ... ... (longitude and latitude (degrees) of south west corner)&lt;br /&gt;
 UPPER_RIGHT_CORNER        : ... ... (longitude and latitude (degrees) of north east corner)&lt;br /&gt;
   &lt;br /&gt;
 (block for each Hellerman Rosenstein data file)&lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                      : ... (name of property: &amp;quot;wind stress X&amp;quot;/&amp;quot;wind stress Y&amp;quot;)&lt;br /&gt;
 FILE                      : ... (path/name Hellerman Rosenstein file)&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Samples==&lt;br /&gt;
All sample files are named ''ConvertToHDF5Action.dat''.&lt;br /&gt;
&lt;br /&gt;
===Glue several MOHID(.hdf5) files===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : GLUES HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : SurfaceHydro_OP.hdf5&lt;br /&gt;
  &lt;br /&gt;
 &amp;lt;&amp;lt;begin_list&amp;gt;&amp;gt;&lt;br /&gt;
 D:\Projectos\SurfaceHydrodynamic_21.hdf5&lt;br /&gt;
 D:\Projectos\SurfaceHydrodynamic_22.hdf5&lt;br /&gt;
 &amp;lt;&amp;lt;end_list&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Interpolate 2D MOHID(.hdf5) files to a new grid===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION    : 1&lt;br /&gt;
 FATHER_FILENAME          : D:\Projectos\MohidRun\test\res\Lagrangian_1.hdf5 &lt;br /&gt;
 OUTPUTFILENAME           : OilSpillThickness_GridRegular.hdf5&lt;br /&gt;
  &lt;br /&gt;
 START                    : 2006 6 21 17 22 30&lt;br /&gt;
 END                      : 2006 6 22 17 22 0&lt;br /&gt;
  &lt;br /&gt;
 FATHER_GRID_FILENAME     : D:\Projectos\MohidRun\GeneralData\batim\Tagus.dat_A&lt;br /&gt;
 NEW_GRID_FILENAME        : TagusConstSpacing.dat&lt;br /&gt;
  &lt;br /&gt;
 BASE_GROUP               : /Results/Oil/Data_2D&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Interpolate 3D MOHID(.hdf5) files to a new grid===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION   : 1&lt;br /&gt;
 FATHER_FILENAME         : D:\Projectos\MohidRun\test\res\Lagrangian_1.hdf5 &lt;br /&gt;
 OUTPUTFILENAME          : OilSpillThickness_GridRegular.hdf5&lt;br /&gt;
 &lt;br /&gt;
 START                   : 2006 6 21 17 22 30&lt;br /&gt;
 END                     : 2006 6 22 17 22 0&lt;br /&gt;
 &lt;br /&gt;
 FATHER_GRID_FILENAME    : D:\Projectos\MohidRun\GeneralData\batim\Tagus.dat_A&lt;br /&gt;
 NEW_GRID_FILENAME       : TagusConstSpacing.dat&lt;br /&gt;
 &lt;br /&gt;
 BASE_GROUP              : /Results/Oil/Data_2D&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D         : 1&lt;br /&gt;
 FATHER_GEOMETRY         : D:\Projectos\MohidRun\test\data\Geometry_1.dat&lt;br /&gt;
 NEW_GEOMETRY            : TagusGeometry.dat&lt;br /&gt;
 AUX_GRID_FILENAME       : TagusConstSpacing.dat&lt;br /&gt;
 AUX_OUTPUTFILENAME      : Aux_GridRegular.hdf5&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Patch several MOHID(.hdf5) files to a new grid===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION : PATCH HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION   : 3&lt;br /&gt;
 &lt;br /&gt;
 START                   : 2005 2 28 13 0 0&lt;br /&gt;
 END                     : 2005 3 1 13 0 0&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                   : 3&lt;br /&gt;
 FATHER_FILENAME         : K:\MM5output\2005022812_2005030712\MM5OUT_D1.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME    : K:\MM5output\2005022812_2005030712\grid1.dat&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                   : 2&lt;br /&gt;
 FATHER_FILENAME         : K:\MM5output\2005022812_2005030712\MM5OUT_D2.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME    : K:\MM5output\2005022812_2005030712\grid2.dat&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                   : 1&lt;br /&gt;
 FATHER_FILENAME         : K:\MM5output\2005022812_2005030712\MM5OUT_D3.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME    : K:\MM5output\2005022812_2005030712\grid3.dat&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME          : MM5Forcing.hdf5&lt;br /&gt;
 NEW_GRID_FILENAME       : K:\Simula\GeneralData\Batim\CostaPortuguesa.dat&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert an ERA40 file to MOHID(.hdf5)===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                  : CONVERT ERA40 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                : D:\Aplica\ERA40\1971ERA1973.nc&lt;br /&gt;
 OUTPUTFILENAME          : D:\Aplica\ERA40\1971ERA1973T2&lt;br /&gt;
 &lt;br /&gt;
 CONVERT_TO_ASCII        : 0&lt;br /&gt;
 CONVERT_TO_HDF5         : 1&lt;br /&gt;
 &lt;br /&gt;
 XX_VARIABLE             : longitude&lt;br /&gt;
 YY_VARIABLE             : latitude&lt;br /&gt;
 TIME_VARIABLE           : time&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert a MM5 file to MOHID(.hdf5)===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                  : CONVERT MM5 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                : K:\MM5output\DataCenter\Modelos\Meteo_IST\Fev2005\MMOUT_D3&lt;br /&gt;
 TERRAIN_FILENAME        : K:\MM5output\DataCenter\Modelos\Meteo_IST\Fev2005\TERRAIN_D3&lt;br /&gt;
 OUTPUT_GRID_FILENAME    : K:\MM5output\DataCenter\Modelos\Meteo_IST\Fev2005\grid3.dat&lt;br /&gt;
 OUTPUTFILENAME          : K:\MM5output\DataCenter\Modelos\Meteo_IST\Fev2005\MM5_D3.hdf5&lt;br /&gt;
 &lt;br /&gt;
 COMPUTE_WINDSTRESS        : 0&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY : 1&lt;br /&gt;
 WRITE_XYZ                 : 0&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;&lt;br /&gt;
 solar radiation&lt;br /&gt;
 air temperature&lt;br /&gt;
 wind velocity X&lt;br /&gt;
 wind velocity Y&lt;br /&gt;
 sensible heat&lt;br /&gt;
 latent heat&lt;br /&gt;
 atmospheric pressure&lt;br /&gt;
 sea water temperature&lt;br /&gt;
 &amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert Mercator-Ocean(.nc) to MOHID(.hdf5)===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : CONVERT MERCATOR FORMAT&lt;br /&gt;
 &lt;br /&gt;
 READ_OPTION              : 2&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : Psy2v2r1v_R20060628/MercatorR20060628.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME     : Psy2v2r1v_R20060628/MercatorGridR20060628.dat&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME : Psy2v2r1v_R20060628/MercatorGeometryR20060628.dat&lt;br /&gt;
 &lt;br /&gt;
 INPUT_GRID_FILENAME      : GridFiles/ist_meteog-gridT.nc&lt;br /&gt;
 INPUT_GRID_FILENAME_U    : GridFiles/ist_meteog-gridU.nc&lt;br /&gt;
 INPUT_GRID_FILENAME_V    : GridFiles/ist_meteog-gridV.nc&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 Psy2v2r1v_R20060628/ist_meteog-mercatorPsy2v2r1v_T_MEAN_ANA_20060621_R20060628.nc&lt;br /&gt;
 Psy2v2r1v_R20060628/ist_meteog-mercatorPsy2v2r1v_T_MEAN_ANA_20060622_R20060628.nc&lt;br /&gt;
 Psy2v2r1v_R20060628/ist_meteog-mercatorPsy2v2r1v_T_MEAN_ANA_20060623_R20060628.nc&lt;br /&gt;
 &amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert Levitus format to MOHID(.hdf5) and interpolate grid===&lt;br /&gt;
==== Convert ====&lt;br /&gt;
First convert the Levitus ASCII format to a raw HDF5 format:&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : CONVERT LEVITUS FORMAT&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : Levitus.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME     : LevitusGrid.dat&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME : LevitusGeometry.dat&lt;br /&gt;
 &lt;br /&gt;
 PERIODICITY              : monthly&lt;br /&gt;
 SPATIAL_RESOLUTION       : 0.25&lt;br /&gt;
 FILL_VALUE               : -99.9999&lt;br /&gt;
 &lt;br /&gt;
 LOWER_LEFT_CORNER        : -16.0  31&lt;br /&gt;
 UPPER_RIGHT_CORNER       :   1.   40&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : salinity&lt;br /&gt;
 ANNUAL_FILE              : DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s000hr.obj&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s001&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s002&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s003&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s004&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s005&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s006&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s007&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s008&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s009&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s010&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s011&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s012&lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : temperature&lt;br /&gt;
 ANNUAL_FILE              : DataCenter\DadosBase\Ocean\Levitus\Data\Temp\t000hr.obj&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t001&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t002&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t003&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t004&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t005&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t006&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t007&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t008&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t009&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t010&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t011&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t012&lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Extrapolate ====&lt;br /&gt;
Then extrapolate the data (still in the raw HDF5 format):&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION    : 1&lt;br /&gt;
 &lt;br /&gt;
 FATHER_FILENAME          : Levitus.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME     : LevitusGrid.dat&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : LeviTusAllPointsWithData.hdf5&lt;br /&gt;
 NEW_GRID_FILENAME        : LevitusGrid.dat&lt;br /&gt;
 &lt;br /&gt;
 START                    : -9999 1  1 0 0 0&lt;br /&gt;
 END                      : -9999 12 1 0 0 0&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D          : 1&lt;br /&gt;
 FATHER_GEOMETRY          : LevitusGeometry.dat&lt;br /&gt;
 NEW_GEOMETRY             : LevitusGeometry.dat&lt;br /&gt;
 AUX_GRID_FILENAME        : LevitusGrid.dat&lt;br /&gt;
 AUX_OUTPUTFILENAME       : AuxLeviTusAllPointsWithData.hdf5&lt;br /&gt;
 &lt;br /&gt;
 POLI_DEGREE              : 3&lt;br /&gt;
 DO_NOT_BELIEVE_MAP       : 1&lt;br /&gt;
 EXTRAPOLATE_2D           : 2&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Interpolate ====&lt;br /&gt;
Finally, interpolate to the final grid and geometry (same as the [[#Interpolate 3D MOHID(.hdf5) files to a new grid| Interpolate 3D sample]]):&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION    : 1&lt;br /&gt;
 FATHER_FILENAME          : LeviTusAllPointsWithData.hdf5&lt;br /&gt;
 OUTPUTFILENAME           : CadizMonthlyLevitus.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME     : LevitusGrid.dat&lt;br /&gt;
 NEW_GRID_FILENAME        : Algarve0.02SigmaSmooth_V3_CartMoreLayers.dat&lt;br /&gt;
 &lt;br /&gt;
 START                    : -9999 1  1 0 0 0&lt;br /&gt;
 END                      : -9999 12 1 0 0 0&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D          : 1&lt;br /&gt;
 FATHER_GEOMETRY          : LevitusGeometry.dat&lt;br /&gt;
 NEW_GEOMETRY             : Geometry_1.dat&lt;br /&gt;
 AUX_OUTPUTFILENAME       : AuxCadizMonthlyLevitus.hdf5&lt;br /&gt;
 AUX_GRID_FILENAME        : Aux12km.dat&lt;br /&gt;
 &lt;br /&gt;
 POLI_DEGREE              : 3&lt;br /&gt;
 DO_NOT_BELIEVE_MAP       : 1&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that the programme may construct a new bathymetry twice. Use this bathymetry only on the AUX_GRID_FILENAME keyword.&lt;br /&gt;
&lt;br /&gt;
===Convert Hellerman Rosenstein ASCII format to MOHID(.hdf5)  ===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : CONVERT HELLERMAN ROSENSTEIN ASCII&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : ClimatologicWindStress.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME     : ClimatologicWindStressGrid.dat&lt;br /&gt;
 &lt;br /&gt;
 PERIODICITY              : monthly&lt;br /&gt;
 SPATIAL_RESOLUTION       : 2.&lt;br /&gt;
 FILL_VALUE               : -99.9999&lt;br /&gt;
 &lt;br /&gt;
 LOWER_LEFT_CORNER        : -180  -90&lt;br /&gt;
 UPPER_RIGHT_CORNER       : 180  90&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : wind stress X&lt;br /&gt;
 FILE                     : D:\Aplica\Dados\Hellerman_Rosenstein\TAUXX.DAT&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : wind stress Y&lt;br /&gt;
 FILE                     : D:\Aplica\Dados\Hellerman_Rosenstein\TAUYY.DAT&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert ALADIN(.nc) format to MOHID(.hdf5)===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT ALADIN FORMAT&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : aladin.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : aladin_griddata.dat&lt;br /&gt;
 &lt;br /&gt;
 !Put here the name of any netcdf file for grid-data generation's sake.&lt;br /&gt;
 INPUT_GRID_FILENAME      :   D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKCLOUD_OPASYMP_19723_20088.nc&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKIR_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKPRES_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKSOLAR_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKTAIR_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKWIND_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_FLUXPRE_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_STRESSU_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_STRESSV_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_U10_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_V10_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKCLOUD_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKHUMI_OPASYMP_19723_20088.nc&lt;br /&gt;
 &amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== OceanColor modules compilation ==&lt;br /&gt;
Compiling the [[ConvertToHDF5]] tool with the OceanColor modules is more complicated than one might expect. A solution is proposed here for a release version using the Compaq Visual Fortran 6.6c. The difficulties rise because C code is embedded with a fortran interface and also, extra libraries such as hdf4 are required.&lt;br /&gt;
&lt;br /&gt;
=== Pre-requisites ===&lt;br /&gt;
&lt;br /&gt;
This is a list of prerequisites to successfully compile the tool:&lt;br /&gt;
*Compaq Visual Fortran 6.5 with patch 6.6c,&lt;br /&gt;
*VS .NET 2003 (Vc7 in particular),&lt;br /&gt;
*Hdf5 libraries ('''hdf5.lib''' '''hdf5_fortran.lib''' '''hdf5_hl.lib'''),&lt;br /&gt;
*Netcdf libraries ('''netcdf.lib''' '''netcdf_.lib'''),&lt;br /&gt;
*Hdf4 libraries ('''hd421.lib''', '''hm421.lib'''),&lt;br /&gt;
*szlib, zlib and jpeg libraries ('''szlib.lib''', '''zlib.lib''' and '''libjpeg.lib'''),&lt;br /&gt;
*the fortran source files ('''ModuleConvertModisL2.F90 ModuleConvertModisL3.F90 ModuleConvertOceanColorL2.F90'''),&lt;br /&gt;
*the C source files and their fortran interface files ('''readL2scan.c readL2Seadas.c''' and '''cdata.f crossp.f fgeonav.f''').&lt;br /&gt;
&lt;br /&gt;
=== CVF IDE configuration ===&lt;br /&gt;
# Configure everything as specified in [[Compiling with CVF]].&lt;br /&gt;
# Add the source files listed in the prerequisites above to the source files listing.&lt;br /&gt;
# Go to '''Tools--&amp;gt;Options...--&amp;gt;Directories'''. There, add the '''$DOTNET2K3/Vc7/bin''' to the '''Executable files''''; the '''$DOTNET2K3/Vc7/include''' and '''$DOTNET2K3/Vc7/PlatformSDK/include''' to the '''Include files'''; and finally, the '''$DOTNET2K3/Vc7/lib''', '''$DOTNET2K3/Vc7/PlatformSDK/lib''' and  '''$DOTNET2K3/Vc7/PlatformSDK/bin''' to the '''Library files'''.&lt;br /&gt;
# Go to '''Projects--&amp;gt;Settings--&amp;gt;Release--&amp;gt;Link--&amp;gt;Input'''. There, add the following libraries: '''netcdf.lib netcdf_.lib hd421.lib hm421.lib libjpeg.lib'''. (Make sure the hdf5 libraries as well as the szlib and zlib libraries are already mentioned).&lt;br /&gt;
&lt;br /&gt;
=== Troubleshoots ===&lt;br /&gt;
'''Q: I get unresolved external references during linkage, but I have all the libraries mentioned above included. What should I do?'''&lt;br /&gt;
&lt;br /&gt;
A: Unresolved external references can come out for two reasons:&lt;br /&gt;
#you didn't specified all the libraries required or all the paths for the default libraries or,&lt;br /&gt;
#[http://en.wikipedia.org/wiki/Name_decoration name mangling] problems. Use the [[dumpbin]] utility to the libraries to checkout which language convention they are using. If that's the problem then you need to try to get new libraries with the correct naming convention.&lt;br /&gt;
&lt;br /&gt;
That's it, you should now be able to build the [[ConvertToHdf5]] project successfully.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Q: I got a message saying the entry point _NF_PUT_ATT_REAL@28 could not be located in netcdf.dll'''&lt;br /&gt;
&lt;br /&gt;
A: copy the file netcdf.dll to the exe folder&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
*[http://www.hdfgroup.org/ HDF5 Homepage]&lt;br /&gt;
*[http://www.hdfgroup.org/ HDF4 Homepage]&lt;br /&gt;
&lt;br /&gt;
== Links ==&lt;br /&gt;
&lt;br /&gt;
*[[Module_Atmosphere]]&lt;br /&gt;
*[[Module_InterfaceWaterAir]]&lt;br /&gt;
*[[Coupling_Water-Atmosphere_User_Manual]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Tools]]&lt;br /&gt;
[[Category:Hdf5]]&lt;/div&gt;</summary>
		<author><name>Anatrancoso</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=ConvertToHDF5&amp;diff=3241</id>
		<title>ConvertToHDF5</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=ConvertToHDF5&amp;diff=3241"/>
				<updated>2010-08-06T16:18:57Z</updated>
		
		<summary type="html">&lt;p&gt;Anatrancoso: /* CONVERT WRF FORMAT */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The '''ConvertToHDF5''' is an application which allows the making of several operations, called '''actions''', involving HDF5 files: conversion of data in other formats (e.g. NETCDF) to HDF5, grid interpolation, concatenation of several files.&lt;br /&gt;
&lt;br /&gt;
Running options for this application are specified by the user in a input file named [[ConvertToHDF5#Input file (ConvertToHDF5Action.dat)|'''ConvertToHDF5Action.dat''']]. Several actions can be specified in the same input file, being processed sequentially by the ConvertToHDF5 application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
The operations involving HDF5 files performed by ConvertToHDF5, specified individually by an action, can be organized in [[#file management|file management]], [[#grid interpolation|grid interpolation]] and [[#format conversion|format conversion]]. These types and the respective actions are detailed in the next sections. &lt;br /&gt;
&lt;br /&gt;
The input file specification for each action can be found bellow in the [[#Input file (ConvertToHDF5Action.dat)|Input file (ConvertToHDF5Action.dat)]] section.&lt;br /&gt;
&lt;br /&gt;
===Compilation Settings===&lt;br /&gt;
&lt;br /&gt;
====With Compaq Visual Fortran====&lt;br /&gt;
&lt;br /&gt;
* File -&amp;gt; New -&amp;gt; Fortran Console Application&lt;br /&gt;
* Project -&amp;gt; Add to Project -&amp;gt; Files -&amp;gt; *.f90 (do not add ModuleWRFFormat.f90 and proj4.f90 if you don't want to use [[PROJ4]] library).&lt;br /&gt;
* Project -&amp;gt; Settings:&lt;br /&gt;
** Fortran tab:&lt;br /&gt;
*** Compatibility “Big Endian” to work with MM5 files.&lt;br /&gt;
*** Compilation Diagnostics -&amp;gt; Fortran Standards Checking -&amp;gt; Fortran95.&lt;br /&gt;
*** Preprocessor:&lt;br /&gt;
**** Check FPP.&lt;br /&gt;
**** INCLUDE and USE Paths: path to Libs folder.&lt;br /&gt;
** C/C++ tab:&lt;br /&gt;
*** Preprocessor -&amp;gt; Additional include directories: path to Libs.&lt;br /&gt;
** Link tab:&lt;br /&gt;
*** General -&amp;gt; Object/library modules: kernel32.lib hdf5.lib hdf5_hl.lib hdf5_fortran.lib zlib.lib szlib.lib netcdf.lib netcdf_.lib &lt;br /&gt;
*** Input -&amp;gt; Additional library path: path to Libs.&lt;br /&gt;
* Buil -&amp;gt; Rebuild All&lt;br /&gt;
&lt;br /&gt;
To run this executable, copy ''netcdf.dll'' to its directory.&lt;br /&gt;
To work with large files, compile with: Project -&amp;gt; Settings -&amp;gt; Link tab -&amp;gt; Reserve: 10^6.&lt;br /&gt;
&lt;br /&gt;
===== Compile ModuleWRFFormat =====&lt;br /&gt;
&lt;br /&gt;
To convert [[Meteo|WRF]] files or work with other projection beside UTM and Lambert Conformal, ConvertToHDF5 must be compiled with [[PROJ4]] library. To do that:&lt;br /&gt;
* Same settings as above.&lt;br /&gt;
* Project -&amp;gt; Add to Project -&amp;gt; Files:&lt;br /&gt;
** ModuleWRFFormat.f90&lt;br /&gt;
** Proj4.f90&lt;br /&gt;
* Project -&amp;gt; Settings:&lt;br /&gt;
** Fortran tab -&amp;gt; Predefined Preprocessor symbols: _USE_PROJ4&lt;br /&gt;
** Link tab -&amp;gt; General -&amp;gt; Object/library modules: add libfproj4.lib (Note: ''libfproj4.lib'' and ''proj4.inc'' must be in Libs folder)&lt;br /&gt;
* Build -&amp;gt; Rebuild All.&lt;br /&gt;
&lt;br /&gt;
===File management===&lt;br /&gt;
&lt;br /&gt;
====Glue files====&lt;br /&gt;
This action consists in joining or glue in a single HDF5 file two or more HDF5 files having the same HDF5 data groups and referring to time periods which come in sequence. Both sets of 2D and 3D HDF5 files can be glued.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Glue MOHID Water results files from several runs produced in continuous running of the model, for storage space economy reasons. Can be used to join data from other origins (e.g. results of meteorological models) as long as the HDF5 format is the one supported by MOHID Water.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 files to be glued. &amp;quot;Grid&amp;quot; and &amp;quot;Results&amp;quot; data groups should be equal in all these files.&lt;br /&gt;
&lt;br /&gt;
'''Output:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with glued &amp;quot;Results&amp;quot; data. &amp;quot;Residual&amp;quot; and &amp;quot;Statistics&amp;quot; HDF5 data groups are not copied to the output file since they are time period specific (different values potentially occour in each file). General statistics can be calculated for the glued HDF5 file data using tool [[HDF5Statistics]].&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#GLUES HDF5 FILES|GLUES HDF5 FILES]].&lt;br /&gt;
&lt;br /&gt;
===Grid interpolation===&lt;br /&gt;
&lt;br /&gt;
====Interpolate files====&lt;br /&gt;
This action performs the conversion of one HDF5 file data existing in one 2D or 3D spatial grid to another 2D or 3D spatial grid, creating a new HDF5 file. The interpolation is performed only for the data located a time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
The HDF5 file containing data to be interpolated is called the '''father file'''.&lt;br /&gt;
&lt;br /&gt;
In case of 3D interpolation the application conducts first the horizontal grid interpolation&lt;br /&gt;
(keeping father geometry) and only after it conducts the vertical interpolation (from father geometry to new geometry).&lt;br /&gt;
&lt;br /&gt;
Several types of 2D interpolation are available for use: bilinear, spline 2D and triangulation.&lt;br /&gt;
For vertical interpolation (used in 3D interpolation) can be supplied several polinomial degrees for interpolation.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain an HDF5 file with data for forcing or providing initial conditions for a MOHID Water model, e.g. a meteorological forcing file.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
For 2D/3D interpolation:&lt;br /&gt;
&lt;br /&gt;
- father HDF5 file;&lt;br /&gt;
&lt;br /&gt;
- father horizontal data grid, in a grid data file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
- new horizontal data grid, in a grid data file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
For 3D interpolation also needed:&lt;br /&gt;
&lt;br /&gt;
- father vertical geometry, in a geometry file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
- new vertical geometry, in a geometry file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
- auxiliary horizontal data grid, in a grid data file in the format supported by MOHID; this file is used for horizontal grid interpolation in 3D interpolation operations.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with interpolated data. In case of 3D interpolation also produced an auxiliary HDF5 file with the result of the horizontal grid interpolation, which can be inspected to check if this operation is well performed.&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#INTERPOLATE GRIDS|INTERPOLATE GRIDS]].&lt;br /&gt;
&lt;br /&gt;
====Patch files====&lt;br /&gt;
This action consists in performing an interpolation of HDF5 data between grids, as in action [[#Interpolate files|Interpolate files]], but considering more than one HDF5 file as containing data to be interpolated to the new grid and a priority scale. The interpolation is performed only for the data located in the time window specified by the user. The present version of this action operates only on 2D data.&lt;br /&gt;
&lt;br /&gt;
Each HDF5 file containing data to be interpolated is called a '''father file''' and has an user-attributed '''priority level''' to be respected in the interpolation process: for each new grid cell the ConvertToHDF5 application will look for data first on the Level 1 father file and only in the case this data is inexistent will it look for data in Level 2 file, proceeding in looking for higher level files if no data is found subsequentely.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
To obtain an HDF5 file with data from several HDF5 files each containing data with different spatial resolution and only for a specific part of the new grid. This is, for instance, the case when one is preparing a best resolution meteorological HDF5 file for forcing MOHID Water from several meteorological model domains, having different spatial resolution and span, since the best resolution data is not available for all new grid cells.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
The new horizontal data grid, in a grid data file in the format supported by MOHID, and for each father file:&lt;br /&gt;
&lt;br /&gt;
- level of priority: 1 = maximum priority, priority decreases with increasing level value;&lt;br /&gt;
&lt;br /&gt;
- data grid, in the form of a grid data file in the format supported by MOHID.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with patched data.&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#PATCH HDF5 FILES|PATCH HDF5 FILES]].&lt;br /&gt;
&lt;br /&gt;
===Format conversion===&lt;br /&gt;
&lt;br /&gt;
====Meteorological model data====&lt;br /&gt;
Mohid does not simulate explicitly the atmosphere, but needs information about atmospheric properties in time and space. This requires that atmospheric properties are supplied to MOHID Water in supported formats. These formats can be derived from meteorological data in HDF5 format. Because the results of meteorological models are accessed in different formats conversion is required. &lt;br /&gt;
&lt;br /&gt;
The formats currently convertible to HDF5 in ConvertToHDF5 include the MM5 and the ERA40. These are succintly detailed in the next sections.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''ERA40''=====&lt;br /&gt;
This format refers to the European Centre for Medium-Range Weather Forecasts (ECMWF) 40 years re-analysises results, acessed by site http://data.ecmwf.int/data/d/era40_daily/. This data is available for several meteorological variables with maximum 6 hour periodicity for days in the period from 1957-09-01 to 2002-08-31. &lt;br /&gt;
&lt;br /&gt;
ERA40 data files are supplied by ECMWF in a NetCDF format and with an user-costumized time window, periodicity (time step range from 6 hours to a day) and meteorological properties set. The ERA40 meteorological properties which are recognized by MOHID are presented bellow together with the correspondent MOHID name: &lt;br /&gt;
&lt;br /&gt;
 ---ERA40 NAME---         ---MOHID NAME---&lt;br /&gt;
   sshf                     sensible heat                &lt;br /&gt;
   slhf                     latent heat                  &lt;br /&gt;
   msl                      atmospheric pressure &lt;br /&gt;
   tcc                      cloud cover &lt;br /&gt;
   p10u                     wind velocity X&lt;br /&gt;
   p10v                     wind velocity Y&lt;br /&gt;
   p2t                      air temperature&lt;br /&gt;
   ewss                     wind stress X&lt;br /&gt;
   nsss                     wind stress Y&lt;br /&gt;
&lt;br /&gt;
The standard ConvertToHDF5 action is to convert to HDF5 the data referring to all MOHID Water recognized property available in the ERA40 file, producing an individual HDF5 file for each property. The name of each HDF5 file generated includes the ERA40 meteorological property identificator correspondent to the data contained.&lt;br /&gt;
&lt;br /&gt;
Alternatively, ConvertToHDF5 can copy to a single ASCII file the heading information concerning each meteorological variable considered in the original ERA40 file.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain an HDF5 file with data suitable for being used for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
ERA40 NetCDF file.&lt;br /&gt;
&lt;br /&gt;
'''Output:'''&lt;br /&gt;
&lt;br /&gt;
One HDF5 file for each meteorological property contained in the original NetCDF file.&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT ERA40 FORMAT|CONVERT ERA40 FORMAT]].&lt;br /&gt;
&lt;br /&gt;
=====''Aladin''=====&lt;br /&gt;
This format relates to Aladin meteorological model results. Some of the atmospheric property needed by MOHID Water is present in Aladin output files, enabling to run prediction simulations with MOHID Water when access to Aladin prevision files is available.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts Aladin results files from the original format to HDF5 format, allowing the easy use of these results in the MOHID framework. Conversion is only performed for the MM5 properties and the time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Produce HDF5 meteorological data usable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
Aladin netcdf results file to convert.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
An HDF5 file with Aladin results and a grid data file in MOHID format with the Aladin grid pseudo-information: a fake orography is created of 100 m depth.&lt;br /&gt;
This last file can be used to interpolate the Aladin data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]), for instance to produce an HDF5 file suitable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Compilation:'''&lt;br /&gt;
&lt;br /&gt;
Caution! The ConvertToHDF5 executable must be compiled with the [[Big-endian little-endian|Big-Endian]] option set (see compatibility in the project's settings).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT ALADIN FORMAT|CONVERT ALADIN FORMAT]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''MM5''=====&lt;br /&gt;
This format relates to the Fifth-Generation NCAR / Penn State Mesoscale Model (MM5) output files format. Almost every atmospheric property needed by MOHID Water is present in MM5 output files.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts MM5 results files from the original format to HDF5 format, allowing the easy use of these results in the MOHID framework. Conversion is only performed for the MM5 properties and the time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
Besides the conversion, the application can calculate some properties not contained in&lt;br /&gt;
the MM5 files using the available information: these are wind stress, relative humidity and mean sea level pressure.&lt;br /&gt;
&lt;br /&gt;
For conversion to be completed it is required the horizontal grid information of MM5 results which is available in special TERRAIN files.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Produce HDF5 meteorological data usable to force MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
MM5 results file to convert and MM5 TERRAIN file. The TERRAIN file supplies the MM5 results grid information. &lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
A HDF5 file with MM5 results and a grid data file in MOHID format with the MM5 grid information.&lt;br /&gt;
This last file can be used to interpolate the MM5 data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]), for instance to produce an HDF5 file suitable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Compilation:'''&lt;br /&gt;
&lt;br /&gt;
Caution! The ConvertToHDF5 executable must be compiled with the [[Big-endian little-endian|Big-Endian]] option set (see compatibility in the project's settings).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT MM5 FORMAT|CONVERT MM5 FORMAT]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''WRF''=====&lt;br /&gt;
This format relates to the Weather Research and Forecast model (WRF) output files format. Almost every atmospheric property needed by MOHID Water is present in WRF output files.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts WRF results files from the original format to HDF5 format, allowing the easy use of these results in the MOHID framework. Conversion is only performed for the WRF properties and the time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
Besides the conversion, the application can calculate some properties not contained in&lt;br /&gt;
the WRF files using the available information: these are wind stress, relative humidity and mean sea level pressure.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Produce HDF5 meteorological data usable to force MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
WRF direct output file.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
An HDF5 file with WRF results and a grid data file in MOHID format with the WRF grid information.&lt;br /&gt;
This last file can be used to interpolate the WRF data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]), for instance to produce an HDF5 file suitable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Compilation:'''&lt;br /&gt;
&lt;br /&gt;
Caution! [[PROJ4 | PROJ4]] library is needed! See [[#Compile_ModuleWRFFormat |  Compile_ModuleWRFFormat]]&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT WRF FORMAT|CONVERT WRF FORMAT]].&lt;br /&gt;
&lt;br /&gt;
====Ocean model data====&lt;br /&gt;
Ocean model data, available in diverse formats, can be used by MOHID Water to specify boundary (open ocean boundary and surface), initial conditions or for validation. These uses require that the model data is in HDF5 format and conversion is therefore needed.&lt;br /&gt;
&lt;br /&gt;
Currently the large scale ocean models formats convertible into HDF5 by ConvertToHDF5 includes MERCATOR.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''MERCATOR''=====&lt;br /&gt;
MERCATOR data files are supplied in a NetCDF format and with an user-costumized spatial window and periodicity. Water level and water properties (temperature and salinity) data is available in type T files, velocity component u data is available in type U files and velocity component v data is available in type V files. The type of data of a specific MERCATOR file is generally indicated in the file name.&lt;br /&gt;
&lt;br /&gt;
The standard ConvertToHDF5 action is to convert to HDF5 the data referring to temperature, salinity, water level, component u of velocity and component v of velocity.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain HDF5 MERCATOR data usable for forcing or validation of MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
NetCDF MERCATOR results data files and NetCDF MERCATOR grid data files. It should be provided one grid data file of each type: T, U and V. These are generally provided by the MERCATOR services together with the results files.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
One HDF5 file containing all properties contained in the recognized set of properties (temperature, salinity, water level, velocity u and velocity v) and the correspondent grid data and geometry files, containing respectively the horizontal grid and the vertical discretization of the HDF5 file. The grid data and geometry files can be used afterwards to interpolate the MERCATOR data to another grid and geometry (see [[#Interpolate files|Interpolate files]]).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT MERCATOR FORMAT|CONVERT MERCATOR FORMAT]].&lt;br /&gt;
&lt;br /&gt;
====Climatological data====&lt;br /&gt;
Climatological data can be used in MOHID Water to specify boundary (open ocean boundary and surface), initial conditions or for validation, in case more realistic data (measurements or model) data is unavailable. This data is generally supplied by producers in formats not readly usable by MOHID Water which justifies the existence of a conversion tool.&lt;br /&gt;
&lt;br /&gt;
Two climatological data format conversions are implemented in ConvertToHDF5: Levitus ocean data and Hellerman Rosenstein meteorological data.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''Levitus''=====&lt;br /&gt;
The Levitus climatology provides results for water temperature and salinity.&lt;br /&gt;
The ConvertToHDF5 action converts the climatological data for the properties and spatial window requested by the user. &lt;br /&gt;
Typically, it requires 3 steps to complete the task:&lt;br /&gt;
&lt;br /&gt;
- convert levitus format &lt;br /&gt;
&lt;br /&gt;
- extrapolate the data to the whole levitus domain(required to avoid uncoincidental coastlines) &lt;br /&gt;
&lt;br /&gt;
- interpolate with the model grid(bathymetry)&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain climatological data in HDF5 format to use as boundary forcing and/or initial condition specification in MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
Levitus climatological data files, one per property and per time period (e.g a month).&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with Levitus climatological data, grid data file with the horizontal&lt;br /&gt;
grid of the data and a geometry file with vertical discretization of the data (MOHID formats).&lt;br /&gt;
The grid data and the geometry files can be used to interpolate the climatological data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT LEVITUS FORMAT|CONVERT LEVITUS FORMAT]].&lt;br /&gt;
&lt;br /&gt;
=====''Hellerman Rosenstein''=====&lt;br /&gt;
This is a meteorological climatology providing wind stress. There is a file per wind stress component. Since the data refer to surface values it is a 2D field.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts the climatological data for the properties and spatial window provided by the user.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain climatological data in HDF5 format to use as meteorological forcing in MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
Hellerman Rosenstein climatological data ASCII files, one per wind stress component.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with Hellerman Rosenstein climatological data and grid data file with the horizontal&lt;br /&gt;
grid of the climatological data. This grid data file can be used to interpolate the climatological data from the original horizontal grid to a new grid (see [[#Interpolate files|Interpolate files]]).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT HELLERMAN ROSENSTEIN ASCII|CONVERT HELLERMAN ROSENSTEIN ASCII]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''World Ocean Atlas 2005''=====&lt;br /&gt;
The World Ocean Atlas (WOA) 2005 climatology provides results for water temperature, salinity and several water quality and biology properties.&lt;br /&gt;
&lt;br /&gt;
Description, Action and Input Files are described in a separate page: [[ConvertToHDF5 WOA2005]].&lt;br /&gt;
&lt;br /&gt;
==Input file (ConvertToHDF5Action.dat)==&lt;br /&gt;
===General structure===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt; (block containing instructions for running a specific action) &lt;br /&gt;
 ACTION                    : ... (intended action)&lt;br /&gt;
 ... (action specific instructions)&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : ...&lt;br /&gt;
 ...&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===GLUES HDF5 FILES===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : GLUES HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 3D_FILE                   : 0/1 (0 = 2D file, 1 = 3D file)&lt;br /&gt;
 &lt;br /&gt;
 TIME_GROUP                : ... (Default=&amp;quot;Time&amp;quot;. Other option: &amp;quot;SurfaceTime&amp;quot;.)&lt;br /&gt;
 &lt;br /&gt;
 BASE_GROUP                : ... (Default=&amp;quot;Results&amp;quot;. Other options: &amp;quot;Residual&amp;quot;, &amp;quot;SurfaceResults&amp;quot;.)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 &lt;br /&gt;
 (block of HDF5 data files)&lt;br /&gt;
 &amp;lt;&amp;lt;begin_list&amp;gt;&amp;gt;&lt;br /&gt;
 ... (path/name of HDF5 file with data to be included in glue, one per line, at least two files)&lt;br /&gt;
 ...                      &lt;br /&gt;
 &amp;lt;&amp;lt;end_list&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===INTERPOLATE GRIDS===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION     : ... (type of horizontal interpolation: 1 = Bilinear, 2 = Spline2D,&lt;br /&gt;
                                  3 = Triangulation)&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION_WINDOW      : ... ... ... ... (2D spatial window to consider for interpolation: &lt;br /&gt;
                                              Xmin Ymin Xmax Ymax; default = all domain)&lt;br /&gt;
 &lt;br /&gt;
 START                     : ... (start date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 END                       : ... (end date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D           : 0/1 (0 = 2D interpolation, 1 = 3D interpolation)&lt;br /&gt;
 &lt;br /&gt;
 FATHER_FILENAME           : ... (path/name of input HDF5 file with data to be interpolated)&lt;br /&gt;
 FATHER_GRID_FILENAME      : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization of input HDF5 file)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of output HDF5 file to be created)&lt;br /&gt;
 NEW_GRID_FILENAME         : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization intended for output HDF5 file)&lt;br /&gt;
 &lt;br /&gt;
 EXTRAPOLATE_2D            : 0/1/2/3/4/5 (2D extrapolation: 0=no extrapolation, 1=medium&lt;br /&gt;
                                      triangulation, 2=high triangulation, &lt;br /&gt;
                                      3=nearest neighbour, 4=nearest cell, &lt;br /&gt;
                                      5=constant value)&lt;br /&gt;
 &lt;br /&gt;
 EXTRAPOLATE_VALUE         : ... (name of the value to extrapolate to when EXTRAPOLATE_2D is&lt;br /&gt;
                                  set to constant value (5))&lt;br /&gt;
 &lt;br /&gt;
 DO_NOT_BELIEVE_MAP        : 0/1 (0=consider input HDF5 file map, 1=do not consider input HDF5&lt;br /&gt;
                                  file map)&lt;br /&gt;
 &lt;br /&gt;
 BASE_GROUP                : ... (name of base group of HDF5 variables containing data to be &lt;br /&gt;
                                  interpolated; default is &amp;quot;/Results&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 (if INTERPOLATION3D : 1 also required:)&lt;br /&gt;
 FATHER_GEOMETRY           : ... (path/name of file (MOHID format) with vertical discretization&lt;br /&gt;
                                  of input HDF5 file)&lt;br /&gt;
 NEW_GEOMETRY              : ... (path/name of file (MOHID format) with vertical discretization&lt;br /&gt;
                                  intended for output HDF5 file)&lt;br /&gt;
 POLI_DEGREE               : 1/... (degree of vertical interpolation: 1=linear, ...)&lt;br /&gt;
 &lt;br /&gt;
 AUX_GRID_FILENAME         : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization intended for auxiliar output HDF5 file;&lt;br /&gt;
                                  default is file provided in NEW_GRID_FILENAME)&lt;br /&gt;
 &lt;br /&gt;
 AUX_OUTPUTFILENAME        : ... (path/name of auxiliar output HDF5 file to contain result&lt;br /&gt;
                                  of horizontal grid interpolation)   &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - the file indicated in AUX_GRID_FILENAME can be different from the one indicated in&lt;br /&gt;
   NEW_GRID_FILENAME in terms of bathymetry, while the horizontal grid should be, commonly, the&lt;br /&gt;
   same: this altered bathymetry can be used to extend the water column in the original data so&lt;br /&gt;
   that the process of vertical interpolation is done easily;&lt;br /&gt;
 &lt;br /&gt;
 - in case of INTERPOLATION3D : 1, ConvertToHDF5 can generate new versions of bathymetry which &lt;br /&gt;
   are consistent with the geometry definition (extension is '.new'); there are possibly three&lt;br /&gt;
   bathymetry changes referring to father grid, new grid and aux grid (the same bathymetry is&lt;br /&gt;
   not altered twice); although initially new and aux grid are the same they can result &lt;br /&gt;
   different because of bathymetry changes;&lt;br /&gt;
 &lt;br /&gt;
 - in case the new geometry is 2D and father geometry is 3D then POLI_DEGREE : 1 &lt;br /&gt;
   (linear interpolation) should be used;&lt;br /&gt;
 &lt;br /&gt;
 - EXTRAPOLATE_2D : 1/2/3/4/5 should be considered if it is expected that the coast line is not&lt;br /&gt;
   coincidental in the father and new grids, to avoid lack of data in the interpolation&lt;br /&gt;
   process; extrapolation is performed for all cells even the land cells; &lt;br /&gt;
 &lt;br /&gt;
 - in case of DO_NOT_BELIEVE_MAP : 1 the application generates a map based on cells where&lt;br /&gt;
   interpolation results are available; this causes that if EXTRAPOLATE_2D : 1/2/3/4/5 is used&lt;br /&gt;
   the AUX_GRID_FILENAME should not have land cells in order for the new map to be concurrent&lt;br /&gt;
   with the result of extrapolation and avoid errors generation, specially if INTERPOLATION3D :&lt;br /&gt;
   1 is considered.&lt;br /&gt;
&lt;br /&gt;
===PATCH HDF5 FILES===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : PATCH HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION     : ... (type of interpolation: 3 = Triangulation, default and only&lt;br /&gt;
                                  one implemented)&lt;br /&gt;
 &lt;br /&gt;
 START                     : ... (start date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 END                       : ... (end date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 &lt;br /&gt;
 (block for each father HDF5 file, should be at least two)&lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                     : ... (integer priority level: 1 = highest, increase for lower&lt;br /&gt;
                                  priority)&lt;br /&gt;
 FATHER_FILENAME           : ... (path/name of input HDF5 file with data to be interpolated)&lt;br /&gt;
 FATHER_GRID_FILENAME      : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization of input HDF5 file)&lt;br /&gt;
 N_REMOVE_FRAME            : 0   (width, in number of cells, of frame to remove)&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of output HDF5 file to be created)&lt;br /&gt;
 NEW_GRID_FILENAME         : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization intended for output HDF5 file)&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CONVERT ERA40 FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT ERA40 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                  : ... (path/name of ERA40 NetCDF file)&lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
                                 (root of name for all files produced)&lt;br /&gt;
 &lt;br /&gt;
 CONVERT_TO_ASCII          : 0/1 (1 = convert variable heading info for ASCII file; 0 = default)&lt;br /&gt;
 CONVERT_TO_HDF5           : 0/1 (1 = convert to HDF5 file; 0 = default)&lt;br /&gt;
 GRIDTO180                 : 0/1 (1 = convert grid from [0 360] to [-180 180], 0 = default)&lt;br /&gt;
 &lt;br /&gt;
 XX_VARIABLE               : ... (name of longitude variable in the input file: usual name &lt;br /&gt;
                                  is &amp;quot;longitude&amp;quot;)&lt;br /&gt;
 YY_VARIABLE               : ... (name of longitude variable in the input file: usual name &lt;br /&gt;
                                  is &amp;quot;latitude&amp;quot;)&lt;br /&gt;
 TIME_VARIABLE             : ... (name of time variable in the input file: usual name is&lt;br /&gt;
                                  &amp;quot;time&amp;quot;)&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - either CONVERT_TO_ASCII : 1 or CONVERT_TO_HDF5 : 1 must be chosen for any action to be&lt;br /&gt;
 performed by ConvertToHDF5;&lt;br /&gt;
 &lt;br /&gt;
 - when CONVERT_TO_HDF5 : 1 an HDF5 file is produced for every variable contained in the&lt;br /&gt;
 original ERA40 file; the name of each file is composed of the name indicated on FILENAME&lt;br /&gt;
 concatenated with the ERA40 variable identifier;&lt;br /&gt;
 &lt;br /&gt;
 - to the XX_VARIABLE, YY_VARIABLE and TIME_VARIABLE keywords should generally be  &lt;br /&gt;
 specified &amp;quot;longitude&amp;quot;, &amp;quot;latitude&amp;quot; and &amp;quot;time&amp;quot;, respectively; the option to&lt;br /&gt;
 include as keywords was made only to make the application robust to future variable name&lt;br /&gt;
 changes.&lt;br /&gt;
&lt;br /&gt;
===CONVERT ALADIN FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT ALADIN FORMAT&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : aladin.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : aladin_griddata.dat&lt;br /&gt;
 &lt;br /&gt;
 !Put here the name of any netcdf file for grid-data generation's sake.&lt;br /&gt;
 INPUT_GRID_FILENAME      :   D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKCLOUD_OPASYMP_19723_20088.nc&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 (path to aladin netcdf file)\ALADIN_BULKIR_OPASYMP_19723_20088.nc&lt;br /&gt;
 ...&lt;br /&gt;
 &amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - the name of each Aladin property to convert in &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;...&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt; block must conform to the following variables&lt;br /&gt;
 &lt;br /&gt;
           ---ALADIN NAME---    ---MOHID NAME---&lt;br /&gt;
             soclotot            CloudCover_&lt;br /&gt;
             sohumrel            RelativeHumidity_&lt;br /&gt;
             sofluxir            NonSolarFlux_&lt;br /&gt;
             sosspres            AtmosphericPressure_&lt;br /&gt;
             sosolarf            SolarRadiation_&lt;br /&gt;
             sotemair            AirTemperature_&lt;br /&gt;
             sowinmod            WindModulus_&lt;br /&gt;
             sowaprec            Precipitation_&lt;br /&gt;
             sozotaux            WindStressX_&lt;br /&gt;
             sometauy            WindStressY_&lt;br /&gt;
             sowindu10           WindVelocityX_&lt;br /&gt;
             sowindv10           WindVelocityY_&lt;br /&gt;
&lt;br /&gt;
===CONVERT MM5 FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT MM5 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                  : ... (path/name of MM5 file)&lt;br /&gt;
 TERRAIN_FILENAME          : ... (path/name of MM5 TERRAIN file)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME               : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME         : ... (path/name of grid data file with horizontal grid of MM5 data to be created)&lt;br /&gt;
 &lt;br /&gt;
 COMPUTE_WINDSTRESS           : 0/1 (1 = compute and write wind stress field; 0 = default)&lt;br /&gt;
 COMPUTE_WINDMODULUS          : 0/1 (1 = compute wind modulus; 0 = default)&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY    : 0/1 (1 = compute and write 2-meter relative humidity field; 0 = default)&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY_3D : 0/1 (1 = compute and write 3D relative humidity field; 0 = default)&lt;br /&gt;
 COMPUTE_PRECIPITATION        : 0/1 (1 = compute and write precipitation field; 0 = default)&lt;br /&gt;
 COMPUTE_MSLP                 : 0/1 (1 = compute and write mean sea level pressure field; 0 = default)&lt;br /&gt;
 &lt;br /&gt;
 WRITE_XYZ                    : 0/1 (1 = write xyz center grid cells; 0 = default)&lt;br /&gt;
 WRITE_TERRAIN                : 0/1 (1 = write MM5 TERRAIN fields; 0 = default)&lt;br /&gt;
 &lt;br /&gt;
 START                        : ... (start date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 END                          : ... (end date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
  &lt;br /&gt;
 (block of MM5 properties to convert)&lt;br /&gt;
 &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;&lt;br /&gt;
 ... (name of MM5 property to convert do HDF5 format, one per line)&lt;br /&gt;
 ... &lt;br /&gt;
 &amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - the name of each MM5 property to convert in &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;...&amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt; block must&lt;br /&gt;
 conform to the MOHID designation specified in code of ModuleGlobalData; the correspondence is &lt;br /&gt;
 the following (see [[Module_InterfaceWaterAir]] for a more detailed explanation).&lt;br /&gt;
 &lt;br /&gt;
           ---MM5 NAME---    ---MOHID NAME---&lt;br /&gt;
             T2             air temperature&lt;br /&gt;
             PSTARCRS       atmospheric pressure&lt;br /&gt;
             U10            wind velocity X&lt;br /&gt;
             V10            wind velocity Y&lt;br /&gt;
             UST            wind shear velocity&lt;br /&gt;
             LHFLUX         latent heat&lt;br /&gt;
             SWDOWN         sensible heat&lt;br /&gt;
             SWDOWN         solar radiation&lt;br /&gt;
             LWDOWN         infrared radiation&lt;br /&gt;
             SWOUT          top outgoing shortwave radiation&lt;br /&gt;
             LWOUT          top outgoing longwave radiation&lt;br /&gt;
             SOIL T 1       soil temperature layer 1&lt;br /&gt;
             SOIL T 1       soil temperature layer 2&lt;br /&gt;
             SOIL T 1       soil temperature layer 3&lt;br /&gt;
             SOIL T 1       soil temperature layer 4&lt;br /&gt;
             SOIL T 1       soil temperature layer 5&lt;br /&gt;
             SOIL T 1       soil temperature layer 6&lt;br /&gt;
             Q2             2-meter mixing ratio&lt;br /&gt;
             TSEASFC        sea water temperature&lt;br /&gt;
             PBL HGT        PBL height&lt;br /&gt;
             PBL REGIME     PBL regime&lt;br /&gt;
             RAIN CON       accumulated convective precipitation        (cm)&lt;br /&gt;
             RAIN NON       accumulated non-convective precipitation    (cm)&lt;br /&gt;
             GROUND T       ground temperature&lt;br /&gt;
             RES TEMP       infinite reservoir slab temperature&lt;br /&gt;
             U              wind velocity X_3D&lt;br /&gt;
             V              wind velocity Y_3D&lt;br /&gt;
             W              wind velocity Z_3D&lt;br /&gt;
             T              air temperature_3D&lt;br /&gt;
             PP             atmospheric pressure_3D&lt;br /&gt;
             Q              mixing ratio_3D&lt;br /&gt;
             CLW            cloud water mixing ratio_3D&lt;br /&gt;
             RNW            rain water mixing ratio_3D&lt;br /&gt;
             ICE            cloud ice mixing ratio_3D&lt;br /&gt;
             SNOW           snow mixing ratio_3D&lt;br /&gt;
             RAD TEND       atmospheric radiation tendency_3D&lt;br /&gt;
&lt;br /&gt;
===CONVERT WRF FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                       : CONVERT MM5 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                     : ... (path/name of WRF file)&lt;br /&gt;
 OUTPUTFILENAME               : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME         : ... (path/name of grid data file with horizontal grid of WRF data&lt;br /&gt;
                                     to be created)&lt;br /&gt;
 &lt;br /&gt;
 COMPUTE_WINDSTRESS           : 0/1 (1 = compute and write wind stress field; 0 = default)&lt;br /&gt;
 COMPUTE_WINDMODULUS          : 0/1 (1 = compute wind modulus; 0 = default)&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY    : 0/1 (1 = compute and write 2-meter relative humidity field; 0 = default)&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY_3D : 0/1 (1 = compute and write 3D relative humidity field; 0 = default)&lt;br /&gt;
 COMPUTE_PRECIPITATION        : 0/1 (1 = compute and write precipitation field; 0 = default)&lt;br /&gt;
 COMPUTE_MSLP_MM5             : 0/1 (1 = compute mean sea level pressure with MM5toGrads algorithm; 0 = default)&lt;br /&gt;
 COMPUTE_MSLP_WRF             : 0/1 (1 = compute mean sea level pressure with ARWPost algorithm; 0 = default)&lt;br /&gt;
 &lt;br /&gt;
 WRITE_XYZ                    : 0/1 (1 = write xyz center grid cells; 0 = default)&lt;br /&gt;
 WRITE_TERRAIN                : 0/1 (1 = write MM5 TERRAIN fields; 0 = default)&lt;br /&gt;
 OUTPUT_DT                    : real (DT interval in seconds between each output; default = 0.0)&lt;br /&gt;
 &lt;br /&gt;
 START                        : ... (start date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 END                          : ... (end date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
  &lt;br /&gt;
 (block of properties to convert)&lt;br /&gt;
 &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;&lt;br /&gt;
 ... (name of property to convert do HDF5 format, one per line)&lt;br /&gt;
 ... &lt;br /&gt;
 &amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
  &lt;br /&gt;
 - the name of each property to convert in &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;...&amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt; block must conform to the MOHID &lt;br /&gt;
   designation specified in code of ModuleGlobalData; the correspondence to WRF is in function &lt;br /&gt;
   VariableIsToRead in ModuleWRFFormat. Conversion is not direct since WRF outputs tendencies and not  &lt;br /&gt;
   total values. &lt;br /&gt;
 &lt;br /&gt;
 - Caution: This action is not extensively tested.&lt;br /&gt;
&lt;br /&gt;
===CONVERT MERCATOR FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT MERCATOR FORMAT&lt;br /&gt;
 &lt;br /&gt;
 READ_OPTION               : 1/2/3/4 (version of MERCATOR files)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : ... (path/name of grid data with horizontal discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME  : ... (path/name of geometry file with vertical discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 &lt;br /&gt;
 (if READ_OPTION : 1:)&lt;br /&gt;
 BASE_BULLETIN             : ...&lt;br /&gt;
 DATES_FILE                : ...&lt;br /&gt;
 NUM_DATES                 : ... &lt;br /&gt;
 &lt;br /&gt;
 (if READ_OPTION : 2/3:)&lt;br /&gt;
 INPUT_GRID_FILENAME       : ... (path/name of file with horizontal discretization of water&lt;br /&gt;
                                  properties and water level data)&lt;br /&gt;
 (if READ_OPTION : 2:)&lt;br /&gt;
 INPUT_GRID_FILENAME_U     : ... (path/name of file with horizontal discretization of velocity&lt;br /&gt;
                                  component U data)&lt;br /&gt;
 INPUT_GRID_FILENAME_V     : ... (path/name of file with horizontal discretization of velocity&lt;br /&gt;
                                  component V data)&lt;br /&gt;
 &lt;br /&gt;
 (if READ_OPTION : 3:)&lt;br /&gt;
 INPUT_BATHY_FILENAME      : ... (path/name of file with bathymetry)&lt;br /&gt;
     &lt;br /&gt;
 (if READ_OPTION : 3/4:)&lt;br /&gt;
 CALC_BAROTROPIC_VEL       : 0/1 (1 = calculate barotropic velocity, 0 = not calculate; &lt;br /&gt;
                                  default = 0)&lt;br /&gt;
 &lt;br /&gt;
 (if CALC_BAROTROPIC_VEL : 1 and READ_OPTION : 3:)&lt;br /&gt;
 INPUT_MESH_ZGRID_FILENAME : ... (path/name of file with information about layers ticknesses)&lt;br /&gt;
 &lt;br /&gt;
 (block of MERCATOR data files)&lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 ... (path/name of MERCATOR NetCDF data file, one per line, can be several)&lt;br /&gt;
 ... &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CONVERT LEVITUS FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT LEVITUS FORMAT&lt;br /&gt;
  &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : ... (path/name of grid data with horizontal discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME  : ... (path/name of geometry file with vertical discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 &lt;br /&gt;
 PERIODICITY               : ... (periodicity of Levitus data: &amp;quot;monthly&amp;quot;/&amp;quot;annual&amp;quot;; default is&lt;br /&gt;
                                  &amp;quot;monthly&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 SPATIAL_RESOLUTION        : ... (spatial resolution (degrees) of horizontal Levitus grid)&lt;br /&gt;
 &lt;br /&gt;
 FILL_VALUE                : ... (real value identificator for missing data; default is &lt;br /&gt;
                                  &amp;quot;-99.999900&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 (definition of spatial window to be present in output HDF5 file)&lt;br /&gt;
 LOWER_LEFT_CORNER         : ... ... (longitude and latitude (degrees) of south west corner)&lt;br /&gt;
 UPPER_RIGHT_CORNER        : ... ... (longitude and latitude (degrees) of north east corner)&lt;br /&gt;
 &lt;br /&gt;
 (block for each water property to be present in output HDF5 file, can be several)&lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                      : ... (name of property)&lt;br /&gt;
 ANNUAL_FILE               : ... (path/name of Levitus annual file)&lt;br /&gt;
 &lt;br /&gt;
 (block of Levitus data files)&lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 ... (path/name of Levitus data file (e.g. a monthly data file), one per line, can be several)&lt;br /&gt;
 ... &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CONVERT HELLERMAN ROSENSTEIN ASCII===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT HELLERMAN ROSENSTEIN ASCII&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : ... (path/name of grid data with horizontal discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
  &lt;br /&gt;
 PERIODICITY               : ... (periodicity of Hellerman Rosenstein data: &amp;quot;monthly&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 SPATIAL_RESOLUTION        : ... (spatial resolution (degrees) of horizontal Hellerman&lt;br /&gt;
                                  Rosenstein grid: default and only allowed value is &amp;quot;2.&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 FILL_VALUE                : ... (real value identificator for missing data; default is &lt;br /&gt;
                                  &amp;quot;-99.999900&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 (definition of spatial window to be present in output HDF5 file)&lt;br /&gt;
 LOWER_LEFT_CORNER         : ... ... (longitude and latitude (degrees) of south west corner)&lt;br /&gt;
 UPPER_RIGHT_CORNER        : ... ... (longitude and latitude (degrees) of north east corner)&lt;br /&gt;
   &lt;br /&gt;
 (block for each Hellerman Rosenstein data file)&lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                      : ... (name of property: &amp;quot;wind stress X&amp;quot;/&amp;quot;wind stress Y&amp;quot;)&lt;br /&gt;
 FILE                      : ... (path/name Hellerman Rosenstein file)&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Samples==&lt;br /&gt;
All sample files are named ''ConvertToHDF5Action.dat''.&lt;br /&gt;
&lt;br /&gt;
===Glue several MOHID(.hdf5) files===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : GLUES HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : SurfaceHydro_OP.hdf5&lt;br /&gt;
  &lt;br /&gt;
 &amp;lt;&amp;lt;begin_list&amp;gt;&amp;gt;&lt;br /&gt;
 D:\Projectos\SurfaceHydrodynamic_21.hdf5&lt;br /&gt;
 D:\Projectos\SurfaceHydrodynamic_22.hdf5&lt;br /&gt;
 &amp;lt;&amp;lt;end_list&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Interpolate 2D MOHID(.hdf5) files to a new grid===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION    : 1&lt;br /&gt;
 FATHER_FILENAME          : D:\Projectos\MohidRun\test\res\Lagrangian_1.hdf5 &lt;br /&gt;
 OUTPUTFILENAME           : OilSpillThickness_GridRegular.hdf5&lt;br /&gt;
  &lt;br /&gt;
 START                    : 2006 6 21 17 22 30&lt;br /&gt;
 END                      : 2006 6 22 17 22 0&lt;br /&gt;
  &lt;br /&gt;
 FATHER_GRID_FILENAME     : D:\Projectos\MohidRun\GeneralData\batim\Tagus.dat_A&lt;br /&gt;
 NEW_GRID_FILENAME        : TagusConstSpacing.dat&lt;br /&gt;
  &lt;br /&gt;
 BASE_GROUP               : /Results/Oil/Data_2D&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Interpolate 3D MOHID(.hdf5) files to a new grid===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION   : 1&lt;br /&gt;
 FATHER_FILENAME         : D:\Projectos\MohidRun\test\res\Lagrangian_1.hdf5 &lt;br /&gt;
 OUTPUTFILENAME          : OilSpillThickness_GridRegular.hdf5&lt;br /&gt;
 &lt;br /&gt;
 START                   : 2006 6 21 17 22 30&lt;br /&gt;
 END                     : 2006 6 22 17 22 0&lt;br /&gt;
 &lt;br /&gt;
 FATHER_GRID_FILENAME    : D:\Projectos\MohidRun\GeneralData\batim\Tagus.dat_A&lt;br /&gt;
 NEW_GRID_FILENAME       : TagusConstSpacing.dat&lt;br /&gt;
 &lt;br /&gt;
 BASE_GROUP              : /Results/Oil/Data_2D&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D         : 1&lt;br /&gt;
 FATHER_GEOMETRY         : D:\Projectos\MohidRun\test\data\Geometry_1.dat&lt;br /&gt;
 NEW_GEOMETRY            : TagusGeometry.dat&lt;br /&gt;
 AUX_GRID_FILENAME       : TagusConstSpacing.dat&lt;br /&gt;
 AUX_OUTPUTFILENAME      : Aux_GridRegular.hdf5&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Patch several MOHID(.hdf5) files to a new grid===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION : PATCH HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION   : 3&lt;br /&gt;
 &lt;br /&gt;
 START                   : 2005 2 28 13 0 0&lt;br /&gt;
 END                     : 2005 3 1 13 0 0&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                   : 3&lt;br /&gt;
 FATHER_FILENAME         : K:\MM5output\2005022812_2005030712\MM5OUT_D1.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME    : K:\MM5output\2005022812_2005030712\grid1.dat&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                   : 2&lt;br /&gt;
 FATHER_FILENAME         : K:\MM5output\2005022812_2005030712\MM5OUT_D2.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME    : K:\MM5output\2005022812_2005030712\grid2.dat&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                   : 1&lt;br /&gt;
 FATHER_FILENAME         : K:\MM5output\2005022812_2005030712\MM5OUT_D3.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME    : K:\MM5output\2005022812_2005030712\grid3.dat&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME          : MM5Forcing.hdf5&lt;br /&gt;
 NEW_GRID_FILENAME       : K:\Simula\GeneralData\Batim\CostaPortuguesa.dat&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert an ERA40 file to MOHID(.hdf5)===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                  : CONVERT ERA40 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                : D:\Aplica\ERA40\1971ERA1973.nc&lt;br /&gt;
 OUTPUTFILENAME          : D:\Aplica\ERA40\1971ERA1973T2&lt;br /&gt;
 &lt;br /&gt;
 CONVERT_TO_ASCII        : 0&lt;br /&gt;
 CONVERT_TO_HDF5         : 1&lt;br /&gt;
 &lt;br /&gt;
 XX_VARIABLE             : longitude&lt;br /&gt;
 YY_VARIABLE             : latitude&lt;br /&gt;
 TIME_VARIABLE           : time&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert a MM5 file to MOHID(.hdf5)===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                  : CONVERT MM5 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                : K:\MM5output\DataCenter\Modelos\Meteo_IST\Fev2005\MMOUT_D3&lt;br /&gt;
 TERRAIN_FILENAME        : K:\MM5output\DataCenter\Modelos\Meteo_IST\Fev2005\TERRAIN_D3&lt;br /&gt;
 OUTPUT_GRID_FILENAME    : K:\MM5output\DataCenter\Modelos\Meteo_IST\Fev2005\grid3.dat&lt;br /&gt;
 OUTPUTFILENAME          : K:\MM5output\DataCenter\Modelos\Meteo_IST\Fev2005\MM5_D3.hdf5&lt;br /&gt;
 &lt;br /&gt;
 COMPUTE_WINDSTRESS        : 0&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY : 1&lt;br /&gt;
 WRITE_XYZ                 : 0&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;&lt;br /&gt;
 solar radiation&lt;br /&gt;
 air temperature&lt;br /&gt;
 wind velocity X&lt;br /&gt;
 wind velocity Y&lt;br /&gt;
 sensible heat&lt;br /&gt;
 latent heat&lt;br /&gt;
 atmospheric pressure&lt;br /&gt;
 sea water temperature&lt;br /&gt;
 &amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert Mercator-Ocean(.nc) to MOHID(.hdf5)===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : CONVERT MERCATOR FORMAT&lt;br /&gt;
 &lt;br /&gt;
 READ_OPTION              : 2&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : Psy2v2r1v_R20060628/MercatorR20060628.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME     : Psy2v2r1v_R20060628/MercatorGridR20060628.dat&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME : Psy2v2r1v_R20060628/MercatorGeometryR20060628.dat&lt;br /&gt;
 &lt;br /&gt;
 INPUT_GRID_FILENAME      : GridFiles/ist_meteog-gridT.nc&lt;br /&gt;
 INPUT_GRID_FILENAME_U    : GridFiles/ist_meteog-gridU.nc&lt;br /&gt;
 INPUT_GRID_FILENAME_V    : GridFiles/ist_meteog-gridV.nc&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 Psy2v2r1v_R20060628/ist_meteog-mercatorPsy2v2r1v_T_MEAN_ANA_20060621_R20060628.nc&lt;br /&gt;
 Psy2v2r1v_R20060628/ist_meteog-mercatorPsy2v2r1v_T_MEAN_ANA_20060622_R20060628.nc&lt;br /&gt;
 Psy2v2r1v_R20060628/ist_meteog-mercatorPsy2v2r1v_T_MEAN_ANA_20060623_R20060628.nc&lt;br /&gt;
 &amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert Levitus format to MOHID(.hdf5) and interpolate grid===&lt;br /&gt;
==== Convert ====&lt;br /&gt;
First convert the Levitus ASCII format to a raw HDF5 format:&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : CONVERT LEVITUS FORMAT&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : Levitus.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME     : LevitusGrid.dat&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME : LevitusGeometry.dat&lt;br /&gt;
 &lt;br /&gt;
 PERIODICITY              : monthly&lt;br /&gt;
 SPATIAL_RESOLUTION       : 0.25&lt;br /&gt;
 FILL_VALUE               : -99.9999&lt;br /&gt;
 &lt;br /&gt;
 LOWER_LEFT_CORNER        : -16.0  31&lt;br /&gt;
 UPPER_RIGHT_CORNER       :   1.   40&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : salinity&lt;br /&gt;
 ANNUAL_FILE              : DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s000hr.obj&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s001&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s002&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s003&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s004&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s005&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s006&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s007&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s008&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s009&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s010&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s011&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s012&lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : temperature&lt;br /&gt;
 ANNUAL_FILE              : DataCenter\DadosBase\Ocean\Levitus\Data\Temp\t000hr.obj&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t001&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t002&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t003&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t004&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t005&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t006&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t007&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t008&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t009&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t010&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t011&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t012&lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Extrapolate ====&lt;br /&gt;
Then extrapolate the data (still in the raw HDF5 format):&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION    : 1&lt;br /&gt;
 &lt;br /&gt;
 FATHER_FILENAME          : Levitus.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME     : LevitusGrid.dat&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : LeviTusAllPointsWithData.hdf5&lt;br /&gt;
 NEW_GRID_FILENAME        : LevitusGrid.dat&lt;br /&gt;
 &lt;br /&gt;
 START                    : -9999 1  1 0 0 0&lt;br /&gt;
 END                      : -9999 12 1 0 0 0&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D          : 1&lt;br /&gt;
 FATHER_GEOMETRY          : LevitusGeometry.dat&lt;br /&gt;
 NEW_GEOMETRY             : LevitusGeometry.dat&lt;br /&gt;
 AUX_GRID_FILENAME        : LevitusGrid.dat&lt;br /&gt;
 AUX_OUTPUTFILENAME       : AuxLeviTusAllPointsWithData.hdf5&lt;br /&gt;
 &lt;br /&gt;
 POLI_DEGREE              : 3&lt;br /&gt;
 DO_NOT_BELIEVE_MAP       : 1&lt;br /&gt;
 EXTRAPOLATE_2D           : 2&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Interpolate ====&lt;br /&gt;
Finally, interpolate to the final grid and geometry (same as the [[#Interpolate 3D MOHID(.hdf5) files to a new grid| Interpolate 3D sample]]):&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION    : 1&lt;br /&gt;
 FATHER_FILENAME          : LeviTusAllPointsWithData.hdf5&lt;br /&gt;
 OUTPUTFILENAME           : CadizMonthlyLevitus.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME     : LevitusGrid.dat&lt;br /&gt;
 NEW_GRID_FILENAME        : Algarve0.02SigmaSmooth_V3_CartMoreLayers.dat&lt;br /&gt;
 &lt;br /&gt;
 START                    : -9999 1  1 0 0 0&lt;br /&gt;
 END                      : -9999 12 1 0 0 0&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D          : 1&lt;br /&gt;
 FATHER_GEOMETRY          : LevitusGeometry.dat&lt;br /&gt;
 NEW_GEOMETRY             : Geometry_1.dat&lt;br /&gt;
 AUX_OUTPUTFILENAME       : AuxCadizMonthlyLevitus.hdf5&lt;br /&gt;
 AUX_GRID_FILENAME        : Aux12km.dat&lt;br /&gt;
 &lt;br /&gt;
 POLI_DEGREE              : 3&lt;br /&gt;
 DO_NOT_BELIEVE_MAP       : 1&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that the programme may construct a new bathymetry twice. Use this bathymetry only on the AUX_GRID_FILENAME keyword.&lt;br /&gt;
&lt;br /&gt;
===Convert Hellerman Rosenstein ASCII format to MOHID(.hdf5)  ===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : CONVERT HELLERMAN ROSENSTEIN ASCII&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : ClimatologicWindStress.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME     : ClimatologicWindStressGrid.dat&lt;br /&gt;
 &lt;br /&gt;
 PERIODICITY              : monthly&lt;br /&gt;
 SPATIAL_RESOLUTION       : 2.&lt;br /&gt;
 FILL_VALUE               : -99.9999&lt;br /&gt;
 &lt;br /&gt;
 LOWER_LEFT_CORNER        : -180  -90&lt;br /&gt;
 UPPER_RIGHT_CORNER       : 180  90&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : wind stress X&lt;br /&gt;
 FILE                     : D:\Aplica\Dados\Hellerman_Rosenstein\TAUXX.DAT&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : wind stress Y&lt;br /&gt;
 FILE                     : D:\Aplica\Dados\Hellerman_Rosenstein\TAUYY.DAT&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert ALADIN(.nc) format to MOHID(.hdf5)===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT ALADIN FORMAT&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : aladin.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : aladin_griddata.dat&lt;br /&gt;
 &lt;br /&gt;
 !Put here the name of any netcdf file for grid-data generation's sake.&lt;br /&gt;
 INPUT_GRID_FILENAME      :   D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKCLOUD_OPASYMP_19723_20088.nc&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKIR_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKPRES_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKSOLAR_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKTAIR_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKWIND_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_FLUXPRE_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_STRESSU_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_STRESSV_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_U10_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_V10_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKCLOUD_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKHUMI_OPASYMP_19723_20088.nc&lt;br /&gt;
 &amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== OceanColor modules compilation ==&lt;br /&gt;
Compiling the [[ConvertToHDF5]] tool with the OceanColor modules is more complicated than one might expect. A solution is proposed here for a release version using the Compaq Visual Fortran 6.6c. The difficulties rise because C code is embedded with a fortran interface and also, extra libraries such as hdf4 are required.&lt;br /&gt;
&lt;br /&gt;
=== Pre-requisites ===&lt;br /&gt;
&lt;br /&gt;
This is a list of prerequisites to successfully compile the tool:&lt;br /&gt;
*Compaq Visual Fortran 6.5 with patch 6.6c,&lt;br /&gt;
*VS .NET 2003 (Vc7 in particular),&lt;br /&gt;
*Hdf5 libraries ('''hdf5.lib''' '''hdf5_fortran.lib''' '''hdf5_hl.lib'''),&lt;br /&gt;
*Netcdf libraries ('''netcdf.lib''' '''netcdf_.lib'''),&lt;br /&gt;
*Hdf4 libraries ('''hd421.lib''', '''hm421.lib'''),&lt;br /&gt;
*szlib, zlib and jpeg libraries ('''szlib.lib''', '''zlib.lib''' and '''libjpeg.lib'''),&lt;br /&gt;
*the fortran source files ('''ModuleConvertModisL2.F90 ModuleConvertModisL3.F90 ModuleConvertOceanColorL2.F90'''),&lt;br /&gt;
*the C source files and their fortran interface files ('''readL2scan.c readL2Seadas.c''' and '''cdata.f crossp.f fgeonav.f''').&lt;br /&gt;
&lt;br /&gt;
=== CVF IDE configuration ===&lt;br /&gt;
# Configure everything as specified in [[Compiling with CVF]].&lt;br /&gt;
# Add the source files listed in the prerequisites above to the source files listing.&lt;br /&gt;
# Go to '''Tools--&amp;gt;Options...--&amp;gt;Directories'''. There, add the '''$DOTNET2K3/Vc7/bin''' to the '''Executable files''''; the '''$DOTNET2K3/Vc7/include''' and '''$DOTNET2K3/Vc7/PlatformSDK/include''' to the '''Include files'''; and finally, the '''$DOTNET2K3/Vc7/lib''', '''$DOTNET2K3/Vc7/PlatformSDK/lib''' and  '''$DOTNET2K3/Vc7/PlatformSDK/bin''' to the '''Library files'''.&lt;br /&gt;
# Go to '''Projects--&amp;gt;Settings--&amp;gt;Release--&amp;gt;Link--&amp;gt;Input'''. There, add the following libraries: '''netcdf.lib netcdf_.lib hd421.lib hm421.lib libjpeg.lib'''. (Make sure the hdf5 libraries as well as the szlib and zlib libraries are already mentioned).&lt;br /&gt;
&lt;br /&gt;
=== Troubleshoots ===&lt;br /&gt;
'''Q: I get unresolved external references during linkage, but I have all the libraries mentioned above included. What should I do?'''&lt;br /&gt;
&lt;br /&gt;
A: Unresolved external references can come out for two reasons:&lt;br /&gt;
#you didn't specified all the libraries required or all the paths for the default libraries or,&lt;br /&gt;
#[http://en.wikipedia.org/wiki/Name_decoration name mangling] problems. Use the [[dumpbin]] utility to the libraries to checkout which language convention they are using. If that's the problem then you need to try to get new libraries with the correct naming convention.&lt;br /&gt;
&lt;br /&gt;
That's it, you should now be able to build the [[ConvertToHdf5]] project successfully.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Q: I got a message saying the entry point _NF_PUT_ATT_REAL@28 could not be located in netcdf.dll'''&lt;br /&gt;
&lt;br /&gt;
A: copy the file netcdf.dll to the exe folder&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
*[http://www.hdfgroup.org/ HDF5 Homepage]&lt;br /&gt;
*[http://www.hdfgroup.org/ HDF4 Homepage]&lt;br /&gt;
&lt;br /&gt;
== Links ==&lt;br /&gt;
&lt;br /&gt;
*[[Module_Atmosphere]]&lt;br /&gt;
*[[Module_InterfaceWaterAir]]&lt;br /&gt;
*[[Coupling_Water-Atmosphere_User_Manual]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Tools]]&lt;br /&gt;
[[Category:Hdf5]]&lt;/div&gt;</summary>
		<author><name>Anatrancoso</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=ConvertToHDF5&amp;diff=3240</id>
		<title>ConvertToHDF5</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=ConvertToHDF5&amp;diff=3240"/>
				<updated>2010-08-06T16:16:26Z</updated>
		
		<summary type="html">&lt;p&gt;Anatrancoso: /* CONVERT MM5 FORMAT */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The '''ConvertToHDF5''' is an application which allows the making of several operations, called '''actions''', involving HDF5 files: conversion of data in other formats (e.g. NETCDF) to HDF5, grid interpolation, concatenation of several files.&lt;br /&gt;
&lt;br /&gt;
Running options for this application are specified by the user in a input file named [[ConvertToHDF5#Input file (ConvertToHDF5Action.dat)|'''ConvertToHDF5Action.dat''']]. Several actions can be specified in the same input file, being processed sequentially by the ConvertToHDF5 application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
The operations involving HDF5 files performed by ConvertToHDF5, specified individually by an action, can be organized in [[#file management|file management]], [[#grid interpolation|grid interpolation]] and [[#format conversion|format conversion]]. These types and the respective actions are detailed in the next sections. &lt;br /&gt;
&lt;br /&gt;
The input file specification for each action can be found bellow in the [[#Input file (ConvertToHDF5Action.dat)|Input file (ConvertToHDF5Action.dat)]] section.&lt;br /&gt;
&lt;br /&gt;
===Compilation Settings===&lt;br /&gt;
&lt;br /&gt;
====With Compaq Visual Fortran====&lt;br /&gt;
&lt;br /&gt;
* File -&amp;gt; New -&amp;gt; Fortran Console Application&lt;br /&gt;
* Project -&amp;gt; Add to Project -&amp;gt; Files -&amp;gt; *.f90 (do not add ModuleWRFFormat.f90 and proj4.f90 if you don't want to use [[PROJ4]] library).&lt;br /&gt;
* Project -&amp;gt; Settings:&lt;br /&gt;
** Fortran tab:&lt;br /&gt;
*** Compatibility “Big Endian” to work with MM5 files.&lt;br /&gt;
*** Compilation Diagnostics -&amp;gt; Fortran Standards Checking -&amp;gt; Fortran95.&lt;br /&gt;
*** Preprocessor:&lt;br /&gt;
**** Check FPP.&lt;br /&gt;
**** INCLUDE and USE Paths: path to Libs folder.&lt;br /&gt;
** C/C++ tab:&lt;br /&gt;
*** Preprocessor -&amp;gt; Additional include directories: path to Libs.&lt;br /&gt;
** Link tab:&lt;br /&gt;
*** General -&amp;gt; Object/library modules: kernel32.lib hdf5.lib hdf5_hl.lib hdf5_fortran.lib zlib.lib szlib.lib netcdf.lib netcdf_.lib &lt;br /&gt;
*** Input -&amp;gt; Additional library path: path to Libs.&lt;br /&gt;
* Buil -&amp;gt; Rebuild All&lt;br /&gt;
&lt;br /&gt;
To run this executable, copy ''netcdf.dll'' to its directory.&lt;br /&gt;
To work with large files, compile with: Project -&amp;gt; Settings -&amp;gt; Link tab -&amp;gt; Reserve: 10^6.&lt;br /&gt;
&lt;br /&gt;
===== Compile ModuleWRFFormat =====&lt;br /&gt;
&lt;br /&gt;
To convert [[Meteo|WRF]] files or work with other projection beside UTM and Lambert Conformal, ConvertToHDF5 must be compiled with [[PROJ4]] library. To do that:&lt;br /&gt;
* Same settings as above.&lt;br /&gt;
* Project -&amp;gt; Add to Project -&amp;gt; Files:&lt;br /&gt;
** ModuleWRFFormat.f90&lt;br /&gt;
** Proj4.f90&lt;br /&gt;
* Project -&amp;gt; Settings:&lt;br /&gt;
** Fortran tab -&amp;gt; Predefined Preprocessor symbols: _USE_PROJ4&lt;br /&gt;
** Link tab -&amp;gt; General -&amp;gt; Object/library modules: add libfproj4.lib (Note: ''libfproj4.lib'' and ''proj4.inc'' must be in Libs folder)&lt;br /&gt;
* Build -&amp;gt; Rebuild All.&lt;br /&gt;
&lt;br /&gt;
===File management===&lt;br /&gt;
&lt;br /&gt;
====Glue files====&lt;br /&gt;
This action consists in joining or glue in a single HDF5 file two or more HDF5 files having the same HDF5 data groups and referring to time periods which come in sequence. Both sets of 2D and 3D HDF5 files can be glued.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Glue MOHID Water results files from several runs produced in continuous running of the model, for storage space economy reasons. Can be used to join data from other origins (e.g. results of meteorological models) as long as the HDF5 format is the one supported by MOHID Water.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 files to be glued. &amp;quot;Grid&amp;quot; and &amp;quot;Results&amp;quot; data groups should be equal in all these files.&lt;br /&gt;
&lt;br /&gt;
'''Output:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with glued &amp;quot;Results&amp;quot; data. &amp;quot;Residual&amp;quot; and &amp;quot;Statistics&amp;quot; HDF5 data groups are not copied to the output file since they are time period specific (different values potentially occour in each file). General statistics can be calculated for the glued HDF5 file data using tool [[HDF5Statistics]].&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#GLUES HDF5 FILES|GLUES HDF5 FILES]].&lt;br /&gt;
&lt;br /&gt;
===Grid interpolation===&lt;br /&gt;
&lt;br /&gt;
====Interpolate files====&lt;br /&gt;
This action performs the conversion of one HDF5 file data existing in one 2D or 3D spatial grid to another 2D or 3D spatial grid, creating a new HDF5 file. The interpolation is performed only for the data located a time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
The HDF5 file containing data to be interpolated is called the '''father file'''.&lt;br /&gt;
&lt;br /&gt;
In case of 3D interpolation the application conducts first the horizontal grid interpolation&lt;br /&gt;
(keeping father geometry) and only after it conducts the vertical interpolation (from father geometry to new geometry).&lt;br /&gt;
&lt;br /&gt;
Several types of 2D interpolation are available for use: bilinear, spline 2D and triangulation.&lt;br /&gt;
For vertical interpolation (used in 3D interpolation) can be supplied several polinomial degrees for interpolation.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain an HDF5 file with data for forcing or providing initial conditions for a MOHID Water model, e.g. a meteorological forcing file.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
For 2D/3D interpolation:&lt;br /&gt;
&lt;br /&gt;
- father HDF5 file;&lt;br /&gt;
&lt;br /&gt;
- father horizontal data grid, in a grid data file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
- new horizontal data grid, in a grid data file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
For 3D interpolation also needed:&lt;br /&gt;
&lt;br /&gt;
- father vertical geometry, in a geometry file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
- new vertical geometry, in a geometry file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
- auxiliary horizontal data grid, in a grid data file in the format supported by MOHID; this file is used for horizontal grid interpolation in 3D interpolation operations.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with interpolated data. In case of 3D interpolation also produced an auxiliary HDF5 file with the result of the horizontal grid interpolation, which can be inspected to check if this operation is well performed.&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#INTERPOLATE GRIDS|INTERPOLATE GRIDS]].&lt;br /&gt;
&lt;br /&gt;
====Patch files====&lt;br /&gt;
This action consists in performing an interpolation of HDF5 data between grids, as in action [[#Interpolate files|Interpolate files]], but considering more than one HDF5 file as containing data to be interpolated to the new grid and a priority scale. The interpolation is performed only for the data located in the time window specified by the user. The present version of this action operates only on 2D data.&lt;br /&gt;
&lt;br /&gt;
Each HDF5 file containing data to be interpolated is called a '''father file''' and has an user-attributed '''priority level''' to be respected in the interpolation process: for each new grid cell the ConvertToHDF5 application will look for data first on the Level 1 father file and only in the case this data is inexistent will it look for data in Level 2 file, proceeding in looking for higher level files if no data is found subsequentely.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
To obtain an HDF5 file with data from several HDF5 files each containing data with different spatial resolution and only for a specific part of the new grid. This is, for instance, the case when one is preparing a best resolution meteorological HDF5 file for forcing MOHID Water from several meteorological model domains, having different spatial resolution and span, since the best resolution data is not available for all new grid cells.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
The new horizontal data grid, in a grid data file in the format supported by MOHID, and for each father file:&lt;br /&gt;
&lt;br /&gt;
- level of priority: 1 = maximum priority, priority decreases with increasing level value;&lt;br /&gt;
&lt;br /&gt;
- data grid, in the form of a grid data file in the format supported by MOHID.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with patched data.&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#PATCH HDF5 FILES|PATCH HDF5 FILES]].&lt;br /&gt;
&lt;br /&gt;
===Format conversion===&lt;br /&gt;
&lt;br /&gt;
====Meteorological model data====&lt;br /&gt;
Mohid does not simulate explicitly the atmosphere, but needs information about atmospheric properties in time and space. This requires that atmospheric properties are supplied to MOHID Water in supported formats. These formats can be derived from meteorological data in HDF5 format. Because the results of meteorological models are accessed in different formats conversion is required. &lt;br /&gt;
&lt;br /&gt;
The formats currently convertible to HDF5 in ConvertToHDF5 include the MM5 and the ERA40. These are succintly detailed in the next sections.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''ERA40''=====&lt;br /&gt;
This format refers to the European Centre for Medium-Range Weather Forecasts (ECMWF) 40 years re-analysises results, acessed by site http://data.ecmwf.int/data/d/era40_daily/. This data is available for several meteorological variables with maximum 6 hour periodicity for days in the period from 1957-09-01 to 2002-08-31. &lt;br /&gt;
&lt;br /&gt;
ERA40 data files are supplied by ECMWF in a NetCDF format and with an user-costumized time window, periodicity (time step range from 6 hours to a day) and meteorological properties set. The ERA40 meteorological properties which are recognized by MOHID are presented bellow together with the correspondent MOHID name: &lt;br /&gt;
&lt;br /&gt;
 ---ERA40 NAME---         ---MOHID NAME---&lt;br /&gt;
   sshf                     sensible heat                &lt;br /&gt;
   slhf                     latent heat                  &lt;br /&gt;
   msl                      atmospheric pressure &lt;br /&gt;
   tcc                      cloud cover &lt;br /&gt;
   p10u                     wind velocity X&lt;br /&gt;
   p10v                     wind velocity Y&lt;br /&gt;
   p2t                      air temperature&lt;br /&gt;
   ewss                     wind stress X&lt;br /&gt;
   nsss                     wind stress Y&lt;br /&gt;
&lt;br /&gt;
The standard ConvertToHDF5 action is to convert to HDF5 the data referring to all MOHID Water recognized property available in the ERA40 file, producing an individual HDF5 file for each property. The name of each HDF5 file generated includes the ERA40 meteorological property identificator correspondent to the data contained.&lt;br /&gt;
&lt;br /&gt;
Alternatively, ConvertToHDF5 can copy to a single ASCII file the heading information concerning each meteorological variable considered in the original ERA40 file.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain an HDF5 file with data suitable for being used for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
ERA40 NetCDF file.&lt;br /&gt;
&lt;br /&gt;
'''Output:'''&lt;br /&gt;
&lt;br /&gt;
One HDF5 file for each meteorological property contained in the original NetCDF file.&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT ERA40 FORMAT|CONVERT ERA40 FORMAT]].&lt;br /&gt;
&lt;br /&gt;
=====''Aladin''=====&lt;br /&gt;
This format relates to Aladin meteorological model results. Some of the atmospheric property needed by MOHID Water is present in Aladin output files, enabling to run prediction simulations with MOHID Water when access to Aladin prevision files is available.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts Aladin results files from the original format to HDF5 format, allowing the easy use of these results in the MOHID framework. Conversion is only performed for the MM5 properties and the time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Produce HDF5 meteorological data usable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
Aladin netcdf results file to convert.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
An HDF5 file with Aladin results and a grid data file in MOHID format with the Aladin grid pseudo-information: a fake orography is created of 100 m depth.&lt;br /&gt;
This last file can be used to interpolate the Aladin data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]), for instance to produce an HDF5 file suitable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Compilation:'''&lt;br /&gt;
&lt;br /&gt;
Caution! The ConvertToHDF5 executable must be compiled with the [[Big-endian little-endian|Big-Endian]] option set (see compatibility in the project's settings).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT ALADIN FORMAT|CONVERT ALADIN FORMAT]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''MM5''=====&lt;br /&gt;
This format relates to the Fifth-Generation NCAR / Penn State Mesoscale Model (MM5) output files format. Almost every atmospheric property needed by MOHID Water is present in MM5 output files.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts MM5 results files from the original format to HDF5 format, allowing the easy use of these results in the MOHID framework. Conversion is only performed for the MM5 properties and the time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
Besides the conversion, the application can calculate some properties not contained in&lt;br /&gt;
the MM5 files using the available information: these are wind stress, relative humidity and mean sea level pressure.&lt;br /&gt;
&lt;br /&gt;
For conversion to be completed it is required the horizontal grid information of MM5 results which is available in special TERRAIN files.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Produce HDF5 meteorological data usable to force MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
MM5 results file to convert and MM5 TERRAIN file. The TERRAIN file supplies the MM5 results grid information. &lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
A HDF5 file with MM5 results and a grid data file in MOHID format with the MM5 grid information.&lt;br /&gt;
This last file can be used to interpolate the MM5 data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]), for instance to produce an HDF5 file suitable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Compilation:'''&lt;br /&gt;
&lt;br /&gt;
Caution! The ConvertToHDF5 executable must be compiled with the [[Big-endian little-endian|Big-Endian]] option set (see compatibility in the project's settings).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT MM5 FORMAT|CONVERT MM5 FORMAT]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''WRF''=====&lt;br /&gt;
This format relates to the Weather Research and Forecast model (WRF) output files format. Almost every atmospheric property needed by MOHID Water is present in WRF output files.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts WRF results files from the original format to HDF5 format, allowing the easy use of these results in the MOHID framework. Conversion is only performed for the WRF properties and the time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
Besides the conversion, the application can calculate some properties not contained in&lt;br /&gt;
the WRF files using the available information: these are wind stress, relative humidity and mean sea level pressure.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Produce HDF5 meteorological data usable to force MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
WRF direct output file.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
An HDF5 file with WRF results and a grid data file in MOHID format with the WRF grid information.&lt;br /&gt;
This last file can be used to interpolate the WRF data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]), for instance to produce an HDF5 file suitable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Compilation:'''&lt;br /&gt;
&lt;br /&gt;
Caution! [[PROJ4 | PROJ4]] library is needed! See [[#Compile_ModuleWRFFormat |  Compile_ModuleWRFFormat]]&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT WRF FORMAT|CONVERT WRF FORMAT]].&lt;br /&gt;
&lt;br /&gt;
====Ocean model data====&lt;br /&gt;
Ocean model data, available in diverse formats, can be used by MOHID Water to specify boundary (open ocean boundary and surface), initial conditions or for validation. These uses require that the model data is in HDF5 format and conversion is therefore needed.&lt;br /&gt;
&lt;br /&gt;
Currently the large scale ocean models formats convertible into HDF5 by ConvertToHDF5 includes MERCATOR.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''MERCATOR''=====&lt;br /&gt;
MERCATOR data files are supplied in a NetCDF format and with an user-costumized spatial window and periodicity. Water level and water properties (temperature and salinity) data is available in type T files, velocity component u data is available in type U files and velocity component v data is available in type V files. The type of data of a specific MERCATOR file is generally indicated in the file name.&lt;br /&gt;
&lt;br /&gt;
The standard ConvertToHDF5 action is to convert to HDF5 the data referring to temperature, salinity, water level, component u of velocity and component v of velocity.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain HDF5 MERCATOR data usable for forcing or validation of MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
NetCDF MERCATOR results data files and NetCDF MERCATOR grid data files. It should be provided one grid data file of each type: T, U and V. These are generally provided by the MERCATOR services together with the results files.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
One HDF5 file containing all properties contained in the recognized set of properties (temperature, salinity, water level, velocity u and velocity v) and the correspondent grid data and geometry files, containing respectively the horizontal grid and the vertical discretization of the HDF5 file. The grid data and geometry files can be used afterwards to interpolate the MERCATOR data to another grid and geometry (see [[#Interpolate files|Interpolate files]]).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT MERCATOR FORMAT|CONVERT MERCATOR FORMAT]].&lt;br /&gt;
&lt;br /&gt;
====Climatological data====&lt;br /&gt;
Climatological data can be used in MOHID Water to specify boundary (open ocean boundary and surface), initial conditions or for validation, in case more realistic data (measurements or model) data is unavailable. This data is generally supplied by producers in formats not readly usable by MOHID Water which justifies the existence of a conversion tool.&lt;br /&gt;
&lt;br /&gt;
Two climatological data format conversions are implemented in ConvertToHDF5: Levitus ocean data and Hellerman Rosenstein meteorological data.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''Levitus''=====&lt;br /&gt;
The Levitus climatology provides results for water temperature and salinity.&lt;br /&gt;
The ConvertToHDF5 action converts the climatological data for the properties and spatial window requested by the user. &lt;br /&gt;
Typically, it requires 3 steps to complete the task:&lt;br /&gt;
&lt;br /&gt;
- convert levitus format &lt;br /&gt;
&lt;br /&gt;
- extrapolate the data to the whole levitus domain(required to avoid uncoincidental coastlines) &lt;br /&gt;
&lt;br /&gt;
- interpolate with the model grid(bathymetry)&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain climatological data in HDF5 format to use as boundary forcing and/or initial condition specification in MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
Levitus climatological data files, one per property and per time period (e.g a month).&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with Levitus climatological data, grid data file with the horizontal&lt;br /&gt;
grid of the data and a geometry file with vertical discretization of the data (MOHID formats).&lt;br /&gt;
The grid data and the geometry files can be used to interpolate the climatological data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT LEVITUS FORMAT|CONVERT LEVITUS FORMAT]].&lt;br /&gt;
&lt;br /&gt;
=====''Hellerman Rosenstein''=====&lt;br /&gt;
This is a meteorological climatology providing wind stress. There is a file per wind stress component. Since the data refer to surface values it is a 2D field.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts the climatological data for the properties and spatial window provided by the user.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain climatological data in HDF5 format to use as meteorological forcing in MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
Hellerman Rosenstein climatological data ASCII files, one per wind stress component.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with Hellerman Rosenstein climatological data and grid data file with the horizontal&lt;br /&gt;
grid of the climatological data. This grid data file can be used to interpolate the climatological data from the original horizontal grid to a new grid (see [[#Interpolate files|Interpolate files]]).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT HELLERMAN ROSENSTEIN ASCII|CONVERT HELLERMAN ROSENSTEIN ASCII]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''World Ocean Atlas 2005''=====&lt;br /&gt;
The World Ocean Atlas (WOA) 2005 climatology provides results for water temperature, salinity and several water quality and biology properties.&lt;br /&gt;
&lt;br /&gt;
Description, Action and Input Files are described in a separate page: [[ConvertToHDF5 WOA2005]].&lt;br /&gt;
&lt;br /&gt;
==Input file (ConvertToHDF5Action.dat)==&lt;br /&gt;
===General structure===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt; (block containing instructions for running a specific action) &lt;br /&gt;
 ACTION                    : ... (intended action)&lt;br /&gt;
 ... (action specific instructions)&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : ...&lt;br /&gt;
 ...&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===GLUES HDF5 FILES===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : GLUES HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 3D_FILE                   : 0/1 (0 = 2D file, 1 = 3D file)&lt;br /&gt;
 &lt;br /&gt;
 TIME_GROUP                : ... (Default=&amp;quot;Time&amp;quot;. Other option: &amp;quot;SurfaceTime&amp;quot;.)&lt;br /&gt;
 &lt;br /&gt;
 BASE_GROUP                : ... (Default=&amp;quot;Results&amp;quot;. Other options: &amp;quot;Residual&amp;quot;, &amp;quot;SurfaceResults&amp;quot;.)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 &lt;br /&gt;
 (block of HDF5 data files)&lt;br /&gt;
 &amp;lt;&amp;lt;begin_list&amp;gt;&amp;gt;&lt;br /&gt;
 ... (path/name of HDF5 file with data to be included in glue, one per line, at least two files)&lt;br /&gt;
 ...                      &lt;br /&gt;
 &amp;lt;&amp;lt;end_list&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===INTERPOLATE GRIDS===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION     : ... (type of horizontal interpolation: 1 = Bilinear, 2 = Spline2D,&lt;br /&gt;
                                  3 = Triangulation)&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION_WINDOW      : ... ... ... ... (2D spatial window to consider for interpolation: &lt;br /&gt;
                                              Xmin Ymin Xmax Ymax; default = all domain)&lt;br /&gt;
 &lt;br /&gt;
 START                     : ... (start date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 END                       : ... (end date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D           : 0/1 (0 = 2D interpolation, 1 = 3D interpolation)&lt;br /&gt;
 &lt;br /&gt;
 FATHER_FILENAME           : ... (path/name of input HDF5 file with data to be interpolated)&lt;br /&gt;
 FATHER_GRID_FILENAME      : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization of input HDF5 file)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of output HDF5 file to be created)&lt;br /&gt;
 NEW_GRID_FILENAME         : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization intended for output HDF5 file)&lt;br /&gt;
 &lt;br /&gt;
 EXTRAPOLATE_2D            : 0/1/2/3/4/5 (2D extrapolation: 0=no extrapolation, 1=medium&lt;br /&gt;
                                      triangulation, 2=high triangulation, &lt;br /&gt;
                                      3=nearest neighbour, 4=nearest cell, &lt;br /&gt;
                                      5=constant value)&lt;br /&gt;
 &lt;br /&gt;
 EXTRAPOLATE_VALUE         : ... (name of the value to extrapolate to when EXTRAPOLATE_2D is&lt;br /&gt;
                                  set to constant value (5))&lt;br /&gt;
 &lt;br /&gt;
 DO_NOT_BELIEVE_MAP        : 0/1 (0=consider input HDF5 file map, 1=do not consider input HDF5&lt;br /&gt;
                                  file map)&lt;br /&gt;
 &lt;br /&gt;
 BASE_GROUP                : ... (name of base group of HDF5 variables containing data to be &lt;br /&gt;
                                  interpolated; default is &amp;quot;/Results&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 (if INTERPOLATION3D : 1 also required:)&lt;br /&gt;
 FATHER_GEOMETRY           : ... (path/name of file (MOHID format) with vertical discretization&lt;br /&gt;
                                  of input HDF5 file)&lt;br /&gt;
 NEW_GEOMETRY              : ... (path/name of file (MOHID format) with vertical discretization&lt;br /&gt;
                                  intended for output HDF5 file)&lt;br /&gt;
 POLI_DEGREE               : 1/... (degree of vertical interpolation: 1=linear, ...)&lt;br /&gt;
 &lt;br /&gt;
 AUX_GRID_FILENAME         : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization intended for auxiliar output HDF5 file;&lt;br /&gt;
                                  default is file provided in NEW_GRID_FILENAME)&lt;br /&gt;
 &lt;br /&gt;
 AUX_OUTPUTFILENAME        : ... (path/name of auxiliar output HDF5 file to contain result&lt;br /&gt;
                                  of horizontal grid interpolation)   &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - the file indicated in AUX_GRID_FILENAME can be different from the one indicated in&lt;br /&gt;
   NEW_GRID_FILENAME in terms of bathymetry, while the horizontal grid should be, commonly, the&lt;br /&gt;
   same: this altered bathymetry can be used to extend the water column in the original data so&lt;br /&gt;
   that the process of vertical interpolation is done easily;&lt;br /&gt;
 &lt;br /&gt;
 - in case of INTERPOLATION3D : 1, ConvertToHDF5 can generate new versions of bathymetry which &lt;br /&gt;
   are consistent with the geometry definition (extension is '.new'); there are possibly three&lt;br /&gt;
   bathymetry changes referring to father grid, new grid and aux grid (the same bathymetry is&lt;br /&gt;
   not altered twice); although initially new and aux grid are the same they can result &lt;br /&gt;
   different because of bathymetry changes;&lt;br /&gt;
 &lt;br /&gt;
 - in case the new geometry is 2D and father geometry is 3D then POLI_DEGREE : 1 &lt;br /&gt;
   (linear interpolation) should be used;&lt;br /&gt;
 &lt;br /&gt;
 - EXTRAPOLATE_2D : 1/2/3/4/5 should be considered if it is expected that the coast line is not&lt;br /&gt;
   coincidental in the father and new grids, to avoid lack of data in the interpolation&lt;br /&gt;
   process; extrapolation is performed for all cells even the land cells; &lt;br /&gt;
 &lt;br /&gt;
 - in case of DO_NOT_BELIEVE_MAP : 1 the application generates a map based on cells where&lt;br /&gt;
   interpolation results are available; this causes that if EXTRAPOLATE_2D : 1/2/3/4/5 is used&lt;br /&gt;
   the AUX_GRID_FILENAME should not have land cells in order for the new map to be concurrent&lt;br /&gt;
   with the result of extrapolation and avoid errors generation, specially if INTERPOLATION3D :&lt;br /&gt;
   1 is considered.&lt;br /&gt;
&lt;br /&gt;
===PATCH HDF5 FILES===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : PATCH HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION     : ... (type of interpolation: 3 = Triangulation, default and only&lt;br /&gt;
                                  one implemented)&lt;br /&gt;
 &lt;br /&gt;
 START                     : ... (start date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 END                       : ... (end date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 &lt;br /&gt;
 (block for each father HDF5 file, should be at least two)&lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                     : ... (integer priority level: 1 = highest, increase for lower&lt;br /&gt;
                                  priority)&lt;br /&gt;
 FATHER_FILENAME           : ... (path/name of input HDF5 file with data to be interpolated)&lt;br /&gt;
 FATHER_GRID_FILENAME      : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization of input HDF5 file)&lt;br /&gt;
 N_REMOVE_FRAME            : 0   (width, in number of cells, of frame to remove)&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of output HDF5 file to be created)&lt;br /&gt;
 NEW_GRID_FILENAME         : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization intended for output HDF5 file)&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CONVERT ERA40 FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT ERA40 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                  : ... (path/name of ERA40 NetCDF file)&lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
                                 (root of name for all files produced)&lt;br /&gt;
 &lt;br /&gt;
 CONVERT_TO_ASCII          : 0/1 (1 = convert variable heading info for ASCII file; 0 = default)&lt;br /&gt;
 CONVERT_TO_HDF5           : 0/1 (1 = convert to HDF5 file; 0 = default)&lt;br /&gt;
 GRIDTO180                 : 0/1 (1 = convert grid from [0 360] to [-180 180], 0 = default)&lt;br /&gt;
 &lt;br /&gt;
 XX_VARIABLE               : ... (name of longitude variable in the input file: usual name &lt;br /&gt;
                                  is &amp;quot;longitude&amp;quot;)&lt;br /&gt;
 YY_VARIABLE               : ... (name of longitude variable in the input file: usual name &lt;br /&gt;
                                  is &amp;quot;latitude&amp;quot;)&lt;br /&gt;
 TIME_VARIABLE             : ... (name of time variable in the input file: usual name is&lt;br /&gt;
                                  &amp;quot;time&amp;quot;)&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - either CONVERT_TO_ASCII : 1 or CONVERT_TO_HDF5 : 1 must be chosen for any action to be&lt;br /&gt;
 performed by ConvertToHDF5;&lt;br /&gt;
 &lt;br /&gt;
 - when CONVERT_TO_HDF5 : 1 an HDF5 file is produced for every variable contained in the&lt;br /&gt;
 original ERA40 file; the name of each file is composed of the name indicated on FILENAME&lt;br /&gt;
 concatenated with the ERA40 variable identifier;&lt;br /&gt;
 &lt;br /&gt;
 - to the XX_VARIABLE, YY_VARIABLE and TIME_VARIABLE keywords should generally be  &lt;br /&gt;
 specified &amp;quot;longitude&amp;quot;, &amp;quot;latitude&amp;quot; and &amp;quot;time&amp;quot;, respectively; the option to&lt;br /&gt;
 include as keywords was made only to make the application robust to future variable name&lt;br /&gt;
 changes.&lt;br /&gt;
&lt;br /&gt;
===CONVERT ALADIN FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT ALADIN FORMAT&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : aladin.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : aladin_griddata.dat&lt;br /&gt;
 &lt;br /&gt;
 !Put here the name of any netcdf file for grid-data generation's sake.&lt;br /&gt;
 INPUT_GRID_FILENAME      :   D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKCLOUD_OPASYMP_19723_20088.nc&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 (path to aladin netcdf file)\ALADIN_BULKIR_OPASYMP_19723_20088.nc&lt;br /&gt;
 ...&lt;br /&gt;
 &amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - the name of each Aladin property to convert in &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;...&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt; block must conform to the following variables&lt;br /&gt;
 &lt;br /&gt;
           ---ALADIN NAME---    ---MOHID NAME---&lt;br /&gt;
             soclotot            CloudCover_&lt;br /&gt;
             sohumrel            RelativeHumidity_&lt;br /&gt;
             sofluxir            NonSolarFlux_&lt;br /&gt;
             sosspres            AtmosphericPressure_&lt;br /&gt;
             sosolarf            SolarRadiation_&lt;br /&gt;
             sotemair            AirTemperature_&lt;br /&gt;
             sowinmod            WindModulus_&lt;br /&gt;
             sowaprec            Precipitation_&lt;br /&gt;
             sozotaux            WindStressX_&lt;br /&gt;
             sometauy            WindStressY_&lt;br /&gt;
             sowindu10           WindVelocityX_&lt;br /&gt;
             sowindv10           WindVelocityY_&lt;br /&gt;
&lt;br /&gt;
===CONVERT MM5 FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT MM5 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                  : ... (path/name of MM5 file)&lt;br /&gt;
 TERRAIN_FILENAME          : ... (path/name of MM5 TERRAIN file)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME               : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME         : ... (path/name of grid data file with horizontal grid of MM5 data to be created)&lt;br /&gt;
 &lt;br /&gt;
 COMPUTE_WINDSTRESS           : 0/1 (1 = compute and write wind stress field; 0 = default)&lt;br /&gt;
 COMPUTE_WINDMODULUS          : 0/1 (1 = compute wind modulus; 0 = default)&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY    : 0/1 (1 = compute and write 2-meter relative humidity field; 0 = default)&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY_3D : 0/1 (1 = compute and write 3D relative humidity field; 0 = default)&lt;br /&gt;
 COMPUTE_PRECIPITATION        : 0/1 (1 = compute and write precipitation field; 0 = default)&lt;br /&gt;
 COMPUTE_MSLP                 : 0/1 (1 = compute and write mean sea level pressure field; 0 = default)&lt;br /&gt;
 &lt;br /&gt;
 WRITE_XYZ                    : 0/1 (1 = write xyz center grid cells; 0 = default)&lt;br /&gt;
 WRITE_TERRAIN                : 0/1 (1 = write MM5 TERRAIN fields; 0 = default)&lt;br /&gt;
 &lt;br /&gt;
 START                        : ... (start date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 END                          : ... (end date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
  &lt;br /&gt;
 (block of MM5 properties to convert)&lt;br /&gt;
 &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;&lt;br /&gt;
 ... (name of MM5 property to convert do HDF5 format, one per line)&lt;br /&gt;
 ... &lt;br /&gt;
 &amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - the name of each MM5 property to convert in &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;...&amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt; block must&lt;br /&gt;
 conform to the MOHID designation specified in code of ModuleGlobalData; the correspondence is &lt;br /&gt;
 the following (see [[Module_InterfaceWaterAir]] for a more detailed explanation).&lt;br /&gt;
 &lt;br /&gt;
           ---MM5 NAME---    ---MOHID NAME---&lt;br /&gt;
             T2             air temperature&lt;br /&gt;
             PSTARCRS       atmospheric pressure&lt;br /&gt;
             U10            wind velocity X&lt;br /&gt;
             V10            wind velocity Y&lt;br /&gt;
             UST            wind shear velocity&lt;br /&gt;
             LHFLUX         latent heat&lt;br /&gt;
             SWDOWN         sensible heat&lt;br /&gt;
             SWDOWN         solar radiation&lt;br /&gt;
             LWDOWN         infrared radiation&lt;br /&gt;
             SWOUT          top outgoing shortwave radiation&lt;br /&gt;
             LWOUT          top outgoing longwave radiation&lt;br /&gt;
             SOIL T 1       soil temperature layer 1&lt;br /&gt;
             SOIL T 1       soil temperature layer 2&lt;br /&gt;
             SOIL T 1       soil temperature layer 3&lt;br /&gt;
             SOIL T 1       soil temperature layer 4&lt;br /&gt;
             SOIL T 1       soil temperature layer 5&lt;br /&gt;
             SOIL T 1       soil temperature layer 6&lt;br /&gt;
             Q2             2-meter mixing ratio&lt;br /&gt;
             TSEASFC        sea water temperature&lt;br /&gt;
             PBL HGT        PBL height&lt;br /&gt;
             PBL REGIME     PBL regime&lt;br /&gt;
             RAIN CON       accumulated convective precipitation        (cm)&lt;br /&gt;
             RAIN NON       accumulated non-convective precipitation    (cm)&lt;br /&gt;
             GROUND T       ground temperature&lt;br /&gt;
             RES TEMP       infinite reservoir slab temperature&lt;br /&gt;
             U              wind velocity X_3D&lt;br /&gt;
             V              wind velocity Y_3D&lt;br /&gt;
             W              wind velocity Z_3D&lt;br /&gt;
             T              air temperature_3D&lt;br /&gt;
             PP             atmospheric pressure_3D&lt;br /&gt;
             Q              mixing ratio_3D&lt;br /&gt;
             CLW            cloud water mixing ratio_3D&lt;br /&gt;
             RNW            rain water mixing ratio_3D&lt;br /&gt;
             ICE            cloud ice mixing ratio_3D&lt;br /&gt;
             SNOW           snow mixing ratio_3D&lt;br /&gt;
             RAD TEND       atmospheric radiation tendency_3D&lt;br /&gt;
&lt;br /&gt;
===CONVERT WRF FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT MM5 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                  : ... (path/name of WRF file)&lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : ... (path/name of grid data file with horizontal grid of WRF data&lt;br /&gt;
                                  to be created)&lt;br /&gt;
 &lt;br /&gt;
 COMPUTE_WINDSTRESS        : 0/1 (1 = compute and write wind stress field; 0 = default)&lt;br /&gt;
 COMPUTE_WINDMODULUS       : 0/1 (1 = compute wind modulus; 0 = default)&lt;br /&gt;
&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY    : 0/1 (1 = compute and write 2-meter relative humidity field; 0 = default)&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY_3D : 0/1 (1 = compute and write 3D relative humidity field; 0 = default)&lt;br /&gt;
&lt;br /&gt;
 COMPUTE_PRECIPITATION     : 0/1 (1 = compute and write precipitation field; 0 = default)&lt;br /&gt;
&lt;br /&gt;
 COMPUTE_MSLP_MM5          : 0/1 (1 = compute mean sea level pressure with MM5toGrads algorithm; 0 = default)&lt;br /&gt;
 COMPUTE_MSLP_WRF          : 0/1 (1 = compute mean sea level pressure with ARWPost algorithm; 0 = default)&lt;br /&gt;
&lt;br /&gt;
 WRITE_XYZ                 : 0/1 (1 = write xyz center grid cells; 0 = default)&lt;br /&gt;
 WRITE_TERRAIN             : 0/1 (1 = write MM5 TERRAIN fields; 0 = default)&lt;br /&gt;
 OUTPUT_DT                 : real (DT interval in seconds between each output; default = 0.0)&lt;br /&gt;
&lt;br /&gt;
 START                     : ... (start date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 END                       : ... (end date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
  &lt;br /&gt;
 (block of properties to convert)&lt;br /&gt;
 &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;&lt;br /&gt;
 ... (name of property to convert do HDF5 format, one per line)&lt;br /&gt;
 ... &lt;br /&gt;
 &amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - the name of each property to convert in &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;...&amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt; block must conform to the MOHID designation specified in code of ModuleGlobalData; the correspondence to WRF is in function VariableIsToRead in ModuleWRFFormat. Conversion is not direct since WRF outputs tendencies and not total values. &lt;br /&gt;
&lt;br /&gt;
 - Caution: This action is not extensively tested.&lt;br /&gt;
&lt;br /&gt;
===CONVERT MERCATOR FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT MERCATOR FORMAT&lt;br /&gt;
 &lt;br /&gt;
 READ_OPTION               : 1/2/3/4 (version of MERCATOR files)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : ... (path/name of grid data with horizontal discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME  : ... (path/name of geometry file with vertical discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 &lt;br /&gt;
 (if READ_OPTION : 1:)&lt;br /&gt;
 BASE_BULLETIN             : ...&lt;br /&gt;
 DATES_FILE                : ...&lt;br /&gt;
 NUM_DATES                 : ... &lt;br /&gt;
 &lt;br /&gt;
 (if READ_OPTION : 2/3:)&lt;br /&gt;
 INPUT_GRID_FILENAME       : ... (path/name of file with horizontal discretization of water&lt;br /&gt;
                                  properties and water level data)&lt;br /&gt;
 (if READ_OPTION : 2:)&lt;br /&gt;
 INPUT_GRID_FILENAME_U     : ... (path/name of file with horizontal discretization of velocity&lt;br /&gt;
                                  component U data)&lt;br /&gt;
 INPUT_GRID_FILENAME_V     : ... (path/name of file with horizontal discretization of velocity&lt;br /&gt;
                                  component V data)&lt;br /&gt;
 &lt;br /&gt;
 (if READ_OPTION : 3:)&lt;br /&gt;
 INPUT_BATHY_FILENAME      : ... (path/name of file with bathymetry)&lt;br /&gt;
     &lt;br /&gt;
 (if READ_OPTION : 3/4:)&lt;br /&gt;
 CALC_BAROTROPIC_VEL       : 0/1 (1 = calculate barotropic velocity, 0 = not calculate; &lt;br /&gt;
                                  default = 0)&lt;br /&gt;
 &lt;br /&gt;
 (if CALC_BAROTROPIC_VEL : 1 and READ_OPTION : 3:)&lt;br /&gt;
 INPUT_MESH_ZGRID_FILENAME : ... (path/name of file with information about layers ticknesses)&lt;br /&gt;
 &lt;br /&gt;
 (block of MERCATOR data files)&lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 ... (path/name of MERCATOR NetCDF data file, one per line, can be several)&lt;br /&gt;
 ... &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CONVERT LEVITUS FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT LEVITUS FORMAT&lt;br /&gt;
  &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : ... (path/name of grid data with horizontal discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME  : ... (path/name of geometry file with vertical discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 &lt;br /&gt;
 PERIODICITY               : ... (periodicity of Levitus data: &amp;quot;monthly&amp;quot;/&amp;quot;annual&amp;quot;; default is&lt;br /&gt;
                                  &amp;quot;monthly&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 SPATIAL_RESOLUTION        : ... (spatial resolution (degrees) of horizontal Levitus grid)&lt;br /&gt;
 &lt;br /&gt;
 FILL_VALUE                : ... (real value identificator for missing data; default is &lt;br /&gt;
                                  &amp;quot;-99.999900&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 (definition of spatial window to be present in output HDF5 file)&lt;br /&gt;
 LOWER_LEFT_CORNER         : ... ... (longitude and latitude (degrees) of south west corner)&lt;br /&gt;
 UPPER_RIGHT_CORNER        : ... ... (longitude and latitude (degrees) of north east corner)&lt;br /&gt;
 &lt;br /&gt;
 (block for each water property to be present in output HDF5 file, can be several)&lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                      : ... (name of property)&lt;br /&gt;
 ANNUAL_FILE               : ... (path/name of Levitus annual file)&lt;br /&gt;
 &lt;br /&gt;
 (block of Levitus data files)&lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 ... (path/name of Levitus data file (e.g. a monthly data file), one per line, can be several)&lt;br /&gt;
 ... &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CONVERT HELLERMAN ROSENSTEIN ASCII===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT HELLERMAN ROSENSTEIN ASCII&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : ... (path/name of grid data with horizontal discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
  &lt;br /&gt;
 PERIODICITY               : ... (periodicity of Hellerman Rosenstein data: &amp;quot;monthly&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 SPATIAL_RESOLUTION        : ... (spatial resolution (degrees) of horizontal Hellerman&lt;br /&gt;
                                  Rosenstein grid: default and only allowed value is &amp;quot;2.&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 FILL_VALUE                : ... (real value identificator for missing data; default is &lt;br /&gt;
                                  &amp;quot;-99.999900&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 (definition of spatial window to be present in output HDF5 file)&lt;br /&gt;
 LOWER_LEFT_CORNER         : ... ... (longitude and latitude (degrees) of south west corner)&lt;br /&gt;
 UPPER_RIGHT_CORNER        : ... ... (longitude and latitude (degrees) of north east corner)&lt;br /&gt;
   &lt;br /&gt;
 (block for each Hellerman Rosenstein data file)&lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                      : ... (name of property: &amp;quot;wind stress X&amp;quot;/&amp;quot;wind stress Y&amp;quot;)&lt;br /&gt;
 FILE                      : ... (path/name Hellerman Rosenstein file)&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Samples==&lt;br /&gt;
All sample files are named ''ConvertToHDF5Action.dat''.&lt;br /&gt;
&lt;br /&gt;
===Glue several MOHID(.hdf5) files===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : GLUES HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : SurfaceHydro_OP.hdf5&lt;br /&gt;
  &lt;br /&gt;
 &amp;lt;&amp;lt;begin_list&amp;gt;&amp;gt;&lt;br /&gt;
 D:\Projectos\SurfaceHydrodynamic_21.hdf5&lt;br /&gt;
 D:\Projectos\SurfaceHydrodynamic_22.hdf5&lt;br /&gt;
 &amp;lt;&amp;lt;end_list&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Interpolate 2D MOHID(.hdf5) files to a new grid===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION    : 1&lt;br /&gt;
 FATHER_FILENAME          : D:\Projectos\MohidRun\test\res\Lagrangian_1.hdf5 &lt;br /&gt;
 OUTPUTFILENAME           : OilSpillThickness_GridRegular.hdf5&lt;br /&gt;
  &lt;br /&gt;
 START                    : 2006 6 21 17 22 30&lt;br /&gt;
 END                      : 2006 6 22 17 22 0&lt;br /&gt;
  &lt;br /&gt;
 FATHER_GRID_FILENAME     : D:\Projectos\MohidRun\GeneralData\batim\Tagus.dat_A&lt;br /&gt;
 NEW_GRID_FILENAME        : TagusConstSpacing.dat&lt;br /&gt;
  &lt;br /&gt;
 BASE_GROUP               : /Results/Oil/Data_2D&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Interpolate 3D MOHID(.hdf5) files to a new grid===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION   : 1&lt;br /&gt;
 FATHER_FILENAME         : D:\Projectos\MohidRun\test\res\Lagrangian_1.hdf5 &lt;br /&gt;
 OUTPUTFILENAME          : OilSpillThickness_GridRegular.hdf5&lt;br /&gt;
 &lt;br /&gt;
 START                   : 2006 6 21 17 22 30&lt;br /&gt;
 END                     : 2006 6 22 17 22 0&lt;br /&gt;
 &lt;br /&gt;
 FATHER_GRID_FILENAME    : D:\Projectos\MohidRun\GeneralData\batim\Tagus.dat_A&lt;br /&gt;
 NEW_GRID_FILENAME       : TagusConstSpacing.dat&lt;br /&gt;
 &lt;br /&gt;
 BASE_GROUP              : /Results/Oil/Data_2D&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D         : 1&lt;br /&gt;
 FATHER_GEOMETRY         : D:\Projectos\MohidRun\test\data\Geometry_1.dat&lt;br /&gt;
 NEW_GEOMETRY            : TagusGeometry.dat&lt;br /&gt;
 AUX_GRID_FILENAME       : TagusConstSpacing.dat&lt;br /&gt;
 AUX_OUTPUTFILENAME      : Aux_GridRegular.hdf5&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Patch several MOHID(.hdf5) files to a new grid===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION : PATCH HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION   : 3&lt;br /&gt;
 &lt;br /&gt;
 START                   : 2005 2 28 13 0 0&lt;br /&gt;
 END                     : 2005 3 1 13 0 0&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                   : 3&lt;br /&gt;
 FATHER_FILENAME         : K:\MM5output\2005022812_2005030712\MM5OUT_D1.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME    : K:\MM5output\2005022812_2005030712\grid1.dat&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                   : 2&lt;br /&gt;
 FATHER_FILENAME         : K:\MM5output\2005022812_2005030712\MM5OUT_D2.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME    : K:\MM5output\2005022812_2005030712\grid2.dat&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                   : 1&lt;br /&gt;
 FATHER_FILENAME         : K:\MM5output\2005022812_2005030712\MM5OUT_D3.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME    : K:\MM5output\2005022812_2005030712\grid3.dat&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME          : MM5Forcing.hdf5&lt;br /&gt;
 NEW_GRID_FILENAME       : K:\Simula\GeneralData\Batim\CostaPortuguesa.dat&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert an ERA40 file to MOHID(.hdf5)===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                  : CONVERT ERA40 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                : D:\Aplica\ERA40\1971ERA1973.nc&lt;br /&gt;
 OUTPUTFILENAME          : D:\Aplica\ERA40\1971ERA1973T2&lt;br /&gt;
 &lt;br /&gt;
 CONVERT_TO_ASCII        : 0&lt;br /&gt;
 CONVERT_TO_HDF5         : 1&lt;br /&gt;
 &lt;br /&gt;
 XX_VARIABLE             : longitude&lt;br /&gt;
 YY_VARIABLE             : latitude&lt;br /&gt;
 TIME_VARIABLE           : time&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert a MM5 file to MOHID(.hdf5)===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                  : CONVERT MM5 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                : K:\MM5output\DataCenter\Modelos\Meteo_IST\Fev2005\MMOUT_D3&lt;br /&gt;
 TERRAIN_FILENAME        : K:\MM5output\DataCenter\Modelos\Meteo_IST\Fev2005\TERRAIN_D3&lt;br /&gt;
 OUTPUT_GRID_FILENAME    : K:\MM5output\DataCenter\Modelos\Meteo_IST\Fev2005\grid3.dat&lt;br /&gt;
 OUTPUTFILENAME          : K:\MM5output\DataCenter\Modelos\Meteo_IST\Fev2005\MM5_D3.hdf5&lt;br /&gt;
 &lt;br /&gt;
 COMPUTE_WINDSTRESS        : 0&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY : 1&lt;br /&gt;
 WRITE_XYZ                 : 0&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;&lt;br /&gt;
 solar radiation&lt;br /&gt;
 air temperature&lt;br /&gt;
 wind velocity X&lt;br /&gt;
 wind velocity Y&lt;br /&gt;
 sensible heat&lt;br /&gt;
 latent heat&lt;br /&gt;
 atmospheric pressure&lt;br /&gt;
 sea water temperature&lt;br /&gt;
 &amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert Mercator-Ocean(.nc) to MOHID(.hdf5)===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : CONVERT MERCATOR FORMAT&lt;br /&gt;
 &lt;br /&gt;
 READ_OPTION              : 2&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : Psy2v2r1v_R20060628/MercatorR20060628.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME     : Psy2v2r1v_R20060628/MercatorGridR20060628.dat&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME : Psy2v2r1v_R20060628/MercatorGeometryR20060628.dat&lt;br /&gt;
 &lt;br /&gt;
 INPUT_GRID_FILENAME      : GridFiles/ist_meteog-gridT.nc&lt;br /&gt;
 INPUT_GRID_FILENAME_U    : GridFiles/ist_meteog-gridU.nc&lt;br /&gt;
 INPUT_GRID_FILENAME_V    : GridFiles/ist_meteog-gridV.nc&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 Psy2v2r1v_R20060628/ist_meteog-mercatorPsy2v2r1v_T_MEAN_ANA_20060621_R20060628.nc&lt;br /&gt;
 Psy2v2r1v_R20060628/ist_meteog-mercatorPsy2v2r1v_T_MEAN_ANA_20060622_R20060628.nc&lt;br /&gt;
 Psy2v2r1v_R20060628/ist_meteog-mercatorPsy2v2r1v_T_MEAN_ANA_20060623_R20060628.nc&lt;br /&gt;
 &amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert Levitus format to MOHID(.hdf5) and interpolate grid===&lt;br /&gt;
==== Convert ====&lt;br /&gt;
First convert the Levitus ASCII format to a raw HDF5 format:&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : CONVERT LEVITUS FORMAT&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : Levitus.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME     : LevitusGrid.dat&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME : LevitusGeometry.dat&lt;br /&gt;
 &lt;br /&gt;
 PERIODICITY              : monthly&lt;br /&gt;
 SPATIAL_RESOLUTION       : 0.25&lt;br /&gt;
 FILL_VALUE               : -99.9999&lt;br /&gt;
 &lt;br /&gt;
 LOWER_LEFT_CORNER        : -16.0  31&lt;br /&gt;
 UPPER_RIGHT_CORNER       :   1.   40&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : salinity&lt;br /&gt;
 ANNUAL_FILE              : DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s000hr.obj&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s001&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s002&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s003&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s004&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s005&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s006&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s007&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s008&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s009&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s010&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s011&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s012&lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : temperature&lt;br /&gt;
 ANNUAL_FILE              : DataCenter\DadosBase\Ocean\Levitus\Data\Temp\t000hr.obj&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t001&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t002&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t003&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t004&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t005&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t006&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t007&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t008&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t009&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t010&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t011&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t012&lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Extrapolate ====&lt;br /&gt;
Then extrapolate the data (still in the raw HDF5 format):&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION    : 1&lt;br /&gt;
 &lt;br /&gt;
 FATHER_FILENAME          : Levitus.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME     : LevitusGrid.dat&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : LeviTusAllPointsWithData.hdf5&lt;br /&gt;
 NEW_GRID_FILENAME        : LevitusGrid.dat&lt;br /&gt;
 &lt;br /&gt;
 START                    : -9999 1  1 0 0 0&lt;br /&gt;
 END                      : -9999 12 1 0 0 0&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D          : 1&lt;br /&gt;
 FATHER_GEOMETRY          : LevitusGeometry.dat&lt;br /&gt;
 NEW_GEOMETRY             : LevitusGeometry.dat&lt;br /&gt;
 AUX_GRID_FILENAME        : LevitusGrid.dat&lt;br /&gt;
 AUX_OUTPUTFILENAME       : AuxLeviTusAllPointsWithData.hdf5&lt;br /&gt;
 &lt;br /&gt;
 POLI_DEGREE              : 3&lt;br /&gt;
 DO_NOT_BELIEVE_MAP       : 1&lt;br /&gt;
 EXTRAPOLATE_2D           : 2&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Interpolate ====&lt;br /&gt;
Finally, interpolate to the final grid and geometry (same as the [[#Interpolate 3D MOHID(.hdf5) files to a new grid| Interpolate 3D sample]]):&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION    : 1&lt;br /&gt;
 FATHER_FILENAME          : LeviTusAllPointsWithData.hdf5&lt;br /&gt;
 OUTPUTFILENAME           : CadizMonthlyLevitus.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME     : LevitusGrid.dat&lt;br /&gt;
 NEW_GRID_FILENAME        : Algarve0.02SigmaSmooth_V3_CartMoreLayers.dat&lt;br /&gt;
 &lt;br /&gt;
 START                    : -9999 1  1 0 0 0&lt;br /&gt;
 END                      : -9999 12 1 0 0 0&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D          : 1&lt;br /&gt;
 FATHER_GEOMETRY          : LevitusGeometry.dat&lt;br /&gt;
 NEW_GEOMETRY             : Geometry_1.dat&lt;br /&gt;
 AUX_OUTPUTFILENAME       : AuxCadizMonthlyLevitus.hdf5&lt;br /&gt;
 AUX_GRID_FILENAME        : Aux12km.dat&lt;br /&gt;
 &lt;br /&gt;
 POLI_DEGREE              : 3&lt;br /&gt;
 DO_NOT_BELIEVE_MAP       : 1&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that the programme may construct a new bathymetry twice. Use this bathymetry only on the AUX_GRID_FILENAME keyword.&lt;br /&gt;
&lt;br /&gt;
===Convert Hellerman Rosenstein ASCII format to MOHID(.hdf5)  ===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : CONVERT HELLERMAN ROSENSTEIN ASCII&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : ClimatologicWindStress.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME     : ClimatologicWindStressGrid.dat&lt;br /&gt;
 &lt;br /&gt;
 PERIODICITY              : monthly&lt;br /&gt;
 SPATIAL_RESOLUTION       : 2.&lt;br /&gt;
 FILL_VALUE               : -99.9999&lt;br /&gt;
 &lt;br /&gt;
 LOWER_LEFT_CORNER        : -180  -90&lt;br /&gt;
 UPPER_RIGHT_CORNER       : 180  90&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : wind stress X&lt;br /&gt;
 FILE                     : D:\Aplica\Dados\Hellerman_Rosenstein\TAUXX.DAT&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : wind stress Y&lt;br /&gt;
 FILE                     : D:\Aplica\Dados\Hellerman_Rosenstein\TAUYY.DAT&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert ALADIN(.nc) format to MOHID(.hdf5)===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT ALADIN FORMAT&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : aladin.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : aladin_griddata.dat&lt;br /&gt;
 &lt;br /&gt;
 !Put here the name of any netcdf file for grid-data generation's sake.&lt;br /&gt;
 INPUT_GRID_FILENAME      :   D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKCLOUD_OPASYMP_19723_20088.nc&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKIR_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKPRES_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKSOLAR_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKTAIR_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKWIND_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_FLUXPRE_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_STRESSU_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_STRESSV_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_U10_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_V10_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKCLOUD_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKHUMI_OPASYMP_19723_20088.nc&lt;br /&gt;
 &amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== OceanColor modules compilation ==&lt;br /&gt;
Compiling the [[ConvertToHDF5]] tool with the OceanColor modules is more complicated than one might expect. A solution is proposed here for a release version using the Compaq Visual Fortran 6.6c. The difficulties rise because C code is embedded with a fortran interface and also, extra libraries such as hdf4 are required.&lt;br /&gt;
&lt;br /&gt;
=== Pre-requisites ===&lt;br /&gt;
&lt;br /&gt;
This is a list of prerequisites to successfully compile the tool:&lt;br /&gt;
*Compaq Visual Fortran 6.5 with patch 6.6c,&lt;br /&gt;
*VS .NET 2003 (Vc7 in particular),&lt;br /&gt;
*Hdf5 libraries ('''hdf5.lib''' '''hdf5_fortran.lib''' '''hdf5_hl.lib'''),&lt;br /&gt;
*Netcdf libraries ('''netcdf.lib''' '''netcdf_.lib'''),&lt;br /&gt;
*Hdf4 libraries ('''hd421.lib''', '''hm421.lib'''),&lt;br /&gt;
*szlib, zlib and jpeg libraries ('''szlib.lib''', '''zlib.lib''' and '''libjpeg.lib'''),&lt;br /&gt;
*the fortran source files ('''ModuleConvertModisL2.F90 ModuleConvertModisL3.F90 ModuleConvertOceanColorL2.F90'''),&lt;br /&gt;
*the C source files and their fortran interface files ('''readL2scan.c readL2Seadas.c''' and '''cdata.f crossp.f fgeonav.f''').&lt;br /&gt;
&lt;br /&gt;
=== CVF IDE configuration ===&lt;br /&gt;
# Configure everything as specified in [[Compiling with CVF]].&lt;br /&gt;
# Add the source files listed in the prerequisites above to the source files listing.&lt;br /&gt;
# Go to '''Tools--&amp;gt;Options...--&amp;gt;Directories'''. There, add the '''$DOTNET2K3/Vc7/bin''' to the '''Executable files''''; the '''$DOTNET2K3/Vc7/include''' and '''$DOTNET2K3/Vc7/PlatformSDK/include''' to the '''Include files'''; and finally, the '''$DOTNET2K3/Vc7/lib''', '''$DOTNET2K3/Vc7/PlatformSDK/lib''' and  '''$DOTNET2K3/Vc7/PlatformSDK/bin''' to the '''Library files'''.&lt;br /&gt;
# Go to '''Projects--&amp;gt;Settings--&amp;gt;Release--&amp;gt;Link--&amp;gt;Input'''. There, add the following libraries: '''netcdf.lib netcdf_.lib hd421.lib hm421.lib libjpeg.lib'''. (Make sure the hdf5 libraries as well as the szlib and zlib libraries are already mentioned).&lt;br /&gt;
&lt;br /&gt;
=== Troubleshoots ===&lt;br /&gt;
'''Q: I get unresolved external references during linkage, but I have all the libraries mentioned above included. What should I do?'''&lt;br /&gt;
&lt;br /&gt;
A: Unresolved external references can come out for two reasons:&lt;br /&gt;
#you didn't specified all the libraries required or all the paths for the default libraries or,&lt;br /&gt;
#[http://en.wikipedia.org/wiki/Name_decoration name mangling] problems. Use the [[dumpbin]] utility to the libraries to checkout which language convention they are using. If that's the problem then you need to try to get new libraries with the correct naming convention.&lt;br /&gt;
&lt;br /&gt;
That's it, you should now be able to build the [[ConvertToHdf5]] project successfully.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Q: I got a message saying the entry point _NF_PUT_ATT_REAL@28 could not be located in netcdf.dll'''&lt;br /&gt;
&lt;br /&gt;
A: copy the file netcdf.dll to the exe folder&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
*[http://www.hdfgroup.org/ HDF5 Homepage]&lt;br /&gt;
*[http://www.hdfgroup.org/ HDF4 Homepage]&lt;br /&gt;
&lt;br /&gt;
== Links ==&lt;br /&gt;
&lt;br /&gt;
*[[Module_Atmosphere]]&lt;br /&gt;
*[[Module_InterfaceWaterAir]]&lt;br /&gt;
*[[Coupling_Water-Atmosphere_User_Manual]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Tools]]&lt;br /&gt;
[[Category:Hdf5]]&lt;/div&gt;</summary>
		<author><name>Anatrancoso</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=ConvertToHDF5&amp;diff=3239</id>
		<title>ConvertToHDF5</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=ConvertToHDF5&amp;diff=3239"/>
				<updated>2010-08-06T16:14:00Z</updated>
		
		<summary type="html">&lt;p&gt;Anatrancoso: /* CONVERT WRF FORMAT */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The '''ConvertToHDF5''' is an application which allows the making of several operations, called '''actions''', involving HDF5 files: conversion of data in other formats (e.g. NETCDF) to HDF5, grid interpolation, concatenation of several files.&lt;br /&gt;
&lt;br /&gt;
Running options for this application are specified by the user in a input file named [[ConvertToHDF5#Input file (ConvertToHDF5Action.dat)|'''ConvertToHDF5Action.dat''']]. Several actions can be specified in the same input file, being processed sequentially by the ConvertToHDF5 application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
The operations involving HDF5 files performed by ConvertToHDF5, specified individually by an action, can be organized in [[#file management|file management]], [[#grid interpolation|grid interpolation]] and [[#format conversion|format conversion]]. These types and the respective actions are detailed in the next sections. &lt;br /&gt;
&lt;br /&gt;
The input file specification for each action can be found bellow in the [[#Input file (ConvertToHDF5Action.dat)|Input file (ConvertToHDF5Action.dat)]] section.&lt;br /&gt;
&lt;br /&gt;
===Compilation Settings===&lt;br /&gt;
&lt;br /&gt;
====With Compaq Visual Fortran====&lt;br /&gt;
&lt;br /&gt;
* File -&amp;gt; New -&amp;gt; Fortran Console Application&lt;br /&gt;
* Project -&amp;gt; Add to Project -&amp;gt; Files -&amp;gt; *.f90 (do not add ModuleWRFFormat.f90 and proj4.f90 if you don't want to use [[PROJ4]] library).&lt;br /&gt;
* Project -&amp;gt; Settings:&lt;br /&gt;
** Fortran tab:&lt;br /&gt;
*** Compatibility “Big Endian” to work with MM5 files.&lt;br /&gt;
*** Compilation Diagnostics -&amp;gt; Fortran Standards Checking -&amp;gt; Fortran95.&lt;br /&gt;
*** Preprocessor:&lt;br /&gt;
**** Check FPP.&lt;br /&gt;
**** INCLUDE and USE Paths: path to Libs folder.&lt;br /&gt;
** C/C++ tab:&lt;br /&gt;
*** Preprocessor -&amp;gt; Additional include directories: path to Libs.&lt;br /&gt;
** Link tab:&lt;br /&gt;
*** General -&amp;gt; Object/library modules: kernel32.lib hdf5.lib hdf5_hl.lib hdf5_fortran.lib zlib.lib szlib.lib netcdf.lib netcdf_.lib &lt;br /&gt;
*** Input -&amp;gt; Additional library path: path to Libs.&lt;br /&gt;
* Buil -&amp;gt; Rebuild All&lt;br /&gt;
&lt;br /&gt;
To run this executable, copy ''netcdf.dll'' to its directory.&lt;br /&gt;
To work with large files, compile with: Project -&amp;gt; Settings -&amp;gt; Link tab -&amp;gt; Reserve: 10^6.&lt;br /&gt;
&lt;br /&gt;
===== Compile ModuleWRFFormat =====&lt;br /&gt;
&lt;br /&gt;
To convert [[Meteo|WRF]] files or work with other projection beside UTM and Lambert Conformal, ConvertToHDF5 must be compiled with [[PROJ4]] library. To do that:&lt;br /&gt;
* Same settings as above.&lt;br /&gt;
* Project -&amp;gt; Add to Project -&amp;gt; Files:&lt;br /&gt;
** ModuleWRFFormat.f90&lt;br /&gt;
** Proj4.f90&lt;br /&gt;
* Project -&amp;gt; Settings:&lt;br /&gt;
** Fortran tab -&amp;gt; Predefined Preprocessor symbols: _USE_PROJ4&lt;br /&gt;
** Link tab -&amp;gt; General -&amp;gt; Object/library modules: add libfproj4.lib (Note: ''libfproj4.lib'' and ''proj4.inc'' must be in Libs folder)&lt;br /&gt;
* Build -&amp;gt; Rebuild All.&lt;br /&gt;
&lt;br /&gt;
===File management===&lt;br /&gt;
&lt;br /&gt;
====Glue files====&lt;br /&gt;
This action consists in joining or glue in a single HDF5 file two or more HDF5 files having the same HDF5 data groups and referring to time periods which come in sequence. Both sets of 2D and 3D HDF5 files can be glued.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Glue MOHID Water results files from several runs produced in continuous running of the model, for storage space economy reasons. Can be used to join data from other origins (e.g. results of meteorological models) as long as the HDF5 format is the one supported by MOHID Water.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 files to be glued. &amp;quot;Grid&amp;quot; and &amp;quot;Results&amp;quot; data groups should be equal in all these files.&lt;br /&gt;
&lt;br /&gt;
'''Output:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with glued &amp;quot;Results&amp;quot; data. &amp;quot;Residual&amp;quot; and &amp;quot;Statistics&amp;quot; HDF5 data groups are not copied to the output file since they are time period specific (different values potentially occour in each file). General statistics can be calculated for the glued HDF5 file data using tool [[HDF5Statistics]].&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#GLUES HDF5 FILES|GLUES HDF5 FILES]].&lt;br /&gt;
&lt;br /&gt;
===Grid interpolation===&lt;br /&gt;
&lt;br /&gt;
====Interpolate files====&lt;br /&gt;
This action performs the conversion of one HDF5 file data existing in one 2D or 3D spatial grid to another 2D or 3D spatial grid, creating a new HDF5 file. The interpolation is performed only for the data located a time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
The HDF5 file containing data to be interpolated is called the '''father file'''.&lt;br /&gt;
&lt;br /&gt;
In case of 3D interpolation the application conducts first the horizontal grid interpolation&lt;br /&gt;
(keeping father geometry) and only after it conducts the vertical interpolation (from father geometry to new geometry).&lt;br /&gt;
&lt;br /&gt;
Several types of 2D interpolation are available for use: bilinear, spline 2D and triangulation.&lt;br /&gt;
For vertical interpolation (used in 3D interpolation) can be supplied several polinomial degrees for interpolation.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain an HDF5 file with data for forcing or providing initial conditions for a MOHID Water model, e.g. a meteorological forcing file.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
For 2D/3D interpolation:&lt;br /&gt;
&lt;br /&gt;
- father HDF5 file;&lt;br /&gt;
&lt;br /&gt;
- father horizontal data grid, in a grid data file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
- new horizontal data grid, in a grid data file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
For 3D interpolation also needed:&lt;br /&gt;
&lt;br /&gt;
- father vertical geometry, in a geometry file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
- new vertical geometry, in a geometry file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
- auxiliary horizontal data grid, in a grid data file in the format supported by MOHID; this file is used for horizontal grid interpolation in 3D interpolation operations.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with interpolated data. In case of 3D interpolation also produced an auxiliary HDF5 file with the result of the horizontal grid interpolation, which can be inspected to check if this operation is well performed.&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#INTERPOLATE GRIDS|INTERPOLATE GRIDS]].&lt;br /&gt;
&lt;br /&gt;
====Patch files====&lt;br /&gt;
This action consists in performing an interpolation of HDF5 data between grids, as in action [[#Interpolate files|Interpolate files]], but considering more than one HDF5 file as containing data to be interpolated to the new grid and a priority scale. The interpolation is performed only for the data located in the time window specified by the user. The present version of this action operates only on 2D data.&lt;br /&gt;
&lt;br /&gt;
Each HDF5 file containing data to be interpolated is called a '''father file''' and has an user-attributed '''priority level''' to be respected in the interpolation process: for each new grid cell the ConvertToHDF5 application will look for data first on the Level 1 father file and only in the case this data is inexistent will it look for data in Level 2 file, proceeding in looking for higher level files if no data is found subsequentely.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
To obtain an HDF5 file with data from several HDF5 files each containing data with different spatial resolution and only for a specific part of the new grid. This is, for instance, the case when one is preparing a best resolution meteorological HDF5 file for forcing MOHID Water from several meteorological model domains, having different spatial resolution and span, since the best resolution data is not available for all new grid cells.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
The new horizontal data grid, in a grid data file in the format supported by MOHID, and for each father file:&lt;br /&gt;
&lt;br /&gt;
- level of priority: 1 = maximum priority, priority decreases with increasing level value;&lt;br /&gt;
&lt;br /&gt;
- data grid, in the form of a grid data file in the format supported by MOHID.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with patched data.&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#PATCH HDF5 FILES|PATCH HDF5 FILES]].&lt;br /&gt;
&lt;br /&gt;
===Format conversion===&lt;br /&gt;
&lt;br /&gt;
====Meteorological model data====&lt;br /&gt;
Mohid does not simulate explicitly the atmosphere, but needs information about atmospheric properties in time and space. This requires that atmospheric properties are supplied to MOHID Water in supported formats. These formats can be derived from meteorological data in HDF5 format. Because the results of meteorological models are accessed in different formats conversion is required. &lt;br /&gt;
&lt;br /&gt;
The formats currently convertible to HDF5 in ConvertToHDF5 include the MM5 and the ERA40. These are succintly detailed in the next sections.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''ERA40''=====&lt;br /&gt;
This format refers to the European Centre for Medium-Range Weather Forecasts (ECMWF) 40 years re-analysises results, acessed by site http://data.ecmwf.int/data/d/era40_daily/. This data is available for several meteorological variables with maximum 6 hour periodicity for days in the period from 1957-09-01 to 2002-08-31. &lt;br /&gt;
&lt;br /&gt;
ERA40 data files are supplied by ECMWF in a NetCDF format and with an user-costumized time window, periodicity (time step range from 6 hours to a day) and meteorological properties set. The ERA40 meteorological properties which are recognized by MOHID are presented bellow together with the correspondent MOHID name: &lt;br /&gt;
&lt;br /&gt;
 ---ERA40 NAME---         ---MOHID NAME---&lt;br /&gt;
   sshf                     sensible heat                &lt;br /&gt;
   slhf                     latent heat                  &lt;br /&gt;
   msl                      atmospheric pressure &lt;br /&gt;
   tcc                      cloud cover &lt;br /&gt;
   p10u                     wind velocity X&lt;br /&gt;
   p10v                     wind velocity Y&lt;br /&gt;
   p2t                      air temperature&lt;br /&gt;
   ewss                     wind stress X&lt;br /&gt;
   nsss                     wind stress Y&lt;br /&gt;
&lt;br /&gt;
The standard ConvertToHDF5 action is to convert to HDF5 the data referring to all MOHID Water recognized property available in the ERA40 file, producing an individual HDF5 file for each property. The name of each HDF5 file generated includes the ERA40 meteorological property identificator correspondent to the data contained.&lt;br /&gt;
&lt;br /&gt;
Alternatively, ConvertToHDF5 can copy to a single ASCII file the heading information concerning each meteorological variable considered in the original ERA40 file.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain an HDF5 file with data suitable for being used for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
ERA40 NetCDF file.&lt;br /&gt;
&lt;br /&gt;
'''Output:'''&lt;br /&gt;
&lt;br /&gt;
One HDF5 file for each meteorological property contained in the original NetCDF file.&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT ERA40 FORMAT|CONVERT ERA40 FORMAT]].&lt;br /&gt;
&lt;br /&gt;
=====''Aladin''=====&lt;br /&gt;
This format relates to Aladin meteorological model results. Some of the atmospheric property needed by MOHID Water is present in Aladin output files, enabling to run prediction simulations with MOHID Water when access to Aladin prevision files is available.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts Aladin results files from the original format to HDF5 format, allowing the easy use of these results in the MOHID framework. Conversion is only performed for the MM5 properties and the time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Produce HDF5 meteorological data usable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
Aladin netcdf results file to convert.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
An HDF5 file with Aladin results and a grid data file in MOHID format with the Aladin grid pseudo-information: a fake orography is created of 100 m depth.&lt;br /&gt;
This last file can be used to interpolate the Aladin data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]), for instance to produce an HDF5 file suitable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Compilation:'''&lt;br /&gt;
&lt;br /&gt;
Caution! The ConvertToHDF5 executable must be compiled with the [[Big-endian little-endian|Big-Endian]] option set (see compatibility in the project's settings).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT ALADIN FORMAT|CONVERT ALADIN FORMAT]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''MM5''=====&lt;br /&gt;
This format relates to the Fifth-Generation NCAR / Penn State Mesoscale Model (MM5) output files format. Almost every atmospheric property needed by MOHID Water is present in MM5 output files.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts MM5 results files from the original format to HDF5 format, allowing the easy use of these results in the MOHID framework. Conversion is only performed for the MM5 properties and the time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
Besides the conversion, the application can calculate some properties not contained in&lt;br /&gt;
the MM5 files using the available information: these are wind stress, relative humidity and mean sea level pressure.&lt;br /&gt;
&lt;br /&gt;
For conversion to be completed it is required the horizontal grid information of MM5 results which is available in special TERRAIN files.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Produce HDF5 meteorological data usable to force MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
MM5 results file to convert and MM5 TERRAIN file. The TERRAIN file supplies the MM5 results grid information. &lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
A HDF5 file with MM5 results and a grid data file in MOHID format with the MM5 grid information.&lt;br /&gt;
This last file can be used to interpolate the MM5 data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]), for instance to produce an HDF5 file suitable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Compilation:'''&lt;br /&gt;
&lt;br /&gt;
Caution! The ConvertToHDF5 executable must be compiled with the [[Big-endian little-endian|Big-Endian]] option set (see compatibility in the project's settings).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT MM5 FORMAT|CONVERT MM5 FORMAT]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''WRF''=====&lt;br /&gt;
This format relates to the Weather Research and Forecast model (WRF) output files format. Almost every atmospheric property needed by MOHID Water is present in WRF output files.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts WRF results files from the original format to HDF5 format, allowing the easy use of these results in the MOHID framework. Conversion is only performed for the WRF properties and the time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
Besides the conversion, the application can calculate some properties not contained in&lt;br /&gt;
the WRF files using the available information: these are wind stress, relative humidity and mean sea level pressure.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Produce HDF5 meteorological data usable to force MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
WRF direct output file.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
An HDF5 file with WRF results and a grid data file in MOHID format with the WRF grid information.&lt;br /&gt;
This last file can be used to interpolate the WRF data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]), for instance to produce an HDF5 file suitable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Compilation:'''&lt;br /&gt;
&lt;br /&gt;
Caution! [[PROJ4 | PROJ4]] library is needed! See [[#Compile_ModuleWRFFormat |  Compile_ModuleWRFFormat]]&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT WRF FORMAT|CONVERT WRF FORMAT]].&lt;br /&gt;
&lt;br /&gt;
====Ocean model data====&lt;br /&gt;
Ocean model data, available in diverse formats, can be used by MOHID Water to specify boundary (open ocean boundary and surface), initial conditions or for validation. These uses require that the model data is in HDF5 format and conversion is therefore needed.&lt;br /&gt;
&lt;br /&gt;
Currently the large scale ocean models formats convertible into HDF5 by ConvertToHDF5 includes MERCATOR.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''MERCATOR''=====&lt;br /&gt;
MERCATOR data files are supplied in a NetCDF format and with an user-costumized spatial window and periodicity. Water level and water properties (temperature and salinity) data is available in type T files, velocity component u data is available in type U files and velocity component v data is available in type V files. The type of data of a specific MERCATOR file is generally indicated in the file name.&lt;br /&gt;
&lt;br /&gt;
The standard ConvertToHDF5 action is to convert to HDF5 the data referring to temperature, salinity, water level, component u of velocity and component v of velocity.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain HDF5 MERCATOR data usable for forcing or validation of MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
NetCDF MERCATOR results data files and NetCDF MERCATOR grid data files. It should be provided one grid data file of each type: T, U and V. These are generally provided by the MERCATOR services together with the results files.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
One HDF5 file containing all properties contained in the recognized set of properties (temperature, salinity, water level, velocity u and velocity v) and the correspondent grid data and geometry files, containing respectively the horizontal grid and the vertical discretization of the HDF5 file. The grid data and geometry files can be used afterwards to interpolate the MERCATOR data to another grid and geometry (see [[#Interpolate files|Interpolate files]]).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT MERCATOR FORMAT|CONVERT MERCATOR FORMAT]].&lt;br /&gt;
&lt;br /&gt;
====Climatological data====&lt;br /&gt;
Climatological data can be used in MOHID Water to specify boundary (open ocean boundary and surface), initial conditions or for validation, in case more realistic data (measurements or model) data is unavailable. This data is generally supplied by producers in formats not readly usable by MOHID Water which justifies the existence of a conversion tool.&lt;br /&gt;
&lt;br /&gt;
Two climatological data format conversions are implemented in ConvertToHDF5: Levitus ocean data and Hellerman Rosenstein meteorological data.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''Levitus''=====&lt;br /&gt;
The Levitus climatology provides results for water temperature and salinity.&lt;br /&gt;
The ConvertToHDF5 action converts the climatological data for the properties and spatial window requested by the user. &lt;br /&gt;
Typically, it requires 3 steps to complete the task:&lt;br /&gt;
&lt;br /&gt;
- convert levitus format &lt;br /&gt;
&lt;br /&gt;
- extrapolate the data to the whole levitus domain(required to avoid uncoincidental coastlines) &lt;br /&gt;
&lt;br /&gt;
- interpolate with the model grid(bathymetry)&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain climatological data in HDF5 format to use as boundary forcing and/or initial condition specification in MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
Levitus climatological data files, one per property and per time period (e.g a month).&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with Levitus climatological data, grid data file with the horizontal&lt;br /&gt;
grid of the data and a geometry file with vertical discretization of the data (MOHID formats).&lt;br /&gt;
The grid data and the geometry files can be used to interpolate the climatological data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT LEVITUS FORMAT|CONVERT LEVITUS FORMAT]].&lt;br /&gt;
&lt;br /&gt;
=====''Hellerman Rosenstein''=====&lt;br /&gt;
This is a meteorological climatology providing wind stress. There is a file per wind stress component. Since the data refer to surface values it is a 2D field.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts the climatological data for the properties and spatial window provided by the user.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain climatological data in HDF5 format to use as meteorological forcing in MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
Hellerman Rosenstein climatological data ASCII files, one per wind stress component.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with Hellerman Rosenstein climatological data and grid data file with the horizontal&lt;br /&gt;
grid of the climatological data. This grid data file can be used to interpolate the climatological data from the original horizontal grid to a new grid (see [[#Interpolate files|Interpolate files]]).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT HELLERMAN ROSENSTEIN ASCII|CONVERT HELLERMAN ROSENSTEIN ASCII]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''World Ocean Atlas 2005''=====&lt;br /&gt;
The World Ocean Atlas (WOA) 2005 climatology provides results for water temperature, salinity and several water quality and biology properties.&lt;br /&gt;
&lt;br /&gt;
Description, Action and Input Files are described in a separate page: [[ConvertToHDF5 WOA2005]].&lt;br /&gt;
&lt;br /&gt;
==Input file (ConvertToHDF5Action.dat)==&lt;br /&gt;
===General structure===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt; (block containing instructions for running a specific action) &lt;br /&gt;
 ACTION                    : ... (intended action)&lt;br /&gt;
 ... (action specific instructions)&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : ...&lt;br /&gt;
 ...&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===GLUES HDF5 FILES===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : GLUES HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 3D_FILE                   : 0/1 (0 = 2D file, 1 = 3D file)&lt;br /&gt;
 &lt;br /&gt;
 TIME_GROUP                : ... (Default=&amp;quot;Time&amp;quot;. Other option: &amp;quot;SurfaceTime&amp;quot;.)&lt;br /&gt;
 &lt;br /&gt;
 BASE_GROUP                : ... (Default=&amp;quot;Results&amp;quot;. Other options: &amp;quot;Residual&amp;quot;, &amp;quot;SurfaceResults&amp;quot;.)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 &lt;br /&gt;
 (block of HDF5 data files)&lt;br /&gt;
 &amp;lt;&amp;lt;begin_list&amp;gt;&amp;gt;&lt;br /&gt;
 ... (path/name of HDF5 file with data to be included in glue, one per line, at least two files)&lt;br /&gt;
 ...                      &lt;br /&gt;
 &amp;lt;&amp;lt;end_list&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===INTERPOLATE GRIDS===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION     : ... (type of horizontal interpolation: 1 = Bilinear, 2 = Spline2D,&lt;br /&gt;
                                  3 = Triangulation)&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION_WINDOW      : ... ... ... ... (2D spatial window to consider for interpolation: &lt;br /&gt;
                                              Xmin Ymin Xmax Ymax; default = all domain)&lt;br /&gt;
 &lt;br /&gt;
 START                     : ... (start date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 END                       : ... (end date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D           : 0/1 (0 = 2D interpolation, 1 = 3D interpolation)&lt;br /&gt;
 &lt;br /&gt;
 FATHER_FILENAME           : ... (path/name of input HDF5 file with data to be interpolated)&lt;br /&gt;
 FATHER_GRID_FILENAME      : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization of input HDF5 file)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of output HDF5 file to be created)&lt;br /&gt;
 NEW_GRID_FILENAME         : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization intended for output HDF5 file)&lt;br /&gt;
 &lt;br /&gt;
 EXTRAPOLATE_2D            : 0/1/2/3/4/5 (2D extrapolation: 0=no extrapolation, 1=medium&lt;br /&gt;
                                      triangulation, 2=high triangulation, &lt;br /&gt;
                                      3=nearest neighbour, 4=nearest cell, &lt;br /&gt;
                                      5=constant value)&lt;br /&gt;
 &lt;br /&gt;
 EXTRAPOLATE_VALUE         : ... (name of the value to extrapolate to when EXTRAPOLATE_2D is&lt;br /&gt;
                                  set to constant value (5))&lt;br /&gt;
 &lt;br /&gt;
 DO_NOT_BELIEVE_MAP        : 0/1 (0=consider input HDF5 file map, 1=do not consider input HDF5&lt;br /&gt;
                                  file map)&lt;br /&gt;
 &lt;br /&gt;
 BASE_GROUP                : ... (name of base group of HDF5 variables containing data to be &lt;br /&gt;
                                  interpolated; default is &amp;quot;/Results&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 (if INTERPOLATION3D : 1 also required:)&lt;br /&gt;
 FATHER_GEOMETRY           : ... (path/name of file (MOHID format) with vertical discretization&lt;br /&gt;
                                  of input HDF5 file)&lt;br /&gt;
 NEW_GEOMETRY              : ... (path/name of file (MOHID format) with vertical discretization&lt;br /&gt;
                                  intended for output HDF5 file)&lt;br /&gt;
 POLI_DEGREE               : 1/... (degree of vertical interpolation: 1=linear, ...)&lt;br /&gt;
 &lt;br /&gt;
 AUX_GRID_FILENAME         : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization intended for auxiliar output HDF5 file;&lt;br /&gt;
                                  default is file provided in NEW_GRID_FILENAME)&lt;br /&gt;
 &lt;br /&gt;
 AUX_OUTPUTFILENAME        : ... (path/name of auxiliar output HDF5 file to contain result&lt;br /&gt;
                                  of horizontal grid interpolation)   &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - the file indicated in AUX_GRID_FILENAME can be different from the one indicated in&lt;br /&gt;
   NEW_GRID_FILENAME in terms of bathymetry, while the horizontal grid should be, commonly, the&lt;br /&gt;
   same: this altered bathymetry can be used to extend the water column in the original data so&lt;br /&gt;
   that the process of vertical interpolation is done easily;&lt;br /&gt;
 &lt;br /&gt;
 - in case of INTERPOLATION3D : 1, ConvertToHDF5 can generate new versions of bathymetry which &lt;br /&gt;
   are consistent with the geometry definition (extension is '.new'); there are possibly three&lt;br /&gt;
   bathymetry changes referring to father grid, new grid and aux grid (the same bathymetry is&lt;br /&gt;
   not altered twice); although initially new and aux grid are the same they can result &lt;br /&gt;
   different because of bathymetry changes;&lt;br /&gt;
 &lt;br /&gt;
 - in case the new geometry is 2D and father geometry is 3D then POLI_DEGREE : 1 &lt;br /&gt;
   (linear interpolation) should be used;&lt;br /&gt;
 &lt;br /&gt;
 - EXTRAPOLATE_2D : 1/2/3/4/5 should be considered if it is expected that the coast line is not&lt;br /&gt;
   coincidental in the father and new grids, to avoid lack of data in the interpolation&lt;br /&gt;
   process; extrapolation is performed for all cells even the land cells; &lt;br /&gt;
 &lt;br /&gt;
 - in case of DO_NOT_BELIEVE_MAP : 1 the application generates a map based on cells where&lt;br /&gt;
   interpolation results are available; this causes that if EXTRAPOLATE_2D : 1/2/3/4/5 is used&lt;br /&gt;
   the AUX_GRID_FILENAME should not have land cells in order for the new map to be concurrent&lt;br /&gt;
   with the result of extrapolation and avoid errors generation, specially if INTERPOLATION3D :&lt;br /&gt;
   1 is considered.&lt;br /&gt;
&lt;br /&gt;
===PATCH HDF5 FILES===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : PATCH HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION     : ... (type of interpolation: 3 = Triangulation, default and only&lt;br /&gt;
                                  one implemented)&lt;br /&gt;
 &lt;br /&gt;
 START                     : ... (start date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 END                       : ... (end date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 &lt;br /&gt;
 (block for each father HDF5 file, should be at least two)&lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                     : ... (integer priority level: 1 = highest, increase for lower&lt;br /&gt;
                                  priority)&lt;br /&gt;
 FATHER_FILENAME           : ... (path/name of input HDF5 file with data to be interpolated)&lt;br /&gt;
 FATHER_GRID_FILENAME      : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization of input HDF5 file)&lt;br /&gt;
 N_REMOVE_FRAME            : 0   (width, in number of cells, of frame to remove)&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of output HDF5 file to be created)&lt;br /&gt;
 NEW_GRID_FILENAME         : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization intended for output HDF5 file)&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CONVERT ERA40 FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT ERA40 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                  : ... (path/name of ERA40 NetCDF file)&lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
                                 (root of name for all files produced)&lt;br /&gt;
 &lt;br /&gt;
 CONVERT_TO_ASCII          : 0/1 (1 = convert variable heading info for ASCII file; 0 = default)&lt;br /&gt;
 CONVERT_TO_HDF5           : 0/1 (1 = convert to HDF5 file; 0 = default)&lt;br /&gt;
 GRIDTO180                 : 0/1 (1 = convert grid from [0 360] to [-180 180], 0 = default)&lt;br /&gt;
 &lt;br /&gt;
 XX_VARIABLE               : ... (name of longitude variable in the input file: usual name &lt;br /&gt;
                                  is &amp;quot;longitude&amp;quot;)&lt;br /&gt;
 YY_VARIABLE               : ... (name of longitude variable in the input file: usual name &lt;br /&gt;
                                  is &amp;quot;latitude&amp;quot;)&lt;br /&gt;
 TIME_VARIABLE             : ... (name of time variable in the input file: usual name is&lt;br /&gt;
                                  &amp;quot;time&amp;quot;)&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - either CONVERT_TO_ASCII : 1 or CONVERT_TO_HDF5 : 1 must be chosen for any action to be&lt;br /&gt;
 performed by ConvertToHDF5;&lt;br /&gt;
 &lt;br /&gt;
 - when CONVERT_TO_HDF5 : 1 an HDF5 file is produced for every variable contained in the&lt;br /&gt;
 original ERA40 file; the name of each file is composed of the name indicated on FILENAME&lt;br /&gt;
 concatenated with the ERA40 variable identifier;&lt;br /&gt;
 &lt;br /&gt;
 - to the XX_VARIABLE, YY_VARIABLE and TIME_VARIABLE keywords should generally be  &lt;br /&gt;
 specified &amp;quot;longitude&amp;quot;, &amp;quot;latitude&amp;quot; and &amp;quot;time&amp;quot;, respectively; the option to&lt;br /&gt;
 include as keywords was made only to make the application robust to future variable name&lt;br /&gt;
 changes.&lt;br /&gt;
&lt;br /&gt;
===CONVERT ALADIN FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT ALADIN FORMAT&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : aladin.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : aladin_griddata.dat&lt;br /&gt;
 &lt;br /&gt;
 !Put here the name of any netcdf file for grid-data generation's sake.&lt;br /&gt;
 INPUT_GRID_FILENAME      :   D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKCLOUD_OPASYMP_19723_20088.nc&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 (path to aladin netcdf file)\ALADIN_BULKIR_OPASYMP_19723_20088.nc&lt;br /&gt;
 ...&lt;br /&gt;
 &amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - the name of each Aladin property to convert in &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;...&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt; block must conform to the following variables&lt;br /&gt;
 &lt;br /&gt;
           ---ALADIN NAME---    ---MOHID NAME---&lt;br /&gt;
             soclotot            CloudCover_&lt;br /&gt;
             sohumrel            RelativeHumidity_&lt;br /&gt;
             sofluxir            NonSolarFlux_&lt;br /&gt;
             sosspres            AtmosphericPressure_&lt;br /&gt;
             sosolarf            SolarRadiation_&lt;br /&gt;
             sotemair            AirTemperature_&lt;br /&gt;
             sowinmod            WindModulus_&lt;br /&gt;
             sowaprec            Precipitation_&lt;br /&gt;
             sozotaux            WindStressX_&lt;br /&gt;
             sometauy            WindStressY_&lt;br /&gt;
             sowindu10           WindVelocityX_&lt;br /&gt;
             sowindv10           WindVelocityY_&lt;br /&gt;
&lt;br /&gt;
===CONVERT MM5 FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT MM5 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                  : ... (path/name of MM5 file)&lt;br /&gt;
 TERRAIN_FILENAME          : ... (path/name of MM5 TERRAIN file)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : ... (path/name of grid data file with horizontal grid of MM5 data&lt;br /&gt;
                                  to be created)&lt;br /&gt;
 &lt;br /&gt;
 COMPUTE_WINDSTRESS        : 0/1 (1 = compute and write wind stress field; 0 = default)&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY : 0/1 (1 = compute and write relative humidity field; 0 = default)&lt;br /&gt;
 COMPUTE_PRECIPITATION     : 0/1 (1 = compute and write precipitation field; 0 = default)&lt;br /&gt;
 COMPUTE_WINDMODULUS       : 0/1 (1 = compute wind modulus; 0 = default)&lt;br /&gt;
 &lt;br /&gt;
 WRITE_XYZ                 : 0/1 (1 = write xyz center grid cells; 0 = default)&lt;br /&gt;
 WRITE_TERRAIN             : 0/1 (1 = write MM5 TERRAIN fields; 0 = default)&lt;br /&gt;
 &lt;br /&gt;
 START                     : ... (start date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 END                       : ... (end date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
  &lt;br /&gt;
 (block of MM5 properties to convert)&lt;br /&gt;
 &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;&lt;br /&gt;
 ... (name of MM5 property to convert do HDF5 format, one per line)&lt;br /&gt;
 ... &lt;br /&gt;
 &amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - the name of each MM5 property to convert in &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;...&amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt; block must&lt;br /&gt;
 conform to the MOHID designation specified in code of ModuleGlobalData; the correspondence is &lt;br /&gt;
 the following (see [[Module_InterfaceWaterAir]] for a more detailed explanation).&lt;br /&gt;
 &lt;br /&gt;
           ---MM5 NAME---    ---MOHID NAME---&lt;br /&gt;
             T2             air temperature&lt;br /&gt;
             PSTARCRS       atmospheric pressure&lt;br /&gt;
             U10            wind velocity X&lt;br /&gt;
             V10            wind velocity Y&lt;br /&gt;
             UST            wind shear velocity&lt;br /&gt;
             LHFLUX         latent heat&lt;br /&gt;
             SWDOWN         sensible heat&lt;br /&gt;
             SWDOWN         solar radiation&lt;br /&gt;
             LWDOWN         infrared radiation&lt;br /&gt;
             SWOUT          top outgoing shortwave radiation&lt;br /&gt;
             LWOUT          top outgoing longwave radiation&lt;br /&gt;
             SOIL T 1       soil temperature layer 1&lt;br /&gt;
             SOIL T 1       soil temperature layer 2&lt;br /&gt;
             SOIL T 1       soil temperature layer 3&lt;br /&gt;
             SOIL T 1       soil temperature layer 4&lt;br /&gt;
             SOIL T 1       soil temperature layer 5&lt;br /&gt;
             SOIL T 1       soil temperature layer 6&lt;br /&gt;
             Q2             2-meter mixing ratio&lt;br /&gt;
             TSEASFC        sea water temperature&lt;br /&gt;
             PBL HGT        PBL height&lt;br /&gt;
             PBL REGIME     PBL regime&lt;br /&gt;
             RAIN CON       accumulated convective precipitation        (cm)&lt;br /&gt;
             RAIN NON       accumulated non-convective precipitation    (cm)&lt;br /&gt;
             GROUND T       ground temperature&lt;br /&gt;
             RES TEMP       infinite reservoir slab temperature&lt;br /&gt;
             U              wind velocity X_3D&lt;br /&gt;
             V              wind velocity Y_3D&lt;br /&gt;
             W              wind velocity Z_3D&lt;br /&gt;
             T              air temperature_3D&lt;br /&gt;
             PP             atmospheric pressure_3D&lt;br /&gt;
             Q              mixing ratio_3D&lt;br /&gt;
             CLW            cloud water mixing ratio_3D&lt;br /&gt;
             RNW            rain water mixing ratio_3D&lt;br /&gt;
             ICE            cloud ice mixing ratio_3D&lt;br /&gt;
             SNOW           snow mixing ratio_3D&lt;br /&gt;
             RAD TEND       atmospheric radiation tendency_3D&lt;br /&gt;
&lt;br /&gt;
===CONVERT WRF FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT MM5 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                  : ... (path/name of WRF file)&lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : ... (path/name of grid data file with horizontal grid of WRF data&lt;br /&gt;
                                  to be created)&lt;br /&gt;
 &lt;br /&gt;
 COMPUTE_WINDSTRESS        : 0/1 (1 = compute and write wind stress field; 0 = default)&lt;br /&gt;
 COMPUTE_WINDMODULUS       : 0/1 (1 = compute wind modulus; 0 = default)&lt;br /&gt;
&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY    : 0/1 (1 = compute and write 2-meter relative humidity field; 0 = default)&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY_3D : 0/1 (1 = compute and write 3D relative humidity field; 0 = default)&lt;br /&gt;
&lt;br /&gt;
 COMPUTE_PRECIPITATION     : 0/1 (1 = compute and write precipitation field; 0 = default)&lt;br /&gt;
&lt;br /&gt;
 COMPUTE_MSLP_MM5          : 0/1 (1 = compute mean sea level pressure with MM5toGrads algorithm; 0 = default)&lt;br /&gt;
 COMPUTE_MSLP_WRF          : 0/1 (1 = compute mean sea level pressure with ARWPost algorithm; 0 = default)&lt;br /&gt;
&lt;br /&gt;
 WRITE_XYZ                 : 0/1 (1 = write xyz center grid cells; 0 = default)&lt;br /&gt;
 WRITE_TERRAIN             : 0/1 (1 = write MM5 TERRAIN fields; 0 = default)&lt;br /&gt;
 OUTPUT_DT                 : real (DT interval in seconds between each output; default = 0.0)&lt;br /&gt;
&lt;br /&gt;
 START                     : ... (start date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 END                       : ... (end date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
  &lt;br /&gt;
 (block of properties to convert)&lt;br /&gt;
 &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;&lt;br /&gt;
 ... (name of property to convert do HDF5 format, one per line)&lt;br /&gt;
 ... &lt;br /&gt;
 &amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - the name of each property to convert in &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;...&amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt; block must conform to the MOHID designation specified in code of ModuleGlobalData; the correspondence to WRF is in function VariableIsToRead in ModuleWRFFormat. Conversion is not direct since WRF outputs tendencies and not total values. &lt;br /&gt;
&lt;br /&gt;
 - Caution: This action is not extensively tested.&lt;br /&gt;
&lt;br /&gt;
===CONVERT MERCATOR FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT MERCATOR FORMAT&lt;br /&gt;
 &lt;br /&gt;
 READ_OPTION               : 1/2/3/4 (version of MERCATOR files)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : ... (path/name of grid data with horizontal discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME  : ... (path/name of geometry file with vertical discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 &lt;br /&gt;
 (if READ_OPTION : 1:)&lt;br /&gt;
 BASE_BULLETIN             : ...&lt;br /&gt;
 DATES_FILE                : ...&lt;br /&gt;
 NUM_DATES                 : ... &lt;br /&gt;
 &lt;br /&gt;
 (if READ_OPTION : 2/3:)&lt;br /&gt;
 INPUT_GRID_FILENAME       : ... (path/name of file with horizontal discretization of water&lt;br /&gt;
                                  properties and water level data)&lt;br /&gt;
 (if READ_OPTION : 2:)&lt;br /&gt;
 INPUT_GRID_FILENAME_U     : ... (path/name of file with horizontal discretization of velocity&lt;br /&gt;
                                  component U data)&lt;br /&gt;
 INPUT_GRID_FILENAME_V     : ... (path/name of file with horizontal discretization of velocity&lt;br /&gt;
                                  component V data)&lt;br /&gt;
 &lt;br /&gt;
 (if READ_OPTION : 3:)&lt;br /&gt;
 INPUT_BATHY_FILENAME      : ... (path/name of file with bathymetry)&lt;br /&gt;
     &lt;br /&gt;
 (if READ_OPTION : 3/4:)&lt;br /&gt;
 CALC_BAROTROPIC_VEL       : 0/1 (1 = calculate barotropic velocity, 0 = not calculate; &lt;br /&gt;
                                  default = 0)&lt;br /&gt;
 &lt;br /&gt;
 (if CALC_BAROTROPIC_VEL : 1 and READ_OPTION : 3:)&lt;br /&gt;
 INPUT_MESH_ZGRID_FILENAME : ... (path/name of file with information about layers ticknesses)&lt;br /&gt;
 &lt;br /&gt;
 (block of MERCATOR data files)&lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 ... (path/name of MERCATOR NetCDF data file, one per line, can be several)&lt;br /&gt;
 ... &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CONVERT LEVITUS FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT LEVITUS FORMAT&lt;br /&gt;
  &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : ... (path/name of grid data with horizontal discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME  : ... (path/name of geometry file with vertical discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 &lt;br /&gt;
 PERIODICITY               : ... (periodicity of Levitus data: &amp;quot;monthly&amp;quot;/&amp;quot;annual&amp;quot;; default is&lt;br /&gt;
                                  &amp;quot;monthly&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 SPATIAL_RESOLUTION        : ... (spatial resolution (degrees) of horizontal Levitus grid)&lt;br /&gt;
 &lt;br /&gt;
 FILL_VALUE                : ... (real value identificator for missing data; default is &lt;br /&gt;
                                  &amp;quot;-99.999900&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 (definition of spatial window to be present in output HDF5 file)&lt;br /&gt;
 LOWER_LEFT_CORNER         : ... ... (longitude and latitude (degrees) of south west corner)&lt;br /&gt;
 UPPER_RIGHT_CORNER        : ... ... (longitude and latitude (degrees) of north east corner)&lt;br /&gt;
 &lt;br /&gt;
 (block for each water property to be present in output HDF5 file, can be several)&lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                      : ... (name of property)&lt;br /&gt;
 ANNUAL_FILE               : ... (path/name of Levitus annual file)&lt;br /&gt;
 &lt;br /&gt;
 (block of Levitus data files)&lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 ... (path/name of Levitus data file (e.g. a monthly data file), one per line, can be several)&lt;br /&gt;
 ... &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CONVERT HELLERMAN ROSENSTEIN ASCII===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT HELLERMAN ROSENSTEIN ASCII&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : ... (path/name of grid data with horizontal discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
  &lt;br /&gt;
 PERIODICITY               : ... (periodicity of Hellerman Rosenstein data: &amp;quot;monthly&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 SPATIAL_RESOLUTION        : ... (spatial resolution (degrees) of horizontal Hellerman&lt;br /&gt;
                                  Rosenstein grid: default and only allowed value is &amp;quot;2.&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 FILL_VALUE                : ... (real value identificator for missing data; default is &lt;br /&gt;
                                  &amp;quot;-99.999900&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 (definition of spatial window to be present in output HDF5 file)&lt;br /&gt;
 LOWER_LEFT_CORNER         : ... ... (longitude and latitude (degrees) of south west corner)&lt;br /&gt;
 UPPER_RIGHT_CORNER        : ... ... (longitude and latitude (degrees) of north east corner)&lt;br /&gt;
   &lt;br /&gt;
 (block for each Hellerman Rosenstein data file)&lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                      : ... (name of property: &amp;quot;wind stress X&amp;quot;/&amp;quot;wind stress Y&amp;quot;)&lt;br /&gt;
 FILE                      : ... (path/name Hellerman Rosenstein file)&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Samples==&lt;br /&gt;
All sample files are named ''ConvertToHDF5Action.dat''.&lt;br /&gt;
&lt;br /&gt;
===Glue several MOHID(.hdf5) files===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : GLUES HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : SurfaceHydro_OP.hdf5&lt;br /&gt;
  &lt;br /&gt;
 &amp;lt;&amp;lt;begin_list&amp;gt;&amp;gt;&lt;br /&gt;
 D:\Projectos\SurfaceHydrodynamic_21.hdf5&lt;br /&gt;
 D:\Projectos\SurfaceHydrodynamic_22.hdf5&lt;br /&gt;
 &amp;lt;&amp;lt;end_list&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Interpolate 2D MOHID(.hdf5) files to a new grid===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION    : 1&lt;br /&gt;
 FATHER_FILENAME          : D:\Projectos\MohidRun\test\res\Lagrangian_1.hdf5 &lt;br /&gt;
 OUTPUTFILENAME           : OilSpillThickness_GridRegular.hdf5&lt;br /&gt;
  &lt;br /&gt;
 START                    : 2006 6 21 17 22 30&lt;br /&gt;
 END                      : 2006 6 22 17 22 0&lt;br /&gt;
  &lt;br /&gt;
 FATHER_GRID_FILENAME     : D:\Projectos\MohidRun\GeneralData\batim\Tagus.dat_A&lt;br /&gt;
 NEW_GRID_FILENAME        : TagusConstSpacing.dat&lt;br /&gt;
  &lt;br /&gt;
 BASE_GROUP               : /Results/Oil/Data_2D&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Interpolate 3D MOHID(.hdf5) files to a new grid===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION   : 1&lt;br /&gt;
 FATHER_FILENAME         : D:\Projectos\MohidRun\test\res\Lagrangian_1.hdf5 &lt;br /&gt;
 OUTPUTFILENAME          : OilSpillThickness_GridRegular.hdf5&lt;br /&gt;
 &lt;br /&gt;
 START                   : 2006 6 21 17 22 30&lt;br /&gt;
 END                     : 2006 6 22 17 22 0&lt;br /&gt;
 &lt;br /&gt;
 FATHER_GRID_FILENAME    : D:\Projectos\MohidRun\GeneralData\batim\Tagus.dat_A&lt;br /&gt;
 NEW_GRID_FILENAME       : TagusConstSpacing.dat&lt;br /&gt;
 &lt;br /&gt;
 BASE_GROUP              : /Results/Oil/Data_2D&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D         : 1&lt;br /&gt;
 FATHER_GEOMETRY         : D:\Projectos\MohidRun\test\data\Geometry_1.dat&lt;br /&gt;
 NEW_GEOMETRY            : TagusGeometry.dat&lt;br /&gt;
 AUX_GRID_FILENAME       : TagusConstSpacing.dat&lt;br /&gt;
 AUX_OUTPUTFILENAME      : Aux_GridRegular.hdf5&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Patch several MOHID(.hdf5) files to a new grid===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION : PATCH HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION   : 3&lt;br /&gt;
 &lt;br /&gt;
 START                   : 2005 2 28 13 0 0&lt;br /&gt;
 END                     : 2005 3 1 13 0 0&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                   : 3&lt;br /&gt;
 FATHER_FILENAME         : K:\MM5output\2005022812_2005030712\MM5OUT_D1.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME    : K:\MM5output\2005022812_2005030712\grid1.dat&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                   : 2&lt;br /&gt;
 FATHER_FILENAME         : K:\MM5output\2005022812_2005030712\MM5OUT_D2.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME    : K:\MM5output\2005022812_2005030712\grid2.dat&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                   : 1&lt;br /&gt;
 FATHER_FILENAME         : K:\MM5output\2005022812_2005030712\MM5OUT_D3.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME    : K:\MM5output\2005022812_2005030712\grid3.dat&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME          : MM5Forcing.hdf5&lt;br /&gt;
 NEW_GRID_FILENAME       : K:\Simula\GeneralData\Batim\CostaPortuguesa.dat&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert an ERA40 file to MOHID(.hdf5)===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                  : CONVERT ERA40 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                : D:\Aplica\ERA40\1971ERA1973.nc&lt;br /&gt;
 OUTPUTFILENAME          : D:\Aplica\ERA40\1971ERA1973T2&lt;br /&gt;
 &lt;br /&gt;
 CONVERT_TO_ASCII        : 0&lt;br /&gt;
 CONVERT_TO_HDF5         : 1&lt;br /&gt;
 &lt;br /&gt;
 XX_VARIABLE             : longitude&lt;br /&gt;
 YY_VARIABLE             : latitude&lt;br /&gt;
 TIME_VARIABLE           : time&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert a MM5 file to MOHID(.hdf5)===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                  : CONVERT MM5 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                : K:\MM5output\DataCenter\Modelos\Meteo_IST\Fev2005\MMOUT_D3&lt;br /&gt;
 TERRAIN_FILENAME        : K:\MM5output\DataCenter\Modelos\Meteo_IST\Fev2005\TERRAIN_D3&lt;br /&gt;
 OUTPUT_GRID_FILENAME    : K:\MM5output\DataCenter\Modelos\Meteo_IST\Fev2005\grid3.dat&lt;br /&gt;
 OUTPUTFILENAME          : K:\MM5output\DataCenter\Modelos\Meteo_IST\Fev2005\MM5_D3.hdf5&lt;br /&gt;
 &lt;br /&gt;
 COMPUTE_WINDSTRESS        : 0&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY : 1&lt;br /&gt;
 WRITE_XYZ                 : 0&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;&lt;br /&gt;
 solar radiation&lt;br /&gt;
 air temperature&lt;br /&gt;
 wind velocity X&lt;br /&gt;
 wind velocity Y&lt;br /&gt;
 sensible heat&lt;br /&gt;
 latent heat&lt;br /&gt;
 atmospheric pressure&lt;br /&gt;
 sea water temperature&lt;br /&gt;
 &amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert Mercator-Ocean(.nc) to MOHID(.hdf5)===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : CONVERT MERCATOR FORMAT&lt;br /&gt;
 &lt;br /&gt;
 READ_OPTION              : 2&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : Psy2v2r1v_R20060628/MercatorR20060628.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME     : Psy2v2r1v_R20060628/MercatorGridR20060628.dat&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME : Psy2v2r1v_R20060628/MercatorGeometryR20060628.dat&lt;br /&gt;
 &lt;br /&gt;
 INPUT_GRID_FILENAME      : GridFiles/ist_meteog-gridT.nc&lt;br /&gt;
 INPUT_GRID_FILENAME_U    : GridFiles/ist_meteog-gridU.nc&lt;br /&gt;
 INPUT_GRID_FILENAME_V    : GridFiles/ist_meteog-gridV.nc&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 Psy2v2r1v_R20060628/ist_meteog-mercatorPsy2v2r1v_T_MEAN_ANA_20060621_R20060628.nc&lt;br /&gt;
 Psy2v2r1v_R20060628/ist_meteog-mercatorPsy2v2r1v_T_MEAN_ANA_20060622_R20060628.nc&lt;br /&gt;
 Psy2v2r1v_R20060628/ist_meteog-mercatorPsy2v2r1v_T_MEAN_ANA_20060623_R20060628.nc&lt;br /&gt;
 &amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert Levitus format to MOHID(.hdf5) and interpolate grid===&lt;br /&gt;
==== Convert ====&lt;br /&gt;
First convert the Levitus ASCII format to a raw HDF5 format:&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : CONVERT LEVITUS FORMAT&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : Levitus.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME     : LevitusGrid.dat&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME : LevitusGeometry.dat&lt;br /&gt;
 &lt;br /&gt;
 PERIODICITY              : monthly&lt;br /&gt;
 SPATIAL_RESOLUTION       : 0.25&lt;br /&gt;
 FILL_VALUE               : -99.9999&lt;br /&gt;
 &lt;br /&gt;
 LOWER_LEFT_CORNER        : -16.0  31&lt;br /&gt;
 UPPER_RIGHT_CORNER       :   1.   40&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : salinity&lt;br /&gt;
 ANNUAL_FILE              : DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s000hr.obj&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s001&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s002&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s003&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s004&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s005&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s006&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s007&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s008&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s009&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s010&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s011&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s012&lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : temperature&lt;br /&gt;
 ANNUAL_FILE              : DataCenter\DadosBase\Ocean\Levitus\Data\Temp\t000hr.obj&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t001&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t002&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t003&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t004&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t005&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t006&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t007&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t008&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t009&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t010&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t011&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t012&lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Extrapolate ====&lt;br /&gt;
Then extrapolate the data (still in the raw HDF5 format):&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION    : 1&lt;br /&gt;
 &lt;br /&gt;
 FATHER_FILENAME          : Levitus.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME     : LevitusGrid.dat&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : LeviTusAllPointsWithData.hdf5&lt;br /&gt;
 NEW_GRID_FILENAME        : LevitusGrid.dat&lt;br /&gt;
 &lt;br /&gt;
 START                    : -9999 1  1 0 0 0&lt;br /&gt;
 END                      : -9999 12 1 0 0 0&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D          : 1&lt;br /&gt;
 FATHER_GEOMETRY          : LevitusGeometry.dat&lt;br /&gt;
 NEW_GEOMETRY             : LevitusGeometry.dat&lt;br /&gt;
 AUX_GRID_FILENAME        : LevitusGrid.dat&lt;br /&gt;
 AUX_OUTPUTFILENAME       : AuxLeviTusAllPointsWithData.hdf5&lt;br /&gt;
 &lt;br /&gt;
 POLI_DEGREE              : 3&lt;br /&gt;
 DO_NOT_BELIEVE_MAP       : 1&lt;br /&gt;
 EXTRAPOLATE_2D           : 2&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Interpolate ====&lt;br /&gt;
Finally, interpolate to the final grid and geometry (same as the [[#Interpolate 3D MOHID(.hdf5) files to a new grid| Interpolate 3D sample]]):&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION    : 1&lt;br /&gt;
 FATHER_FILENAME          : LeviTusAllPointsWithData.hdf5&lt;br /&gt;
 OUTPUTFILENAME           : CadizMonthlyLevitus.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME     : LevitusGrid.dat&lt;br /&gt;
 NEW_GRID_FILENAME        : Algarve0.02SigmaSmooth_V3_CartMoreLayers.dat&lt;br /&gt;
 &lt;br /&gt;
 START                    : -9999 1  1 0 0 0&lt;br /&gt;
 END                      : -9999 12 1 0 0 0&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D          : 1&lt;br /&gt;
 FATHER_GEOMETRY          : LevitusGeometry.dat&lt;br /&gt;
 NEW_GEOMETRY             : Geometry_1.dat&lt;br /&gt;
 AUX_OUTPUTFILENAME       : AuxCadizMonthlyLevitus.hdf5&lt;br /&gt;
 AUX_GRID_FILENAME        : Aux12km.dat&lt;br /&gt;
 &lt;br /&gt;
 POLI_DEGREE              : 3&lt;br /&gt;
 DO_NOT_BELIEVE_MAP       : 1&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that the programme may construct a new bathymetry twice. Use this bathymetry only on the AUX_GRID_FILENAME keyword.&lt;br /&gt;
&lt;br /&gt;
===Convert Hellerman Rosenstein ASCII format to MOHID(.hdf5)  ===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : CONVERT HELLERMAN ROSENSTEIN ASCII&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : ClimatologicWindStress.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME     : ClimatologicWindStressGrid.dat&lt;br /&gt;
 &lt;br /&gt;
 PERIODICITY              : monthly&lt;br /&gt;
 SPATIAL_RESOLUTION       : 2.&lt;br /&gt;
 FILL_VALUE               : -99.9999&lt;br /&gt;
 &lt;br /&gt;
 LOWER_LEFT_CORNER        : -180  -90&lt;br /&gt;
 UPPER_RIGHT_CORNER       : 180  90&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : wind stress X&lt;br /&gt;
 FILE                     : D:\Aplica\Dados\Hellerman_Rosenstein\TAUXX.DAT&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : wind stress Y&lt;br /&gt;
 FILE                     : D:\Aplica\Dados\Hellerman_Rosenstein\TAUYY.DAT&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert ALADIN(.nc) format to MOHID(.hdf5)===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT ALADIN FORMAT&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : aladin.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : aladin_griddata.dat&lt;br /&gt;
 &lt;br /&gt;
 !Put here the name of any netcdf file for grid-data generation's sake.&lt;br /&gt;
 INPUT_GRID_FILENAME      :   D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKCLOUD_OPASYMP_19723_20088.nc&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKIR_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKPRES_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKSOLAR_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKTAIR_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKWIND_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_FLUXPRE_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_STRESSU_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_STRESSV_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_U10_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_V10_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKCLOUD_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKHUMI_OPASYMP_19723_20088.nc&lt;br /&gt;
 &amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== OceanColor modules compilation ==&lt;br /&gt;
Compiling the [[ConvertToHDF5]] tool with the OceanColor modules is more complicated than one might expect. A solution is proposed here for a release version using the Compaq Visual Fortran 6.6c. The difficulties rise because C code is embedded with a fortran interface and also, extra libraries such as hdf4 are required.&lt;br /&gt;
&lt;br /&gt;
=== Pre-requisites ===&lt;br /&gt;
&lt;br /&gt;
This is a list of prerequisites to successfully compile the tool:&lt;br /&gt;
*Compaq Visual Fortran 6.5 with patch 6.6c,&lt;br /&gt;
*VS .NET 2003 (Vc7 in particular),&lt;br /&gt;
*Hdf5 libraries ('''hdf5.lib''' '''hdf5_fortran.lib''' '''hdf5_hl.lib'''),&lt;br /&gt;
*Netcdf libraries ('''netcdf.lib''' '''netcdf_.lib'''),&lt;br /&gt;
*Hdf4 libraries ('''hd421.lib''', '''hm421.lib'''),&lt;br /&gt;
*szlib, zlib and jpeg libraries ('''szlib.lib''', '''zlib.lib''' and '''libjpeg.lib'''),&lt;br /&gt;
*the fortran source files ('''ModuleConvertModisL2.F90 ModuleConvertModisL3.F90 ModuleConvertOceanColorL2.F90'''),&lt;br /&gt;
*the C source files and their fortran interface files ('''readL2scan.c readL2Seadas.c''' and '''cdata.f crossp.f fgeonav.f''').&lt;br /&gt;
&lt;br /&gt;
=== CVF IDE configuration ===&lt;br /&gt;
# Configure everything as specified in [[Compiling with CVF]].&lt;br /&gt;
# Add the source files listed in the prerequisites above to the source files listing.&lt;br /&gt;
# Go to '''Tools--&amp;gt;Options...--&amp;gt;Directories'''. There, add the '''$DOTNET2K3/Vc7/bin''' to the '''Executable files''''; the '''$DOTNET2K3/Vc7/include''' and '''$DOTNET2K3/Vc7/PlatformSDK/include''' to the '''Include files'''; and finally, the '''$DOTNET2K3/Vc7/lib''', '''$DOTNET2K3/Vc7/PlatformSDK/lib''' and  '''$DOTNET2K3/Vc7/PlatformSDK/bin''' to the '''Library files'''.&lt;br /&gt;
# Go to '''Projects--&amp;gt;Settings--&amp;gt;Release--&amp;gt;Link--&amp;gt;Input'''. There, add the following libraries: '''netcdf.lib netcdf_.lib hd421.lib hm421.lib libjpeg.lib'''. (Make sure the hdf5 libraries as well as the szlib and zlib libraries are already mentioned).&lt;br /&gt;
&lt;br /&gt;
=== Troubleshoots ===&lt;br /&gt;
'''Q: I get unresolved external references during linkage, but I have all the libraries mentioned above included. What should I do?'''&lt;br /&gt;
&lt;br /&gt;
A: Unresolved external references can come out for two reasons:&lt;br /&gt;
#you didn't specified all the libraries required or all the paths for the default libraries or,&lt;br /&gt;
#[http://en.wikipedia.org/wiki/Name_decoration name mangling] problems. Use the [[dumpbin]] utility to the libraries to checkout which language convention they are using. If that's the problem then you need to try to get new libraries with the correct naming convention.&lt;br /&gt;
&lt;br /&gt;
That's it, you should now be able to build the [[ConvertToHdf5]] project successfully.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Q: I got a message saying the entry point _NF_PUT_ATT_REAL@28 could not be located in netcdf.dll'''&lt;br /&gt;
&lt;br /&gt;
A: copy the file netcdf.dll to the exe folder&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
*[http://www.hdfgroup.org/ HDF5 Homepage]&lt;br /&gt;
*[http://www.hdfgroup.org/ HDF4 Homepage]&lt;br /&gt;
&lt;br /&gt;
== Links ==&lt;br /&gt;
&lt;br /&gt;
*[[Module_Atmosphere]]&lt;br /&gt;
*[[Module_InterfaceWaterAir]]&lt;br /&gt;
*[[Coupling_Water-Atmosphere_User_Manual]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Tools]]&lt;br /&gt;
[[Category:Hdf5]]&lt;/div&gt;</summary>
		<author><name>Anatrancoso</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=ConvertToHDF5&amp;diff=3238</id>
		<title>ConvertToHDF5</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=ConvertToHDF5&amp;diff=3238"/>
				<updated>2010-08-06T16:03:09Z</updated>
		
		<summary type="html">&lt;p&gt;Anatrancoso: /* WRF */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The '''ConvertToHDF5''' is an application which allows the making of several operations, called '''actions''', involving HDF5 files: conversion of data in other formats (e.g. NETCDF) to HDF5, grid interpolation, concatenation of several files.&lt;br /&gt;
&lt;br /&gt;
Running options for this application are specified by the user in a input file named [[ConvertToHDF5#Input file (ConvertToHDF5Action.dat)|'''ConvertToHDF5Action.dat''']]. Several actions can be specified in the same input file, being processed sequentially by the ConvertToHDF5 application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
The operations involving HDF5 files performed by ConvertToHDF5, specified individually by an action, can be organized in [[#file management|file management]], [[#grid interpolation|grid interpolation]] and [[#format conversion|format conversion]]. These types and the respective actions are detailed in the next sections. &lt;br /&gt;
&lt;br /&gt;
The input file specification for each action can be found bellow in the [[#Input file (ConvertToHDF5Action.dat)|Input file (ConvertToHDF5Action.dat)]] section.&lt;br /&gt;
&lt;br /&gt;
===Compilation Settings===&lt;br /&gt;
&lt;br /&gt;
====With Compaq Visual Fortran====&lt;br /&gt;
&lt;br /&gt;
* File -&amp;gt; New -&amp;gt; Fortran Console Application&lt;br /&gt;
* Project -&amp;gt; Add to Project -&amp;gt; Files -&amp;gt; *.f90 (do not add ModuleWRFFormat.f90 and proj4.f90 if you don't want to use [[PROJ4]] library).&lt;br /&gt;
* Project -&amp;gt; Settings:&lt;br /&gt;
** Fortran tab:&lt;br /&gt;
*** Compatibility “Big Endian” to work with MM5 files.&lt;br /&gt;
*** Compilation Diagnostics -&amp;gt; Fortran Standards Checking -&amp;gt; Fortran95.&lt;br /&gt;
*** Preprocessor:&lt;br /&gt;
**** Check FPP.&lt;br /&gt;
**** INCLUDE and USE Paths: path to Libs folder.&lt;br /&gt;
** C/C++ tab:&lt;br /&gt;
*** Preprocessor -&amp;gt; Additional include directories: path to Libs.&lt;br /&gt;
** Link tab:&lt;br /&gt;
*** General -&amp;gt; Object/library modules: kernel32.lib hdf5.lib hdf5_hl.lib hdf5_fortran.lib zlib.lib szlib.lib netcdf.lib netcdf_.lib &lt;br /&gt;
*** Input -&amp;gt; Additional library path: path to Libs.&lt;br /&gt;
* Buil -&amp;gt; Rebuild All&lt;br /&gt;
&lt;br /&gt;
To run this executable, copy ''netcdf.dll'' to its directory.&lt;br /&gt;
To work with large files, compile with: Project -&amp;gt; Settings -&amp;gt; Link tab -&amp;gt; Reserve: 10^6.&lt;br /&gt;
&lt;br /&gt;
===== Compile ModuleWRFFormat =====&lt;br /&gt;
&lt;br /&gt;
To convert [[Meteo|WRF]] files or work with other projection beside UTM and Lambert Conformal, ConvertToHDF5 must be compiled with [[PROJ4]] library. To do that:&lt;br /&gt;
* Same settings as above.&lt;br /&gt;
* Project -&amp;gt; Add to Project -&amp;gt; Files:&lt;br /&gt;
** ModuleWRFFormat.f90&lt;br /&gt;
** Proj4.f90&lt;br /&gt;
* Project -&amp;gt; Settings:&lt;br /&gt;
** Fortran tab -&amp;gt; Predefined Preprocessor symbols: _USE_PROJ4&lt;br /&gt;
** Link tab -&amp;gt; General -&amp;gt; Object/library modules: add libfproj4.lib (Note: ''libfproj4.lib'' and ''proj4.inc'' must be in Libs folder)&lt;br /&gt;
* Build -&amp;gt; Rebuild All.&lt;br /&gt;
&lt;br /&gt;
===File management===&lt;br /&gt;
&lt;br /&gt;
====Glue files====&lt;br /&gt;
This action consists in joining or glue in a single HDF5 file two or more HDF5 files having the same HDF5 data groups and referring to time periods which come in sequence. Both sets of 2D and 3D HDF5 files can be glued.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Glue MOHID Water results files from several runs produced in continuous running of the model, for storage space economy reasons. Can be used to join data from other origins (e.g. results of meteorological models) as long as the HDF5 format is the one supported by MOHID Water.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 files to be glued. &amp;quot;Grid&amp;quot; and &amp;quot;Results&amp;quot; data groups should be equal in all these files.&lt;br /&gt;
&lt;br /&gt;
'''Output:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with glued &amp;quot;Results&amp;quot; data. &amp;quot;Residual&amp;quot; and &amp;quot;Statistics&amp;quot; HDF5 data groups are not copied to the output file since they are time period specific (different values potentially occour in each file). General statistics can be calculated for the glued HDF5 file data using tool [[HDF5Statistics]].&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#GLUES HDF5 FILES|GLUES HDF5 FILES]].&lt;br /&gt;
&lt;br /&gt;
===Grid interpolation===&lt;br /&gt;
&lt;br /&gt;
====Interpolate files====&lt;br /&gt;
This action performs the conversion of one HDF5 file data existing in one 2D or 3D spatial grid to another 2D or 3D spatial grid, creating a new HDF5 file. The interpolation is performed only for the data located a time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
The HDF5 file containing data to be interpolated is called the '''father file'''.&lt;br /&gt;
&lt;br /&gt;
In case of 3D interpolation the application conducts first the horizontal grid interpolation&lt;br /&gt;
(keeping father geometry) and only after it conducts the vertical interpolation (from father geometry to new geometry).&lt;br /&gt;
&lt;br /&gt;
Several types of 2D interpolation are available for use: bilinear, spline 2D and triangulation.&lt;br /&gt;
For vertical interpolation (used in 3D interpolation) can be supplied several polinomial degrees for interpolation.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain an HDF5 file with data for forcing or providing initial conditions for a MOHID Water model, e.g. a meteorological forcing file.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
For 2D/3D interpolation:&lt;br /&gt;
&lt;br /&gt;
- father HDF5 file;&lt;br /&gt;
&lt;br /&gt;
- father horizontal data grid, in a grid data file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
- new horizontal data grid, in a grid data file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
For 3D interpolation also needed:&lt;br /&gt;
&lt;br /&gt;
- father vertical geometry, in a geometry file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
- new vertical geometry, in a geometry file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
- auxiliary horizontal data grid, in a grid data file in the format supported by MOHID; this file is used for horizontal grid interpolation in 3D interpolation operations.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with interpolated data. In case of 3D interpolation also produced an auxiliary HDF5 file with the result of the horizontal grid interpolation, which can be inspected to check if this operation is well performed.&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#INTERPOLATE GRIDS|INTERPOLATE GRIDS]].&lt;br /&gt;
&lt;br /&gt;
====Patch files====&lt;br /&gt;
This action consists in performing an interpolation of HDF5 data between grids, as in action [[#Interpolate files|Interpolate files]], but considering more than one HDF5 file as containing data to be interpolated to the new grid and a priority scale. The interpolation is performed only for the data located in the time window specified by the user. The present version of this action operates only on 2D data.&lt;br /&gt;
&lt;br /&gt;
Each HDF5 file containing data to be interpolated is called a '''father file''' and has an user-attributed '''priority level''' to be respected in the interpolation process: for each new grid cell the ConvertToHDF5 application will look for data first on the Level 1 father file and only in the case this data is inexistent will it look for data in Level 2 file, proceeding in looking for higher level files if no data is found subsequentely.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
To obtain an HDF5 file with data from several HDF5 files each containing data with different spatial resolution and only for a specific part of the new grid. This is, for instance, the case when one is preparing a best resolution meteorological HDF5 file for forcing MOHID Water from several meteorological model domains, having different spatial resolution and span, since the best resolution data is not available for all new grid cells.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
The new horizontal data grid, in a grid data file in the format supported by MOHID, and for each father file:&lt;br /&gt;
&lt;br /&gt;
- level of priority: 1 = maximum priority, priority decreases with increasing level value;&lt;br /&gt;
&lt;br /&gt;
- data grid, in the form of a grid data file in the format supported by MOHID.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with patched data.&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#PATCH HDF5 FILES|PATCH HDF5 FILES]].&lt;br /&gt;
&lt;br /&gt;
===Format conversion===&lt;br /&gt;
&lt;br /&gt;
====Meteorological model data====&lt;br /&gt;
Mohid does not simulate explicitly the atmosphere, but needs information about atmospheric properties in time and space. This requires that atmospheric properties are supplied to MOHID Water in supported formats. These formats can be derived from meteorological data in HDF5 format. Because the results of meteorological models are accessed in different formats conversion is required. &lt;br /&gt;
&lt;br /&gt;
The formats currently convertible to HDF5 in ConvertToHDF5 include the MM5 and the ERA40. These are succintly detailed in the next sections.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''ERA40''=====&lt;br /&gt;
This format refers to the European Centre for Medium-Range Weather Forecasts (ECMWF) 40 years re-analysises results, acessed by site http://data.ecmwf.int/data/d/era40_daily/. This data is available for several meteorological variables with maximum 6 hour periodicity for days in the period from 1957-09-01 to 2002-08-31. &lt;br /&gt;
&lt;br /&gt;
ERA40 data files are supplied by ECMWF in a NetCDF format and with an user-costumized time window, periodicity (time step range from 6 hours to a day) and meteorological properties set. The ERA40 meteorological properties which are recognized by MOHID are presented bellow together with the correspondent MOHID name: &lt;br /&gt;
&lt;br /&gt;
 ---ERA40 NAME---         ---MOHID NAME---&lt;br /&gt;
   sshf                     sensible heat                &lt;br /&gt;
   slhf                     latent heat                  &lt;br /&gt;
   msl                      atmospheric pressure &lt;br /&gt;
   tcc                      cloud cover &lt;br /&gt;
   p10u                     wind velocity X&lt;br /&gt;
   p10v                     wind velocity Y&lt;br /&gt;
   p2t                      air temperature&lt;br /&gt;
   ewss                     wind stress X&lt;br /&gt;
   nsss                     wind stress Y&lt;br /&gt;
&lt;br /&gt;
The standard ConvertToHDF5 action is to convert to HDF5 the data referring to all MOHID Water recognized property available in the ERA40 file, producing an individual HDF5 file for each property. The name of each HDF5 file generated includes the ERA40 meteorological property identificator correspondent to the data contained.&lt;br /&gt;
&lt;br /&gt;
Alternatively, ConvertToHDF5 can copy to a single ASCII file the heading information concerning each meteorological variable considered in the original ERA40 file.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain an HDF5 file with data suitable for being used for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
ERA40 NetCDF file.&lt;br /&gt;
&lt;br /&gt;
'''Output:'''&lt;br /&gt;
&lt;br /&gt;
One HDF5 file for each meteorological property contained in the original NetCDF file.&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT ERA40 FORMAT|CONVERT ERA40 FORMAT]].&lt;br /&gt;
&lt;br /&gt;
=====''Aladin''=====&lt;br /&gt;
This format relates to Aladin meteorological model results. Some of the atmospheric property needed by MOHID Water is present in Aladin output files, enabling to run prediction simulations with MOHID Water when access to Aladin prevision files is available.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts Aladin results files from the original format to HDF5 format, allowing the easy use of these results in the MOHID framework. Conversion is only performed for the MM5 properties and the time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Produce HDF5 meteorological data usable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
Aladin netcdf results file to convert.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
An HDF5 file with Aladin results and a grid data file in MOHID format with the Aladin grid pseudo-information: a fake orography is created of 100 m depth.&lt;br /&gt;
This last file can be used to interpolate the Aladin data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]), for instance to produce an HDF5 file suitable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Compilation:'''&lt;br /&gt;
&lt;br /&gt;
Caution! The ConvertToHDF5 executable must be compiled with the [[Big-endian little-endian|Big-Endian]] option set (see compatibility in the project's settings).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT ALADIN FORMAT|CONVERT ALADIN FORMAT]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''MM5''=====&lt;br /&gt;
This format relates to the Fifth-Generation NCAR / Penn State Mesoscale Model (MM5) output files format. Almost every atmospheric property needed by MOHID Water is present in MM5 output files.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts MM5 results files from the original format to HDF5 format, allowing the easy use of these results in the MOHID framework. Conversion is only performed for the MM5 properties and the time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
Besides the conversion, the application can calculate some properties not contained in&lt;br /&gt;
the MM5 files using the available information: these are wind stress, relative humidity and mean sea level pressure.&lt;br /&gt;
&lt;br /&gt;
For conversion to be completed it is required the horizontal grid information of MM5 results which is available in special TERRAIN files.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Produce HDF5 meteorological data usable to force MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
MM5 results file to convert and MM5 TERRAIN file. The TERRAIN file supplies the MM5 results grid information. &lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
A HDF5 file with MM5 results and a grid data file in MOHID format with the MM5 grid information.&lt;br /&gt;
This last file can be used to interpolate the MM5 data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]), for instance to produce an HDF5 file suitable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Compilation:'''&lt;br /&gt;
&lt;br /&gt;
Caution! The ConvertToHDF5 executable must be compiled with the [[Big-endian little-endian|Big-Endian]] option set (see compatibility in the project's settings).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT MM5 FORMAT|CONVERT MM5 FORMAT]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''WRF''=====&lt;br /&gt;
This format relates to the Weather Research and Forecast model (WRF) output files format. Almost every atmospheric property needed by MOHID Water is present in WRF output files.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts WRF results files from the original format to HDF5 format, allowing the easy use of these results in the MOHID framework. Conversion is only performed for the WRF properties and the time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
Besides the conversion, the application can calculate some properties not contained in&lt;br /&gt;
the WRF files using the available information: these are wind stress, relative humidity and mean sea level pressure.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Produce HDF5 meteorological data usable to force MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
WRF direct output file.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
An HDF5 file with WRF results and a grid data file in MOHID format with the WRF grid information.&lt;br /&gt;
This last file can be used to interpolate the WRF data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]), for instance to produce an HDF5 file suitable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Compilation:'''&lt;br /&gt;
&lt;br /&gt;
Caution! [[PROJ4 | PROJ4]] library is needed! See [[#Compile_ModuleWRFFormat |  Compile_ModuleWRFFormat]]&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT WRF FORMAT|CONVERT WRF FORMAT]].&lt;br /&gt;
&lt;br /&gt;
====Ocean model data====&lt;br /&gt;
Ocean model data, available in diverse formats, can be used by MOHID Water to specify boundary (open ocean boundary and surface), initial conditions or for validation. These uses require that the model data is in HDF5 format and conversion is therefore needed.&lt;br /&gt;
&lt;br /&gt;
Currently the large scale ocean models formats convertible into HDF5 by ConvertToHDF5 includes MERCATOR.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''MERCATOR''=====&lt;br /&gt;
MERCATOR data files are supplied in a NetCDF format and with an user-costumized spatial window and periodicity. Water level and water properties (temperature and salinity) data is available in type T files, velocity component u data is available in type U files and velocity component v data is available in type V files. The type of data of a specific MERCATOR file is generally indicated in the file name.&lt;br /&gt;
&lt;br /&gt;
The standard ConvertToHDF5 action is to convert to HDF5 the data referring to temperature, salinity, water level, component u of velocity and component v of velocity.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain HDF5 MERCATOR data usable for forcing or validation of MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
NetCDF MERCATOR results data files and NetCDF MERCATOR grid data files. It should be provided one grid data file of each type: T, U and V. These are generally provided by the MERCATOR services together with the results files.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
One HDF5 file containing all properties contained in the recognized set of properties (temperature, salinity, water level, velocity u and velocity v) and the correspondent grid data and geometry files, containing respectively the horizontal grid and the vertical discretization of the HDF5 file. The grid data and geometry files can be used afterwards to interpolate the MERCATOR data to another grid and geometry (see [[#Interpolate files|Interpolate files]]).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT MERCATOR FORMAT|CONVERT MERCATOR FORMAT]].&lt;br /&gt;
&lt;br /&gt;
====Climatological data====&lt;br /&gt;
Climatological data can be used in MOHID Water to specify boundary (open ocean boundary and surface), initial conditions or for validation, in case more realistic data (measurements or model) data is unavailable. This data is generally supplied by producers in formats not readly usable by MOHID Water which justifies the existence of a conversion tool.&lt;br /&gt;
&lt;br /&gt;
Two climatological data format conversions are implemented in ConvertToHDF5: Levitus ocean data and Hellerman Rosenstein meteorological data.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''Levitus''=====&lt;br /&gt;
The Levitus climatology provides results for water temperature and salinity.&lt;br /&gt;
The ConvertToHDF5 action converts the climatological data for the properties and spatial window requested by the user. &lt;br /&gt;
Typically, it requires 3 steps to complete the task:&lt;br /&gt;
&lt;br /&gt;
- convert levitus format &lt;br /&gt;
&lt;br /&gt;
- extrapolate the data to the whole levitus domain(required to avoid uncoincidental coastlines) &lt;br /&gt;
&lt;br /&gt;
- interpolate with the model grid(bathymetry)&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain climatological data in HDF5 format to use as boundary forcing and/or initial condition specification in MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
Levitus climatological data files, one per property and per time period (e.g a month).&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with Levitus climatological data, grid data file with the horizontal&lt;br /&gt;
grid of the data and a geometry file with vertical discretization of the data (MOHID formats).&lt;br /&gt;
The grid data and the geometry files can be used to interpolate the climatological data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT LEVITUS FORMAT|CONVERT LEVITUS FORMAT]].&lt;br /&gt;
&lt;br /&gt;
=====''Hellerman Rosenstein''=====&lt;br /&gt;
This is a meteorological climatology providing wind stress. There is a file per wind stress component. Since the data refer to surface values it is a 2D field.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts the climatological data for the properties and spatial window provided by the user.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain climatological data in HDF5 format to use as meteorological forcing in MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
Hellerman Rosenstein climatological data ASCII files, one per wind stress component.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with Hellerman Rosenstein climatological data and grid data file with the horizontal&lt;br /&gt;
grid of the climatological data. This grid data file can be used to interpolate the climatological data from the original horizontal grid to a new grid (see [[#Interpolate files|Interpolate files]]).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT HELLERMAN ROSENSTEIN ASCII|CONVERT HELLERMAN ROSENSTEIN ASCII]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''World Ocean Atlas 2005''=====&lt;br /&gt;
The World Ocean Atlas (WOA) 2005 climatology provides results for water temperature, salinity and several water quality and biology properties.&lt;br /&gt;
&lt;br /&gt;
Description, Action and Input Files are described in a separate page: [[ConvertToHDF5 WOA2005]].&lt;br /&gt;
&lt;br /&gt;
==Input file (ConvertToHDF5Action.dat)==&lt;br /&gt;
===General structure===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt; (block containing instructions for running a specific action) &lt;br /&gt;
 ACTION                    : ... (intended action)&lt;br /&gt;
 ... (action specific instructions)&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : ...&lt;br /&gt;
 ...&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===GLUES HDF5 FILES===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : GLUES HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 3D_FILE                   : 0/1 (0 = 2D file, 1 = 3D file)&lt;br /&gt;
 &lt;br /&gt;
 TIME_GROUP                : ... (Default=&amp;quot;Time&amp;quot;. Other option: &amp;quot;SurfaceTime&amp;quot;.)&lt;br /&gt;
 &lt;br /&gt;
 BASE_GROUP                : ... (Default=&amp;quot;Results&amp;quot;. Other options: &amp;quot;Residual&amp;quot;, &amp;quot;SurfaceResults&amp;quot;.)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 &lt;br /&gt;
 (block of HDF5 data files)&lt;br /&gt;
 &amp;lt;&amp;lt;begin_list&amp;gt;&amp;gt;&lt;br /&gt;
 ... (path/name of HDF5 file with data to be included in glue, one per line, at least two files)&lt;br /&gt;
 ...                      &lt;br /&gt;
 &amp;lt;&amp;lt;end_list&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===INTERPOLATE GRIDS===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION     : ... (type of horizontal interpolation: 1 = Bilinear, 2 = Spline2D,&lt;br /&gt;
                                  3 = Triangulation)&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION_WINDOW      : ... ... ... ... (2D spatial window to consider for interpolation: &lt;br /&gt;
                                              Xmin Ymin Xmax Ymax; default = all domain)&lt;br /&gt;
 &lt;br /&gt;
 START                     : ... (start date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 END                       : ... (end date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D           : 0/1 (0 = 2D interpolation, 1 = 3D interpolation)&lt;br /&gt;
 &lt;br /&gt;
 FATHER_FILENAME           : ... (path/name of input HDF5 file with data to be interpolated)&lt;br /&gt;
 FATHER_GRID_FILENAME      : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization of input HDF5 file)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of output HDF5 file to be created)&lt;br /&gt;
 NEW_GRID_FILENAME         : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization intended for output HDF5 file)&lt;br /&gt;
 &lt;br /&gt;
 EXTRAPOLATE_2D            : 0/1/2/3/4/5 (2D extrapolation: 0=no extrapolation, 1=medium&lt;br /&gt;
                                      triangulation, 2=high triangulation, &lt;br /&gt;
                                      3=nearest neighbour, 4=nearest cell, &lt;br /&gt;
                                      5=constant value)&lt;br /&gt;
 &lt;br /&gt;
 EXTRAPOLATE_VALUE         : ... (name of the value to extrapolate to when EXTRAPOLATE_2D is&lt;br /&gt;
                                  set to constant value (5))&lt;br /&gt;
 &lt;br /&gt;
 DO_NOT_BELIEVE_MAP        : 0/1 (0=consider input HDF5 file map, 1=do not consider input HDF5&lt;br /&gt;
                                  file map)&lt;br /&gt;
 &lt;br /&gt;
 BASE_GROUP                : ... (name of base group of HDF5 variables containing data to be &lt;br /&gt;
                                  interpolated; default is &amp;quot;/Results&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 (if INTERPOLATION3D : 1 also required:)&lt;br /&gt;
 FATHER_GEOMETRY           : ... (path/name of file (MOHID format) with vertical discretization&lt;br /&gt;
                                  of input HDF5 file)&lt;br /&gt;
 NEW_GEOMETRY              : ... (path/name of file (MOHID format) with vertical discretization&lt;br /&gt;
                                  intended for output HDF5 file)&lt;br /&gt;
 POLI_DEGREE               : 1/... (degree of vertical interpolation: 1=linear, ...)&lt;br /&gt;
 &lt;br /&gt;
 AUX_GRID_FILENAME         : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization intended for auxiliar output HDF5 file;&lt;br /&gt;
                                  default is file provided in NEW_GRID_FILENAME)&lt;br /&gt;
 &lt;br /&gt;
 AUX_OUTPUTFILENAME        : ... (path/name of auxiliar output HDF5 file to contain result&lt;br /&gt;
                                  of horizontal grid interpolation)   &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - the file indicated in AUX_GRID_FILENAME can be different from the one indicated in&lt;br /&gt;
   NEW_GRID_FILENAME in terms of bathymetry, while the horizontal grid should be, commonly, the&lt;br /&gt;
   same: this altered bathymetry can be used to extend the water column in the original data so&lt;br /&gt;
   that the process of vertical interpolation is done easily;&lt;br /&gt;
 &lt;br /&gt;
 - in case of INTERPOLATION3D : 1, ConvertToHDF5 can generate new versions of bathymetry which &lt;br /&gt;
   are consistent with the geometry definition (extension is '.new'); there are possibly three&lt;br /&gt;
   bathymetry changes referring to father grid, new grid and aux grid (the same bathymetry is&lt;br /&gt;
   not altered twice); although initially new and aux grid are the same they can result &lt;br /&gt;
   different because of bathymetry changes;&lt;br /&gt;
 &lt;br /&gt;
 - in case the new geometry is 2D and father geometry is 3D then POLI_DEGREE : 1 &lt;br /&gt;
   (linear interpolation) should be used;&lt;br /&gt;
 &lt;br /&gt;
 - EXTRAPOLATE_2D : 1/2/3/4/5 should be considered if it is expected that the coast line is not&lt;br /&gt;
   coincidental in the father and new grids, to avoid lack of data in the interpolation&lt;br /&gt;
   process; extrapolation is performed for all cells even the land cells; &lt;br /&gt;
 &lt;br /&gt;
 - in case of DO_NOT_BELIEVE_MAP : 1 the application generates a map based on cells where&lt;br /&gt;
   interpolation results are available; this causes that if EXTRAPOLATE_2D : 1/2/3/4/5 is used&lt;br /&gt;
   the AUX_GRID_FILENAME should not have land cells in order for the new map to be concurrent&lt;br /&gt;
   with the result of extrapolation and avoid errors generation, specially if INTERPOLATION3D :&lt;br /&gt;
   1 is considered.&lt;br /&gt;
&lt;br /&gt;
===PATCH HDF5 FILES===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : PATCH HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION     : ... (type of interpolation: 3 = Triangulation, default and only&lt;br /&gt;
                                  one implemented)&lt;br /&gt;
 &lt;br /&gt;
 START                     : ... (start date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 END                       : ... (end date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 &lt;br /&gt;
 (block for each father HDF5 file, should be at least two)&lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                     : ... (integer priority level: 1 = highest, increase for lower&lt;br /&gt;
                                  priority)&lt;br /&gt;
 FATHER_FILENAME           : ... (path/name of input HDF5 file with data to be interpolated)&lt;br /&gt;
 FATHER_GRID_FILENAME      : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization of input HDF5 file)&lt;br /&gt;
 N_REMOVE_FRAME            : 0   (width, in number of cells, of frame to remove)&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of output HDF5 file to be created)&lt;br /&gt;
 NEW_GRID_FILENAME         : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization intended for output HDF5 file)&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CONVERT ERA40 FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT ERA40 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                  : ... (path/name of ERA40 NetCDF file)&lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
                                 (root of name for all files produced)&lt;br /&gt;
 &lt;br /&gt;
 CONVERT_TO_ASCII          : 0/1 (1 = convert variable heading info for ASCII file; 0 = default)&lt;br /&gt;
 CONVERT_TO_HDF5           : 0/1 (1 = convert to HDF5 file; 0 = default)&lt;br /&gt;
 GRIDTO180                 : 0/1 (1 = convert grid from [0 360] to [-180 180], 0 = default)&lt;br /&gt;
 &lt;br /&gt;
 XX_VARIABLE               : ... (name of longitude variable in the input file: usual name &lt;br /&gt;
                                  is &amp;quot;longitude&amp;quot;)&lt;br /&gt;
 YY_VARIABLE               : ... (name of longitude variable in the input file: usual name &lt;br /&gt;
                                  is &amp;quot;latitude&amp;quot;)&lt;br /&gt;
 TIME_VARIABLE             : ... (name of time variable in the input file: usual name is&lt;br /&gt;
                                  &amp;quot;time&amp;quot;)&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - either CONVERT_TO_ASCII : 1 or CONVERT_TO_HDF5 : 1 must be chosen for any action to be&lt;br /&gt;
 performed by ConvertToHDF5;&lt;br /&gt;
 &lt;br /&gt;
 - when CONVERT_TO_HDF5 : 1 an HDF5 file is produced for every variable contained in the&lt;br /&gt;
 original ERA40 file; the name of each file is composed of the name indicated on FILENAME&lt;br /&gt;
 concatenated with the ERA40 variable identifier;&lt;br /&gt;
 &lt;br /&gt;
 - to the XX_VARIABLE, YY_VARIABLE and TIME_VARIABLE keywords should generally be  &lt;br /&gt;
 specified &amp;quot;longitude&amp;quot;, &amp;quot;latitude&amp;quot; and &amp;quot;time&amp;quot;, respectively; the option to&lt;br /&gt;
 include as keywords was made only to make the application robust to future variable name&lt;br /&gt;
 changes.&lt;br /&gt;
&lt;br /&gt;
===CONVERT ALADIN FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT ALADIN FORMAT&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : aladin.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : aladin_griddata.dat&lt;br /&gt;
 &lt;br /&gt;
 !Put here the name of any netcdf file for grid-data generation's sake.&lt;br /&gt;
 INPUT_GRID_FILENAME      :   D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKCLOUD_OPASYMP_19723_20088.nc&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 (path to aladin netcdf file)\ALADIN_BULKIR_OPASYMP_19723_20088.nc&lt;br /&gt;
 ...&lt;br /&gt;
 &amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - the name of each Aladin property to convert in &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;...&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt; block must conform to the following variables&lt;br /&gt;
 &lt;br /&gt;
           ---ALADIN NAME---    ---MOHID NAME---&lt;br /&gt;
             soclotot            CloudCover_&lt;br /&gt;
             sohumrel            RelativeHumidity_&lt;br /&gt;
             sofluxir            NonSolarFlux_&lt;br /&gt;
             sosspres            AtmosphericPressure_&lt;br /&gt;
             sosolarf            SolarRadiation_&lt;br /&gt;
             sotemair            AirTemperature_&lt;br /&gt;
             sowinmod            WindModulus_&lt;br /&gt;
             sowaprec            Precipitation_&lt;br /&gt;
             sozotaux            WindStressX_&lt;br /&gt;
             sometauy            WindStressY_&lt;br /&gt;
             sowindu10           WindVelocityX_&lt;br /&gt;
             sowindv10           WindVelocityY_&lt;br /&gt;
&lt;br /&gt;
===CONVERT MM5 FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT MM5 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                  : ... (path/name of MM5 file)&lt;br /&gt;
 TERRAIN_FILENAME          : ... (path/name of MM5 TERRAIN file)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : ... (path/name of grid data file with horizontal grid of MM5 data&lt;br /&gt;
                                  to be created)&lt;br /&gt;
 &lt;br /&gt;
 COMPUTE_WINDSTRESS        : 0/1 (1 = compute and write wind stress field; 0 = default)&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY : 0/1 (1 = compute and write relative humidity field; 0 = default)&lt;br /&gt;
 COMPUTE_PRECIPITATION     : 0/1 (1 = compute and write precipitation field; 0 = default)&lt;br /&gt;
 COMPUTE_WINDMODULUS       : 0/1 (1 = compute wind modulus; 0 = default)&lt;br /&gt;
 &lt;br /&gt;
 WRITE_XYZ                 : 0/1 (1 = write xyz center grid cells; 0 = default)&lt;br /&gt;
 WRITE_TERRAIN             : 0/1 (1 = write MM5 TERRAIN fields; 0 = default)&lt;br /&gt;
 &lt;br /&gt;
 START                     : ... (start date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 END                       : ... (end date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
  &lt;br /&gt;
 (block of MM5 properties to convert)&lt;br /&gt;
 &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;&lt;br /&gt;
 ... (name of MM5 property to convert do HDF5 format, one per line)&lt;br /&gt;
 ... &lt;br /&gt;
 &amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - the name of each MM5 property to convert in &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;...&amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt; block must&lt;br /&gt;
 conform to the MOHID designation specified in code of ModuleGlobalData; the correspondence is &lt;br /&gt;
 the following (see [[Module_InterfaceWaterAir]] for a more detailed explanation).&lt;br /&gt;
 &lt;br /&gt;
           ---MM5 NAME---    ---MOHID NAME---&lt;br /&gt;
             T2             air temperature&lt;br /&gt;
             PSTARCRS       atmospheric pressure&lt;br /&gt;
             U10            wind velocity X&lt;br /&gt;
             V10            wind velocity Y&lt;br /&gt;
             UST            wind shear velocity&lt;br /&gt;
             LHFLUX         latent heat&lt;br /&gt;
             SWDOWN         sensible heat&lt;br /&gt;
             SWDOWN         solar radiation&lt;br /&gt;
             LWDOWN         infrared radiation&lt;br /&gt;
             SWOUT          top outgoing shortwave radiation&lt;br /&gt;
             LWOUT          top outgoing longwave radiation&lt;br /&gt;
             SOIL T 1       soil temperature layer 1&lt;br /&gt;
             SOIL T 1       soil temperature layer 2&lt;br /&gt;
             SOIL T 1       soil temperature layer 3&lt;br /&gt;
             SOIL T 1       soil temperature layer 4&lt;br /&gt;
             SOIL T 1       soil temperature layer 5&lt;br /&gt;
             SOIL T 1       soil temperature layer 6&lt;br /&gt;
             Q2             2-meter mixing ratio&lt;br /&gt;
             TSEASFC        sea water temperature&lt;br /&gt;
             PBL HGT        PBL height&lt;br /&gt;
             PBL REGIME     PBL regime&lt;br /&gt;
             RAIN CON       accumulated convective precipitation        (cm)&lt;br /&gt;
             RAIN NON       accumulated non-convective precipitation    (cm)&lt;br /&gt;
             GROUND T       ground temperature&lt;br /&gt;
             RES TEMP       infinite reservoir slab temperature&lt;br /&gt;
             U              wind velocity X_3D&lt;br /&gt;
             V              wind velocity Y_3D&lt;br /&gt;
             W              wind velocity Z_3D&lt;br /&gt;
             T              air temperature_3D&lt;br /&gt;
             PP             atmospheric pressure_3D&lt;br /&gt;
             Q              mixing ratio_3D&lt;br /&gt;
             CLW            cloud water mixing ratio_3D&lt;br /&gt;
             RNW            rain water mixing ratio_3D&lt;br /&gt;
             ICE            cloud ice mixing ratio_3D&lt;br /&gt;
             SNOW           snow mixing ratio_3D&lt;br /&gt;
             RAD TEND       atmospheric radiation tendency_3D&lt;br /&gt;
&lt;br /&gt;
===CONVERT WRF FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT MM5 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                  : ... (path/name of MM5 file)&lt;br /&gt;
 TERRAIN_FILENAME          : ... (path/name of MM5 TERRAIN file)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : ... (path/name of grid data file with horizontal grid of MM5 data&lt;br /&gt;
                                  to be created)&lt;br /&gt;
 &lt;br /&gt;
 COMPUTE_WINDSTRESS        : 0/1 (1 = compute and write wind stress field; 0 = default)&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY : 0/1 (1 = compute and write relative humidity field; 0 = default)&lt;br /&gt;
 COMPUTE_PRECIPITATION     : 0/1 (1 = compute and write precipitation field; 0 = default)&lt;br /&gt;
 COMPUTE_WINDMODULUS       : 0/1 (1 = compute wind modulus; 0 = default)&lt;br /&gt;
 &lt;br /&gt;
 WRITE_XYZ                 : 0/1 (1 = write xyz center grid cells; 0 = default)&lt;br /&gt;
 WRITE_TERRAIN             : 0/1 (1 = write MM5 TERRAIN fields; 0 = default)&lt;br /&gt;
 &lt;br /&gt;
 START                     : ... (start date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 END                       : ... (end date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
  &lt;br /&gt;
 (block of MM5 properties to convert)&lt;br /&gt;
 &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;&lt;br /&gt;
 ... (name of MM5 property to convert do HDF5 format, one per line)&lt;br /&gt;
 ... &lt;br /&gt;
 &amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - the name of each MM5 property to convert in &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;...&amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt; block must&lt;br /&gt;
 conform to the MOHID designation specified in code of ModuleGlobalData; the correspondence is &lt;br /&gt;
 the following (see [[Module_InterfaceWaterAir]] for a more detailed explanation).&lt;br /&gt;
 &lt;br /&gt;
           ---MM5 NAME---    ---MOHID NAME---&lt;br /&gt;
             T2             air temperature&lt;br /&gt;
             PSTARCRS       atmospheric pressure&lt;br /&gt;
             U10            wind velocity X&lt;br /&gt;
             V10            wind velocity Y&lt;br /&gt;
             UST            wind shear velocity&lt;br /&gt;
             LHFLUX         latent heat&lt;br /&gt;
             SWDOWN         sensible heat&lt;br /&gt;
             SWDOWN         solar radiation&lt;br /&gt;
             LWDOWN         infrared radiation&lt;br /&gt;
             SWOUT          top outgoing shortwave radiation&lt;br /&gt;
             LWOUT          top outgoing longwave radiation&lt;br /&gt;
             SOIL T 1       soil temperature layer 1&lt;br /&gt;
             SOIL T 1       soil temperature layer 2&lt;br /&gt;
             SOIL T 1       soil temperature layer 3&lt;br /&gt;
             SOIL T 1       soil temperature layer 4&lt;br /&gt;
             SOIL T 1       soil temperature layer 5&lt;br /&gt;
             SOIL T 1       soil temperature layer 6&lt;br /&gt;
             Q2             2-meter mixing ratio&lt;br /&gt;
             TSEASFC        sea water temperature&lt;br /&gt;
             PBL HGT        PBL height&lt;br /&gt;
             PBL REGIME     PBL regime&lt;br /&gt;
             RAIN CON       accumulated convective precipitation        (cm)&lt;br /&gt;
             RAIN NON       accumulated non-convective precipitation    (cm)&lt;br /&gt;
             GROUND T       ground temperature&lt;br /&gt;
             RES TEMP       infinite reservoir slab temperature&lt;br /&gt;
             U              wind velocity X_3D&lt;br /&gt;
             V              wind velocity Y_3D&lt;br /&gt;
             W              wind velocity Z_3D&lt;br /&gt;
             T              air temperature_3D&lt;br /&gt;
             PP             atmospheric pressure_3D&lt;br /&gt;
             Q              mixing ratio_3D&lt;br /&gt;
             CLW            cloud water mixing ratio_3D&lt;br /&gt;
             RNW            rain water mixing ratio_3D&lt;br /&gt;
             ICE            cloud ice mixing ratio_3D&lt;br /&gt;
             SNOW           snow mixing ratio_3D&lt;br /&gt;
             RAD TEND       atmospheric radiation tendency_3D&lt;br /&gt;
&lt;br /&gt;
===CONVERT MERCATOR FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT MERCATOR FORMAT&lt;br /&gt;
 &lt;br /&gt;
 READ_OPTION               : 1/2/3/4 (version of MERCATOR files)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : ... (path/name of grid data with horizontal discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME  : ... (path/name of geometry file with vertical discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 &lt;br /&gt;
 (if READ_OPTION : 1:)&lt;br /&gt;
 BASE_BULLETIN             : ...&lt;br /&gt;
 DATES_FILE                : ...&lt;br /&gt;
 NUM_DATES                 : ... &lt;br /&gt;
 &lt;br /&gt;
 (if READ_OPTION : 2/3:)&lt;br /&gt;
 INPUT_GRID_FILENAME       : ... (path/name of file with horizontal discretization of water&lt;br /&gt;
                                  properties and water level data)&lt;br /&gt;
 (if READ_OPTION : 2:)&lt;br /&gt;
 INPUT_GRID_FILENAME_U     : ... (path/name of file with horizontal discretization of velocity&lt;br /&gt;
                                  component U data)&lt;br /&gt;
 INPUT_GRID_FILENAME_V     : ... (path/name of file with horizontal discretization of velocity&lt;br /&gt;
                                  component V data)&lt;br /&gt;
 &lt;br /&gt;
 (if READ_OPTION : 3:)&lt;br /&gt;
 INPUT_BATHY_FILENAME      : ... (path/name of file with bathymetry)&lt;br /&gt;
     &lt;br /&gt;
 (if READ_OPTION : 3/4:)&lt;br /&gt;
 CALC_BAROTROPIC_VEL       : 0/1 (1 = calculate barotropic velocity, 0 = not calculate; &lt;br /&gt;
                                  default = 0)&lt;br /&gt;
 &lt;br /&gt;
 (if CALC_BAROTROPIC_VEL : 1 and READ_OPTION : 3:)&lt;br /&gt;
 INPUT_MESH_ZGRID_FILENAME : ... (path/name of file with information about layers ticknesses)&lt;br /&gt;
 &lt;br /&gt;
 (block of MERCATOR data files)&lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 ... (path/name of MERCATOR NetCDF data file, one per line, can be several)&lt;br /&gt;
 ... &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CONVERT LEVITUS FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT LEVITUS FORMAT&lt;br /&gt;
  &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : ... (path/name of grid data with horizontal discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME  : ... (path/name of geometry file with vertical discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 &lt;br /&gt;
 PERIODICITY               : ... (periodicity of Levitus data: &amp;quot;monthly&amp;quot;/&amp;quot;annual&amp;quot;; default is&lt;br /&gt;
                                  &amp;quot;monthly&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 SPATIAL_RESOLUTION        : ... (spatial resolution (degrees) of horizontal Levitus grid)&lt;br /&gt;
 &lt;br /&gt;
 FILL_VALUE                : ... (real value identificator for missing data; default is &lt;br /&gt;
                                  &amp;quot;-99.999900&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 (definition of spatial window to be present in output HDF5 file)&lt;br /&gt;
 LOWER_LEFT_CORNER         : ... ... (longitude and latitude (degrees) of south west corner)&lt;br /&gt;
 UPPER_RIGHT_CORNER        : ... ... (longitude and latitude (degrees) of north east corner)&lt;br /&gt;
 &lt;br /&gt;
 (block for each water property to be present in output HDF5 file, can be several)&lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                      : ... (name of property)&lt;br /&gt;
 ANNUAL_FILE               : ... (path/name of Levitus annual file)&lt;br /&gt;
 &lt;br /&gt;
 (block of Levitus data files)&lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 ... (path/name of Levitus data file (e.g. a monthly data file), one per line, can be several)&lt;br /&gt;
 ... &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CONVERT HELLERMAN ROSENSTEIN ASCII===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT HELLERMAN ROSENSTEIN ASCII&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : ... (path/name of grid data with horizontal discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
  &lt;br /&gt;
 PERIODICITY               : ... (periodicity of Hellerman Rosenstein data: &amp;quot;monthly&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 SPATIAL_RESOLUTION        : ... (spatial resolution (degrees) of horizontal Hellerman&lt;br /&gt;
                                  Rosenstein grid: default and only allowed value is &amp;quot;2.&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 FILL_VALUE                : ... (real value identificator for missing data; default is &lt;br /&gt;
                                  &amp;quot;-99.999900&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 (definition of spatial window to be present in output HDF5 file)&lt;br /&gt;
 LOWER_LEFT_CORNER         : ... ... (longitude and latitude (degrees) of south west corner)&lt;br /&gt;
 UPPER_RIGHT_CORNER        : ... ... (longitude and latitude (degrees) of north east corner)&lt;br /&gt;
   &lt;br /&gt;
 (block for each Hellerman Rosenstein data file)&lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                      : ... (name of property: &amp;quot;wind stress X&amp;quot;/&amp;quot;wind stress Y&amp;quot;)&lt;br /&gt;
 FILE                      : ... (path/name Hellerman Rosenstein file)&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Samples==&lt;br /&gt;
All sample files are named ''ConvertToHDF5Action.dat''.&lt;br /&gt;
&lt;br /&gt;
===Glue several MOHID(.hdf5) files===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : GLUES HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : SurfaceHydro_OP.hdf5&lt;br /&gt;
  &lt;br /&gt;
 &amp;lt;&amp;lt;begin_list&amp;gt;&amp;gt;&lt;br /&gt;
 D:\Projectos\SurfaceHydrodynamic_21.hdf5&lt;br /&gt;
 D:\Projectos\SurfaceHydrodynamic_22.hdf5&lt;br /&gt;
 &amp;lt;&amp;lt;end_list&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Interpolate 2D MOHID(.hdf5) files to a new grid===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION    : 1&lt;br /&gt;
 FATHER_FILENAME          : D:\Projectos\MohidRun\test\res\Lagrangian_1.hdf5 &lt;br /&gt;
 OUTPUTFILENAME           : OilSpillThickness_GridRegular.hdf5&lt;br /&gt;
  &lt;br /&gt;
 START                    : 2006 6 21 17 22 30&lt;br /&gt;
 END                      : 2006 6 22 17 22 0&lt;br /&gt;
  &lt;br /&gt;
 FATHER_GRID_FILENAME     : D:\Projectos\MohidRun\GeneralData\batim\Tagus.dat_A&lt;br /&gt;
 NEW_GRID_FILENAME        : TagusConstSpacing.dat&lt;br /&gt;
  &lt;br /&gt;
 BASE_GROUP               : /Results/Oil/Data_2D&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Interpolate 3D MOHID(.hdf5) files to a new grid===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION   : 1&lt;br /&gt;
 FATHER_FILENAME         : D:\Projectos\MohidRun\test\res\Lagrangian_1.hdf5 &lt;br /&gt;
 OUTPUTFILENAME          : OilSpillThickness_GridRegular.hdf5&lt;br /&gt;
 &lt;br /&gt;
 START                   : 2006 6 21 17 22 30&lt;br /&gt;
 END                     : 2006 6 22 17 22 0&lt;br /&gt;
 &lt;br /&gt;
 FATHER_GRID_FILENAME    : D:\Projectos\MohidRun\GeneralData\batim\Tagus.dat_A&lt;br /&gt;
 NEW_GRID_FILENAME       : TagusConstSpacing.dat&lt;br /&gt;
 &lt;br /&gt;
 BASE_GROUP              : /Results/Oil/Data_2D&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D         : 1&lt;br /&gt;
 FATHER_GEOMETRY         : D:\Projectos\MohidRun\test\data\Geometry_1.dat&lt;br /&gt;
 NEW_GEOMETRY            : TagusGeometry.dat&lt;br /&gt;
 AUX_GRID_FILENAME       : TagusConstSpacing.dat&lt;br /&gt;
 AUX_OUTPUTFILENAME      : Aux_GridRegular.hdf5&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Patch several MOHID(.hdf5) files to a new grid===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION : PATCH HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION   : 3&lt;br /&gt;
 &lt;br /&gt;
 START                   : 2005 2 28 13 0 0&lt;br /&gt;
 END                     : 2005 3 1 13 0 0&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                   : 3&lt;br /&gt;
 FATHER_FILENAME         : K:\MM5output\2005022812_2005030712\MM5OUT_D1.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME    : K:\MM5output\2005022812_2005030712\grid1.dat&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                   : 2&lt;br /&gt;
 FATHER_FILENAME         : K:\MM5output\2005022812_2005030712\MM5OUT_D2.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME    : K:\MM5output\2005022812_2005030712\grid2.dat&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                   : 1&lt;br /&gt;
 FATHER_FILENAME         : K:\MM5output\2005022812_2005030712\MM5OUT_D3.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME    : K:\MM5output\2005022812_2005030712\grid3.dat&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME          : MM5Forcing.hdf5&lt;br /&gt;
 NEW_GRID_FILENAME       : K:\Simula\GeneralData\Batim\CostaPortuguesa.dat&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert an ERA40 file to MOHID(.hdf5)===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                  : CONVERT ERA40 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                : D:\Aplica\ERA40\1971ERA1973.nc&lt;br /&gt;
 OUTPUTFILENAME          : D:\Aplica\ERA40\1971ERA1973T2&lt;br /&gt;
 &lt;br /&gt;
 CONVERT_TO_ASCII        : 0&lt;br /&gt;
 CONVERT_TO_HDF5         : 1&lt;br /&gt;
 &lt;br /&gt;
 XX_VARIABLE             : longitude&lt;br /&gt;
 YY_VARIABLE             : latitude&lt;br /&gt;
 TIME_VARIABLE           : time&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert a MM5 file to MOHID(.hdf5)===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                  : CONVERT MM5 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                : K:\MM5output\DataCenter\Modelos\Meteo_IST\Fev2005\MMOUT_D3&lt;br /&gt;
 TERRAIN_FILENAME        : K:\MM5output\DataCenter\Modelos\Meteo_IST\Fev2005\TERRAIN_D3&lt;br /&gt;
 OUTPUT_GRID_FILENAME    : K:\MM5output\DataCenter\Modelos\Meteo_IST\Fev2005\grid3.dat&lt;br /&gt;
 OUTPUTFILENAME          : K:\MM5output\DataCenter\Modelos\Meteo_IST\Fev2005\MM5_D3.hdf5&lt;br /&gt;
 &lt;br /&gt;
 COMPUTE_WINDSTRESS        : 0&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY : 1&lt;br /&gt;
 WRITE_XYZ                 : 0&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;&lt;br /&gt;
 solar radiation&lt;br /&gt;
 air temperature&lt;br /&gt;
 wind velocity X&lt;br /&gt;
 wind velocity Y&lt;br /&gt;
 sensible heat&lt;br /&gt;
 latent heat&lt;br /&gt;
 atmospheric pressure&lt;br /&gt;
 sea water temperature&lt;br /&gt;
 &amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert Mercator-Ocean(.nc) to MOHID(.hdf5)===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : CONVERT MERCATOR FORMAT&lt;br /&gt;
 &lt;br /&gt;
 READ_OPTION              : 2&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : Psy2v2r1v_R20060628/MercatorR20060628.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME     : Psy2v2r1v_R20060628/MercatorGridR20060628.dat&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME : Psy2v2r1v_R20060628/MercatorGeometryR20060628.dat&lt;br /&gt;
 &lt;br /&gt;
 INPUT_GRID_FILENAME      : GridFiles/ist_meteog-gridT.nc&lt;br /&gt;
 INPUT_GRID_FILENAME_U    : GridFiles/ist_meteog-gridU.nc&lt;br /&gt;
 INPUT_GRID_FILENAME_V    : GridFiles/ist_meteog-gridV.nc&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 Psy2v2r1v_R20060628/ist_meteog-mercatorPsy2v2r1v_T_MEAN_ANA_20060621_R20060628.nc&lt;br /&gt;
 Psy2v2r1v_R20060628/ist_meteog-mercatorPsy2v2r1v_T_MEAN_ANA_20060622_R20060628.nc&lt;br /&gt;
 Psy2v2r1v_R20060628/ist_meteog-mercatorPsy2v2r1v_T_MEAN_ANA_20060623_R20060628.nc&lt;br /&gt;
 &amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert Levitus format to MOHID(.hdf5) and interpolate grid===&lt;br /&gt;
==== Convert ====&lt;br /&gt;
First convert the Levitus ASCII format to a raw HDF5 format:&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : CONVERT LEVITUS FORMAT&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : Levitus.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME     : LevitusGrid.dat&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME : LevitusGeometry.dat&lt;br /&gt;
 &lt;br /&gt;
 PERIODICITY              : monthly&lt;br /&gt;
 SPATIAL_RESOLUTION       : 0.25&lt;br /&gt;
 FILL_VALUE               : -99.9999&lt;br /&gt;
 &lt;br /&gt;
 LOWER_LEFT_CORNER        : -16.0  31&lt;br /&gt;
 UPPER_RIGHT_CORNER       :   1.   40&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : salinity&lt;br /&gt;
 ANNUAL_FILE              : DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s000hr.obj&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s001&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s002&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s003&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s004&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s005&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s006&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s007&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s008&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s009&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s010&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s011&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s012&lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : temperature&lt;br /&gt;
 ANNUAL_FILE              : DataCenter\DadosBase\Ocean\Levitus\Data\Temp\t000hr.obj&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t001&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t002&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t003&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t004&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t005&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t006&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t007&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t008&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t009&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t010&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t011&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t012&lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Extrapolate ====&lt;br /&gt;
Then extrapolate the data (still in the raw HDF5 format):&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION    : 1&lt;br /&gt;
 &lt;br /&gt;
 FATHER_FILENAME          : Levitus.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME     : LevitusGrid.dat&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : LeviTusAllPointsWithData.hdf5&lt;br /&gt;
 NEW_GRID_FILENAME        : LevitusGrid.dat&lt;br /&gt;
 &lt;br /&gt;
 START                    : -9999 1  1 0 0 0&lt;br /&gt;
 END                      : -9999 12 1 0 0 0&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D          : 1&lt;br /&gt;
 FATHER_GEOMETRY          : LevitusGeometry.dat&lt;br /&gt;
 NEW_GEOMETRY             : LevitusGeometry.dat&lt;br /&gt;
 AUX_GRID_FILENAME        : LevitusGrid.dat&lt;br /&gt;
 AUX_OUTPUTFILENAME       : AuxLeviTusAllPointsWithData.hdf5&lt;br /&gt;
 &lt;br /&gt;
 POLI_DEGREE              : 3&lt;br /&gt;
 DO_NOT_BELIEVE_MAP       : 1&lt;br /&gt;
 EXTRAPOLATE_2D           : 2&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Interpolate ====&lt;br /&gt;
Finally, interpolate to the final grid and geometry (same as the [[#Interpolate 3D MOHID(.hdf5) files to a new grid| Interpolate 3D sample]]):&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION    : 1&lt;br /&gt;
 FATHER_FILENAME          : LeviTusAllPointsWithData.hdf5&lt;br /&gt;
 OUTPUTFILENAME           : CadizMonthlyLevitus.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME     : LevitusGrid.dat&lt;br /&gt;
 NEW_GRID_FILENAME        : Algarve0.02SigmaSmooth_V3_CartMoreLayers.dat&lt;br /&gt;
 &lt;br /&gt;
 START                    : -9999 1  1 0 0 0&lt;br /&gt;
 END                      : -9999 12 1 0 0 0&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D          : 1&lt;br /&gt;
 FATHER_GEOMETRY          : LevitusGeometry.dat&lt;br /&gt;
 NEW_GEOMETRY             : Geometry_1.dat&lt;br /&gt;
 AUX_OUTPUTFILENAME       : AuxCadizMonthlyLevitus.hdf5&lt;br /&gt;
 AUX_GRID_FILENAME        : Aux12km.dat&lt;br /&gt;
 &lt;br /&gt;
 POLI_DEGREE              : 3&lt;br /&gt;
 DO_NOT_BELIEVE_MAP       : 1&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that the programme may construct a new bathymetry twice. Use this bathymetry only on the AUX_GRID_FILENAME keyword.&lt;br /&gt;
&lt;br /&gt;
===Convert Hellerman Rosenstein ASCII format to MOHID(.hdf5)  ===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : CONVERT HELLERMAN ROSENSTEIN ASCII&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : ClimatologicWindStress.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME     : ClimatologicWindStressGrid.dat&lt;br /&gt;
 &lt;br /&gt;
 PERIODICITY              : monthly&lt;br /&gt;
 SPATIAL_RESOLUTION       : 2.&lt;br /&gt;
 FILL_VALUE               : -99.9999&lt;br /&gt;
 &lt;br /&gt;
 LOWER_LEFT_CORNER        : -180  -90&lt;br /&gt;
 UPPER_RIGHT_CORNER       : 180  90&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : wind stress X&lt;br /&gt;
 FILE                     : D:\Aplica\Dados\Hellerman_Rosenstein\TAUXX.DAT&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : wind stress Y&lt;br /&gt;
 FILE                     : D:\Aplica\Dados\Hellerman_Rosenstein\TAUYY.DAT&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert ALADIN(.nc) format to MOHID(.hdf5)===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT ALADIN FORMAT&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : aladin.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : aladin_griddata.dat&lt;br /&gt;
 &lt;br /&gt;
 !Put here the name of any netcdf file for grid-data generation's sake.&lt;br /&gt;
 INPUT_GRID_FILENAME      :   D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKCLOUD_OPASYMP_19723_20088.nc&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKIR_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKPRES_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKSOLAR_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKTAIR_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKWIND_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_FLUXPRE_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_STRESSU_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_STRESSV_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_U10_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_V10_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKCLOUD_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKHUMI_OPASYMP_19723_20088.nc&lt;br /&gt;
 &amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== OceanColor modules compilation ==&lt;br /&gt;
Compiling the [[ConvertToHDF5]] tool with the OceanColor modules is more complicated than one might expect. A solution is proposed here for a release version using the Compaq Visual Fortran 6.6c. The difficulties rise because C code is embedded with a fortran interface and also, extra libraries such as hdf4 are required.&lt;br /&gt;
&lt;br /&gt;
=== Pre-requisites ===&lt;br /&gt;
&lt;br /&gt;
This is a list of prerequisites to successfully compile the tool:&lt;br /&gt;
*Compaq Visual Fortran 6.5 with patch 6.6c,&lt;br /&gt;
*VS .NET 2003 (Vc7 in particular),&lt;br /&gt;
*Hdf5 libraries ('''hdf5.lib''' '''hdf5_fortran.lib''' '''hdf5_hl.lib'''),&lt;br /&gt;
*Netcdf libraries ('''netcdf.lib''' '''netcdf_.lib'''),&lt;br /&gt;
*Hdf4 libraries ('''hd421.lib''', '''hm421.lib'''),&lt;br /&gt;
*szlib, zlib and jpeg libraries ('''szlib.lib''', '''zlib.lib''' and '''libjpeg.lib'''),&lt;br /&gt;
*the fortran source files ('''ModuleConvertModisL2.F90 ModuleConvertModisL3.F90 ModuleConvertOceanColorL2.F90'''),&lt;br /&gt;
*the C source files and their fortran interface files ('''readL2scan.c readL2Seadas.c''' and '''cdata.f crossp.f fgeonav.f''').&lt;br /&gt;
&lt;br /&gt;
=== CVF IDE configuration ===&lt;br /&gt;
# Configure everything as specified in [[Compiling with CVF]].&lt;br /&gt;
# Add the source files listed in the prerequisites above to the source files listing.&lt;br /&gt;
# Go to '''Tools--&amp;gt;Options...--&amp;gt;Directories'''. There, add the '''$DOTNET2K3/Vc7/bin''' to the '''Executable files''''; the '''$DOTNET2K3/Vc7/include''' and '''$DOTNET2K3/Vc7/PlatformSDK/include''' to the '''Include files'''; and finally, the '''$DOTNET2K3/Vc7/lib''', '''$DOTNET2K3/Vc7/PlatformSDK/lib''' and  '''$DOTNET2K3/Vc7/PlatformSDK/bin''' to the '''Library files'''.&lt;br /&gt;
# Go to '''Projects--&amp;gt;Settings--&amp;gt;Release--&amp;gt;Link--&amp;gt;Input'''. There, add the following libraries: '''netcdf.lib netcdf_.lib hd421.lib hm421.lib libjpeg.lib'''. (Make sure the hdf5 libraries as well as the szlib and zlib libraries are already mentioned).&lt;br /&gt;
&lt;br /&gt;
=== Troubleshoots ===&lt;br /&gt;
'''Q: I get unresolved external references during linkage, but I have all the libraries mentioned above included. What should I do?'''&lt;br /&gt;
&lt;br /&gt;
A: Unresolved external references can come out for two reasons:&lt;br /&gt;
#you didn't specified all the libraries required or all the paths for the default libraries or,&lt;br /&gt;
#[http://en.wikipedia.org/wiki/Name_decoration name mangling] problems. Use the [[dumpbin]] utility to the libraries to checkout which language convention they are using. If that's the problem then you need to try to get new libraries with the correct naming convention.&lt;br /&gt;
&lt;br /&gt;
That's it, you should now be able to build the [[ConvertToHdf5]] project successfully.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Q: I got a message saying the entry point _NF_PUT_ATT_REAL@28 could not be located in netcdf.dll'''&lt;br /&gt;
&lt;br /&gt;
A: copy the file netcdf.dll to the exe folder&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
*[http://www.hdfgroup.org/ HDF5 Homepage]&lt;br /&gt;
*[http://www.hdfgroup.org/ HDF4 Homepage]&lt;br /&gt;
&lt;br /&gt;
== Links ==&lt;br /&gt;
&lt;br /&gt;
*[[Module_Atmosphere]]&lt;br /&gt;
*[[Module_InterfaceWaterAir]]&lt;br /&gt;
*[[Coupling_Water-Atmosphere_User_Manual]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Tools]]&lt;br /&gt;
[[Category:Hdf5]]&lt;/div&gt;</summary>
		<author><name>Anatrancoso</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=ConvertToHDF5&amp;diff=3237</id>
		<title>ConvertToHDF5</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=ConvertToHDF5&amp;diff=3237"/>
				<updated>2010-08-06T16:02:29Z</updated>
		
		<summary type="html">&lt;p&gt;Anatrancoso: /* Input file (ConvertToHDF5Action.dat) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The '''ConvertToHDF5''' is an application which allows the making of several operations, called '''actions''', involving HDF5 files: conversion of data in other formats (e.g. NETCDF) to HDF5, grid interpolation, concatenation of several files.&lt;br /&gt;
&lt;br /&gt;
Running options for this application are specified by the user in a input file named [[ConvertToHDF5#Input file (ConvertToHDF5Action.dat)|'''ConvertToHDF5Action.dat''']]. Several actions can be specified in the same input file, being processed sequentially by the ConvertToHDF5 application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
The operations involving HDF5 files performed by ConvertToHDF5, specified individually by an action, can be organized in [[#file management|file management]], [[#grid interpolation|grid interpolation]] and [[#format conversion|format conversion]]. These types and the respective actions are detailed in the next sections. &lt;br /&gt;
&lt;br /&gt;
The input file specification for each action can be found bellow in the [[#Input file (ConvertToHDF5Action.dat)|Input file (ConvertToHDF5Action.dat)]] section.&lt;br /&gt;
&lt;br /&gt;
===Compilation Settings===&lt;br /&gt;
&lt;br /&gt;
====With Compaq Visual Fortran====&lt;br /&gt;
&lt;br /&gt;
* File -&amp;gt; New -&amp;gt; Fortran Console Application&lt;br /&gt;
* Project -&amp;gt; Add to Project -&amp;gt; Files -&amp;gt; *.f90 (do not add ModuleWRFFormat.f90 and proj4.f90 if you don't want to use [[PROJ4]] library).&lt;br /&gt;
* Project -&amp;gt; Settings:&lt;br /&gt;
** Fortran tab:&lt;br /&gt;
*** Compatibility “Big Endian” to work with MM5 files.&lt;br /&gt;
*** Compilation Diagnostics -&amp;gt; Fortran Standards Checking -&amp;gt; Fortran95.&lt;br /&gt;
*** Preprocessor:&lt;br /&gt;
**** Check FPP.&lt;br /&gt;
**** INCLUDE and USE Paths: path to Libs folder.&lt;br /&gt;
** C/C++ tab:&lt;br /&gt;
*** Preprocessor -&amp;gt; Additional include directories: path to Libs.&lt;br /&gt;
** Link tab:&lt;br /&gt;
*** General -&amp;gt; Object/library modules: kernel32.lib hdf5.lib hdf5_hl.lib hdf5_fortran.lib zlib.lib szlib.lib netcdf.lib netcdf_.lib &lt;br /&gt;
*** Input -&amp;gt; Additional library path: path to Libs.&lt;br /&gt;
* Buil -&amp;gt; Rebuild All&lt;br /&gt;
&lt;br /&gt;
To run this executable, copy ''netcdf.dll'' to its directory.&lt;br /&gt;
To work with large files, compile with: Project -&amp;gt; Settings -&amp;gt; Link tab -&amp;gt; Reserve: 10^6.&lt;br /&gt;
&lt;br /&gt;
===== Compile ModuleWRFFormat =====&lt;br /&gt;
&lt;br /&gt;
To convert [[Meteo|WRF]] files or work with other projection beside UTM and Lambert Conformal, ConvertToHDF5 must be compiled with [[PROJ4]] library. To do that:&lt;br /&gt;
* Same settings as above.&lt;br /&gt;
* Project -&amp;gt; Add to Project -&amp;gt; Files:&lt;br /&gt;
** ModuleWRFFormat.f90&lt;br /&gt;
** Proj4.f90&lt;br /&gt;
* Project -&amp;gt; Settings:&lt;br /&gt;
** Fortran tab -&amp;gt; Predefined Preprocessor symbols: _USE_PROJ4&lt;br /&gt;
** Link tab -&amp;gt; General -&amp;gt; Object/library modules: add libfproj4.lib (Note: ''libfproj4.lib'' and ''proj4.inc'' must be in Libs folder)&lt;br /&gt;
* Build -&amp;gt; Rebuild All.&lt;br /&gt;
&lt;br /&gt;
===File management===&lt;br /&gt;
&lt;br /&gt;
====Glue files====&lt;br /&gt;
This action consists in joining or glue in a single HDF5 file two or more HDF5 files having the same HDF5 data groups and referring to time periods which come in sequence. Both sets of 2D and 3D HDF5 files can be glued.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Glue MOHID Water results files from several runs produced in continuous running of the model, for storage space economy reasons. Can be used to join data from other origins (e.g. results of meteorological models) as long as the HDF5 format is the one supported by MOHID Water.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 files to be glued. &amp;quot;Grid&amp;quot; and &amp;quot;Results&amp;quot; data groups should be equal in all these files.&lt;br /&gt;
&lt;br /&gt;
'''Output:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with glued &amp;quot;Results&amp;quot; data. &amp;quot;Residual&amp;quot; and &amp;quot;Statistics&amp;quot; HDF5 data groups are not copied to the output file since they are time period specific (different values potentially occour in each file). General statistics can be calculated for the glued HDF5 file data using tool [[HDF5Statistics]].&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#GLUES HDF5 FILES|GLUES HDF5 FILES]].&lt;br /&gt;
&lt;br /&gt;
===Grid interpolation===&lt;br /&gt;
&lt;br /&gt;
====Interpolate files====&lt;br /&gt;
This action performs the conversion of one HDF5 file data existing in one 2D or 3D spatial grid to another 2D or 3D spatial grid, creating a new HDF5 file. The interpolation is performed only for the data located a time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
The HDF5 file containing data to be interpolated is called the '''father file'''.&lt;br /&gt;
&lt;br /&gt;
In case of 3D interpolation the application conducts first the horizontal grid interpolation&lt;br /&gt;
(keeping father geometry) and only after it conducts the vertical interpolation (from father geometry to new geometry).&lt;br /&gt;
&lt;br /&gt;
Several types of 2D interpolation are available for use: bilinear, spline 2D and triangulation.&lt;br /&gt;
For vertical interpolation (used in 3D interpolation) can be supplied several polinomial degrees for interpolation.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain an HDF5 file with data for forcing or providing initial conditions for a MOHID Water model, e.g. a meteorological forcing file.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
For 2D/3D interpolation:&lt;br /&gt;
&lt;br /&gt;
- father HDF5 file;&lt;br /&gt;
&lt;br /&gt;
- father horizontal data grid, in a grid data file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
- new horizontal data grid, in a grid data file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
For 3D interpolation also needed:&lt;br /&gt;
&lt;br /&gt;
- father vertical geometry, in a geometry file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
- new vertical geometry, in a geometry file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
- auxiliary horizontal data grid, in a grid data file in the format supported by MOHID; this file is used for horizontal grid interpolation in 3D interpolation operations.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with interpolated data. In case of 3D interpolation also produced an auxiliary HDF5 file with the result of the horizontal grid interpolation, which can be inspected to check if this operation is well performed.&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#INTERPOLATE GRIDS|INTERPOLATE GRIDS]].&lt;br /&gt;
&lt;br /&gt;
====Patch files====&lt;br /&gt;
This action consists in performing an interpolation of HDF5 data between grids, as in action [[#Interpolate files|Interpolate files]], but considering more than one HDF5 file as containing data to be interpolated to the new grid and a priority scale. The interpolation is performed only for the data located in the time window specified by the user. The present version of this action operates only on 2D data.&lt;br /&gt;
&lt;br /&gt;
Each HDF5 file containing data to be interpolated is called a '''father file''' and has an user-attributed '''priority level''' to be respected in the interpolation process: for each new grid cell the ConvertToHDF5 application will look for data first on the Level 1 father file and only in the case this data is inexistent will it look for data in Level 2 file, proceeding in looking for higher level files if no data is found subsequentely.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
To obtain an HDF5 file with data from several HDF5 files each containing data with different spatial resolution and only for a specific part of the new grid. This is, for instance, the case when one is preparing a best resolution meteorological HDF5 file for forcing MOHID Water from several meteorological model domains, having different spatial resolution and span, since the best resolution data is not available for all new grid cells.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
The new horizontal data grid, in a grid data file in the format supported by MOHID, and for each father file:&lt;br /&gt;
&lt;br /&gt;
- level of priority: 1 = maximum priority, priority decreases with increasing level value;&lt;br /&gt;
&lt;br /&gt;
- data grid, in the form of a grid data file in the format supported by MOHID.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with patched data.&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#PATCH HDF5 FILES|PATCH HDF5 FILES]].&lt;br /&gt;
&lt;br /&gt;
===Format conversion===&lt;br /&gt;
&lt;br /&gt;
====Meteorological model data====&lt;br /&gt;
Mohid does not simulate explicitly the atmosphere, but needs information about atmospheric properties in time and space. This requires that atmospheric properties are supplied to MOHID Water in supported formats. These formats can be derived from meteorological data in HDF5 format. Because the results of meteorological models are accessed in different formats conversion is required. &lt;br /&gt;
&lt;br /&gt;
The formats currently convertible to HDF5 in ConvertToHDF5 include the MM5 and the ERA40. These are succintly detailed in the next sections.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''ERA40''=====&lt;br /&gt;
This format refers to the European Centre for Medium-Range Weather Forecasts (ECMWF) 40 years re-analysises results, acessed by site http://data.ecmwf.int/data/d/era40_daily/. This data is available for several meteorological variables with maximum 6 hour periodicity for days in the period from 1957-09-01 to 2002-08-31. &lt;br /&gt;
&lt;br /&gt;
ERA40 data files are supplied by ECMWF in a NetCDF format and with an user-costumized time window, periodicity (time step range from 6 hours to a day) and meteorological properties set. The ERA40 meteorological properties which are recognized by MOHID are presented bellow together with the correspondent MOHID name: &lt;br /&gt;
&lt;br /&gt;
 ---ERA40 NAME---         ---MOHID NAME---&lt;br /&gt;
   sshf                     sensible heat                &lt;br /&gt;
   slhf                     latent heat                  &lt;br /&gt;
   msl                      atmospheric pressure &lt;br /&gt;
   tcc                      cloud cover &lt;br /&gt;
   p10u                     wind velocity X&lt;br /&gt;
   p10v                     wind velocity Y&lt;br /&gt;
   p2t                      air temperature&lt;br /&gt;
   ewss                     wind stress X&lt;br /&gt;
   nsss                     wind stress Y&lt;br /&gt;
&lt;br /&gt;
The standard ConvertToHDF5 action is to convert to HDF5 the data referring to all MOHID Water recognized property available in the ERA40 file, producing an individual HDF5 file for each property. The name of each HDF5 file generated includes the ERA40 meteorological property identificator correspondent to the data contained.&lt;br /&gt;
&lt;br /&gt;
Alternatively, ConvertToHDF5 can copy to a single ASCII file the heading information concerning each meteorological variable considered in the original ERA40 file.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain an HDF5 file with data suitable for being used for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
ERA40 NetCDF file.&lt;br /&gt;
&lt;br /&gt;
'''Output:'''&lt;br /&gt;
&lt;br /&gt;
One HDF5 file for each meteorological property contained in the original NetCDF file.&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT ERA40 FORMAT|CONVERT ERA40 FORMAT]].&lt;br /&gt;
&lt;br /&gt;
=====''Aladin''=====&lt;br /&gt;
This format relates to Aladin meteorological model results. Some of the atmospheric property needed by MOHID Water is present in Aladin output files, enabling to run prediction simulations with MOHID Water when access to Aladin prevision files is available.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts Aladin results files from the original format to HDF5 format, allowing the easy use of these results in the MOHID framework. Conversion is only performed for the MM5 properties and the time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Produce HDF5 meteorological data usable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
Aladin netcdf results file to convert.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
An HDF5 file with Aladin results and a grid data file in MOHID format with the Aladin grid pseudo-information: a fake orography is created of 100 m depth.&lt;br /&gt;
This last file can be used to interpolate the Aladin data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]), for instance to produce an HDF5 file suitable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Compilation:'''&lt;br /&gt;
&lt;br /&gt;
Caution! The ConvertToHDF5 executable must be compiled with the [[Big-endian little-endian|Big-Endian]] option set (see compatibility in the project's settings).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT ALADIN FORMAT|CONVERT ALADIN FORMAT]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''MM5''=====&lt;br /&gt;
This format relates to the Fifth-Generation NCAR / Penn State Mesoscale Model (MM5) output files format. Almost every atmospheric property needed by MOHID Water is present in MM5 output files.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts MM5 results files from the original format to HDF5 format, allowing the easy use of these results in the MOHID framework. Conversion is only performed for the MM5 properties and the time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
Besides the conversion, the application can calculate some properties not contained in&lt;br /&gt;
the MM5 files using the available information: these are wind stress, relative humidity and mean sea level pressure.&lt;br /&gt;
&lt;br /&gt;
For conversion to be completed it is required the horizontal grid information of MM5 results which is available in special TERRAIN files.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Produce HDF5 meteorological data usable to force MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
MM5 results file to convert and MM5 TERRAIN file. The TERRAIN file supplies the MM5 results grid information. &lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
A HDF5 file with MM5 results and a grid data file in MOHID format with the MM5 grid information.&lt;br /&gt;
This last file can be used to interpolate the MM5 data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]), for instance to produce an HDF5 file suitable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Compilation:'''&lt;br /&gt;
&lt;br /&gt;
Caution! The ConvertToHDF5 executable must be compiled with the [[Big-endian little-endian|Big-Endian]] option set (see compatibility in the project's settings).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT MM5 FORMAT|CONVERT MM5 FORMAT]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''WRF''=====&lt;br /&gt;
This format relates to the Weather Research and Forecast model (WRF) output files format. Almost every atmospheric property needed by MOHID Water is present in WRF output files.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts WRF results files from the original format to HDF5 format, allowing the easy use of these results in the MOHID framework. Conversion is only performed for the WRF properties and the time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
Besides the conversion, the application can calculate some properties not contained in&lt;br /&gt;
the WRF files using the available information: these are wind stress, relative humidity and mean sea level pressure.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Produce HDF5 meteorological data usable to force MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
WRF direct output file.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
An HDF5 file with WRF results and a grid data file in MOHID format with the WRF grid information.&lt;br /&gt;
This last file can be used to interpolate the WRF data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]), for instance to produce an HDF5 file suitable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Compilation:'''&lt;br /&gt;
&lt;br /&gt;
Caution! Proj4 library is needed! See [[#Compile_ModuleWRFFormat |  Compile_ModuleWRFFormat]]&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT WRF FORMAT|CONVERT WRF FORMAT]].&lt;br /&gt;
&lt;br /&gt;
====Ocean model data====&lt;br /&gt;
Ocean model data, available in diverse formats, can be used by MOHID Water to specify boundary (open ocean boundary and surface), initial conditions or for validation. These uses require that the model data is in HDF5 format and conversion is therefore needed.&lt;br /&gt;
&lt;br /&gt;
Currently the large scale ocean models formats convertible into HDF5 by ConvertToHDF5 includes MERCATOR.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''MERCATOR''=====&lt;br /&gt;
MERCATOR data files are supplied in a NetCDF format and with an user-costumized spatial window and periodicity. Water level and water properties (temperature and salinity) data is available in type T files, velocity component u data is available in type U files and velocity component v data is available in type V files. The type of data of a specific MERCATOR file is generally indicated in the file name.&lt;br /&gt;
&lt;br /&gt;
The standard ConvertToHDF5 action is to convert to HDF5 the data referring to temperature, salinity, water level, component u of velocity and component v of velocity.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain HDF5 MERCATOR data usable for forcing or validation of MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
NetCDF MERCATOR results data files and NetCDF MERCATOR grid data files. It should be provided one grid data file of each type: T, U and V. These are generally provided by the MERCATOR services together with the results files.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
One HDF5 file containing all properties contained in the recognized set of properties (temperature, salinity, water level, velocity u and velocity v) and the correspondent grid data and geometry files, containing respectively the horizontal grid and the vertical discretization of the HDF5 file. The grid data and geometry files can be used afterwards to interpolate the MERCATOR data to another grid and geometry (see [[#Interpolate files|Interpolate files]]).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT MERCATOR FORMAT|CONVERT MERCATOR FORMAT]].&lt;br /&gt;
&lt;br /&gt;
====Climatological data====&lt;br /&gt;
Climatological data can be used in MOHID Water to specify boundary (open ocean boundary and surface), initial conditions or for validation, in case more realistic data (measurements or model) data is unavailable. This data is generally supplied by producers in formats not readly usable by MOHID Water which justifies the existence of a conversion tool.&lt;br /&gt;
&lt;br /&gt;
Two climatological data format conversions are implemented in ConvertToHDF5: Levitus ocean data and Hellerman Rosenstein meteorological data.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''Levitus''=====&lt;br /&gt;
The Levitus climatology provides results for water temperature and salinity.&lt;br /&gt;
The ConvertToHDF5 action converts the climatological data for the properties and spatial window requested by the user. &lt;br /&gt;
Typically, it requires 3 steps to complete the task:&lt;br /&gt;
&lt;br /&gt;
- convert levitus format &lt;br /&gt;
&lt;br /&gt;
- extrapolate the data to the whole levitus domain(required to avoid uncoincidental coastlines) &lt;br /&gt;
&lt;br /&gt;
- interpolate with the model grid(bathymetry)&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain climatological data in HDF5 format to use as boundary forcing and/or initial condition specification in MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
Levitus climatological data files, one per property and per time period (e.g a month).&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with Levitus climatological data, grid data file with the horizontal&lt;br /&gt;
grid of the data and a geometry file with vertical discretization of the data (MOHID formats).&lt;br /&gt;
The grid data and the geometry files can be used to interpolate the climatological data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT LEVITUS FORMAT|CONVERT LEVITUS FORMAT]].&lt;br /&gt;
&lt;br /&gt;
=====''Hellerman Rosenstein''=====&lt;br /&gt;
This is a meteorological climatology providing wind stress. There is a file per wind stress component. Since the data refer to surface values it is a 2D field.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts the climatological data for the properties and spatial window provided by the user.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain climatological data in HDF5 format to use as meteorological forcing in MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
Hellerman Rosenstein climatological data ASCII files, one per wind stress component.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with Hellerman Rosenstein climatological data and grid data file with the horizontal&lt;br /&gt;
grid of the climatological data. This grid data file can be used to interpolate the climatological data from the original horizontal grid to a new grid (see [[#Interpolate files|Interpolate files]]).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT HELLERMAN ROSENSTEIN ASCII|CONVERT HELLERMAN ROSENSTEIN ASCII]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''World Ocean Atlas 2005''=====&lt;br /&gt;
The World Ocean Atlas (WOA) 2005 climatology provides results for water temperature, salinity and several water quality and biology properties.&lt;br /&gt;
&lt;br /&gt;
Description, Action and Input Files are described in a separate page: [[ConvertToHDF5 WOA2005]].&lt;br /&gt;
&lt;br /&gt;
==Input file (ConvertToHDF5Action.dat)==&lt;br /&gt;
===General structure===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt; (block containing instructions for running a specific action) &lt;br /&gt;
 ACTION                    : ... (intended action)&lt;br /&gt;
 ... (action specific instructions)&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : ...&lt;br /&gt;
 ...&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===GLUES HDF5 FILES===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : GLUES HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 3D_FILE                   : 0/1 (0 = 2D file, 1 = 3D file)&lt;br /&gt;
 &lt;br /&gt;
 TIME_GROUP                : ... (Default=&amp;quot;Time&amp;quot;. Other option: &amp;quot;SurfaceTime&amp;quot;.)&lt;br /&gt;
 &lt;br /&gt;
 BASE_GROUP                : ... (Default=&amp;quot;Results&amp;quot;. Other options: &amp;quot;Residual&amp;quot;, &amp;quot;SurfaceResults&amp;quot;.)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 &lt;br /&gt;
 (block of HDF5 data files)&lt;br /&gt;
 &amp;lt;&amp;lt;begin_list&amp;gt;&amp;gt;&lt;br /&gt;
 ... (path/name of HDF5 file with data to be included in glue, one per line, at least two files)&lt;br /&gt;
 ...                      &lt;br /&gt;
 &amp;lt;&amp;lt;end_list&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===INTERPOLATE GRIDS===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION     : ... (type of horizontal interpolation: 1 = Bilinear, 2 = Spline2D,&lt;br /&gt;
                                  3 = Triangulation)&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION_WINDOW      : ... ... ... ... (2D spatial window to consider for interpolation: &lt;br /&gt;
                                              Xmin Ymin Xmax Ymax; default = all domain)&lt;br /&gt;
 &lt;br /&gt;
 START                     : ... (start date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 END                       : ... (end date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D           : 0/1 (0 = 2D interpolation, 1 = 3D interpolation)&lt;br /&gt;
 &lt;br /&gt;
 FATHER_FILENAME           : ... (path/name of input HDF5 file with data to be interpolated)&lt;br /&gt;
 FATHER_GRID_FILENAME      : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization of input HDF5 file)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of output HDF5 file to be created)&lt;br /&gt;
 NEW_GRID_FILENAME         : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization intended for output HDF5 file)&lt;br /&gt;
 &lt;br /&gt;
 EXTRAPOLATE_2D            : 0/1/2/3/4/5 (2D extrapolation: 0=no extrapolation, 1=medium&lt;br /&gt;
                                      triangulation, 2=high triangulation, &lt;br /&gt;
                                      3=nearest neighbour, 4=nearest cell, &lt;br /&gt;
                                      5=constant value)&lt;br /&gt;
 &lt;br /&gt;
 EXTRAPOLATE_VALUE         : ... (name of the value to extrapolate to when EXTRAPOLATE_2D is&lt;br /&gt;
                                  set to constant value (5))&lt;br /&gt;
 &lt;br /&gt;
 DO_NOT_BELIEVE_MAP        : 0/1 (0=consider input HDF5 file map, 1=do not consider input HDF5&lt;br /&gt;
                                  file map)&lt;br /&gt;
 &lt;br /&gt;
 BASE_GROUP                : ... (name of base group of HDF5 variables containing data to be &lt;br /&gt;
                                  interpolated; default is &amp;quot;/Results&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 (if INTERPOLATION3D : 1 also required:)&lt;br /&gt;
 FATHER_GEOMETRY           : ... (path/name of file (MOHID format) with vertical discretization&lt;br /&gt;
                                  of input HDF5 file)&lt;br /&gt;
 NEW_GEOMETRY              : ... (path/name of file (MOHID format) with vertical discretization&lt;br /&gt;
                                  intended for output HDF5 file)&lt;br /&gt;
 POLI_DEGREE               : 1/... (degree of vertical interpolation: 1=linear, ...)&lt;br /&gt;
 &lt;br /&gt;
 AUX_GRID_FILENAME         : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization intended for auxiliar output HDF5 file;&lt;br /&gt;
                                  default is file provided in NEW_GRID_FILENAME)&lt;br /&gt;
 &lt;br /&gt;
 AUX_OUTPUTFILENAME        : ... (path/name of auxiliar output HDF5 file to contain result&lt;br /&gt;
                                  of horizontal grid interpolation)   &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - the file indicated in AUX_GRID_FILENAME can be different from the one indicated in&lt;br /&gt;
   NEW_GRID_FILENAME in terms of bathymetry, while the horizontal grid should be, commonly, the&lt;br /&gt;
   same: this altered bathymetry can be used to extend the water column in the original data so&lt;br /&gt;
   that the process of vertical interpolation is done easily;&lt;br /&gt;
 &lt;br /&gt;
 - in case of INTERPOLATION3D : 1, ConvertToHDF5 can generate new versions of bathymetry which &lt;br /&gt;
   are consistent with the geometry definition (extension is '.new'); there are possibly three&lt;br /&gt;
   bathymetry changes referring to father grid, new grid and aux grid (the same bathymetry is&lt;br /&gt;
   not altered twice); although initially new and aux grid are the same they can result &lt;br /&gt;
   different because of bathymetry changes;&lt;br /&gt;
 &lt;br /&gt;
 - in case the new geometry is 2D and father geometry is 3D then POLI_DEGREE : 1 &lt;br /&gt;
   (linear interpolation) should be used;&lt;br /&gt;
 &lt;br /&gt;
 - EXTRAPOLATE_2D : 1/2/3/4/5 should be considered if it is expected that the coast line is not&lt;br /&gt;
   coincidental in the father and new grids, to avoid lack of data in the interpolation&lt;br /&gt;
   process; extrapolation is performed for all cells even the land cells; &lt;br /&gt;
 &lt;br /&gt;
 - in case of DO_NOT_BELIEVE_MAP : 1 the application generates a map based on cells where&lt;br /&gt;
   interpolation results are available; this causes that if EXTRAPOLATE_2D : 1/2/3/4/5 is used&lt;br /&gt;
   the AUX_GRID_FILENAME should not have land cells in order for the new map to be concurrent&lt;br /&gt;
   with the result of extrapolation and avoid errors generation, specially if INTERPOLATION3D :&lt;br /&gt;
   1 is considered.&lt;br /&gt;
&lt;br /&gt;
===PATCH HDF5 FILES===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : PATCH HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION     : ... (type of interpolation: 3 = Triangulation, default and only&lt;br /&gt;
                                  one implemented)&lt;br /&gt;
 &lt;br /&gt;
 START                     : ... (start date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 END                       : ... (end date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 &lt;br /&gt;
 (block for each father HDF5 file, should be at least two)&lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                     : ... (integer priority level: 1 = highest, increase for lower&lt;br /&gt;
                                  priority)&lt;br /&gt;
 FATHER_FILENAME           : ... (path/name of input HDF5 file with data to be interpolated)&lt;br /&gt;
 FATHER_GRID_FILENAME      : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization of input HDF5 file)&lt;br /&gt;
 N_REMOVE_FRAME            : 0   (width, in number of cells, of frame to remove)&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of output HDF5 file to be created)&lt;br /&gt;
 NEW_GRID_FILENAME         : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization intended for output HDF5 file)&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CONVERT ERA40 FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT ERA40 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                  : ... (path/name of ERA40 NetCDF file)&lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
                                 (root of name for all files produced)&lt;br /&gt;
 &lt;br /&gt;
 CONVERT_TO_ASCII          : 0/1 (1 = convert variable heading info for ASCII file; 0 = default)&lt;br /&gt;
 CONVERT_TO_HDF5           : 0/1 (1 = convert to HDF5 file; 0 = default)&lt;br /&gt;
 GRIDTO180                 : 0/1 (1 = convert grid from [0 360] to [-180 180], 0 = default)&lt;br /&gt;
 &lt;br /&gt;
 XX_VARIABLE               : ... (name of longitude variable in the input file: usual name &lt;br /&gt;
                                  is &amp;quot;longitude&amp;quot;)&lt;br /&gt;
 YY_VARIABLE               : ... (name of longitude variable in the input file: usual name &lt;br /&gt;
                                  is &amp;quot;latitude&amp;quot;)&lt;br /&gt;
 TIME_VARIABLE             : ... (name of time variable in the input file: usual name is&lt;br /&gt;
                                  &amp;quot;time&amp;quot;)&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - either CONVERT_TO_ASCII : 1 or CONVERT_TO_HDF5 : 1 must be chosen for any action to be&lt;br /&gt;
 performed by ConvertToHDF5;&lt;br /&gt;
 &lt;br /&gt;
 - when CONVERT_TO_HDF5 : 1 an HDF5 file is produced for every variable contained in the&lt;br /&gt;
 original ERA40 file; the name of each file is composed of the name indicated on FILENAME&lt;br /&gt;
 concatenated with the ERA40 variable identifier;&lt;br /&gt;
 &lt;br /&gt;
 - to the XX_VARIABLE, YY_VARIABLE and TIME_VARIABLE keywords should generally be  &lt;br /&gt;
 specified &amp;quot;longitude&amp;quot;, &amp;quot;latitude&amp;quot; and &amp;quot;time&amp;quot;, respectively; the option to&lt;br /&gt;
 include as keywords was made only to make the application robust to future variable name&lt;br /&gt;
 changes.&lt;br /&gt;
&lt;br /&gt;
===CONVERT ALADIN FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT ALADIN FORMAT&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : aladin.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : aladin_griddata.dat&lt;br /&gt;
 &lt;br /&gt;
 !Put here the name of any netcdf file for grid-data generation's sake.&lt;br /&gt;
 INPUT_GRID_FILENAME      :   D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKCLOUD_OPASYMP_19723_20088.nc&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 (path to aladin netcdf file)\ALADIN_BULKIR_OPASYMP_19723_20088.nc&lt;br /&gt;
 ...&lt;br /&gt;
 &amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - the name of each Aladin property to convert in &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;...&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt; block must conform to the following variables&lt;br /&gt;
 &lt;br /&gt;
           ---ALADIN NAME---    ---MOHID NAME---&lt;br /&gt;
             soclotot            CloudCover_&lt;br /&gt;
             sohumrel            RelativeHumidity_&lt;br /&gt;
             sofluxir            NonSolarFlux_&lt;br /&gt;
             sosspres            AtmosphericPressure_&lt;br /&gt;
             sosolarf            SolarRadiation_&lt;br /&gt;
             sotemair            AirTemperature_&lt;br /&gt;
             sowinmod            WindModulus_&lt;br /&gt;
             sowaprec            Precipitation_&lt;br /&gt;
             sozotaux            WindStressX_&lt;br /&gt;
             sometauy            WindStressY_&lt;br /&gt;
             sowindu10           WindVelocityX_&lt;br /&gt;
             sowindv10           WindVelocityY_&lt;br /&gt;
&lt;br /&gt;
===CONVERT MM5 FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT MM5 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                  : ... (path/name of MM5 file)&lt;br /&gt;
 TERRAIN_FILENAME          : ... (path/name of MM5 TERRAIN file)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : ... (path/name of grid data file with horizontal grid of MM5 data&lt;br /&gt;
                                  to be created)&lt;br /&gt;
 &lt;br /&gt;
 COMPUTE_WINDSTRESS        : 0/1 (1 = compute and write wind stress field; 0 = default)&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY : 0/1 (1 = compute and write relative humidity field; 0 = default)&lt;br /&gt;
 COMPUTE_PRECIPITATION     : 0/1 (1 = compute and write precipitation field; 0 = default)&lt;br /&gt;
 COMPUTE_WINDMODULUS       : 0/1 (1 = compute wind modulus; 0 = default)&lt;br /&gt;
 &lt;br /&gt;
 WRITE_XYZ                 : 0/1 (1 = write xyz center grid cells; 0 = default)&lt;br /&gt;
 WRITE_TERRAIN             : 0/1 (1 = write MM5 TERRAIN fields; 0 = default)&lt;br /&gt;
 &lt;br /&gt;
 START                     : ... (start date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 END                       : ... (end date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
  &lt;br /&gt;
 (block of MM5 properties to convert)&lt;br /&gt;
 &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;&lt;br /&gt;
 ... (name of MM5 property to convert do HDF5 format, one per line)&lt;br /&gt;
 ... &lt;br /&gt;
 &amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - the name of each MM5 property to convert in &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;...&amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt; block must&lt;br /&gt;
 conform to the MOHID designation specified in code of ModuleGlobalData; the correspondence is &lt;br /&gt;
 the following (see [[Module_InterfaceWaterAir]] for a more detailed explanation).&lt;br /&gt;
 &lt;br /&gt;
           ---MM5 NAME---    ---MOHID NAME---&lt;br /&gt;
             T2             air temperature&lt;br /&gt;
             PSTARCRS       atmospheric pressure&lt;br /&gt;
             U10            wind velocity X&lt;br /&gt;
             V10            wind velocity Y&lt;br /&gt;
             UST            wind shear velocity&lt;br /&gt;
             LHFLUX         latent heat&lt;br /&gt;
             SWDOWN         sensible heat&lt;br /&gt;
             SWDOWN         solar radiation&lt;br /&gt;
             LWDOWN         infrared radiation&lt;br /&gt;
             SWOUT          top outgoing shortwave radiation&lt;br /&gt;
             LWOUT          top outgoing longwave radiation&lt;br /&gt;
             SOIL T 1       soil temperature layer 1&lt;br /&gt;
             SOIL T 1       soil temperature layer 2&lt;br /&gt;
             SOIL T 1       soil temperature layer 3&lt;br /&gt;
             SOIL T 1       soil temperature layer 4&lt;br /&gt;
             SOIL T 1       soil temperature layer 5&lt;br /&gt;
             SOIL T 1       soil temperature layer 6&lt;br /&gt;
             Q2             2-meter mixing ratio&lt;br /&gt;
             TSEASFC        sea water temperature&lt;br /&gt;
             PBL HGT        PBL height&lt;br /&gt;
             PBL REGIME     PBL regime&lt;br /&gt;
             RAIN CON       accumulated convective precipitation        (cm)&lt;br /&gt;
             RAIN NON       accumulated non-convective precipitation    (cm)&lt;br /&gt;
             GROUND T       ground temperature&lt;br /&gt;
             RES TEMP       infinite reservoir slab temperature&lt;br /&gt;
             U              wind velocity X_3D&lt;br /&gt;
             V              wind velocity Y_3D&lt;br /&gt;
             W              wind velocity Z_3D&lt;br /&gt;
             T              air temperature_3D&lt;br /&gt;
             PP             atmospheric pressure_3D&lt;br /&gt;
             Q              mixing ratio_3D&lt;br /&gt;
             CLW            cloud water mixing ratio_3D&lt;br /&gt;
             RNW            rain water mixing ratio_3D&lt;br /&gt;
             ICE            cloud ice mixing ratio_3D&lt;br /&gt;
             SNOW           snow mixing ratio_3D&lt;br /&gt;
             RAD TEND       atmospheric radiation tendency_3D&lt;br /&gt;
&lt;br /&gt;
===CONVERT WRF FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT MM5 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                  : ... (path/name of MM5 file)&lt;br /&gt;
 TERRAIN_FILENAME          : ... (path/name of MM5 TERRAIN file)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : ... (path/name of grid data file with horizontal grid of MM5 data&lt;br /&gt;
                                  to be created)&lt;br /&gt;
 &lt;br /&gt;
 COMPUTE_WINDSTRESS        : 0/1 (1 = compute and write wind stress field; 0 = default)&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY : 0/1 (1 = compute and write relative humidity field; 0 = default)&lt;br /&gt;
 COMPUTE_PRECIPITATION     : 0/1 (1 = compute and write precipitation field; 0 = default)&lt;br /&gt;
 COMPUTE_WINDMODULUS       : 0/1 (1 = compute wind modulus; 0 = default)&lt;br /&gt;
 &lt;br /&gt;
 WRITE_XYZ                 : 0/1 (1 = write xyz center grid cells; 0 = default)&lt;br /&gt;
 WRITE_TERRAIN             : 0/1 (1 = write MM5 TERRAIN fields; 0 = default)&lt;br /&gt;
 &lt;br /&gt;
 START                     : ... (start date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 END                       : ... (end date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
  &lt;br /&gt;
 (block of MM5 properties to convert)&lt;br /&gt;
 &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;&lt;br /&gt;
 ... (name of MM5 property to convert do HDF5 format, one per line)&lt;br /&gt;
 ... &lt;br /&gt;
 &amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - the name of each MM5 property to convert in &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;...&amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt; block must&lt;br /&gt;
 conform to the MOHID designation specified in code of ModuleGlobalData; the correspondence is &lt;br /&gt;
 the following (see [[Module_InterfaceWaterAir]] for a more detailed explanation).&lt;br /&gt;
 &lt;br /&gt;
           ---MM5 NAME---    ---MOHID NAME---&lt;br /&gt;
             T2             air temperature&lt;br /&gt;
             PSTARCRS       atmospheric pressure&lt;br /&gt;
             U10            wind velocity X&lt;br /&gt;
             V10            wind velocity Y&lt;br /&gt;
             UST            wind shear velocity&lt;br /&gt;
             LHFLUX         latent heat&lt;br /&gt;
             SWDOWN         sensible heat&lt;br /&gt;
             SWDOWN         solar radiation&lt;br /&gt;
             LWDOWN         infrared radiation&lt;br /&gt;
             SWOUT          top outgoing shortwave radiation&lt;br /&gt;
             LWOUT          top outgoing longwave radiation&lt;br /&gt;
             SOIL T 1       soil temperature layer 1&lt;br /&gt;
             SOIL T 1       soil temperature layer 2&lt;br /&gt;
             SOIL T 1       soil temperature layer 3&lt;br /&gt;
             SOIL T 1       soil temperature layer 4&lt;br /&gt;
             SOIL T 1       soil temperature layer 5&lt;br /&gt;
             SOIL T 1       soil temperature layer 6&lt;br /&gt;
             Q2             2-meter mixing ratio&lt;br /&gt;
             TSEASFC        sea water temperature&lt;br /&gt;
             PBL HGT        PBL height&lt;br /&gt;
             PBL REGIME     PBL regime&lt;br /&gt;
             RAIN CON       accumulated convective precipitation        (cm)&lt;br /&gt;
             RAIN NON       accumulated non-convective precipitation    (cm)&lt;br /&gt;
             GROUND T       ground temperature&lt;br /&gt;
             RES TEMP       infinite reservoir slab temperature&lt;br /&gt;
             U              wind velocity X_3D&lt;br /&gt;
             V              wind velocity Y_3D&lt;br /&gt;
             W              wind velocity Z_3D&lt;br /&gt;
             T              air temperature_3D&lt;br /&gt;
             PP             atmospheric pressure_3D&lt;br /&gt;
             Q              mixing ratio_3D&lt;br /&gt;
             CLW            cloud water mixing ratio_3D&lt;br /&gt;
             RNW            rain water mixing ratio_3D&lt;br /&gt;
             ICE            cloud ice mixing ratio_3D&lt;br /&gt;
             SNOW           snow mixing ratio_3D&lt;br /&gt;
             RAD TEND       atmospheric radiation tendency_3D&lt;br /&gt;
&lt;br /&gt;
===CONVERT MERCATOR FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT MERCATOR FORMAT&lt;br /&gt;
 &lt;br /&gt;
 READ_OPTION               : 1/2/3/4 (version of MERCATOR files)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : ... (path/name of grid data with horizontal discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME  : ... (path/name of geometry file with vertical discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 &lt;br /&gt;
 (if READ_OPTION : 1:)&lt;br /&gt;
 BASE_BULLETIN             : ...&lt;br /&gt;
 DATES_FILE                : ...&lt;br /&gt;
 NUM_DATES                 : ... &lt;br /&gt;
 &lt;br /&gt;
 (if READ_OPTION : 2/3:)&lt;br /&gt;
 INPUT_GRID_FILENAME       : ... (path/name of file with horizontal discretization of water&lt;br /&gt;
                                  properties and water level data)&lt;br /&gt;
 (if READ_OPTION : 2:)&lt;br /&gt;
 INPUT_GRID_FILENAME_U     : ... (path/name of file with horizontal discretization of velocity&lt;br /&gt;
                                  component U data)&lt;br /&gt;
 INPUT_GRID_FILENAME_V     : ... (path/name of file with horizontal discretization of velocity&lt;br /&gt;
                                  component V data)&lt;br /&gt;
 &lt;br /&gt;
 (if READ_OPTION : 3:)&lt;br /&gt;
 INPUT_BATHY_FILENAME      : ... (path/name of file with bathymetry)&lt;br /&gt;
     &lt;br /&gt;
 (if READ_OPTION : 3/4:)&lt;br /&gt;
 CALC_BAROTROPIC_VEL       : 0/1 (1 = calculate barotropic velocity, 0 = not calculate; &lt;br /&gt;
                                  default = 0)&lt;br /&gt;
 &lt;br /&gt;
 (if CALC_BAROTROPIC_VEL : 1 and READ_OPTION : 3:)&lt;br /&gt;
 INPUT_MESH_ZGRID_FILENAME : ... (path/name of file with information about layers ticknesses)&lt;br /&gt;
 &lt;br /&gt;
 (block of MERCATOR data files)&lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 ... (path/name of MERCATOR NetCDF data file, one per line, can be several)&lt;br /&gt;
 ... &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CONVERT LEVITUS FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT LEVITUS FORMAT&lt;br /&gt;
  &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : ... (path/name of grid data with horizontal discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME  : ... (path/name of geometry file with vertical discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 &lt;br /&gt;
 PERIODICITY               : ... (periodicity of Levitus data: &amp;quot;monthly&amp;quot;/&amp;quot;annual&amp;quot;; default is&lt;br /&gt;
                                  &amp;quot;monthly&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 SPATIAL_RESOLUTION        : ... (spatial resolution (degrees) of horizontal Levitus grid)&lt;br /&gt;
 &lt;br /&gt;
 FILL_VALUE                : ... (real value identificator for missing data; default is &lt;br /&gt;
                                  &amp;quot;-99.999900&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 (definition of spatial window to be present in output HDF5 file)&lt;br /&gt;
 LOWER_LEFT_CORNER         : ... ... (longitude and latitude (degrees) of south west corner)&lt;br /&gt;
 UPPER_RIGHT_CORNER        : ... ... (longitude and latitude (degrees) of north east corner)&lt;br /&gt;
 &lt;br /&gt;
 (block for each water property to be present in output HDF5 file, can be several)&lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                      : ... (name of property)&lt;br /&gt;
 ANNUAL_FILE               : ... (path/name of Levitus annual file)&lt;br /&gt;
 &lt;br /&gt;
 (block of Levitus data files)&lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 ... (path/name of Levitus data file (e.g. a monthly data file), one per line, can be several)&lt;br /&gt;
 ... &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CONVERT HELLERMAN ROSENSTEIN ASCII===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT HELLERMAN ROSENSTEIN ASCII&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : ... (path/name of grid data with horizontal discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
  &lt;br /&gt;
 PERIODICITY               : ... (periodicity of Hellerman Rosenstein data: &amp;quot;monthly&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 SPATIAL_RESOLUTION        : ... (spatial resolution (degrees) of horizontal Hellerman&lt;br /&gt;
                                  Rosenstein grid: default and only allowed value is &amp;quot;2.&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 FILL_VALUE                : ... (real value identificator for missing data; default is &lt;br /&gt;
                                  &amp;quot;-99.999900&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 (definition of spatial window to be present in output HDF5 file)&lt;br /&gt;
 LOWER_LEFT_CORNER         : ... ... (longitude and latitude (degrees) of south west corner)&lt;br /&gt;
 UPPER_RIGHT_CORNER        : ... ... (longitude and latitude (degrees) of north east corner)&lt;br /&gt;
   &lt;br /&gt;
 (block for each Hellerman Rosenstein data file)&lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                      : ... (name of property: &amp;quot;wind stress X&amp;quot;/&amp;quot;wind stress Y&amp;quot;)&lt;br /&gt;
 FILE                      : ... (path/name Hellerman Rosenstein file)&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Samples==&lt;br /&gt;
All sample files are named ''ConvertToHDF5Action.dat''.&lt;br /&gt;
&lt;br /&gt;
===Glue several MOHID(.hdf5) files===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : GLUES HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : SurfaceHydro_OP.hdf5&lt;br /&gt;
  &lt;br /&gt;
 &amp;lt;&amp;lt;begin_list&amp;gt;&amp;gt;&lt;br /&gt;
 D:\Projectos\SurfaceHydrodynamic_21.hdf5&lt;br /&gt;
 D:\Projectos\SurfaceHydrodynamic_22.hdf5&lt;br /&gt;
 &amp;lt;&amp;lt;end_list&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Interpolate 2D MOHID(.hdf5) files to a new grid===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION    : 1&lt;br /&gt;
 FATHER_FILENAME          : D:\Projectos\MohidRun\test\res\Lagrangian_1.hdf5 &lt;br /&gt;
 OUTPUTFILENAME           : OilSpillThickness_GridRegular.hdf5&lt;br /&gt;
  &lt;br /&gt;
 START                    : 2006 6 21 17 22 30&lt;br /&gt;
 END                      : 2006 6 22 17 22 0&lt;br /&gt;
  &lt;br /&gt;
 FATHER_GRID_FILENAME     : D:\Projectos\MohidRun\GeneralData\batim\Tagus.dat_A&lt;br /&gt;
 NEW_GRID_FILENAME        : TagusConstSpacing.dat&lt;br /&gt;
  &lt;br /&gt;
 BASE_GROUP               : /Results/Oil/Data_2D&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Interpolate 3D MOHID(.hdf5) files to a new grid===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION   : 1&lt;br /&gt;
 FATHER_FILENAME         : D:\Projectos\MohidRun\test\res\Lagrangian_1.hdf5 &lt;br /&gt;
 OUTPUTFILENAME          : OilSpillThickness_GridRegular.hdf5&lt;br /&gt;
 &lt;br /&gt;
 START                   : 2006 6 21 17 22 30&lt;br /&gt;
 END                     : 2006 6 22 17 22 0&lt;br /&gt;
 &lt;br /&gt;
 FATHER_GRID_FILENAME    : D:\Projectos\MohidRun\GeneralData\batim\Tagus.dat_A&lt;br /&gt;
 NEW_GRID_FILENAME       : TagusConstSpacing.dat&lt;br /&gt;
 &lt;br /&gt;
 BASE_GROUP              : /Results/Oil/Data_2D&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D         : 1&lt;br /&gt;
 FATHER_GEOMETRY         : D:\Projectos\MohidRun\test\data\Geometry_1.dat&lt;br /&gt;
 NEW_GEOMETRY            : TagusGeometry.dat&lt;br /&gt;
 AUX_GRID_FILENAME       : TagusConstSpacing.dat&lt;br /&gt;
 AUX_OUTPUTFILENAME      : Aux_GridRegular.hdf5&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Patch several MOHID(.hdf5) files to a new grid===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION : PATCH HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION   : 3&lt;br /&gt;
 &lt;br /&gt;
 START                   : 2005 2 28 13 0 0&lt;br /&gt;
 END                     : 2005 3 1 13 0 0&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                   : 3&lt;br /&gt;
 FATHER_FILENAME         : K:\MM5output\2005022812_2005030712\MM5OUT_D1.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME    : K:\MM5output\2005022812_2005030712\grid1.dat&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                   : 2&lt;br /&gt;
 FATHER_FILENAME         : K:\MM5output\2005022812_2005030712\MM5OUT_D2.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME    : K:\MM5output\2005022812_2005030712\grid2.dat&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                   : 1&lt;br /&gt;
 FATHER_FILENAME         : K:\MM5output\2005022812_2005030712\MM5OUT_D3.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME    : K:\MM5output\2005022812_2005030712\grid3.dat&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME          : MM5Forcing.hdf5&lt;br /&gt;
 NEW_GRID_FILENAME       : K:\Simula\GeneralData\Batim\CostaPortuguesa.dat&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert an ERA40 file to MOHID(.hdf5)===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                  : CONVERT ERA40 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                : D:\Aplica\ERA40\1971ERA1973.nc&lt;br /&gt;
 OUTPUTFILENAME          : D:\Aplica\ERA40\1971ERA1973T2&lt;br /&gt;
 &lt;br /&gt;
 CONVERT_TO_ASCII        : 0&lt;br /&gt;
 CONVERT_TO_HDF5         : 1&lt;br /&gt;
 &lt;br /&gt;
 XX_VARIABLE             : longitude&lt;br /&gt;
 YY_VARIABLE             : latitude&lt;br /&gt;
 TIME_VARIABLE           : time&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert a MM5 file to MOHID(.hdf5)===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                  : CONVERT MM5 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                : K:\MM5output\DataCenter\Modelos\Meteo_IST\Fev2005\MMOUT_D3&lt;br /&gt;
 TERRAIN_FILENAME        : K:\MM5output\DataCenter\Modelos\Meteo_IST\Fev2005\TERRAIN_D3&lt;br /&gt;
 OUTPUT_GRID_FILENAME    : K:\MM5output\DataCenter\Modelos\Meteo_IST\Fev2005\grid3.dat&lt;br /&gt;
 OUTPUTFILENAME          : K:\MM5output\DataCenter\Modelos\Meteo_IST\Fev2005\MM5_D3.hdf5&lt;br /&gt;
 &lt;br /&gt;
 COMPUTE_WINDSTRESS        : 0&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY : 1&lt;br /&gt;
 WRITE_XYZ                 : 0&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;&lt;br /&gt;
 solar radiation&lt;br /&gt;
 air temperature&lt;br /&gt;
 wind velocity X&lt;br /&gt;
 wind velocity Y&lt;br /&gt;
 sensible heat&lt;br /&gt;
 latent heat&lt;br /&gt;
 atmospheric pressure&lt;br /&gt;
 sea water temperature&lt;br /&gt;
 &amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert Mercator-Ocean(.nc) to MOHID(.hdf5)===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : CONVERT MERCATOR FORMAT&lt;br /&gt;
 &lt;br /&gt;
 READ_OPTION              : 2&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : Psy2v2r1v_R20060628/MercatorR20060628.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME     : Psy2v2r1v_R20060628/MercatorGridR20060628.dat&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME : Psy2v2r1v_R20060628/MercatorGeometryR20060628.dat&lt;br /&gt;
 &lt;br /&gt;
 INPUT_GRID_FILENAME      : GridFiles/ist_meteog-gridT.nc&lt;br /&gt;
 INPUT_GRID_FILENAME_U    : GridFiles/ist_meteog-gridU.nc&lt;br /&gt;
 INPUT_GRID_FILENAME_V    : GridFiles/ist_meteog-gridV.nc&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 Psy2v2r1v_R20060628/ist_meteog-mercatorPsy2v2r1v_T_MEAN_ANA_20060621_R20060628.nc&lt;br /&gt;
 Psy2v2r1v_R20060628/ist_meteog-mercatorPsy2v2r1v_T_MEAN_ANA_20060622_R20060628.nc&lt;br /&gt;
 Psy2v2r1v_R20060628/ist_meteog-mercatorPsy2v2r1v_T_MEAN_ANA_20060623_R20060628.nc&lt;br /&gt;
 &amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert Levitus format to MOHID(.hdf5) and interpolate grid===&lt;br /&gt;
==== Convert ====&lt;br /&gt;
First convert the Levitus ASCII format to a raw HDF5 format:&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : CONVERT LEVITUS FORMAT&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : Levitus.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME     : LevitusGrid.dat&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME : LevitusGeometry.dat&lt;br /&gt;
 &lt;br /&gt;
 PERIODICITY              : monthly&lt;br /&gt;
 SPATIAL_RESOLUTION       : 0.25&lt;br /&gt;
 FILL_VALUE               : -99.9999&lt;br /&gt;
 &lt;br /&gt;
 LOWER_LEFT_CORNER        : -16.0  31&lt;br /&gt;
 UPPER_RIGHT_CORNER       :   1.   40&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : salinity&lt;br /&gt;
 ANNUAL_FILE              : DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s000hr.obj&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s001&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s002&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s003&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s004&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s005&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s006&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s007&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s008&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s009&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s010&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s011&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s012&lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : temperature&lt;br /&gt;
 ANNUAL_FILE              : DataCenter\DadosBase\Ocean\Levitus\Data\Temp\t000hr.obj&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t001&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t002&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t003&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t004&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t005&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t006&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t007&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t008&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t009&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t010&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t011&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t012&lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Extrapolate ====&lt;br /&gt;
Then extrapolate the data (still in the raw HDF5 format):&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION    : 1&lt;br /&gt;
 &lt;br /&gt;
 FATHER_FILENAME          : Levitus.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME     : LevitusGrid.dat&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : LeviTusAllPointsWithData.hdf5&lt;br /&gt;
 NEW_GRID_FILENAME        : LevitusGrid.dat&lt;br /&gt;
 &lt;br /&gt;
 START                    : -9999 1  1 0 0 0&lt;br /&gt;
 END                      : -9999 12 1 0 0 0&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D          : 1&lt;br /&gt;
 FATHER_GEOMETRY          : LevitusGeometry.dat&lt;br /&gt;
 NEW_GEOMETRY             : LevitusGeometry.dat&lt;br /&gt;
 AUX_GRID_FILENAME        : LevitusGrid.dat&lt;br /&gt;
 AUX_OUTPUTFILENAME       : AuxLeviTusAllPointsWithData.hdf5&lt;br /&gt;
 &lt;br /&gt;
 POLI_DEGREE              : 3&lt;br /&gt;
 DO_NOT_BELIEVE_MAP       : 1&lt;br /&gt;
 EXTRAPOLATE_2D           : 2&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Interpolate ====&lt;br /&gt;
Finally, interpolate to the final grid and geometry (same as the [[#Interpolate 3D MOHID(.hdf5) files to a new grid| Interpolate 3D sample]]):&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION    : 1&lt;br /&gt;
 FATHER_FILENAME          : LeviTusAllPointsWithData.hdf5&lt;br /&gt;
 OUTPUTFILENAME           : CadizMonthlyLevitus.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME     : LevitusGrid.dat&lt;br /&gt;
 NEW_GRID_FILENAME        : Algarve0.02SigmaSmooth_V3_CartMoreLayers.dat&lt;br /&gt;
 &lt;br /&gt;
 START                    : -9999 1  1 0 0 0&lt;br /&gt;
 END                      : -9999 12 1 0 0 0&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D          : 1&lt;br /&gt;
 FATHER_GEOMETRY          : LevitusGeometry.dat&lt;br /&gt;
 NEW_GEOMETRY             : Geometry_1.dat&lt;br /&gt;
 AUX_OUTPUTFILENAME       : AuxCadizMonthlyLevitus.hdf5&lt;br /&gt;
 AUX_GRID_FILENAME        : Aux12km.dat&lt;br /&gt;
 &lt;br /&gt;
 POLI_DEGREE              : 3&lt;br /&gt;
 DO_NOT_BELIEVE_MAP       : 1&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that the programme may construct a new bathymetry twice. Use this bathymetry only on the AUX_GRID_FILENAME keyword.&lt;br /&gt;
&lt;br /&gt;
===Convert Hellerman Rosenstein ASCII format to MOHID(.hdf5)  ===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : CONVERT HELLERMAN ROSENSTEIN ASCII&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : ClimatologicWindStress.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME     : ClimatologicWindStressGrid.dat&lt;br /&gt;
 &lt;br /&gt;
 PERIODICITY              : monthly&lt;br /&gt;
 SPATIAL_RESOLUTION       : 2.&lt;br /&gt;
 FILL_VALUE               : -99.9999&lt;br /&gt;
 &lt;br /&gt;
 LOWER_LEFT_CORNER        : -180  -90&lt;br /&gt;
 UPPER_RIGHT_CORNER       : 180  90&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : wind stress X&lt;br /&gt;
 FILE                     : D:\Aplica\Dados\Hellerman_Rosenstein\TAUXX.DAT&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : wind stress Y&lt;br /&gt;
 FILE                     : D:\Aplica\Dados\Hellerman_Rosenstein\TAUYY.DAT&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert ALADIN(.nc) format to MOHID(.hdf5)===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT ALADIN FORMAT&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : aladin.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : aladin_griddata.dat&lt;br /&gt;
 &lt;br /&gt;
 !Put here the name of any netcdf file for grid-data generation's sake.&lt;br /&gt;
 INPUT_GRID_FILENAME      :   D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKCLOUD_OPASYMP_19723_20088.nc&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKIR_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKPRES_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKSOLAR_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKTAIR_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKWIND_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_FLUXPRE_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_STRESSU_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_STRESSV_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_U10_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_V10_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKCLOUD_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKHUMI_OPASYMP_19723_20088.nc&lt;br /&gt;
 &amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== OceanColor modules compilation ==&lt;br /&gt;
Compiling the [[ConvertToHDF5]] tool with the OceanColor modules is more complicated than one might expect. A solution is proposed here for a release version using the Compaq Visual Fortran 6.6c. The difficulties rise because C code is embedded with a fortran interface and also, extra libraries such as hdf4 are required.&lt;br /&gt;
&lt;br /&gt;
=== Pre-requisites ===&lt;br /&gt;
&lt;br /&gt;
This is a list of prerequisites to successfully compile the tool:&lt;br /&gt;
*Compaq Visual Fortran 6.5 with patch 6.6c,&lt;br /&gt;
*VS .NET 2003 (Vc7 in particular),&lt;br /&gt;
*Hdf5 libraries ('''hdf5.lib''' '''hdf5_fortran.lib''' '''hdf5_hl.lib'''),&lt;br /&gt;
*Netcdf libraries ('''netcdf.lib''' '''netcdf_.lib'''),&lt;br /&gt;
*Hdf4 libraries ('''hd421.lib''', '''hm421.lib'''),&lt;br /&gt;
*szlib, zlib and jpeg libraries ('''szlib.lib''', '''zlib.lib''' and '''libjpeg.lib'''),&lt;br /&gt;
*the fortran source files ('''ModuleConvertModisL2.F90 ModuleConvertModisL3.F90 ModuleConvertOceanColorL2.F90'''),&lt;br /&gt;
*the C source files and their fortran interface files ('''readL2scan.c readL2Seadas.c''' and '''cdata.f crossp.f fgeonav.f''').&lt;br /&gt;
&lt;br /&gt;
=== CVF IDE configuration ===&lt;br /&gt;
# Configure everything as specified in [[Compiling with CVF]].&lt;br /&gt;
# Add the source files listed in the prerequisites above to the source files listing.&lt;br /&gt;
# Go to '''Tools--&amp;gt;Options...--&amp;gt;Directories'''. There, add the '''$DOTNET2K3/Vc7/bin''' to the '''Executable files''''; the '''$DOTNET2K3/Vc7/include''' and '''$DOTNET2K3/Vc7/PlatformSDK/include''' to the '''Include files'''; and finally, the '''$DOTNET2K3/Vc7/lib''', '''$DOTNET2K3/Vc7/PlatformSDK/lib''' and  '''$DOTNET2K3/Vc7/PlatformSDK/bin''' to the '''Library files'''.&lt;br /&gt;
# Go to '''Projects--&amp;gt;Settings--&amp;gt;Release--&amp;gt;Link--&amp;gt;Input'''. There, add the following libraries: '''netcdf.lib netcdf_.lib hd421.lib hm421.lib libjpeg.lib'''. (Make sure the hdf5 libraries as well as the szlib and zlib libraries are already mentioned).&lt;br /&gt;
&lt;br /&gt;
=== Troubleshoots ===&lt;br /&gt;
'''Q: I get unresolved external references during linkage, but I have all the libraries mentioned above included. What should I do?'''&lt;br /&gt;
&lt;br /&gt;
A: Unresolved external references can come out for two reasons:&lt;br /&gt;
#you didn't specified all the libraries required or all the paths for the default libraries or,&lt;br /&gt;
#[http://en.wikipedia.org/wiki/Name_decoration name mangling] problems. Use the [[dumpbin]] utility to the libraries to checkout which language convention they are using. If that's the problem then you need to try to get new libraries with the correct naming convention.&lt;br /&gt;
&lt;br /&gt;
That's it, you should now be able to build the [[ConvertToHdf5]] project successfully.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Q: I got a message saying the entry point _NF_PUT_ATT_REAL@28 could not be located in netcdf.dll'''&lt;br /&gt;
&lt;br /&gt;
A: copy the file netcdf.dll to the exe folder&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
*[http://www.hdfgroup.org/ HDF5 Homepage]&lt;br /&gt;
*[http://www.hdfgroup.org/ HDF4 Homepage]&lt;br /&gt;
&lt;br /&gt;
== Links ==&lt;br /&gt;
&lt;br /&gt;
*[[Module_Atmosphere]]&lt;br /&gt;
*[[Module_InterfaceWaterAir]]&lt;br /&gt;
*[[Coupling_Water-Atmosphere_User_Manual]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Tools]]&lt;br /&gt;
[[Category:Hdf5]]&lt;/div&gt;</summary>
		<author><name>Anatrancoso</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=ConvertToHDF5&amp;diff=3236</id>
		<title>ConvertToHDF5</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=ConvertToHDF5&amp;diff=3236"/>
				<updated>2010-08-06T16:00:53Z</updated>
		
		<summary type="html">&lt;p&gt;Anatrancoso: /* WRF */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The '''ConvertToHDF5''' is an application which allows the making of several operations, called '''actions''', involving HDF5 files: conversion of data in other formats (e.g. NETCDF) to HDF5, grid interpolation, concatenation of several files.&lt;br /&gt;
&lt;br /&gt;
Running options for this application are specified by the user in a input file named [[ConvertToHDF5#Input file (ConvertToHDF5Action.dat)|'''ConvertToHDF5Action.dat''']]. Several actions can be specified in the same input file, being processed sequentially by the ConvertToHDF5 application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
The operations involving HDF5 files performed by ConvertToHDF5, specified individually by an action, can be organized in [[#file management|file management]], [[#grid interpolation|grid interpolation]] and [[#format conversion|format conversion]]. These types and the respective actions are detailed in the next sections. &lt;br /&gt;
&lt;br /&gt;
The input file specification for each action can be found bellow in the [[#Input file (ConvertToHDF5Action.dat)|Input file (ConvertToHDF5Action.dat)]] section.&lt;br /&gt;
&lt;br /&gt;
===Compilation Settings===&lt;br /&gt;
&lt;br /&gt;
====With Compaq Visual Fortran====&lt;br /&gt;
&lt;br /&gt;
* File -&amp;gt; New -&amp;gt; Fortran Console Application&lt;br /&gt;
* Project -&amp;gt; Add to Project -&amp;gt; Files -&amp;gt; *.f90 (do not add ModuleWRFFormat.f90 and proj4.f90 if you don't want to use [[PROJ4]] library).&lt;br /&gt;
* Project -&amp;gt; Settings:&lt;br /&gt;
** Fortran tab:&lt;br /&gt;
*** Compatibility “Big Endian” to work with MM5 files.&lt;br /&gt;
*** Compilation Diagnostics -&amp;gt; Fortran Standards Checking -&amp;gt; Fortran95.&lt;br /&gt;
*** Preprocessor:&lt;br /&gt;
**** Check FPP.&lt;br /&gt;
**** INCLUDE and USE Paths: path to Libs folder.&lt;br /&gt;
** C/C++ tab:&lt;br /&gt;
*** Preprocessor -&amp;gt; Additional include directories: path to Libs.&lt;br /&gt;
** Link tab:&lt;br /&gt;
*** General -&amp;gt; Object/library modules: kernel32.lib hdf5.lib hdf5_hl.lib hdf5_fortran.lib zlib.lib szlib.lib netcdf.lib netcdf_.lib &lt;br /&gt;
*** Input -&amp;gt; Additional library path: path to Libs.&lt;br /&gt;
* Buil -&amp;gt; Rebuild All&lt;br /&gt;
&lt;br /&gt;
To run this executable, copy ''netcdf.dll'' to its directory.&lt;br /&gt;
To work with large files, compile with: Project -&amp;gt; Settings -&amp;gt; Link tab -&amp;gt; Reserve: 10^6.&lt;br /&gt;
&lt;br /&gt;
===== Compile ModuleWRFFormat =====&lt;br /&gt;
&lt;br /&gt;
To convert [[Meteo|WRF]] files or work with other projection beside UTM and Lambert Conformal, ConvertToHDF5 must be compiled with [[PROJ4]] library. To do that:&lt;br /&gt;
* Same settings as above.&lt;br /&gt;
* Project -&amp;gt; Add to Project -&amp;gt; Files:&lt;br /&gt;
** ModuleWRFFormat.f90&lt;br /&gt;
** Proj4.f90&lt;br /&gt;
* Project -&amp;gt; Settings:&lt;br /&gt;
** Fortran tab -&amp;gt; Predefined Preprocessor symbols: _USE_PROJ4&lt;br /&gt;
** Link tab -&amp;gt; General -&amp;gt; Object/library modules: add libfproj4.lib (Note: ''libfproj4.lib'' and ''proj4.inc'' must be in Libs folder)&lt;br /&gt;
* Build -&amp;gt; Rebuild All.&lt;br /&gt;
&lt;br /&gt;
===File management===&lt;br /&gt;
&lt;br /&gt;
====Glue files====&lt;br /&gt;
This action consists in joining or glue in a single HDF5 file two or more HDF5 files having the same HDF5 data groups and referring to time periods which come in sequence. Both sets of 2D and 3D HDF5 files can be glued.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Glue MOHID Water results files from several runs produced in continuous running of the model, for storage space economy reasons. Can be used to join data from other origins (e.g. results of meteorological models) as long as the HDF5 format is the one supported by MOHID Water.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 files to be glued. &amp;quot;Grid&amp;quot; and &amp;quot;Results&amp;quot; data groups should be equal in all these files.&lt;br /&gt;
&lt;br /&gt;
'''Output:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with glued &amp;quot;Results&amp;quot; data. &amp;quot;Residual&amp;quot; and &amp;quot;Statistics&amp;quot; HDF5 data groups are not copied to the output file since they are time period specific (different values potentially occour in each file). General statistics can be calculated for the glued HDF5 file data using tool [[HDF5Statistics]].&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#GLUES HDF5 FILES|GLUES HDF5 FILES]].&lt;br /&gt;
&lt;br /&gt;
===Grid interpolation===&lt;br /&gt;
&lt;br /&gt;
====Interpolate files====&lt;br /&gt;
This action performs the conversion of one HDF5 file data existing in one 2D or 3D spatial grid to another 2D or 3D spatial grid, creating a new HDF5 file. The interpolation is performed only for the data located a time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
The HDF5 file containing data to be interpolated is called the '''father file'''.&lt;br /&gt;
&lt;br /&gt;
In case of 3D interpolation the application conducts first the horizontal grid interpolation&lt;br /&gt;
(keeping father geometry) and only after it conducts the vertical interpolation (from father geometry to new geometry).&lt;br /&gt;
&lt;br /&gt;
Several types of 2D interpolation are available for use: bilinear, spline 2D and triangulation.&lt;br /&gt;
For vertical interpolation (used in 3D interpolation) can be supplied several polinomial degrees for interpolation.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain an HDF5 file with data for forcing or providing initial conditions for a MOHID Water model, e.g. a meteorological forcing file.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
For 2D/3D interpolation:&lt;br /&gt;
&lt;br /&gt;
- father HDF5 file;&lt;br /&gt;
&lt;br /&gt;
- father horizontal data grid, in a grid data file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
- new horizontal data grid, in a grid data file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
For 3D interpolation also needed:&lt;br /&gt;
&lt;br /&gt;
- father vertical geometry, in a geometry file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
- new vertical geometry, in a geometry file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
- auxiliary horizontal data grid, in a grid data file in the format supported by MOHID; this file is used for horizontal grid interpolation in 3D interpolation operations.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with interpolated data. In case of 3D interpolation also produced an auxiliary HDF5 file with the result of the horizontal grid interpolation, which can be inspected to check if this operation is well performed.&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#INTERPOLATE GRIDS|INTERPOLATE GRIDS]].&lt;br /&gt;
&lt;br /&gt;
====Patch files====&lt;br /&gt;
This action consists in performing an interpolation of HDF5 data between grids, as in action [[#Interpolate files|Interpolate files]], but considering more than one HDF5 file as containing data to be interpolated to the new grid and a priority scale. The interpolation is performed only for the data located in the time window specified by the user. The present version of this action operates only on 2D data.&lt;br /&gt;
&lt;br /&gt;
Each HDF5 file containing data to be interpolated is called a '''father file''' and has an user-attributed '''priority level''' to be respected in the interpolation process: for each new grid cell the ConvertToHDF5 application will look for data first on the Level 1 father file and only in the case this data is inexistent will it look for data in Level 2 file, proceeding in looking for higher level files if no data is found subsequentely.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
To obtain an HDF5 file with data from several HDF5 files each containing data with different spatial resolution and only for a specific part of the new grid. This is, for instance, the case when one is preparing a best resolution meteorological HDF5 file for forcing MOHID Water from several meteorological model domains, having different spatial resolution and span, since the best resolution data is not available for all new grid cells.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
The new horizontal data grid, in a grid data file in the format supported by MOHID, and for each father file:&lt;br /&gt;
&lt;br /&gt;
- level of priority: 1 = maximum priority, priority decreases with increasing level value;&lt;br /&gt;
&lt;br /&gt;
- data grid, in the form of a grid data file in the format supported by MOHID.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with patched data.&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#PATCH HDF5 FILES|PATCH HDF5 FILES]].&lt;br /&gt;
&lt;br /&gt;
===Format conversion===&lt;br /&gt;
&lt;br /&gt;
====Meteorological model data====&lt;br /&gt;
Mohid does not simulate explicitly the atmosphere, but needs information about atmospheric properties in time and space. This requires that atmospheric properties are supplied to MOHID Water in supported formats. These formats can be derived from meteorological data in HDF5 format. Because the results of meteorological models are accessed in different formats conversion is required. &lt;br /&gt;
&lt;br /&gt;
The formats currently convertible to HDF5 in ConvertToHDF5 include the MM5 and the ERA40. These are succintly detailed in the next sections.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''ERA40''=====&lt;br /&gt;
This format refers to the European Centre for Medium-Range Weather Forecasts (ECMWF) 40 years re-analysises results, acessed by site http://data.ecmwf.int/data/d/era40_daily/. This data is available for several meteorological variables with maximum 6 hour periodicity for days in the period from 1957-09-01 to 2002-08-31. &lt;br /&gt;
&lt;br /&gt;
ERA40 data files are supplied by ECMWF in a NetCDF format and with an user-costumized time window, periodicity (time step range from 6 hours to a day) and meteorological properties set. The ERA40 meteorological properties which are recognized by MOHID are presented bellow together with the correspondent MOHID name: &lt;br /&gt;
&lt;br /&gt;
 ---ERA40 NAME---         ---MOHID NAME---&lt;br /&gt;
   sshf                     sensible heat                &lt;br /&gt;
   slhf                     latent heat                  &lt;br /&gt;
   msl                      atmospheric pressure &lt;br /&gt;
   tcc                      cloud cover &lt;br /&gt;
   p10u                     wind velocity X&lt;br /&gt;
   p10v                     wind velocity Y&lt;br /&gt;
   p2t                      air temperature&lt;br /&gt;
   ewss                     wind stress X&lt;br /&gt;
   nsss                     wind stress Y&lt;br /&gt;
&lt;br /&gt;
The standard ConvertToHDF5 action is to convert to HDF5 the data referring to all MOHID Water recognized property available in the ERA40 file, producing an individual HDF5 file for each property. The name of each HDF5 file generated includes the ERA40 meteorological property identificator correspondent to the data contained.&lt;br /&gt;
&lt;br /&gt;
Alternatively, ConvertToHDF5 can copy to a single ASCII file the heading information concerning each meteorological variable considered in the original ERA40 file.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain an HDF5 file with data suitable for being used for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
ERA40 NetCDF file.&lt;br /&gt;
&lt;br /&gt;
'''Output:'''&lt;br /&gt;
&lt;br /&gt;
One HDF5 file for each meteorological property contained in the original NetCDF file.&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT ERA40 FORMAT|CONVERT ERA40 FORMAT]].&lt;br /&gt;
&lt;br /&gt;
=====''Aladin''=====&lt;br /&gt;
This format relates to Aladin meteorological model results. Some of the atmospheric property needed by MOHID Water is present in Aladin output files, enabling to run prediction simulations with MOHID Water when access to Aladin prevision files is available.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts Aladin results files from the original format to HDF5 format, allowing the easy use of these results in the MOHID framework. Conversion is only performed for the MM5 properties and the time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Produce HDF5 meteorological data usable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
Aladin netcdf results file to convert.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
An HDF5 file with Aladin results and a grid data file in MOHID format with the Aladin grid pseudo-information: a fake orography is created of 100 m depth.&lt;br /&gt;
This last file can be used to interpolate the Aladin data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]), for instance to produce an HDF5 file suitable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Compilation:'''&lt;br /&gt;
&lt;br /&gt;
Caution! The ConvertToHDF5 executable must be compiled with the [[Big-endian little-endian|Big-Endian]] option set (see compatibility in the project's settings).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT ALADIN FORMAT|CONVERT ALADIN FORMAT]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''MM5''=====&lt;br /&gt;
This format relates to the Fifth-Generation NCAR / Penn State Mesoscale Model (MM5) output files format. Almost every atmospheric property needed by MOHID Water is present in MM5 output files.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts MM5 results files from the original format to HDF5 format, allowing the easy use of these results in the MOHID framework. Conversion is only performed for the MM5 properties and the time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
Besides the conversion, the application can calculate some properties not contained in&lt;br /&gt;
the MM5 files using the available information: these are wind stress, relative humidity and mean sea level pressure.&lt;br /&gt;
&lt;br /&gt;
For conversion to be completed it is required the horizontal grid information of MM5 results which is available in special TERRAIN files.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Produce HDF5 meteorological data usable to force MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
MM5 results file to convert and MM5 TERRAIN file. The TERRAIN file supplies the MM5 results grid information. &lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
A HDF5 file with MM5 results and a grid data file in MOHID format with the MM5 grid information.&lt;br /&gt;
This last file can be used to interpolate the MM5 data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]), for instance to produce an HDF5 file suitable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Compilation:'''&lt;br /&gt;
&lt;br /&gt;
Caution! The ConvertToHDF5 executable must be compiled with the [[Big-endian little-endian|Big-Endian]] option set (see compatibility in the project's settings).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT MM5 FORMAT|CONVERT MM5 FORMAT]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''WRF''=====&lt;br /&gt;
This format relates to the Weather Research and Forecast model (WRF) output files format. Almost every atmospheric property needed by MOHID Water is present in WRF output files.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts WRF results files from the original format to HDF5 format, allowing the easy use of these results in the MOHID framework. Conversion is only performed for the WRF properties and the time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
Besides the conversion, the application can calculate some properties not contained in&lt;br /&gt;
the WRF files using the available information: these are wind stress, relative humidity and mean sea level pressure.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Produce HDF5 meteorological data usable to force MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
WRF direct output file.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
An HDF5 file with WRF results and a grid data file in MOHID format with the WRF grid information.&lt;br /&gt;
This last file can be used to interpolate the WRF data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]), for instance to produce an HDF5 file suitable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Compilation:'''&lt;br /&gt;
&lt;br /&gt;
Caution! Proj4 library is needed! See [[#Compile_ModuleWRFFormat |  Compile_ModuleWRFFormat]]&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT WRF FORMAT|CONVERT WRF FORMAT]].&lt;br /&gt;
&lt;br /&gt;
====Ocean model data====&lt;br /&gt;
Ocean model data, available in diverse formats, can be used by MOHID Water to specify boundary (open ocean boundary and surface), initial conditions or for validation. These uses require that the model data is in HDF5 format and conversion is therefore needed.&lt;br /&gt;
&lt;br /&gt;
Currently the large scale ocean models formats convertible into HDF5 by ConvertToHDF5 includes MERCATOR.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''MERCATOR''=====&lt;br /&gt;
MERCATOR data files are supplied in a NetCDF format and with an user-costumized spatial window and periodicity. Water level and water properties (temperature and salinity) data is available in type T files, velocity component u data is available in type U files and velocity component v data is available in type V files. The type of data of a specific MERCATOR file is generally indicated in the file name.&lt;br /&gt;
&lt;br /&gt;
The standard ConvertToHDF5 action is to convert to HDF5 the data referring to temperature, salinity, water level, component u of velocity and component v of velocity.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain HDF5 MERCATOR data usable for forcing or validation of MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
NetCDF MERCATOR results data files and NetCDF MERCATOR grid data files. It should be provided one grid data file of each type: T, U and V. These are generally provided by the MERCATOR services together with the results files.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
One HDF5 file containing all properties contained in the recognized set of properties (temperature, salinity, water level, velocity u and velocity v) and the correspondent grid data and geometry files, containing respectively the horizontal grid and the vertical discretization of the HDF5 file. The grid data and geometry files can be used afterwards to interpolate the MERCATOR data to another grid and geometry (see [[#Interpolate files|Interpolate files]]).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT MERCATOR FORMAT|CONVERT MERCATOR FORMAT]].&lt;br /&gt;
&lt;br /&gt;
====Climatological data====&lt;br /&gt;
Climatological data can be used in MOHID Water to specify boundary (open ocean boundary and surface), initial conditions or for validation, in case more realistic data (measurements or model) data is unavailable. This data is generally supplied by producers in formats not readly usable by MOHID Water which justifies the existence of a conversion tool.&lt;br /&gt;
&lt;br /&gt;
Two climatological data format conversions are implemented in ConvertToHDF5: Levitus ocean data and Hellerman Rosenstein meteorological data.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''Levitus''=====&lt;br /&gt;
The Levitus climatology provides results for water temperature and salinity.&lt;br /&gt;
The ConvertToHDF5 action converts the climatological data for the properties and spatial window requested by the user. &lt;br /&gt;
Typically, it requires 3 steps to complete the task:&lt;br /&gt;
&lt;br /&gt;
- convert levitus format &lt;br /&gt;
&lt;br /&gt;
- extrapolate the data to the whole levitus domain(required to avoid uncoincidental coastlines) &lt;br /&gt;
&lt;br /&gt;
- interpolate with the model grid(bathymetry)&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain climatological data in HDF5 format to use as boundary forcing and/or initial condition specification in MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
Levitus climatological data files, one per property and per time period (e.g a month).&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with Levitus climatological data, grid data file with the horizontal&lt;br /&gt;
grid of the data and a geometry file with vertical discretization of the data (MOHID formats).&lt;br /&gt;
The grid data and the geometry files can be used to interpolate the climatological data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT LEVITUS FORMAT|CONVERT LEVITUS FORMAT]].&lt;br /&gt;
&lt;br /&gt;
=====''Hellerman Rosenstein''=====&lt;br /&gt;
This is a meteorological climatology providing wind stress. There is a file per wind stress component. Since the data refer to surface values it is a 2D field.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts the climatological data for the properties and spatial window provided by the user.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain climatological data in HDF5 format to use as meteorological forcing in MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
Hellerman Rosenstein climatological data ASCII files, one per wind stress component.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with Hellerman Rosenstein climatological data and grid data file with the horizontal&lt;br /&gt;
grid of the climatological data. This grid data file can be used to interpolate the climatological data from the original horizontal grid to a new grid (see [[#Interpolate files|Interpolate files]]).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT HELLERMAN ROSENSTEIN ASCII|CONVERT HELLERMAN ROSENSTEIN ASCII]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''World Ocean Atlas 2005''=====&lt;br /&gt;
The World Ocean Atlas (WOA) 2005 climatology provides results for water temperature, salinity and several water quality and biology properties.&lt;br /&gt;
&lt;br /&gt;
Description, Action and Input Files are described in a separate page: [[ConvertToHDF5 WOA2005]].&lt;br /&gt;
&lt;br /&gt;
==Input file (ConvertToHDF5Action.dat)==&lt;br /&gt;
===General structure===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt; (block containing instructions for running a specific action) &lt;br /&gt;
 ACTION                    : ... (intended action)&lt;br /&gt;
 ... (action specific instructions)&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : ...&lt;br /&gt;
 ...&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===GLUES HDF5 FILES===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : GLUES HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 3D_FILE                   : 0/1 (0 = 2D file, 1 = 3D file)&lt;br /&gt;
 &lt;br /&gt;
 TIME_GROUP                : ... (Default=&amp;quot;Time&amp;quot;. Other option: &amp;quot;SurfaceTime&amp;quot;.)&lt;br /&gt;
 &lt;br /&gt;
 BASE_GROUP                : ... (Default=&amp;quot;Results&amp;quot;. Other options: &amp;quot;Residual&amp;quot;, &amp;quot;SurfaceResults&amp;quot;.)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 &lt;br /&gt;
 (block of HDF5 data files)&lt;br /&gt;
 &amp;lt;&amp;lt;begin_list&amp;gt;&amp;gt;&lt;br /&gt;
 ... (path/name of HDF5 file with data to be included in glue, one per line, at least two files)&lt;br /&gt;
 ...                      &lt;br /&gt;
 &amp;lt;&amp;lt;end_list&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===INTERPOLATE GRIDS===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION     : ... (type of horizontal interpolation: 1 = Bilinear, 2 = Spline2D,&lt;br /&gt;
                                  3 = Triangulation)&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION_WINDOW      : ... ... ... ... (2D spatial window to consider for interpolation: &lt;br /&gt;
                                              Xmin Ymin Xmax Ymax; default = all domain)&lt;br /&gt;
 &lt;br /&gt;
 START                     : ... (start date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 END                       : ... (end date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D           : 0/1 (0 = 2D interpolation, 1 = 3D interpolation)&lt;br /&gt;
 &lt;br /&gt;
 FATHER_FILENAME           : ... (path/name of input HDF5 file with data to be interpolated)&lt;br /&gt;
 FATHER_GRID_FILENAME      : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization of input HDF5 file)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of output HDF5 file to be created)&lt;br /&gt;
 NEW_GRID_FILENAME         : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization intended for output HDF5 file)&lt;br /&gt;
 &lt;br /&gt;
 EXTRAPOLATE_2D            : 0/1/2/3/4/5 (2D extrapolation: 0=no extrapolation, 1=medium&lt;br /&gt;
                                      triangulation, 2=high triangulation, &lt;br /&gt;
                                      3=nearest neighbour, 4=nearest cell, &lt;br /&gt;
                                      5=constant value)&lt;br /&gt;
 &lt;br /&gt;
 EXTRAPOLATE_VALUE         : ... (name of the value to extrapolate to when EXTRAPOLATE_2D is&lt;br /&gt;
                                  set to constant value (5))&lt;br /&gt;
 &lt;br /&gt;
 DO_NOT_BELIEVE_MAP        : 0/1 (0=consider input HDF5 file map, 1=do not consider input HDF5&lt;br /&gt;
                                  file map)&lt;br /&gt;
 &lt;br /&gt;
 BASE_GROUP                : ... (name of base group of HDF5 variables containing data to be &lt;br /&gt;
                                  interpolated; default is &amp;quot;/Results&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 (if INTERPOLATION3D : 1 also required:)&lt;br /&gt;
 FATHER_GEOMETRY           : ... (path/name of file (MOHID format) with vertical discretization&lt;br /&gt;
                                  of input HDF5 file)&lt;br /&gt;
 NEW_GEOMETRY              : ... (path/name of file (MOHID format) with vertical discretization&lt;br /&gt;
                                  intended for output HDF5 file)&lt;br /&gt;
 POLI_DEGREE               : 1/... (degree of vertical interpolation: 1=linear, ...)&lt;br /&gt;
 &lt;br /&gt;
 AUX_GRID_FILENAME         : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization intended for auxiliar output HDF5 file;&lt;br /&gt;
                                  default is file provided in NEW_GRID_FILENAME)&lt;br /&gt;
 &lt;br /&gt;
 AUX_OUTPUTFILENAME        : ... (path/name of auxiliar output HDF5 file to contain result&lt;br /&gt;
                                  of horizontal grid interpolation)   &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - the file indicated in AUX_GRID_FILENAME can be different from the one indicated in&lt;br /&gt;
   NEW_GRID_FILENAME in terms of bathymetry, while the horizontal grid should be, commonly, the&lt;br /&gt;
   same: this altered bathymetry can be used to extend the water column in the original data so&lt;br /&gt;
   that the process of vertical interpolation is done easily;&lt;br /&gt;
 &lt;br /&gt;
 - in case of INTERPOLATION3D : 1, ConvertToHDF5 can generate new versions of bathymetry which &lt;br /&gt;
   are consistent with the geometry definition (extension is '.new'); there are possibly three&lt;br /&gt;
   bathymetry changes referring to father grid, new grid and aux grid (the same bathymetry is&lt;br /&gt;
   not altered twice); although initially new and aux grid are the same they can result &lt;br /&gt;
   different because of bathymetry changes;&lt;br /&gt;
 &lt;br /&gt;
 - in case the new geometry is 2D and father geometry is 3D then POLI_DEGREE : 1 &lt;br /&gt;
   (linear interpolation) should be used;&lt;br /&gt;
 &lt;br /&gt;
 - EXTRAPOLATE_2D : 1/2/3/4/5 should be considered if it is expected that the coast line is not&lt;br /&gt;
   coincidental in the father and new grids, to avoid lack of data in the interpolation&lt;br /&gt;
   process; extrapolation is performed for all cells even the land cells; &lt;br /&gt;
 &lt;br /&gt;
 - in case of DO_NOT_BELIEVE_MAP : 1 the application generates a map based on cells where&lt;br /&gt;
   interpolation results are available; this causes that if EXTRAPOLATE_2D : 1/2/3/4/5 is used&lt;br /&gt;
   the AUX_GRID_FILENAME should not have land cells in order for the new map to be concurrent&lt;br /&gt;
   with the result of extrapolation and avoid errors generation, specially if INTERPOLATION3D :&lt;br /&gt;
   1 is considered.&lt;br /&gt;
&lt;br /&gt;
===PATCH HDF5 FILES===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : PATCH HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION     : ... (type of interpolation: 3 = Triangulation, default and only&lt;br /&gt;
                                  one implemented)&lt;br /&gt;
 &lt;br /&gt;
 START                     : ... (start date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 END                       : ... (end date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 &lt;br /&gt;
 (block for each father HDF5 file, should be at least two)&lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                     : ... (integer priority level: 1 = highest, increase for lower&lt;br /&gt;
                                  priority)&lt;br /&gt;
 FATHER_FILENAME           : ... (path/name of input HDF5 file with data to be interpolated)&lt;br /&gt;
 FATHER_GRID_FILENAME      : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization of input HDF5 file)&lt;br /&gt;
 N_REMOVE_FRAME            : 0   (width, in number of cells, of frame to remove)&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of output HDF5 file to be created)&lt;br /&gt;
 NEW_GRID_FILENAME         : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization intended for output HDF5 file)&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CONVERT ERA40 FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT ERA40 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                  : ... (path/name of ERA40 NetCDF file)&lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
                                 (root of name for all files produced)&lt;br /&gt;
 &lt;br /&gt;
 CONVERT_TO_ASCII          : 0/1 (1 = convert variable heading info for ASCII file; 0 = default)&lt;br /&gt;
 CONVERT_TO_HDF5           : 0/1 (1 = convert to HDF5 file; 0 = default)&lt;br /&gt;
 GRIDTO180                 : 0/1 (1 = convert grid from [0 360] to [-180 180], 0 = default)&lt;br /&gt;
 &lt;br /&gt;
 XX_VARIABLE               : ... (name of longitude variable in the input file: usual name &lt;br /&gt;
                                  is &amp;quot;longitude&amp;quot;)&lt;br /&gt;
 YY_VARIABLE               : ... (name of longitude variable in the input file: usual name &lt;br /&gt;
                                  is &amp;quot;latitude&amp;quot;)&lt;br /&gt;
 TIME_VARIABLE             : ... (name of time variable in the input file: usual name is&lt;br /&gt;
                                  &amp;quot;time&amp;quot;)&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - either CONVERT_TO_ASCII : 1 or CONVERT_TO_HDF5 : 1 must be chosen for any action to be&lt;br /&gt;
 performed by ConvertToHDF5;&lt;br /&gt;
 &lt;br /&gt;
 - when CONVERT_TO_HDF5 : 1 an HDF5 file is produced for every variable contained in the&lt;br /&gt;
 original ERA40 file; the name of each file is composed of the name indicated on FILENAME&lt;br /&gt;
 concatenated with the ERA40 variable identifier;&lt;br /&gt;
 &lt;br /&gt;
 - to the XX_VARIABLE, YY_VARIABLE and TIME_VARIABLE keywords should generally be  &lt;br /&gt;
 specified &amp;quot;longitude&amp;quot;, &amp;quot;latitude&amp;quot; and &amp;quot;time&amp;quot;, respectively; the option to&lt;br /&gt;
 include as keywords was made only to make the application robust to future variable name&lt;br /&gt;
 changes.&lt;br /&gt;
&lt;br /&gt;
===CONVERT MM5 FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT MM5 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                  : ... (path/name of MM5 file)&lt;br /&gt;
 TERRAIN_FILENAME          : ... (path/name of MM5 TERRAIN file)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : ... (path/name of grid data file with horizontal grid of MM5 data&lt;br /&gt;
                                  to be created)&lt;br /&gt;
 &lt;br /&gt;
 COMPUTE_WINDSTRESS        : 0/1 (1 = compute and write wind stress field; 0 = default)&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY : 0/1 (1 = compute and write relative humidity field; 0 = default)&lt;br /&gt;
 COMPUTE_PRECIPITATION     : 0/1 (1 = compute and write precipitation field; 0 = default)&lt;br /&gt;
 COMPUTE_WINDMODULUS       : 0/1 (1 = compute wind modulus; 0 = default)&lt;br /&gt;
 &lt;br /&gt;
 WRITE_XYZ                 : 0/1 (1 = write xyz center grid cells; 0 = default)&lt;br /&gt;
 WRITE_TERRAIN             : 0/1 (1 = write MM5 TERRAIN fields; 0 = default)&lt;br /&gt;
 &lt;br /&gt;
 START                     : ... (start date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 END                       : ... (end date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
  &lt;br /&gt;
 (block of MM5 properties to convert)&lt;br /&gt;
 &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;&lt;br /&gt;
 ... (name of MM5 property to convert do HDF5 format, one per line)&lt;br /&gt;
 ... &lt;br /&gt;
 &amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - the name of each MM5 property to convert in &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;...&amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt; block must&lt;br /&gt;
 conform to the MOHID designation specified in code of ModuleGlobalData; the correspondence is &lt;br /&gt;
 the following (see [[Module_InterfaceWaterAir]] for a more detailed explanation).&lt;br /&gt;
 &lt;br /&gt;
           ---MM5 NAME---    ---MOHID NAME---&lt;br /&gt;
             T2             air temperature&lt;br /&gt;
             PSTARCRS       atmospheric pressure&lt;br /&gt;
             U10            wind velocity X&lt;br /&gt;
             V10            wind velocity Y&lt;br /&gt;
             UST            wind shear velocity&lt;br /&gt;
             LHFLUX         latent heat&lt;br /&gt;
             SWDOWN         sensible heat&lt;br /&gt;
             SWDOWN         solar radiation&lt;br /&gt;
             LWDOWN         infrared radiation&lt;br /&gt;
             SWOUT          top outgoing shortwave radiation&lt;br /&gt;
             LWOUT          top outgoing longwave radiation&lt;br /&gt;
             SOIL T 1       soil temperature layer 1&lt;br /&gt;
             SOIL T 1       soil temperature layer 2&lt;br /&gt;
             SOIL T 1       soil temperature layer 3&lt;br /&gt;
             SOIL T 1       soil temperature layer 4&lt;br /&gt;
             SOIL T 1       soil temperature layer 5&lt;br /&gt;
             SOIL T 1       soil temperature layer 6&lt;br /&gt;
             Q2             2-meter mixing ratio&lt;br /&gt;
             TSEASFC        sea water temperature&lt;br /&gt;
             PBL HGT        PBL height&lt;br /&gt;
             PBL REGIME     PBL regime&lt;br /&gt;
             RAIN CON       accumulated convective precipitation        (cm)&lt;br /&gt;
             RAIN NON       accumulated non-convective precipitation    (cm)&lt;br /&gt;
             GROUND T       ground temperature&lt;br /&gt;
             RES TEMP       infinite reservoir slab temperature&lt;br /&gt;
             U              wind velocity X_3D&lt;br /&gt;
             V              wind velocity Y_3D&lt;br /&gt;
             W              wind velocity Z_3D&lt;br /&gt;
             T              air temperature_3D&lt;br /&gt;
             PP             atmospheric pressure_3D&lt;br /&gt;
             Q              mixing ratio_3D&lt;br /&gt;
             CLW            cloud water mixing ratio_3D&lt;br /&gt;
             RNW            rain water mixing ratio_3D&lt;br /&gt;
             ICE            cloud ice mixing ratio_3D&lt;br /&gt;
             SNOW           snow mixing ratio_3D&lt;br /&gt;
             RAD TEND       atmospheric radiation tendency_3D&lt;br /&gt;
&lt;br /&gt;
===CONVERT ALADIN FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT ALADIN FORMAT&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : aladin.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : aladin_griddata.dat&lt;br /&gt;
 &lt;br /&gt;
 !Put here the name of any netcdf file for grid-data generation's sake.&lt;br /&gt;
 INPUT_GRID_FILENAME      :   D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKCLOUD_OPASYMP_19723_20088.nc&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 (path to aladin netcdf file)\ALADIN_BULKIR_OPASYMP_19723_20088.nc&lt;br /&gt;
 ...&lt;br /&gt;
 &amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - the name of each Aladin property to convert in &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;...&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt; block must conform to the following variables&lt;br /&gt;
 &lt;br /&gt;
           ---ALADIN NAME---    ---MOHID NAME---&lt;br /&gt;
             soclotot            CloudCover_&lt;br /&gt;
             sohumrel            RelativeHumidity_&lt;br /&gt;
             sofluxir            NonSolarFlux_&lt;br /&gt;
             sosspres            AtmosphericPressure_&lt;br /&gt;
             sosolarf            SolarRadiation_&lt;br /&gt;
             sotemair            AirTemperature_&lt;br /&gt;
             sowinmod            WindModulus_&lt;br /&gt;
             sowaprec            Precipitation_&lt;br /&gt;
             sozotaux            WindStressX_&lt;br /&gt;
             sometauy            WindStressY_&lt;br /&gt;
             sowindu10           WindVelocityX_&lt;br /&gt;
             sowindv10           WindVelocityY_&lt;br /&gt;
&lt;br /&gt;
===CONVERT MERCATOR FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT MERCATOR FORMAT&lt;br /&gt;
 &lt;br /&gt;
 READ_OPTION               : 1/2/3/4 (version of MERCATOR files)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : ... (path/name of grid data with horizontal discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME  : ... (path/name of geometry file with vertical discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 &lt;br /&gt;
 (if READ_OPTION : 1:)&lt;br /&gt;
 BASE_BULLETIN             : ...&lt;br /&gt;
 DATES_FILE                : ...&lt;br /&gt;
 NUM_DATES                 : ... &lt;br /&gt;
 &lt;br /&gt;
 (if READ_OPTION : 2/3:)&lt;br /&gt;
 INPUT_GRID_FILENAME       : ... (path/name of file with horizontal discretization of water&lt;br /&gt;
                                  properties and water level data)&lt;br /&gt;
 (if READ_OPTION : 2:)&lt;br /&gt;
 INPUT_GRID_FILENAME_U     : ... (path/name of file with horizontal discretization of velocity&lt;br /&gt;
                                  component U data)&lt;br /&gt;
 INPUT_GRID_FILENAME_V     : ... (path/name of file with horizontal discretization of velocity&lt;br /&gt;
                                  component V data)&lt;br /&gt;
 &lt;br /&gt;
 (if READ_OPTION : 3:)&lt;br /&gt;
 INPUT_BATHY_FILENAME      : ... (path/name of file with bathymetry)&lt;br /&gt;
     &lt;br /&gt;
 (if READ_OPTION : 3/4:)&lt;br /&gt;
 CALC_BAROTROPIC_VEL       : 0/1 (1 = calculate barotropic velocity, 0 = not calculate; &lt;br /&gt;
                                  default = 0)&lt;br /&gt;
 &lt;br /&gt;
 (if CALC_BAROTROPIC_VEL : 1 and READ_OPTION : 3:)&lt;br /&gt;
 INPUT_MESH_ZGRID_FILENAME : ... (path/name of file with information about layers ticknesses)&lt;br /&gt;
 &lt;br /&gt;
 (block of MERCATOR data files)&lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 ... (path/name of MERCATOR NetCDF data file, one per line, can be several)&lt;br /&gt;
 ... &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CONVERT LEVITUS FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT LEVITUS FORMAT&lt;br /&gt;
  &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : ... (path/name of grid data with horizontal discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME  : ... (path/name of geometry file with vertical discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 &lt;br /&gt;
 PERIODICITY               : ... (periodicity of Levitus data: &amp;quot;monthly&amp;quot;/&amp;quot;annual&amp;quot;; default is&lt;br /&gt;
                                  &amp;quot;monthly&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 SPATIAL_RESOLUTION        : ... (spatial resolution (degrees) of horizontal Levitus grid)&lt;br /&gt;
 &lt;br /&gt;
 FILL_VALUE                : ... (real value identificator for missing data; default is &lt;br /&gt;
                                  &amp;quot;-99.999900&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 (definition of spatial window to be present in output HDF5 file)&lt;br /&gt;
 LOWER_LEFT_CORNER         : ... ... (longitude and latitude (degrees) of south west corner)&lt;br /&gt;
 UPPER_RIGHT_CORNER        : ... ... (longitude and latitude (degrees) of north east corner)&lt;br /&gt;
 &lt;br /&gt;
 (block for each water property to be present in output HDF5 file, can be several)&lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                      : ... (name of property)&lt;br /&gt;
 ANNUAL_FILE               : ... (path/name of Levitus annual file)&lt;br /&gt;
 &lt;br /&gt;
 (block of Levitus data files)&lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 ... (path/name of Levitus data file (e.g. a monthly data file), one per line, can be several)&lt;br /&gt;
 ... &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CONVERT HELLERMAN ROSENSTEIN ASCII===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT HELLERMAN ROSENSTEIN ASCII&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : ... (path/name of grid data with horizontal discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
  &lt;br /&gt;
 PERIODICITY               : ... (periodicity of Hellerman Rosenstein data: &amp;quot;monthly&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 SPATIAL_RESOLUTION        : ... (spatial resolution (degrees) of horizontal Hellerman&lt;br /&gt;
                                  Rosenstein grid: default and only allowed value is &amp;quot;2.&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 FILL_VALUE                : ... (real value identificator for missing data; default is &lt;br /&gt;
                                  &amp;quot;-99.999900&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 (definition of spatial window to be present in output HDF5 file)&lt;br /&gt;
 LOWER_LEFT_CORNER         : ... ... (longitude and latitude (degrees) of south west corner)&lt;br /&gt;
 UPPER_RIGHT_CORNER        : ... ... (longitude and latitude (degrees) of north east corner)&lt;br /&gt;
   &lt;br /&gt;
 (block for each Hellerman Rosenstein data file)&lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                      : ... (name of property: &amp;quot;wind stress X&amp;quot;/&amp;quot;wind stress Y&amp;quot;)&lt;br /&gt;
 FILE                      : ... (path/name Hellerman Rosenstein file)&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Samples==&lt;br /&gt;
All sample files are named ''ConvertToHDF5Action.dat''.&lt;br /&gt;
&lt;br /&gt;
===Glue several MOHID(.hdf5) files===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : GLUES HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : SurfaceHydro_OP.hdf5&lt;br /&gt;
  &lt;br /&gt;
 &amp;lt;&amp;lt;begin_list&amp;gt;&amp;gt;&lt;br /&gt;
 D:\Projectos\SurfaceHydrodynamic_21.hdf5&lt;br /&gt;
 D:\Projectos\SurfaceHydrodynamic_22.hdf5&lt;br /&gt;
 &amp;lt;&amp;lt;end_list&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Interpolate 2D MOHID(.hdf5) files to a new grid===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION    : 1&lt;br /&gt;
 FATHER_FILENAME          : D:\Projectos\MohidRun\test\res\Lagrangian_1.hdf5 &lt;br /&gt;
 OUTPUTFILENAME           : OilSpillThickness_GridRegular.hdf5&lt;br /&gt;
  &lt;br /&gt;
 START                    : 2006 6 21 17 22 30&lt;br /&gt;
 END                      : 2006 6 22 17 22 0&lt;br /&gt;
  &lt;br /&gt;
 FATHER_GRID_FILENAME     : D:\Projectos\MohidRun\GeneralData\batim\Tagus.dat_A&lt;br /&gt;
 NEW_GRID_FILENAME        : TagusConstSpacing.dat&lt;br /&gt;
  &lt;br /&gt;
 BASE_GROUP               : /Results/Oil/Data_2D&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Interpolate 3D MOHID(.hdf5) files to a new grid===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION   : 1&lt;br /&gt;
 FATHER_FILENAME         : D:\Projectos\MohidRun\test\res\Lagrangian_1.hdf5 &lt;br /&gt;
 OUTPUTFILENAME          : OilSpillThickness_GridRegular.hdf5&lt;br /&gt;
 &lt;br /&gt;
 START                   : 2006 6 21 17 22 30&lt;br /&gt;
 END                     : 2006 6 22 17 22 0&lt;br /&gt;
 &lt;br /&gt;
 FATHER_GRID_FILENAME    : D:\Projectos\MohidRun\GeneralData\batim\Tagus.dat_A&lt;br /&gt;
 NEW_GRID_FILENAME       : TagusConstSpacing.dat&lt;br /&gt;
 &lt;br /&gt;
 BASE_GROUP              : /Results/Oil/Data_2D&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D         : 1&lt;br /&gt;
 FATHER_GEOMETRY         : D:\Projectos\MohidRun\test\data\Geometry_1.dat&lt;br /&gt;
 NEW_GEOMETRY            : TagusGeometry.dat&lt;br /&gt;
 AUX_GRID_FILENAME       : TagusConstSpacing.dat&lt;br /&gt;
 AUX_OUTPUTFILENAME      : Aux_GridRegular.hdf5&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Patch several MOHID(.hdf5) files to a new grid===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION : PATCH HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION   : 3&lt;br /&gt;
 &lt;br /&gt;
 START                   : 2005 2 28 13 0 0&lt;br /&gt;
 END                     : 2005 3 1 13 0 0&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                   : 3&lt;br /&gt;
 FATHER_FILENAME         : K:\MM5output\2005022812_2005030712\MM5OUT_D1.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME    : K:\MM5output\2005022812_2005030712\grid1.dat&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                   : 2&lt;br /&gt;
 FATHER_FILENAME         : K:\MM5output\2005022812_2005030712\MM5OUT_D2.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME    : K:\MM5output\2005022812_2005030712\grid2.dat&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                   : 1&lt;br /&gt;
 FATHER_FILENAME         : K:\MM5output\2005022812_2005030712\MM5OUT_D3.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME    : K:\MM5output\2005022812_2005030712\grid3.dat&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME          : MM5Forcing.hdf5&lt;br /&gt;
 NEW_GRID_FILENAME       : K:\Simula\GeneralData\Batim\CostaPortuguesa.dat&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert an ERA40 file to MOHID(.hdf5)===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                  : CONVERT ERA40 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                : D:\Aplica\ERA40\1971ERA1973.nc&lt;br /&gt;
 OUTPUTFILENAME          : D:\Aplica\ERA40\1971ERA1973T2&lt;br /&gt;
 &lt;br /&gt;
 CONVERT_TO_ASCII        : 0&lt;br /&gt;
 CONVERT_TO_HDF5         : 1&lt;br /&gt;
 &lt;br /&gt;
 XX_VARIABLE             : longitude&lt;br /&gt;
 YY_VARIABLE             : latitude&lt;br /&gt;
 TIME_VARIABLE           : time&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert a MM5 file to MOHID(.hdf5)===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                  : CONVERT MM5 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                : K:\MM5output\DataCenter\Modelos\Meteo_IST\Fev2005\MMOUT_D3&lt;br /&gt;
 TERRAIN_FILENAME        : K:\MM5output\DataCenter\Modelos\Meteo_IST\Fev2005\TERRAIN_D3&lt;br /&gt;
 OUTPUT_GRID_FILENAME    : K:\MM5output\DataCenter\Modelos\Meteo_IST\Fev2005\grid3.dat&lt;br /&gt;
 OUTPUTFILENAME          : K:\MM5output\DataCenter\Modelos\Meteo_IST\Fev2005\MM5_D3.hdf5&lt;br /&gt;
 &lt;br /&gt;
 COMPUTE_WINDSTRESS        : 0&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY : 1&lt;br /&gt;
 WRITE_XYZ                 : 0&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;&lt;br /&gt;
 solar radiation&lt;br /&gt;
 air temperature&lt;br /&gt;
 wind velocity X&lt;br /&gt;
 wind velocity Y&lt;br /&gt;
 sensible heat&lt;br /&gt;
 latent heat&lt;br /&gt;
 atmospheric pressure&lt;br /&gt;
 sea water temperature&lt;br /&gt;
 &amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert Mercator-Ocean(.nc) to MOHID(.hdf5)===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : CONVERT MERCATOR FORMAT&lt;br /&gt;
 &lt;br /&gt;
 READ_OPTION              : 2&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : Psy2v2r1v_R20060628/MercatorR20060628.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME     : Psy2v2r1v_R20060628/MercatorGridR20060628.dat&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME : Psy2v2r1v_R20060628/MercatorGeometryR20060628.dat&lt;br /&gt;
 &lt;br /&gt;
 INPUT_GRID_FILENAME      : GridFiles/ist_meteog-gridT.nc&lt;br /&gt;
 INPUT_GRID_FILENAME_U    : GridFiles/ist_meteog-gridU.nc&lt;br /&gt;
 INPUT_GRID_FILENAME_V    : GridFiles/ist_meteog-gridV.nc&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 Psy2v2r1v_R20060628/ist_meteog-mercatorPsy2v2r1v_T_MEAN_ANA_20060621_R20060628.nc&lt;br /&gt;
 Psy2v2r1v_R20060628/ist_meteog-mercatorPsy2v2r1v_T_MEAN_ANA_20060622_R20060628.nc&lt;br /&gt;
 Psy2v2r1v_R20060628/ist_meteog-mercatorPsy2v2r1v_T_MEAN_ANA_20060623_R20060628.nc&lt;br /&gt;
 &amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert Levitus format to MOHID(.hdf5) and interpolate grid===&lt;br /&gt;
==== Convert ====&lt;br /&gt;
First convert the Levitus ASCII format to a raw HDF5 format:&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : CONVERT LEVITUS FORMAT&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : Levitus.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME     : LevitusGrid.dat&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME : LevitusGeometry.dat&lt;br /&gt;
 &lt;br /&gt;
 PERIODICITY              : monthly&lt;br /&gt;
 SPATIAL_RESOLUTION       : 0.25&lt;br /&gt;
 FILL_VALUE               : -99.9999&lt;br /&gt;
 &lt;br /&gt;
 LOWER_LEFT_CORNER        : -16.0  31&lt;br /&gt;
 UPPER_RIGHT_CORNER       :   1.   40&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : salinity&lt;br /&gt;
 ANNUAL_FILE              : DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s000hr.obj&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s001&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s002&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s003&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s004&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s005&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s006&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s007&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s008&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s009&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s010&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s011&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s012&lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : temperature&lt;br /&gt;
 ANNUAL_FILE              : DataCenter\DadosBase\Ocean\Levitus\Data\Temp\t000hr.obj&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t001&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t002&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t003&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t004&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t005&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t006&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t007&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t008&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t009&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t010&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t011&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t012&lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Extrapolate ====&lt;br /&gt;
Then extrapolate the data (still in the raw HDF5 format):&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION    : 1&lt;br /&gt;
 &lt;br /&gt;
 FATHER_FILENAME          : Levitus.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME     : LevitusGrid.dat&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : LeviTusAllPointsWithData.hdf5&lt;br /&gt;
 NEW_GRID_FILENAME        : LevitusGrid.dat&lt;br /&gt;
 &lt;br /&gt;
 START                    : -9999 1  1 0 0 0&lt;br /&gt;
 END                      : -9999 12 1 0 0 0&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D          : 1&lt;br /&gt;
 FATHER_GEOMETRY          : LevitusGeometry.dat&lt;br /&gt;
 NEW_GEOMETRY             : LevitusGeometry.dat&lt;br /&gt;
 AUX_GRID_FILENAME        : LevitusGrid.dat&lt;br /&gt;
 AUX_OUTPUTFILENAME       : AuxLeviTusAllPointsWithData.hdf5&lt;br /&gt;
 &lt;br /&gt;
 POLI_DEGREE              : 3&lt;br /&gt;
 DO_NOT_BELIEVE_MAP       : 1&lt;br /&gt;
 EXTRAPOLATE_2D           : 2&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Interpolate ====&lt;br /&gt;
Finally, interpolate to the final grid and geometry (same as the [[#Interpolate 3D MOHID(.hdf5) files to a new grid| Interpolate 3D sample]]):&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION    : 1&lt;br /&gt;
 FATHER_FILENAME          : LeviTusAllPointsWithData.hdf5&lt;br /&gt;
 OUTPUTFILENAME           : CadizMonthlyLevitus.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME     : LevitusGrid.dat&lt;br /&gt;
 NEW_GRID_FILENAME        : Algarve0.02SigmaSmooth_V3_CartMoreLayers.dat&lt;br /&gt;
 &lt;br /&gt;
 START                    : -9999 1  1 0 0 0&lt;br /&gt;
 END                      : -9999 12 1 0 0 0&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D          : 1&lt;br /&gt;
 FATHER_GEOMETRY          : LevitusGeometry.dat&lt;br /&gt;
 NEW_GEOMETRY             : Geometry_1.dat&lt;br /&gt;
 AUX_OUTPUTFILENAME       : AuxCadizMonthlyLevitus.hdf5&lt;br /&gt;
 AUX_GRID_FILENAME        : Aux12km.dat&lt;br /&gt;
 &lt;br /&gt;
 POLI_DEGREE              : 3&lt;br /&gt;
 DO_NOT_BELIEVE_MAP       : 1&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that the programme may construct a new bathymetry twice. Use this bathymetry only on the AUX_GRID_FILENAME keyword.&lt;br /&gt;
&lt;br /&gt;
===Convert Hellerman Rosenstein ASCII format to MOHID(.hdf5)  ===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : CONVERT HELLERMAN ROSENSTEIN ASCII&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : ClimatologicWindStress.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME     : ClimatologicWindStressGrid.dat&lt;br /&gt;
 &lt;br /&gt;
 PERIODICITY              : monthly&lt;br /&gt;
 SPATIAL_RESOLUTION       : 2.&lt;br /&gt;
 FILL_VALUE               : -99.9999&lt;br /&gt;
 &lt;br /&gt;
 LOWER_LEFT_CORNER        : -180  -90&lt;br /&gt;
 UPPER_RIGHT_CORNER       : 180  90&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : wind stress X&lt;br /&gt;
 FILE                     : D:\Aplica\Dados\Hellerman_Rosenstein\TAUXX.DAT&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : wind stress Y&lt;br /&gt;
 FILE                     : D:\Aplica\Dados\Hellerman_Rosenstein\TAUYY.DAT&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert ALADIN(.nc) format to MOHID(.hdf5)===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT ALADIN FORMAT&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : aladin.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : aladin_griddata.dat&lt;br /&gt;
 &lt;br /&gt;
 !Put here the name of any netcdf file for grid-data generation's sake.&lt;br /&gt;
 INPUT_GRID_FILENAME      :   D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKCLOUD_OPASYMP_19723_20088.nc&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKIR_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKPRES_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKSOLAR_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKTAIR_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKWIND_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_FLUXPRE_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_STRESSU_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_STRESSV_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_U10_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_V10_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKCLOUD_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKHUMI_OPASYMP_19723_20088.nc&lt;br /&gt;
 &amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== OceanColor modules compilation ==&lt;br /&gt;
Compiling the [[ConvertToHDF5]] tool with the OceanColor modules is more complicated than one might expect. A solution is proposed here for a release version using the Compaq Visual Fortran 6.6c. The difficulties rise because C code is embedded with a fortran interface and also, extra libraries such as hdf4 are required.&lt;br /&gt;
&lt;br /&gt;
=== Pre-requisites ===&lt;br /&gt;
&lt;br /&gt;
This is a list of prerequisites to successfully compile the tool:&lt;br /&gt;
*Compaq Visual Fortran 6.5 with patch 6.6c,&lt;br /&gt;
*VS .NET 2003 (Vc7 in particular),&lt;br /&gt;
*Hdf5 libraries ('''hdf5.lib''' '''hdf5_fortran.lib''' '''hdf5_hl.lib'''),&lt;br /&gt;
*Netcdf libraries ('''netcdf.lib''' '''netcdf_.lib'''),&lt;br /&gt;
*Hdf4 libraries ('''hd421.lib''', '''hm421.lib'''),&lt;br /&gt;
*szlib, zlib and jpeg libraries ('''szlib.lib''', '''zlib.lib''' and '''libjpeg.lib'''),&lt;br /&gt;
*the fortran source files ('''ModuleConvertModisL2.F90 ModuleConvertModisL3.F90 ModuleConvertOceanColorL2.F90'''),&lt;br /&gt;
*the C source files and their fortran interface files ('''readL2scan.c readL2Seadas.c''' and '''cdata.f crossp.f fgeonav.f''').&lt;br /&gt;
&lt;br /&gt;
=== CVF IDE configuration ===&lt;br /&gt;
# Configure everything as specified in [[Compiling with CVF]].&lt;br /&gt;
# Add the source files listed in the prerequisites above to the source files listing.&lt;br /&gt;
# Go to '''Tools--&amp;gt;Options...--&amp;gt;Directories'''. There, add the '''$DOTNET2K3/Vc7/bin''' to the '''Executable files''''; the '''$DOTNET2K3/Vc7/include''' and '''$DOTNET2K3/Vc7/PlatformSDK/include''' to the '''Include files'''; and finally, the '''$DOTNET2K3/Vc7/lib''', '''$DOTNET2K3/Vc7/PlatformSDK/lib''' and  '''$DOTNET2K3/Vc7/PlatformSDK/bin''' to the '''Library files'''.&lt;br /&gt;
# Go to '''Projects--&amp;gt;Settings--&amp;gt;Release--&amp;gt;Link--&amp;gt;Input'''. There, add the following libraries: '''netcdf.lib netcdf_.lib hd421.lib hm421.lib libjpeg.lib'''. (Make sure the hdf5 libraries as well as the szlib and zlib libraries are already mentioned).&lt;br /&gt;
&lt;br /&gt;
=== Troubleshoots ===&lt;br /&gt;
'''Q: I get unresolved external references during linkage, but I have all the libraries mentioned above included. What should I do?'''&lt;br /&gt;
&lt;br /&gt;
A: Unresolved external references can come out for two reasons:&lt;br /&gt;
#you didn't specified all the libraries required or all the paths for the default libraries or,&lt;br /&gt;
#[http://en.wikipedia.org/wiki/Name_decoration name mangling] problems. Use the [[dumpbin]] utility to the libraries to checkout which language convention they are using. If that's the problem then you need to try to get new libraries with the correct naming convention.&lt;br /&gt;
&lt;br /&gt;
That's it, you should now be able to build the [[ConvertToHdf5]] project successfully.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Q: I got a message saying the entry point _NF_PUT_ATT_REAL@28 could not be located in netcdf.dll'''&lt;br /&gt;
&lt;br /&gt;
A: copy the file netcdf.dll to the exe folder&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
*[http://www.hdfgroup.org/ HDF5 Homepage]&lt;br /&gt;
*[http://www.hdfgroup.org/ HDF4 Homepage]&lt;br /&gt;
&lt;br /&gt;
== Links ==&lt;br /&gt;
&lt;br /&gt;
*[[Module_Atmosphere]]&lt;br /&gt;
*[[Module_InterfaceWaterAir]]&lt;br /&gt;
*[[Coupling_Water-Atmosphere_User_Manual]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Tools]]&lt;br /&gt;
[[Category:Hdf5]]&lt;/div&gt;</summary>
		<author><name>Anatrancoso</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=ConvertToHDF5&amp;diff=3235</id>
		<title>ConvertToHDF5</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=ConvertToHDF5&amp;diff=3235"/>
				<updated>2010-08-06T16:00:06Z</updated>
		
		<summary type="html">&lt;p&gt;Anatrancoso: /* WRF */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The '''ConvertToHDF5''' is an application which allows the making of several operations, called '''actions''', involving HDF5 files: conversion of data in other formats (e.g. NETCDF) to HDF5, grid interpolation, concatenation of several files.&lt;br /&gt;
&lt;br /&gt;
Running options for this application are specified by the user in a input file named [[ConvertToHDF5#Input file (ConvertToHDF5Action.dat)|'''ConvertToHDF5Action.dat''']]. Several actions can be specified in the same input file, being processed sequentially by the ConvertToHDF5 application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
The operations involving HDF5 files performed by ConvertToHDF5, specified individually by an action, can be organized in [[#file management|file management]], [[#grid interpolation|grid interpolation]] and [[#format conversion|format conversion]]. These types and the respective actions are detailed in the next sections. &lt;br /&gt;
&lt;br /&gt;
The input file specification for each action can be found bellow in the [[#Input file (ConvertToHDF5Action.dat)|Input file (ConvertToHDF5Action.dat)]] section.&lt;br /&gt;
&lt;br /&gt;
===Compilation Settings===&lt;br /&gt;
&lt;br /&gt;
====With Compaq Visual Fortran====&lt;br /&gt;
&lt;br /&gt;
* File -&amp;gt; New -&amp;gt; Fortran Console Application&lt;br /&gt;
* Project -&amp;gt; Add to Project -&amp;gt; Files -&amp;gt; *.f90 (do not add ModuleWRFFormat.f90 and proj4.f90 if you don't want to use [[PROJ4]] library).&lt;br /&gt;
* Project -&amp;gt; Settings:&lt;br /&gt;
** Fortran tab:&lt;br /&gt;
*** Compatibility “Big Endian” to work with MM5 files.&lt;br /&gt;
*** Compilation Diagnostics -&amp;gt; Fortran Standards Checking -&amp;gt; Fortran95.&lt;br /&gt;
*** Preprocessor:&lt;br /&gt;
**** Check FPP.&lt;br /&gt;
**** INCLUDE and USE Paths: path to Libs folder.&lt;br /&gt;
** C/C++ tab:&lt;br /&gt;
*** Preprocessor -&amp;gt; Additional include directories: path to Libs.&lt;br /&gt;
** Link tab:&lt;br /&gt;
*** General -&amp;gt; Object/library modules: kernel32.lib hdf5.lib hdf5_hl.lib hdf5_fortran.lib zlib.lib szlib.lib netcdf.lib netcdf_.lib &lt;br /&gt;
*** Input -&amp;gt; Additional library path: path to Libs.&lt;br /&gt;
* Buil -&amp;gt; Rebuild All&lt;br /&gt;
&lt;br /&gt;
To run this executable, copy ''netcdf.dll'' to its directory.&lt;br /&gt;
To work with large files, compile with: Project -&amp;gt; Settings -&amp;gt; Link tab -&amp;gt; Reserve: 10^6.&lt;br /&gt;
&lt;br /&gt;
===== Compile ModuleWRFFormat =====&lt;br /&gt;
&lt;br /&gt;
To convert [[Meteo|WRF]] files or work with other projection beside UTM and Lambert Conformal, ConvertToHDF5 must be compiled with [[PROJ4]] library. To do that:&lt;br /&gt;
* Same settings as above.&lt;br /&gt;
* Project -&amp;gt; Add to Project -&amp;gt; Files:&lt;br /&gt;
** ModuleWRFFormat.f90&lt;br /&gt;
** Proj4.f90&lt;br /&gt;
* Project -&amp;gt; Settings:&lt;br /&gt;
** Fortran tab -&amp;gt; Predefined Preprocessor symbols: _USE_PROJ4&lt;br /&gt;
** Link tab -&amp;gt; General -&amp;gt; Object/library modules: add libfproj4.lib (Note: ''libfproj4.lib'' and ''proj4.inc'' must be in Libs folder)&lt;br /&gt;
* Build -&amp;gt; Rebuild All.&lt;br /&gt;
&lt;br /&gt;
===File management===&lt;br /&gt;
&lt;br /&gt;
====Glue files====&lt;br /&gt;
This action consists in joining or glue in a single HDF5 file two or more HDF5 files having the same HDF5 data groups and referring to time periods which come in sequence. Both sets of 2D and 3D HDF5 files can be glued.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Glue MOHID Water results files from several runs produced in continuous running of the model, for storage space economy reasons. Can be used to join data from other origins (e.g. results of meteorological models) as long as the HDF5 format is the one supported by MOHID Water.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 files to be glued. &amp;quot;Grid&amp;quot; and &amp;quot;Results&amp;quot; data groups should be equal in all these files.&lt;br /&gt;
&lt;br /&gt;
'''Output:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with glued &amp;quot;Results&amp;quot; data. &amp;quot;Residual&amp;quot; and &amp;quot;Statistics&amp;quot; HDF5 data groups are not copied to the output file since they are time period specific (different values potentially occour in each file). General statistics can be calculated for the glued HDF5 file data using tool [[HDF5Statistics]].&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#GLUES HDF5 FILES|GLUES HDF5 FILES]].&lt;br /&gt;
&lt;br /&gt;
===Grid interpolation===&lt;br /&gt;
&lt;br /&gt;
====Interpolate files====&lt;br /&gt;
This action performs the conversion of one HDF5 file data existing in one 2D or 3D spatial grid to another 2D or 3D spatial grid, creating a new HDF5 file. The interpolation is performed only for the data located a time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
The HDF5 file containing data to be interpolated is called the '''father file'''.&lt;br /&gt;
&lt;br /&gt;
In case of 3D interpolation the application conducts first the horizontal grid interpolation&lt;br /&gt;
(keeping father geometry) and only after it conducts the vertical interpolation (from father geometry to new geometry).&lt;br /&gt;
&lt;br /&gt;
Several types of 2D interpolation are available for use: bilinear, spline 2D and triangulation.&lt;br /&gt;
For vertical interpolation (used in 3D interpolation) can be supplied several polinomial degrees for interpolation.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain an HDF5 file with data for forcing or providing initial conditions for a MOHID Water model, e.g. a meteorological forcing file.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
For 2D/3D interpolation:&lt;br /&gt;
&lt;br /&gt;
- father HDF5 file;&lt;br /&gt;
&lt;br /&gt;
- father horizontal data grid, in a grid data file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
- new horizontal data grid, in a grid data file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
For 3D interpolation also needed:&lt;br /&gt;
&lt;br /&gt;
- father vertical geometry, in a geometry file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
- new vertical geometry, in a geometry file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
- auxiliary horizontal data grid, in a grid data file in the format supported by MOHID; this file is used for horizontal grid interpolation in 3D interpolation operations.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with interpolated data. In case of 3D interpolation also produced an auxiliary HDF5 file with the result of the horizontal grid interpolation, which can be inspected to check if this operation is well performed.&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#INTERPOLATE GRIDS|INTERPOLATE GRIDS]].&lt;br /&gt;
&lt;br /&gt;
====Patch files====&lt;br /&gt;
This action consists in performing an interpolation of HDF5 data between grids, as in action [[#Interpolate files|Interpolate files]], but considering more than one HDF5 file as containing data to be interpolated to the new grid and a priority scale. The interpolation is performed only for the data located in the time window specified by the user. The present version of this action operates only on 2D data.&lt;br /&gt;
&lt;br /&gt;
Each HDF5 file containing data to be interpolated is called a '''father file''' and has an user-attributed '''priority level''' to be respected in the interpolation process: for each new grid cell the ConvertToHDF5 application will look for data first on the Level 1 father file and only in the case this data is inexistent will it look for data in Level 2 file, proceeding in looking for higher level files if no data is found subsequentely.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
To obtain an HDF5 file with data from several HDF5 files each containing data with different spatial resolution and only for a specific part of the new grid. This is, for instance, the case when one is preparing a best resolution meteorological HDF5 file for forcing MOHID Water from several meteorological model domains, having different spatial resolution and span, since the best resolution data is not available for all new grid cells.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
The new horizontal data grid, in a grid data file in the format supported by MOHID, and for each father file:&lt;br /&gt;
&lt;br /&gt;
- level of priority: 1 = maximum priority, priority decreases with increasing level value;&lt;br /&gt;
&lt;br /&gt;
- data grid, in the form of a grid data file in the format supported by MOHID.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with patched data.&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#PATCH HDF5 FILES|PATCH HDF5 FILES]].&lt;br /&gt;
&lt;br /&gt;
===Format conversion===&lt;br /&gt;
&lt;br /&gt;
====Meteorological model data====&lt;br /&gt;
Mohid does not simulate explicitly the atmosphere, but needs information about atmospheric properties in time and space. This requires that atmospheric properties are supplied to MOHID Water in supported formats. These formats can be derived from meteorological data in HDF5 format. Because the results of meteorological models are accessed in different formats conversion is required. &lt;br /&gt;
&lt;br /&gt;
The formats currently convertible to HDF5 in ConvertToHDF5 include the MM5 and the ERA40. These are succintly detailed in the next sections.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''ERA40''=====&lt;br /&gt;
This format refers to the European Centre for Medium-Range Weather Forecasts (ECMWF) 40 years re-analysises results, acessed by site http://data.ecmwf.int/data/d/era40_daily/. This data is available for several meteorological variables with maximum 6 hour periodicity for days in the period from 1957-09-01 to 2002-08-31. &lt;br /&gt;
&lt;br /&gt;
ERA40 data files are supplied by ECMWF in a NetCDF format and with an user-costumized time window, periodicity (time step range from 6 hours to a day) and meteorological properties set. The ERA40 meteorological properties which are recognized by MOHID are presented bellow together with the correspondent MOHID name: &lt;br /&gt;
&lt;br /&gt;
 ---ERA40 NAME---         ---MOHID NAME---&lt;br /&gt;
   sshf                     sensible heat                &lt;br /&gt;
   slhf                     latent heat                  &lt;br /&gt;
   msl                      atmospheric pressure &lt;br /&gt;
   tcc                      cloud cover &lt;br /&gt;
   p10u                     wind velocity X&lt;br /&gt;
   p10v                     wind velocity Y&lt;br /&gt;
   p2t                      air temperature&lt;br /&gt;
   ewss                     wind stress X&lt;br /&gt;
   nsss                     wind stress Y&lt;br /&gt;
&lt;br /&gt;
The standard ConvertToHDF5 action is to convert to HDF5 the data referring to all MOHID Water recognized property available in the ERA40 file, producing an individual HDF5 file for each property. The name of each HDF5 file generated includes the ERA40 meteorological property identificator correspondent to the data contained.&lt;br /&gt;
&lt;br /&gt;
Alternatively, ConvertToHDF5 can copy to a single ASCII file the heading information concerning each meteorological variable considered in the original ERA40 file.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain an HDF5 file with data suitable for being used for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
ERA40 NetCDF file.&lt;br /&gt;
&lt;br /&gt;
'''Output:'''&lt;br /&gt;
&lt;br /&gt;
One HDF5 file for each meteorological property contained in the original NetCDF file.&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT ERA40 FORMAT|CONVERT ERA40 FORMAT]].&lt;br /&gt;
&lt;br /&gt;
=====''Aladin''=====&lt;br /&gt;
This format relates to Aladin meteorological model results. Some of the atmospheric property needed by MOHID Water is present in Aladin output files, enabling to run prediction simulations with MOHID Water when access to Aladin prevision files is available.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts Aladin results files from the original format to HDF5 format, allowing the easy use of these results in the MOHID framework. Conversion is only performed for the MM5 properties and the time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Produce HDF5 meteorological data usable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
Aladin netcdf results file to convert.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
An HDF5 file with Aladin results and a grid data file in MOHID format with the Aladin grid pseudo-information: a fake orography is created of 100 m depth.&lt;br /&gt;
This last file can be used to interpolate the Aladin data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]), for instance to produce an HDF5 file suitable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Compilation:'''&lt;br /&gt;
&lt;br /&gt;
Caution! The ConvertToHDF5 executable must be compiled with the [[Big-endian little-endian|Big-Endian]] option set (see compatibility in the project's settings).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT ALADIN FORMAT|CONVERT ALADIN FORMAT]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''MM5''=====&lt;br /&gt;
This format relates to the Fifth-Generation NCAR / Penn State Mesoscale Model (MM5) output files format. Almost every atmospheric property needed by MOHID Water is present in MM5 output files.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts MM5 results files from the original format to HDF5 format, allowing the easy use of these results in the MOHID framework. Conversion is only performed for the MM5 properties and the time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
Besides the conversion, the application can calculate some properties not contained in&lt;br /&gt;
the MM5 files using the available information: these are wind stress, relative humidity and mean sea level pressure.&lt;br /&gt;
&lt;br /&gt;
For conversion to be completed it is required the horizontal grid information of MM5 results which is available in special TERRAIN files.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Produce HDF5 meteorological data usable to force MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
MM5 results file to convert and MM5 TERRAIN file. The TERRAIN file supplies the MM5 results grid information. &lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
A HDF5 file with MM5 results and a grid data file in MOHID format with the MM5 grid information.&lt;br /&gt;
This last file can be used to interpolate the MM5 data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]), for instance to produce an HDF5 file suitable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Compilation:'''&lt;br /&gt;
&lt;br /&gt;
Caution! The ConvertToHDF5 executable must be compiled with the [[Big-endian little-endian|Big-Endian]] option set (see compatibility in the project's settings).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT MM5 FORMAT|CONVERT MM5 FORMAT]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''WRF''=====&lt;br /&gt;
This format relates to the Weather Research and Forecast model (WRF) output files format. Almost every atmospheric property needed by MOHID Water is present in WRF output files.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts WRF results files from the original format to HDF5 format, allowing the easy use of these results in the MOHID framework. Conversion is only performed for the WRF properties and the time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
Besides the conversion, the application can calculate some properties not contained in&lt;br /&gt;
the WRF files using the available information: these are wind stress, relative humidity and mean sea level pressure.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Produce HDF5 meteorological data usable to force MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
WRF direct output file.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
An HDF5 file with WRF results and a grid data file in MOHID format with the WRF grid information.&lt;br /&gt;
This last file can be used to interpolate the WRF data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]), for instance to produce an HDF5 file suitable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Compilation:'''&lt;br /&gt;
&lt;br /&gt;
Caution! Proj4 library is needed! See [[#Compile_ModuleWRFFormat | Compile Settings for ModuleWRFFormat]]&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT WRF FORMAT|CONVERT WRF FORMAT]].&lt;br /&gt;
&lt;br /&gt;
====Ocean model data====&lt;br /&gt;
Ocean model data, available in diverse formats, can be used by MOHID Water to specify boundary (open ocean boundary and surface), initial conditions or for validation. These uses require that the model data is in HDF5 format and conversion is therefore needed.&lt;br /&gt;
&lt;br /&gt;
Currently the large scale ocean models formats convertible into HDF5 by ConvertToHDF5 includes MERCATOR.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''MERCATOR''=====&lt;br /&gt;
MERCATOR data files are supplied in a NetCDF format and with an user-costumized spatial window and periodicity. Water level and water properties (temperature and salinity) data is available in type T files, velocity component u data is available in type U files and velocity component v data is available in type V files. The type of data of a specific MERCATOR file is generally indicated in the file name.&lt;br /&gt;
&lt;br /&gt;
The standard ConvertToHDF5 action is to convert to HDF5 the data referring to temperature, salinity, water level, component u of velocity and component v of velocity.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain HDF5 MERCATOR data usable for forcing or validation of MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
NetCDF MERCATOR results data files and NetCDF MERCATOR grid data files. It should be provided one grid data file of each type: T, U and V. These are generally provided by the MERCATOR services together with the results files.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
One HDF5 file containing all properties contained in the recognized set of properties (temperature, salinity, water level, velocity u and velocity v) and the correspondent grid data and geometry files, containing respectively the horizontal grid and the vertical discretization of the HDF5 file. The grid data and geometry files can be used afterwards to interpolate the MERCATOR data to another grid and geometry (see [[#Interpolate files|Interpolate files]]).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT MERCATOR FORMAT|CONVERT MERCATOR FORMAT]].&lt;br /&gt;
&lt;br /&gt;
====Climatological data====&lt;br /&gt;
Climatological data can be used in MOHID Water to specify boundary (open ocean boundary and surface), initial conditions or for validation, in case more realistic data (measurements or model) data is unavailable. This data is generally supplied by producers in formats not readly usable by MOHID Water which justifies the existence of a conversion tool.&lt;br /&gt;
&lt;br /&gt;
Two climatological data format conversions are implemented in ConvertToHDF5: Levitus ocean data and Hellerman Rosenstein meteorological data.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''Levitus''=====&lt;br /&gt;
The Levitus climatology provides results for water temperature and salinity.&lt;br /&gt;
The ConvertToHDF5 action converts the climatological data for the properties and spatial window requested by the user. &lt;br /&gt;
Typically, it requires 3 steps to complete the task:&lt;br /&gt;
&lt;br /&gt;
- convert levitus format &lt;br /&gt;
&lt;br /&gt;
- extrapolate the data to the whole levitus domain(required to avoid uncoincidental coastlines) &lt;br /&gt;
&lt;br /&gt;
- interpolate with the model grid(bathymetry)&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain climatological data in HDF5 format to use as boundary forcing and/or initial condition specification in MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
Levitus climatological data files, one per property and per time period (e.g a month).&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with Levitus climatological data, grid data file with the horizontal&lt;br /&gt;
grid of the data and a geometry file with vertical discretization of the data (MOHID formats).&lt;br /&gt;
The grid data and the geometry files can be used to interpolate the climatological data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT LEVITUS FORMAT|CONVERT LEVITUS FORMAT]].&lt;br /&gt;
&lt;br /&gt;
=====''Hellerman Rosenstein''=====&lt;br /&gt;
This is a meteorological climatology providing wind stress. There is a file per wind stress component. Since the data refer to surface values it is a 2D field.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts the climatological data for the properties and spatial window provided by the user.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain climatological data in HDF5 format to use as meteorological forcing in MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
Hellerman Rosenstein climatological data ASCII files, one per wind stress component.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with Hellerman Rosenstein climatological data and grid data file with the horizontal&lt;br /&gt;
grid of the climatological data. This grid data file can be used to interpolate the climatological data from the original horizontal grid to a new grid (see [[#Interpolate files|Interpolate files]]).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT HELLERMAN ROSENSTEIN ASCII|CONVERT HELLERMAN ROSENSTEIN ASCII]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''World Ocean Atlas 2005''=====&lt;br /&gt;
The World Ocean Atlas (WOA) 2005 climatology provides results for water temperature, salinity and several water quality and biology properties.&lt;br /&gt;
&lt;br /&gt;
Description, Action and Input Files are described in a separate page: [[ConvertToHDF5 WOA2005]].&lt;br /&gt;
&lt;br /&gt;
==Input file (ConvertToHDF5Action.dat)==&lt;br /&gt;
===General structure===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt; (block containing instructions for running a specific action) &lt;br /&gt;
 ACTION                    : ... (intended action)&lt;br /&gt;
 ... (action specific instructions)&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : ...&lt;br /&gt;
 ...&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===GLUES HDF5 FILES===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : GLUES HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 3D_FILE                   : 0/1 (0 = 2D file, 1 = 3D file)&lt;br /&gt;
 &lt;br /&gt;
 TIME_GROUP                : ... (Default=&amp;quot;Time&amp;quot;. Other option: &amp;quot;SurfaceTime&amp;quot;.)&lt;br /&gt;
 &lt;br /&gt;
 BASE_GROUP                : ... (Default=&amp;quot;Results&amp;quot;. Other options: &amp;quot;Residual&amp;quot;, &amp;quot;SurfaceResults&amp;quot;.)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 &lt;br /&gt;
 (block of HDF5 data files)&lt;br /&gt;
 &amp;lt;&amp;lt;begin_list&amp;gt;&amp;gt;&lt;br /&gt;
 ... (path/name of HDF5 file with data to be included in glue, one per line, at least two files)&lt;br /&gt;
 ...                      &lt;br /&gt;
 &amp;lt;&amp;lt;end_list&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===INTERPOLATE GRIDS===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION     : ... (type of horizontal interpolation: 1 = Bilinear, 2 = Spline2D,&lt;br /&gt;
                                  3 = Triangulation)&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION_WINDOW      : ... ... ... ... (2D spatial window to consider for interpolation: &lt;br /&gt;
                                              Xmin Ymin Xmax Ymax; default = all domain)&lt;br /&gt;
 &lt;br /&gt;
 START                     : ... (start date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 END                       : ... (end date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D           : 0/1 (0 = 2D interpolation, 1 = 3D interpolation)&lt;br /&gt;
 &lt;br /&gt;
 FATHER_FILENAME           : ... (path/name of input HDF5 file with data to be interpolated)&lt;br /&gt;
 FATHER_GRID_FILENAME      : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization of input HDF5 file)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of output HDF5 file to be created)&lt;br /&gt;
 NEW_GRID_FILENAME         : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization intended for output HDF5 file)&lt;br /&gt;
 &lt;br /&gt;
 EXTRAPOLATE_2D            : 0/1/2/3/4/5 (2D extrapolation: 0=no extrapolation, 1=medium&lt;br /&gt;
                                      triangulation, 2=high triangulation, &lt;br /&gt;
                                      3=nearest neighbour, 4=nearest cell, &lt;br /&gt;
                                      5=constant value)&lt;br /&gt;
 &lt;br /&gt;
 EXTRAPOLATE_VALUE         : ... (name of the value to extrapolate to when EXTRAPOLATE_2D is&lt;br /&gt;
                                  set to constant value (5))&lt;br /&gt;
 &lt;br /&gt;
 DO_NOT_BELIEVE_MAP        : 0/1 (0=consider input HDF5 file map, 1=do not consider input HDF5&lt;br /&gt;
                                  file map)&lt;br /&gt;
 &lt;br /&gt;
 BASE_GROUP                : ... (name of base group of HDF5 variables containing data to be &lt;br /&gt;
                                  interpolated; default is &amp;quot;/Results&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 (if INTERPOLATION3D : 1 also required:)&lt;br /&gt;
 FATHER_GEOMETRY           : ... (path/name of file (MOHID format) with vertical discretization&lt;br /&gt;
                                  of input HDF5 file)&lt;br /&gt;
 NEW_GEOMETRY              : ... (path/name of file (MOHID format) with vertical discretization&lt;br /&gt;
                                  intended for output HDF5 file)&lt;br /&gt;
 POLI_DEGREE               : 1/... (degree of vertical interpolation: 1=linear, ...)&lt;br /&gt;
 &lt;br /&gt;
 AUX_GRID_FILENAME         : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization intended for auxiliar output HDF5 file;&lt;br /&gt;
                                  default is file provided in NEW_GRID_FILENAME)&lt;br /&gt;
 &lt;br /&gt;
 AUX_OUTPUTFILENAME        : ... (path/name of auxiliar output HDF5 file to contain result&lt;br /&gt;
                                  of horizontal grid interpolation)   &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - the file indicated in AUX_GRID_FILENAME can be different from the one indicated in&lt;br /&gt;
   NEW_GRID_FILENAME in terms of bathymetry, while the horizontal grid should be, commonly, the&lt;br /&gt;
   same: this altered bathymetry can be used to extend the water column in the original data so&lt;br /&gt;
   that the process of vertical interpolation is done easily;&lt;br /&gt;
 &lt;br /&gt;
 - in case of INTERPOLATION3D : 1, ConvertToHDF5 can generate new versions of bathymetry which &lt;br /&gt;
   are consistent with the geometry definition (extension is '.new'); there are possibly three&lt;br /&gt;
   bathymetry changes referring to father grid, new grid and aux grid (the same bathymetry is&lt;br /&gt;
   not altered twice); although initially new and aux grid are the same they can result &lt;br /&gt;
   different because of bathymetry changes;&lt;br /&gt;
 &lt;br /&gt;
 - in case the new geometry is 2D and father geometry is 3D then POLI_DEGREE : 1 &lt;br /&gt;
   (linear interpolation) should be used;&lt;br /&gt;
 &lt;br /&gt;
 - EXTRAPOLATE_2D : 1/2/3/4/5 should be considered if it is expected that the coast line is not&lt;br /&gt;
   coincidental in the father and new grids, to avoid lack of data in the interpolation&lt;br /&gt;
   process; extrapolation is performed for all cells even the land cells; &lt;br /&gt;
 &lt;br /&gt;
 - in case of DO_NOT_BELIEVE_MAP : 1 the application generates a map based on cells where&lt;br /&gt;
   interpolation results are available; this causes that if EXTRAPOLATE_2D : 1/2/3/4/5 is used&lt;br /&gt;
   the AUX_GRID_FILENAME should not have land cells in order for the new map to be concurrent&lt;br /&gt;
   with the result of extrapolation and avoid errors generation, specially if INTERPOLATION3D :&lt;br /&gt;
   1 is considered.&lt;br /&gt;
&lt;br /&gt;
===PATCH HDF5 FILES===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : PATCH HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION     : ... (type of interpolation: 3 = Triangulation, default and only&lt;br /&gt;
                                  one implemented)&lt;br /&gt;
 &lt;br /&gt;
 START                     : ... (start date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 END                       : ... (end date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 &lt;br /&gt;
 (block for each father HDF5 file, should be at least two)&lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                     : ... (integer priority level: 1 = highest, increase for lower&lt;br /&gt;
                                  priority)&lt;br /&gt;
 FATHER_FILENAME           : ... (path/name of input HDF5 file with data to be interpolated)&lt;br /&gt;
 FATHER_GRID_FILENAME      : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization of input HDF5 file)&lt;br /&gt;
 N_REMOVE_FRAME            : 0   (width, in number of cells, of frame to remove)&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of output HDF5 file to be created)&lt;br /&gt;
 NEW_GRID_FILENAME         : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization intended for output HDF5 file)&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CONVERT ERA40 FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT ERA40 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                  : ... (path/name of ERA40 NetCDF file)&lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
                                 (root of name for all files produced)&lt;br /&gt;
 &lt;br /&gt;
 CONVERT_TO_ASCII          : 0/1 (1 = convert variable heading info for ASCII file; 0 = default)&lt;br /&gt;
 CONVERT_TO_HDF5           : 0/1 (1 = convert to HDF5 file; 0 = default)&lt;br /&gt;
 GRIDTO180                 : 0/1 (1 = convert grid from [0 360] to [-180 180], 0 = default)&lt;br /&gt;
 &lt;br /&gt;
 XX_VARIABLE               : ... (name of longitude variable in the input file: usual name &lt;br /&gt;
                                  is &amp;quot;longitude&amp;quot;)&lt;br /&gt;
 YY_VARIABLE               : ... (name of longitude variable in the input file: usual name &lt;br /&gt;
                                  is &amp;quot;latitude&amp;quot;)&lt;br /&gt;
 TIME_VARIABLE             : ... (name of time variable in the input file: usual name is&lt;br /&gt;
                                  &amp;quot;time&amp;quot;)&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - either CONVERT_TO_ASCII : 1 or CONVERT_TO_HDF5 : 1 must be chosen for any action to be&lt;br /&gt;
 performed by ConvertToHDF5;&lt;br /&gt;
 &lt;br /&gt;
 - when CONVERT_TO_HDF5 : 1 an HDF5 file is produced for every variable contained in the&lt;br /&gt;
 original ERA40 file; the name of each file is composed of the name indicated on FILENAME&lt;br /&gt;
 concatenated with the ERA40 variable identifier;&lt;br /&gt;
 &lt;br /&gt;
 - to the XX_VARIABLE, YY_VARIABLE and TIME_VARIABLE keywords should generally be  &lt;br /&gt;
 specified &amp;quot;longitude&amp;quot;, &amp;quot;latitude&amp;quot; and &amp;quot;time&amp;quot;, respectively; the option to&lt;br /&gt;
 include as keywords was made only to make the application robust to future variable name&lt;br /&gt;
 changes.&lt;br /&gt;
&lt;br /&gt;
===CONVERT MM5 FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT MM5 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                  : ... (path/name of MM5 file)&lt;br /&gt;
 TERRAIN_FILENAME          : ... (path/name of MM5 TERRAIN file)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : ... (path/name of grid data file with horizontal grid of MM5 data&lt;br /&gt;
                                  to be created)&lt;br /&gt;
 &lt;br /&gt;
 COMPUTE_WINDSTRESS        : 0/1 (1 = compute and write wind stress field; 0 = default)&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY : 0/1 (1 = compute and write relative humidity field; 0 = default)&lt;br /&gt;
 COMPUTE_PRECIPITATION     : 0/1 (1 = compute and write precipitation field; 0 = default)&lt;br /&gt;
 COMPUTE_WINDMODULUS       : 0/1 (1 = compute wind modulus; 0 = default)&lt;br /&gt;
 &lt;br /&gt;
 WRITE_XYZ                 : 0/1 (1 = write xyz center grid cells; 0 = default)&lt;br /&gt;
 WRITE_TERRAIN             : 0/1 (1 = write MM5 TERRAIN fields; 0 = default)&lt;br /&gt;
 &lt;br /&gt;
 START                     : ... (start date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 END                       : ... (end date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
  &lt;br /&gt;
 (block of MM5 properties to convert)&lt;br /&gt;
 &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;&lt;br /&gt;
 ... (name of MM5 property to convert do HDF5 format, one per line)&lt;br /&gt;
 ... &lt;br /&gt;
 &amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - the name of each MM5 property to convert in &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;...&amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt; block must&lt;br /&gt;
 conform to the MOHID designation specified in code of ModuleGlobalData; the correspondence is &lt;br /&gt;
 the following (see [[Module_InterfaceWaterAir]] for a more detailed explanation).&lt;br /&gt;
 &lt;br /&gt;
           ---MM5 NAME---    ---MOHID NAME---&lt;br /&gt;
             T2             air temperature&lt;br /&gt;
             PSTARCRS       atmospheric pressure&lt;br /&gt;
             U10            wind velocity X&lt;br /&gt;
             V10            wind velocity Y&lt;br /&gt;
             UST            wind shear velocity&lt;br /&gt;
             LHFLUX         latent heat&lt;br /&gt;
             SWDOWN         sensible heat&lt;br /&gt;
             SWDOWN         solar radiation&lt;br /&gt;
             LWDOWN         infrared radiation&lt;br /&gt;
             SWOUT          top outgoing shortwave radiation&lt;br /&gt;
             LWOUT          top outgoing longwave radiation&lt;br /&gt;
             SOIL T 1       soil temperature layer 1&lt;br /&gt;
             SOIL T 1       soil temperature layer 2&lt;br /&gt;
             SOIL T 1       soil temperature layer 3&lt;br /&gt;
             SOIL T 1       soil temperature layer 4&lt;br /&gt;
             SOIL T 1       soil temperature layer 5&lt;br /&gt;
             SOIL T 1       soil temperature layer 6&lt;br /&gt;
             Q2             2-meter mixing ratio&lt;br /&gt;
             TSEASFC        sea water temperature&lt;br /&gt;
             PBL HGT        PBL height&lt;br /&gt;
             PBL REGIME     PBL regime&lt;br /&gt;
             RAIN CON       accumulated convective precipitation        (cm)&lt;br /&gt;
             RAIN NON       accumulated non-convective precipitation    (cm)&lt;br /&gt;
             GROUND T       ground temperature&lt;br /&gt;
             RES TEMP       infinite reservoir slab temperature&lt;br /&gt;
             U              wind velocity X_3D&lt;br /&gt;
             V              wind velocity Y_3D&lt;br /&gt;
             W              wind velocity Z_3D&lt;br /&gt;
             T              air temperature_3D&lt;br /&gt;
             PP             atmospheric pressure_3D&lt;br /&gt;
             Q              mixing ratio_3D&lt;br /&gt;
             CLW            cloud water mixing ratio_3D&lt;br /&gt;
             RNW            rain water mixing ratio_3D&lt;br /&gt;
             ICE            cloud ice mixing ratio_3D&lt;br /&gt;
             SNOW           snow mixing ratio_3D&lt;br /&gt;
             RAD TEND       atmospheric radiation tendency_3D&lt;br /&gt;
&lt;br /&gt;
===CONVERT ALADIN FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT ALADIN FORMAT&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : aladin.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : aladin_griddata.dat&lt;br /&gt;
 &lt;br /&gt;
 !Put here the name of any netcdf file for grid-data generation's sake.&lt;br /&gt;
 INPUT_GRID_FILENAME      :   D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKCLOUD_OPASYMP_19723_20088.nc&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 (path to aladin netcdf file)\ALADIN_BULKIR_OPASYMP_19723_20088.nc&lt;br /&gt;
 ...&lt;br /&gt;
 &amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - the name of each Aladin property to convert in &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;...&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt; block must conform to the following variables&lt;br /&gt;
 &lt;br /&gt;
           ---ALADIN NAME---    ---MOHID NAME---&lt;br /&gt;
             soclotot            CloudCover_&lt;br /&gt;
             sohumrel            RelativeHumidity_&lt;br /&gt;
             sofluxir            NonSolarFlux_&lt;br /&gt;
             sosspres            AtmosphericPressure_&lt;br /&gt;
             sosolarf            SolarRadiation_&lt;br /&gt;
             sotemair            AirTemperature_&lt;br /&gt;
             sowinmod            WindModulus_&lt;br /&gt;
             sowaprec            Precipitation_&lt;br /&gt;
             sozotaux            WindStressX_&lt;br /&gt;
             sometauy            WindStressY_&lt;br /&gt;
             sowindu10           WindVelocityX_&lt;br /&gt;
             sowindv10           WindVelocityY_&lt;br /&gt;
&lt;br /&gt;
===CONVERT MERCATOR FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT MERCATOR FORMAT&lt;br /&gt;
 &lt;br /&gt;
 READ_OPTION               : 1/2/3/4 (version of MERCATOR files)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : ... (path/name of grid data with horizontal discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME  : ... (path/name of geometry file with vertical discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 &lt;br /&gt;
 (if READ_OPTION : 1:)&lt;br /&gt;
 BASE_BULLETIN             : ...&lt;br /&gt;
 DATES_FILE                : ...&lt;br /&gt;
 NUM_DATES                 : ... &lt;br /&gt;
 &lt;br /&gt;
 (if READ_OPTION : 2/3:)&lt;br /&gt;
 INPUT_GRID_FILENAME       : ... (path/name of file with horizontal discretization of water&lt;br /&gt;
                                  properties and water level data)&lt;br /&gt;
 (if READ_OPTION : 2:)&lt;br /&gt;
 INPUT_GRID_FILENAME_U     : ... (path/name of file with horizontal discretization of velocity&lt;br /&gt;
                                  component U data)&lt;br /&gt;
 INPUT_GRID_FILENAME_V     : ... (path/name of file with horizontal discretization of velocity&lt;br /&gt;
                                  component V data)&lt;br /&gt;
 &lt;br /&gt;
 (if READ_OPTION : 3:)&lt;br /&gt;
 INPUT_BATHY_FILENAME      : ... (path/name of file with bathymetry)&lt;br /&gt;
     &lt;br /&gt;
 (if READ_OPTION : 3/4:)&lt;br /&gt;
 CALC_BAROTROPIC_VEL       : 0/1 (1 = calculate barotropic velocity, 0 = not calculate; &lt;br /&gt;
                                  default = 0)&lt;br /&gt;
 &lt;br /&gt;
 (if CALC_BAROTROPIC_VEL : 1 and READ_OPTION : 3:)&lt;br /&gt;
 INPUT_MESH_ZGRID_FILENAME : ... (path/name of file with information about layers ticknesses)&lt;br /&gt;
 &lt;br /&gt;
 (block of MERCATOR data files)&lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 ... (path/name of MERCATOR NetCDF data file, one per line, can be several)&lt;br /&gt;
 ... &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CONVERT LEVITUS FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT LEVITUS FORMAT&lt;br /&gt;
  &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : ... (path/name of grid data with horizontal discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME  : ... (path/name of geometry file with vertical discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 &lt;br /&gt;
 PERIODICITY               : ... (periodicity of Levitus data: &amp;quot;monthly&amp;quot;/&amp;quot;annual&amp;quot;; default is&lt;br /&gt;
                                  &amp;quot;monthly&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 SPATIAL_RESOLUTION        : ... (spatial resolution (degrees) of horizontal Levitus grid)&lt;br /&gt;
 &lt;br /&gt;
 FILL_VALUE                : ... (real value identificator for missing data; default is &lt;br /&gt;
                                  &amp;quot;-99.999900&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 (definition of spatial window to be present in output HDF5 file)&lt;br /&gt;
 LOWER_LEFT_CORNER         : ... ... (longitude and latitude (degrees) of south west corner)&lt;br /&gt;
 UPPER_RIGHT_CORNER        : ... ... (longitude and latitude (degrees) of north east corner)&lt;br /&gt;
 &lt;br /&gt;
 (block for each water property to be present in output HDF5 file, can be several)&lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                      : ... (name of property)&lt;br /&gt;
 ANNUAL_FILE               : ... (path/name of Levitus annual file)&lt;br /&gt;
 &lt;br /&gt;
 (block of Levitus data files)&lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 ... (path/name of Levitus data file (e.g. a monthly data file), one per line, can be several)&lt;br /&gt;
 ... &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CONVERT HELLERMAN ROSENSTEIN ASCII===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT HELLERMAN ROSENSTEIN ASCII&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : ... (path/name of grid data with horizontal discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
  &lt;br /&gt;
 PERIODICITY               : ... (periodicity of Hellerman Rosenstein data: &amp;quot;monthly&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 SPATIAL_RESOLUTION        : ... (spatial resolution (degrees) of horizontal Hellerman&lt;br /&gt;
                                  Rosenstein grid: default and only allowed value is &amp;quot;2.&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 FILL_VALUE                : ... (real value identificator for missing data; default is &lt;br /&gt;
                                  &amp;quot;-99.999900&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 (definition of spatial window to be present in output HDF5 file)&lt;br /&gt;
 LOWER_LEFT_CORNER         : ... ... (longitude and latitude (degrees) of south west corner)&lt;br /&gt;
 UPPER_RIGHT_CORNER        : ... ... (longitude and latitude (degrees) of north east corner)&lt;br /&gt;
   &lt;br /&gt;
 (block for each Hellerman Rosenstein data file)&lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                      : ... (name of property: &amp;quot;wind stress X&amp;quot;/&amp;quot;wind stress Y&amp;quot;)&lt;br /&gt;
 FILE                      : ... (path/name Hellerman Rosenstein file)&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Samples==&lt;br /&gt;
All sample files are named ''ConvertToHDF5Action.dat''.&lt;br /&gt;
&lt;br /&gt;
===Glue several MOHID(.hdf5) files===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : GLUES HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : SurfaceHydro_OP.hdf5&lt;br /&gt;
  &lt;br /&gt;
 &amp;lt;&amp;lt;begin_list&amp;gt;&amp;gt;&lt;br /&gt;
 D:\Projectos\SurfaceHydrodynamic_21.hdf5&lt;br /&gt;
 D:\Projectos\SurfaceHydrodynamic_22.hdf5&lt;br /&gt;
 &amp;lt;&amp;lt;end_list&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Interpolate 2D MOHID(.hdf5) files to a new grid===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION    : 1&lt;br /&gt;
 FATHER_FILENAME          : D:\Projectos\MohidRun\test\res\Lagrangian_1.hdf5 &lt;br /&gt;
 OUTPUTFILENAME           : OilSpillThickness_GridRegular.hdf5&lt;br /&gt;
  &lt;br /&gt;
 START                    : 2006 6 21 17 22 30&lt;br /&gt;
 END                      : 2006 6 22 17 22 0&lt;br /&gt;
  &lt;br /&gt;
 FATHER_GRID_FILENAME     : D:\Projectos\MohidRun\GeneralData\batim\Tagus.dat_A&lt;br /&gt;
 NEW_GRID_FILENAME        : TagusConstSpacing.dat&lt;br /&gt;
  &lt;br /&gt;
 BASE_GROUP               : /Results/Oil/Data_2D&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Interpolate 3D MOHID(.hdf5) files to a new grid===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION   : 1&lt;br /&gt;
 FATHER_FILENAME         : D:\Projectos\MohidRun\test\res\Lagrangian_1.hdf5 &lt;br /&gt;
 OUTPUTFILENAME          : OilSpillThickness_GridRegular.hdf5&lt;br /&gt;
 &lt;br /&gt;
 START                   : 2006 6 21 17 22 30&lt;br /&gt;
 END                     : 2006 6 22 17 22 0&lt;br /&gt;
 &lt;br /&gt;
 FATHER_GRID_FILENAME    : D:\Projectos\MohidRun\GeneralData\batim\Tagus.dat_A&lt;br /&gt;
 NEW_GRID_FILENAME       : TagusConstSpacing.dat&lt;br /&gt;
 &lt;br /&gt;
 BASE_GROUP              : /Results/Oil/Data_2D&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D         : 1&lt;br /&gt;
 FATHER_GEOMETRY         : D:\Projectos\MohidRun\test\data\Geometry_1.dat&lt;br /&gt;
 NEW_GEOMETRY            : TagusGeometry.dat&lt;br /&gt;
 AUX_GRID_FILENAME       : TagusConstSpacing.dat&lt;br /&gt;
 AUX_OUTPUTFILENAME      : Aux_GridRegular.hdf5&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Patch several MOHID(.hdf5) files to a new grid===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION : PATCH HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION   : 3&lt;br /&gt;
 &lt;br /&gt;
 START                   : 2005 2 28 13 0 0&lt;br /&gt;
 END                     : 2005 3 1 13 0 0&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                   : 3&lt;br /&gt;
 FATHER_FILENAME         : K:\MM5output\2005022812_2005030712\MM5OUT_D1.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME    : K:\MM5output\2005022812_2005030712\grid1.dat&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                   : 2&lt;br /&gt;
 FATHER_FILENAME         : K:\MM5output\2005022812_2005030712\MM5OUT_D2.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME    : K:\MM5output\2005022812_2005030712\grid2.dat&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                   : 1&lt;br /&gt;
 FATHER_FILENAME         : K:\MM5output\2005022812_2005030712\MM5OUT_D3.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME    : K:\MM5output\2005022812_2005030712\grid3.dat&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME          : MM5Forcing.hdf5&lt;br /&gt;
 NEW_GRID_FILENAME       : K:\Simula\GeneralData\Batim\CostaPortuguesa.dat&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert an ERA40 file to MOHID(.hdf5)===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                  : CONVERT ERA40 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                : D:\Aplica\ERA40\1971ERA1973.nc&lt;br /&gt;
 OUTPUTFILENAME          : D:\Aplica\ERA40\1971ERA1973T2&lt;br /&gt;
 &lt;br /&gt;
 CONVERT_TO_ASCII        : 0&lt;br /&gt;
 CONVERT_TO_HDF5         : 1&lt;br /&gt;
 &lt;br /&gt;
 XX_VARIABLE             : longitude&lt;br /&gt;
 YY_VARIABLE             : latitude&lt;br /&gt;
 TIME_VARIABLE           : time&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert a MM5 file to MOHID(.hdf5)===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                  : CONVERT MM5 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                : K:\MM5output\DataCenter\Modelos\Meteo_IST\Fev2005\MMOUT_D3&lt;br /&gt;
 TERRAIN_FILENAME        : K:\MM5output\DataCenter\Modelos\Meteo_IST\Fev2005\TERRAIN_D3&lt;br /&gt;
 OUTPUT_GRID_FILENAME    : K:\MM5output\DataCenter\Modelos\Meteo_IST\Fev2005\grid3.dat&lt;br /&gt;
 OUTPUTFILENAME          : K:\MM5output\DataCenter\Modelos\Meteo_IST\Fev2005\MM5_D3.hdf5&lt;br /&gt;
 &lt;br /&gt;
 COMPUTE_WINDSTRESS        : 0&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY : 1&lt;br /&gt;
 WRITE_XYZ                 : 0&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;&lt;br /&gt;
 solar radiation&lt;br /&gt;
 air temperature&lt;br /&gt;
 wind velocity X&lt;br /&gt;
 wind velocity Y&lt;br /&gt;
 sensible heat&lt;br /&gt;
 latent heat&lt;br /&gt;
 atmospheric pressure&lt;br /&gt;
 sea water temperature&lt;br /&gt;
 &amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert Mercator-Ocean(.nc) to MOHID(.hdf5)===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : CONVERT MERCATOR FORMAT&lt;br /&gt;
 &lt;br /&gt;
 READ_OPTION              : 2&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : Psy2v2r1v_R20060628/MercatorR20060628.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME     : Psy2v2r1v_R20060628/MercatorGridR20060628.dat&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME : Psy2v2r1v_R20060628/MercatorGeometryR20060628.dat&lt;br /&gt;
 &lt;br /&gt;
 INPUT_GRID_FILENAME      : GridFiles/ist_meteog-gridT.nc&lt;br /&gt;
 INPUT_GRID_FILENAME_U    : GridFiles/ist_meteog-gridU.nc&lt;br /&gt;
 INPUT_GRID_FILENAME_V    : GridFiles/ist_meteog-gridV.nc&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 Psy2v2r1v_R20060628/ist_meteog-mercatorPsy2v2r1v_T_MEAN_ANA_20060621_R20060628.nc&lt;br /&gt;
 Psy2v2r1v_R20060628/ist_meteog-mercatorPsy2v2r1v_T_MEAN_ANA_20060622_R20060628.nc&lt;br /&gt;
 Psy2v2r1v_R20060628/ist_meteog-mercatorPsy2v2r1v_T_MEAN_ANA_20060623_R20060628.nc&lt;br /&gt;
 &amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert Levitus format to MOHID(.hdf5) and interpolate grid===&lt;br /&gt;
==== Convert ====&lt;br /&gt;
First convert the Levitus ASCII format to a raw HDF5 format:&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : CONVERT LEVITUS FORMAT&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : Levitus.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME     : LevitusGrid.dat&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME : LevitusGeometry.dat&lt;br /&gt;
 &lt;br /&gt;
 PERIODICITY              : monthly&lt;br /&gt;
 SPATIAL_RESOLUTION       : 0.25&lt;br /&gt;
 FILL_VALUE               : -99.9999&lt;br /&gt;
 &lt;br /&gt;
 LOWER_LEFT_CORNER        : -16.0  31&lt;br /&gt;
 UPPER_RIGHT_CORNER       :   1.   40&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : salinity&lt;br /&gt;
 ANNUAL_FILE              : DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s000hr.obj&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s001&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s002&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s003&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s004&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s005&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s006&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s007&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s008&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s009&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s010&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s011&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s012&lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : temperature&lt;br /&gt;
 ANNUAL_FILE              : DataCenter\DadosBase\Ocean\Levitus\Data\Temp\t000hr.obj&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t001&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t002&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t003&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t004&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t005&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t006&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t007&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t008&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t009&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t010&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t011&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t012&lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Extrapolate ====&lt;br /&gt;
Then extrapolate the data (still in the raw HDF5 format):&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION    : 1&lt;br /&gt;
 &lt;br /&gt;
 FATHER_FILENAME          : Levitus.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME     : LevitusGrid.dat&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : LeviTusAllPointsWithData.hdf5&lt;br /&gt;
 NEW_GRID_FILENAME        : LevitusGrid.dat&lt;br /&gt;
 &lt;br /&gt;
 START                    : -9999 1  1 0 0 0&lt;br /&gt;
 END                      : -9999 12 1 0 0 0&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D          : 1&lt;br /&gt;
 FATHER_GEOMETRY          : LevitusGeometry.dat&lt;br /&gt;
 NEW_GEOMETRY             : LevitusGeometry.dat&lt;br /&gt;
 AUX_GRID_FILENAME        : LevitusGrid.dat&lt;br /&gt;
 AUX_OUTPUTFILENAME       : AuxLeviTusAllPointsWithData.hdf5&lt;br /&gt;
 &lt;br /&gt;
 POLI_DEGREE              : 3&lt;br /&gt;
 DO_NOT_BELIEVE_MAP       : 1&lt;br /&gt;
 EXTRAPOLATE_2D           : 2&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Interpolate ====&lt;br /&gt;
Finally, interpolate to the final grid and geometry (same as the [[#Interpolate 3D MOHID(.hdf5) files to a new grid| Interpolate 3D sample]]):&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION    : 1&lt;br /&gt;
 FATHER_FILENAME          : LeviTusAllPointsWithData.hdf5&lt;br /&gt;
 OUTPUTFILENAME           : CadizMonthlyLevitus.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME     : LevitusGrid.dat&lt;br /&gt;
 NEW_GRID_FILENAME        : Algarve0.02SigmaSmooth_V3_CartMoreLayers.dat&lt;br /&gt;
 &lt;br /&gt;
 START                    : -9999 1  1 0 0 0&lt;br /&gt;
 END                      : -9999 12 1 0 0 0&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D          : 1&lt;br /&gt;
 FATHER_GEOMETRY          : LevitusGeometry.dat&lt;br /&gt;
 NEW_GEOMETRY             : Geometry_1.dat&lt;br /&gt;
 AUX_OUTPUTFILENAME       : AuxCadizMonthlyLevitus.hdf5&lt;br /&gt;
 AUX_GRID_FILENAME        : Aux12km.dat&lt;br /&gt;
 &lt;br /&gt;
 POLI_DEGREE              : 3&lt;br /&gt;
 DO_NOT_BELIEVE_MAP       : 1&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that the programme may construct a new bathymetry twice. Use this bathymetry only on the AUX_GRID_FILENAME keyword.&lt;br /&gt;
&lt;br /&gt;
===Convert Hellerman Rosenstein ASCII format to MOHID(.hdf5)  ===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : CONVERT HELLERMAN ROSENSTEIN ASCII&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : ClimatologicWindStress.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME     : ClimatologicWindStressGrid.dat&lt;br /&gt;
 &lt;br /&gt;
 PERIODICITY              : monthly&lt;br /&gt;
 SPATIAL_RESOLUTION       : 2.&lt;br /&gt;
 FILL_VALUE               : -99.9999&lt;br /&gt;
 &lt;br /&gt;
 LOWER_LEFT_CORNER        : -180  -90&lt;br /&gt;
 UPPER_RIGHT_CORNER       : 180  90&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : wind stress X&lt;br /&gt;
 FILE                     : D:\Aplica\Dados\Hellerman_Rosenstein\TAUXX.DAT&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : wind stress Y&lt;br /&gt;
 FILE                     : D:\Aplica\Dados\Hellerman_Rosenstein\TAUYY.DAT&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert ALADIN(.nc) format to MOHID(.hdf5)===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT ALADIN FORMAT&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : aladin.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : aladin_griddata.dat&lt;br /&gt;
 &lt;br /&gt;
 !Put here the name of any netcdf file for grid-data generation's sake.&lt;br /&gt;
 INPUT_GRID_FILENAME      :   D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKCLOUD_OPASYMP_19723_20088.nc&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKIR_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKPRES_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKSOLAR_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKTAIR_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKWIND_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_FLUXPRE_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_STRESSU_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_STRESSV_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_U10_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_V10_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKCLOUD_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKHUMI_OPASYMP_19723_20088.nc&lt;br /&gt;
 &amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== OceanColor modules compilation ==&lt;br /&gt;
Compiling the [[ConvertToHDF5]] tool with the OceanColor modules is more complicated than one might expect. A solution is proposed here for a release version using the Compaq Visual Fortran 6.6c. The difficulties rise because C code is embedded with a fortran interface and also, extra libraries such as hdf4 are required.&lt;br /&gt;
&lt;br /&gt;
=== Pre-requisites ===&lt;br /&gt;
&lt;br /&gt;
This is a list of prerequisites to successfully compile the tool:&lt;br /&gt;
*Compaq Visual Fortran 6.5 with patch 6.6c,&lt;br /&gt;
*VS .NET 2003 (Vc7 in particular),&lt;br /&gt;
*Hdf5 libraries ('''hdf5.lib''' '''hdf5_fortran.lib''' '''hdf5_hl.lib'''),&lt;br /&gt;
*Netcdf libraries ('''netcdf.lib''' '''netcdf_.lib'''),&lt;br /&gt;
*Hdf4 libraries ('''hd421.lib''', '''hm421.lib'''),&lt;br /&gt;
*szlib, zlib and jpeg libraries ('''szlib.lib''', '''zlib.lib''' and '''libjpeg.lib'''),&lt;br /&gt;
*the fortran source files ('''ModuleConvertModisL2.F90 ModuleConvertModisL3.F90 ModuleConvertOceanColorL2.F90'''),&lt;br /&gt;
*the C source files and their fortran interface files ('''readL2scan.c readL2Seadas.c''' and '''cdata.f crossp.f fgeonav.f''').&lt;br /&gt;
&lt;br /&gt;
=== CVF IDE configuration ===&lt;br /&gt;
# Configure everything as specified in [[Compiling with CVF]].&lt;br /&gt;
# Add the source files listed in the prerequisites above to the source files listing.&lt;br /&gt;
# Go to '''Tools--&amp;gt;Options...--&amp;gt;Directories'''. There, add the '''$DOTNET2K3/Vc7/bin''' to the '''Executable files''''; the '''$DOTNET2K3/Vc7/include''' and '''$DOTNET2K3/Vc7/PlatformSDK/include''' to the '''Include files'''; and finally, the '''$DOTNET2K3/Vc7/lib''', '''$DOTNET2K3/Vc7/PlatformSDK/lib''' and  '''$DOTNET2K3/Vc7/PlatformSDK/bin''' to the '''Library files'''.&lt;br /&gt;
# Go to '''Projects--&amp;gt;Settings--&amp;gt;Release--&amp;gt;Link--&amp;gt;Input'''. There, add the following libraries: '''netcdf.lib netcdf_.lib hd421.lib hm421.lib libjpeg.lib'''. (Make sure the hdf5 libraries as well as the szlib and zlib libraries are already mentioned).&lt;br /&gt;
&lt;br /&gt;
=== Troubleshoots ===&lt;br /&gt;
'''Q: I get unresolved external references during linkage, but I have all the libraries mentioned above included. What should I do?'''&lt;br /&gt;
&lt;br /&gt;
A: Unresolved external references can come out for two reasons:&lt;br /&gt;
#you didn't specified all the libraries required or all the paths for the default libraries or,&lt;br /&gt;
#[http://en.wikipedia.org/wiki/Name_decoration name mangling] problems. Use the [[dumpbin]] utility to the libraries to checkout which language convention they are using. If that's the problem then you need to try to get new libraries with the correct naming convention.&lt;br /&gt;
&lt;br /&gt;
That's it, you should now be able to build the [[ConvertToHdf5]] project successfully.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Q: I got a message saying the entry point _NF_PUT_ATT_REAL@28 could not be located in netcdf.dll'''&lt;br /&gt;
&lt;br /&gt;
A: copy the file netcdf.dll to the exe folder&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
*[http://www.hdfgroup.org/ HDF5 Homepage]&lt;br /&gt;
*[http://www.hdfgroup.org/ HDF4 Homepage]&lt;br /&gt;
&lt;br /&gt;
== Links ==&lt;br /&gt;
&lt;br /&gt;
*[[Module_Atmosphere]]&lt;br /&gt;
*[[Module_InterfaceWaterAir]]&lt;br /&gt;
*[[Coupling_Water-Atmosphere_User_Manual]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Tools]]&lt;br /&gt;
[[Category:Hdf5]]&lt;/div&gt;</summary>
		<author><name>Anatrancoso</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=ConvertToHDF5&amp;diff=3234</id>
		<title>ConvertToHDF5</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=ConvertToHDF5&amp;diff=3234"/>
				<updated>2010-08-06T15:57:43Z</updated>
		
		<summary type="html">&lt;p&gt;Anatrancoso: /* Compilation Settings */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The '''ConvertToHDF5''' is an application which allows the making of several operations, called '''actions''', involving HDF5 files: conversion of data in other formats (e.g. NETCDF) to HDF5, grid interpolation, concatenation of several files.&lt;br /&gt;
&lt;br /&gt;
Running options for this application are specified by the user in a input file named [[ConvertToHDF5#Input file (ConvertToHDF5Action.dat)|'''ConvertToHDF5Action.dat''']]. Several actions can be specified in the same input file, being processed sequentially by the ConvertToHDF5 application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
The operations involving HDF5 files performed by ConvertToHDF5, specified individually by an action, can be organized in [[#file management|file management]], [[#grid interpolation|grid interpolation]] and [[#format conversion|format conversion]]. These types and the respective actions are detailed in the next sections. &lt;br /&gt;
&lt;br /&gt;
The input file specification for each action can be found bellow in the [[#Input file (ConvertToHDF5Action.dat)|Input file (ConvertToHDF5Action.dat)]] section.&lt;br /&gt;
&lt;br /&gt;
===Compilation Settings===&lt;br /&gt;
&lt;br /&gt;
====With Compaq Visual Fortran====&lt;br /&gt;
&lt;br /&gt;
* File -&amp;gt; New -&amp;gt; Fortran Console Application&lt;br /&gt;
* Project -&amp;gt; Add to Project -&amp;gt; Files -&amp;gt; *.f90 (do not add ModuleWRFFormat.f90 and proj4.f90 if you don't want to use [[PROJ4]] library).&lt;br /&gt;
* Project -&amp;gt; Settings:&lt;br /&gt;
** Fortran tab:&lt;br /&gt;
*** Compatibility “Big Endian” to work with MM5 files.&lt;br /&gt;
*** Compilation Diagnostics -&amp;gt; Fortran Standards Checking -&amp;gt; Fortran95.&lt;br /&gt;
*** Preprocessor:&lt;br /&gt;
**** Check FPP.&lt;br /&gt;
**** INCLUDE and USE Paths: path to Libs folder.&lt;br /&gt;
** C/C++ tab:&lt;br /&gt;
*** Preprocessor -&amp;gt; Additional include directories: path to Libs.&lt;br /&gt;
** Link tab:&lt;br /&gt;
*** General -&amp;gt; Object/library modules: kernel32.lib hdf5.lib hdf5_hl.lib hdf5_fortran.lib zlib.lib szlib.lib netcdf.lib netcdf_.lib &lt;br /&gt;
*** Input -&amp;gt; Additional library path: path to Libs.&lt;br /&gt;
* Buil -&amp;gt; Rebuild All&lt;br /&gt;
&lt;br /&gt;
To run this executable, copy ''netcdf.dll'' to its directory.&lt;br /&gt;
To work with large files, compile with: Project -&amp;gt; Settings -&amp;gt; Link tab -&amp;gt; Reserve: 10^6.&lt;br /&gt;
&lt;br /&gt;
===== Compile ModuleWRFFormat =====&lt;br /&gt;
&lt;br /&gt;
To convert [[Meteo|WRF]] files or work with other projection beside UTM and Lambert Conformal, ConvertToHDF5 must be compiled with [[PROJ4]] library. To do that:&lt;br /&gt;
* Same settings as above.&lt;br /&gt;
* Project -&amp;gt; Add to Project -&amp;gt; Files:&lt;br /&gt;
** ModuleWRFFormat.f90&lt;br /&gt;
** Proj4.f90&lt;br /&gt;
* Project -&amp;gt; Settings:&lt;br /&gt;
** Fortran tab -&amp;gt; Predefined Preprocessor symbols: _USE_PROJ4&lt;br /&gt;
** Link tab -&amp;gt; General -&amp;gt; Object/library modules: add libfproj4.lib (Note: ''libfproj4.lib'' and ''proj4.inc'' must be in Libs folder)&lt;br /&gt;
* Build -&amp;gt; Rebuild All.&lt;br /&gt;
&lt;br /&gt;
===File management===&lt;br /&gt;
&lt;br /&gt;
====Glue files====&lt;br /&gt;
This action consists in joining or glue in a single HDF5 file two or more HDF5 files having the same HDF5 data groups and referring to time periods which come in sequence. Both sets of 2D and 3D HDF5 files can be glued.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Glue MOHID Water results files from several runs produced in continuous running of the model, for storage space economy reasons. Can be used to join data from other origins (e.g. results of meteorological models) as long as the HDF5 format is the one supported by MOHID Water.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 files to be glued. &amp;quot;Grid&amp;quot; and &amp;quot;Results&amp;quot; data groups should be equal in all these files.&lt;br /&gt;
&lt;br /&gt;
'''Output:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with glued &amp;quot;Results&amp;quot; data. &amp;quot;Residual&amp;quot; and &amp;quot;Statistics&amp;quot; HDF5 data groups are not copied to the output file since they are time period specific (different values potentially occour in each file). General statistics can be calculated for the glued HDF5 file data using tool [[HDF5Statistics]].&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#GLUES HDF5 FILES|GLUES HDF5 FILES]].&lt;br /&gt;
&lt;br /&gt;
===Grid interpolation===&lt;br /&gt;
&lt;br /&gt;
====Interpolate files====&lt;br /&gt;
This action performs the conversion of one HDF5 file data existing in one 2D or 3D spatial grid to another 2D or 3D spatial grid, creating a new HDF5 file. The interpolation is performed only for the data located a time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
The HDF5 file containing data to be interpolated is called the '''father file'''.&lt;br /&gt;
&lt;br /&gt;
In case of 3D interpolation the application conducts first the horizontal grid interpolation&lt;br /&gt;
(keeping father geometry) and only after it conducts the vertical interpolation (from father geometry to new geometry).&lt;br /&gt;
&lt;br /&gt;
Several types of 2D interpolation are available for use: bilinear, spline 2D and triangulation.&lt;br /&gt;
For vertical interpolation (used in 3D interpolation) can be supplied several polinomial degrees for interpolation.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain an HDF5 file with data for forcing or providing initial conditions for a MOHID Water model, e.g. a meteorological forcing file.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
For 2D/3D interpolation:&lt;br /&gt;
&lt;br /&gt;
- father HDF5 file;&lt;br /&gt;
&lt;br /&gt;
- father horizontal data grid, in a grid data file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
- new horizontal data grid, in a grid data file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
For 3D interpolation also needed:&lt;br /&gt;
&lt;br /&gt;
- father vertical geometry, in a geometry file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
- new vertical geometry, in a geometry file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
- auxiliary horizontal data grid, in a grid data file in the format supported by MOHID; this file is used for horizontal grid interpolation in 3D interpolation operations.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with interpolated data. In case of 3D interpolation also produced an auxiliary HDF5 file with the result of the horizontal grid interpolation, which can be inspected to check if this operation is well performed.&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#INTERPOLATE GRIDS|INTERPOLATE GRIDS]].&lt;br /&gt;
&lt;br /&gt;
====Patch files====&lt;br /&gt;
This action consists in performing an interpolation of HDF5 data between grids, as in action [[#Interpolate files|Interpolate files]], but considering more than one HDF5 file as containing data to be interpolated to the new grid and a priority scale. The interpolation is performed only for the data located in the time window specified by the user. The present version of this action operates only on 2D data.&lt;br /&gt;
&lt;br /&gt;
Each HDF5 file containing data to be interpolated is called a '''father file''' and has an user-attributed '''priority level''' to be respected in the interpolation process: for each new grid cell the ConvertToHDF5 application will look for data first on the Level 1 father file and only in the case this data is inexistent will it look for data in Level 2 file, proceeding in looking for higher level files if no data is found subsequentely.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
To obtain an HDF5 file with data from several HDF5 files each containing data with different spatial resolution and only for a specific part of the new grid. This is, for instance, the case when one is preparing a best resolution meteorological HDF5 file for forcing MOHID Water from several meteorological model domains, having different spatial resolution and span, since the best resolution data is not available for all new grid cells.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
The new horizontal data grid, in a grid data file in the format supported by MOHID, and for each father file:&lt;br /&gt;
&lt;br /&gt;
- level of priority: 1 = maximum priority, priority decreases with increasing level value;&lt;br /&gt;
&lt;br /&gt;
- data grid, in the form of a grid data file in the format supported by MOHID.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with patched data.&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#PATCH HDF5 FILES|PATCH HDF5 FILES]].&lt;br /&gt;
&lt;br /&gt;
===Format conversion===&lt;br /&gt;
&lt;br /&gt;
====Meteorological model data====&lt;br /&gt;
Mohid does not simulate explicitly the atmosphere, but needs information about atmospheric properties in time and space. This requires that atmospheric properties are supplied to MOHID Water in supported formats. These formats can be derived from meteorological data in HDF5 format. Because the results of meteorological models are accessed in different formats conversion is required. &lt;br /&gt;
&lt;br /&gt;
The formats currently convertible to HDF5 in ConvertToHDF5 include the MM5 and the ERA40. These are succintly detailed in the next sections.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''ERA40''=====&lt;br /&gt;
This format refers to the European Centre for Medium-Range Weather Forecasts (ECMWF) 40 years re-analysises results, acessed by site http://data.ecmwf.int/data/d/era40_daily/. This data is available for several meteorological variables with maximum 6 hour periodicity for days in the period from 1957-09-01 to 2002-08-31. &lt;br /&gt;
&lt;br /&gt;
ERA40 data files are supplied by ECMWF in a NetCDF format and with an user-costumized time window, periodicity (time step range from 6 hours to a day) and meteorological properties set. The ERA40 meteorological properties which are recognized by MOHID are presented bellow together with the correspondent MOHID name: &lt;br /&gt;
&lt;br /&gt;
 ---ERA40 NAME---         ---MOHID NAME---&lt;br /&gt;
   sshf                     sensible heat                &lt;br /&gt;
   slhf                     latent heat                  &lt;br /&gt;
   msl                      atmospheric pressure &lt;br /&gt;
   tcc                      cloud cover &lt;br /&gt;
   p10u                     wind velocity X&lt;br /&gt;
   p10v                     wind velocity Y&lt;br /&gt;
   p2t                      air temperature&lt;br /&gt;
   ewss                     wind stress X&lt;br /&gt;
   nsss                     wind stress Y&lt;br /&gt;
&lt;br /&gt;
The standard ConvertToHDF5 action is to convert to HDF5 the data referring to all MOHID Water recognized property available in the ERA40 file, producing an individual HDF5 file for each property. The name of each HDF5 file generated includes the ERA40 meteorological property identificator correspondent to the data contained.&lt;br /&gt;
&lt;br /&gt;
Alternatively, ConvertToHDF5 can copy to a single ASCII file the heading information concerning each meteorological variable considered in the original ERA40 file.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain an HDF5 file with data suitable for being used for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
ERA40 NetCDF file.&lt;br /&gt;
&lt;br /&gt;
'''Output:'''&lt;br /&gt;
&lt;br /&gt;
One HDF5 file for each meteorological property contained in the original NetCDF file.&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT ERA40 FORMAT|CONVERT ERA40 FORMAT]].&lt;br /&gt;
&lt;br /&gt;
=====''Aladin''=====&lt;br /&gt;
This format relates to Aladin meteorological model results. Some of the atmospheric property needed by MOHID Water is present in Aladin output files, enabling to run prediction simulations with MOHID Water when access to Aladin prevision files is available.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts Aladin results files from the original format to HDF5 format, allowing the easy use of these results in the MOHID framework. Conversion is only performed for the MM5 properties and the time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Produce HDF5 meteorological data usable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
Aladin netcdf results file to convert.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
An HDF5 file with Aladin results and a grid data file in MOHID format with the Aladin grid pseudo-information: a fake orography is created of 100 m depth.&lt;br /&gt;
This last file can be used to interpolate the Aladin data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]), for instance to produce an HDF5 file suitable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Compilation:'''&lt;br /&gt;
&lt;br /&gt;
Caution! The ConvertToHDF5 executable must be compiled with the [[Big-endian little-endian|Big-Endian]] option set (see compatibility in the project's settings).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT ALADIN FORMAT|CONVERT ALADIN FORMAT]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''MM5''=====&lt;br /&gt;
This format relates to the Fifth-Generation NCAR / Penn State Mesoscale Model (MM5) output files format. Almost every atmospheric property needed by MOHID Water is present in MM5 output files.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts MM5 results files from the original format to HDF5 format, allowing the easy use of these results in the MOHID framework. Conversion is only performed for the MM5 properties and the time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
Besides the conversion, the application can calculate some properties not contained in&lt;br /&gt;
the MM5 files using the available information: these are wind stress, relative humidity and mean sea level pressure.&lt;br /&gt;
&lt;br /&gt;
For conversion to be completed it is required the horizontal grid information of MM5 results which is available in special TERRAIN files.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Produce HDF5 meteorological data usable to force MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
MM5 results file to convert and MM5 TERRAIN file. The TERRAIN file supplies the MM5 results grid information. &lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
A HDF5 file with MM5 results and a grid data file in MOHID format with the MM5 grid information.&lt;br /&gt;
This last file can be used to interpolate the MM5 data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]), for instance to produce an HDF5 file suitable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Compilation:'''&lt;br /&gt;
&lt;br /&gt;
Caution! The ConvertToHDF5 executable must be compiled with the [[Big-endian little-endian|Big-Endian]] option set (see compatibility in the project's settings).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT MM5 FORMAT|CONVERT MM5 FORMAT]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''WRF''=====&lt;br /&gt;
This format relates to the Weather Research and Forecast model (WRF) output files format. Almost every atmospheric property needed by MOHID Water is present in WRF output files.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts WRF results files from the original format to HDF5 format, allowing the easy use of these results in the MOHID framework. Conversion is only performed for the WRF properties and the time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
Besides the conversion, the application can calculate some properties not contained in&lt;br /&gt;
the WRF files using the available information: these are wind stress, relative humidity and mean sea level pressure.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Produce HDF5 meteorological data usable to force MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
WRF direct output file.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
An HDF5 file with WRF results and a grid data file in MOHID format with the WRF grid information.&lt;br /&gt;
This last file can be used to interpolate the WRF data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]), for instance to produce an HDF5 file suitable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Compilation:'''&lt;br /&gt;
&lt;br /&gt;
This action needs netcdf and proj4 libraries.&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT WRF FORMAT|CONVERT WRF FORMAT]].&lt;br /&gt;
&lt;br /&gt;
====Ocean model data====&lt;br /&gt;
Ocean model data, available in diverse formats, can be used by MOHID Water to specify boundary (open ocean boundary and surface), initial conditions or for validation. These uses require that the model data is in HDF5 format and conversion is therefore needed.&lt;br /&gt;
&lt;br /&gt;
Currently the large scale ocean models formats convertible into HDF5 by ConvertToHDF5 includes MERCATOR.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''MERCATOR''=====&lt;br /&gt;
MERCATOR data files are supplied in a NetCDF format and with an user-costumized spatial window and periodicity. Water level and water properties (temperature and salinity) data is available in type T files, velocity component u data is available in type U files and velocity component v data is available in type V files. The type of data of a specific MERCATOR file is generally indicated in the file name.&lt;br /&gt;
&lt;br /&gt;
The standard ConvertToHDF5 action is to convert to HDF5 the data referring to temperature, salinity, water level, component u of velocity and component v of velocity.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain HDF5 MERCATOR data usable for forcing or validation of MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
NetCDF MERCATOR results data files and NetCDF MERCATOR grid data files. It should be provided one grid data file of each type: T, U and V. These are generally provided by the MERCATOR services together with the results files.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
One HDF5 file containing all properties contained in the recognized set of properties (temperature, salinity, water level, velocity u and velocity v) and the correspondent grid data and geometry files, containing respectively the horizontal grid and the vertical discretization of the HDF5 file. The grid data and geometry files can be used afterwards to interpolate the MERCATOR data to another grid and geometry (see [[#Interpolate files|Interpolate files]]).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT MERCATOR FORMAT|CONVERT MERCATOR FORMAT]].&lt;br /&gt;
&lt;br /&gt;
====Climatological data====&lt;br /&gt;
Climatological data can be used in MOHID Water to specify boundary (open ocean boundary and surface), initial conditions or for validation, in case more realistic data (measurements or model) data is unavailable. This data is generally supplied by producers in formats not readly usable by MOHID Water which justifies the existence of a conversion tool.&lt;br /&gt;
&lt;br /&gt;
Two climatological data format conversions are implemented in ConvertToHDF5: Levitus ocean data and Hellerman Rosenstein meteorological data.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''Levitus''=====&lt;br /&gt;
The Levitus climatology provides results for water temperature and salinity.&lt;br /&gt;
The ConvertToHDF5 action converts the climatological data for the properties and spatial window requested by the user. &lt;br /&gt;
Typically, it requires 3 steps to complete the task:&lt;br /&gt;
&lt;br /&gt;
- convert levitus format &lt;br /&gt;
&lt;br /&gt;
- extrapolate the data to the whole levitus domain(required to avoid uncoincidental coastlines) &lt;br /&gt;
&lt;br /&gt;
- interpolate with the model grid(bathymetry)&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain climatological data in HDF5 format to use as boundary forcing and/or initial condition specification in MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
Levitus climatological data files, one per property and per time period (e.g a month).&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with Levitus climatological data, grid data file with the horizontal&lt;br /&gt;
grid of the data and a geometry file with vertical discretization of the data (MOHID formats).&lt;br /&gt;
The grid data and the geometry files can be used to interpolate the climatological data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT LEVITUS FORMAT|CONVERT LEVITUS FORMAT]].&lt;br /&gt;
&lt;br /&gt;
=====''Hellerman Rosenstein''=====&lt;br /&gt;
This is a meteorological climatology providing wind stress. There is a file per wind stress component. Since the data refer to surface values it is a 2D field.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts the climatological data for the properties and spatial window provided by the user.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain climatological data in HDF5 format to use as meteorological forcing in MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
Hellerman Rosenstein climatological data ASCII files, one per wind stress component.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with Hellerman Rosenstein climatological data and grid data file with the horizontal&lt;br /&gt;
grid of the climatological data. This grid data file can be used to interpolate the climatological data from the original horizontal grid to a new grid (see [[#Interpolate files|Interpolate files]]).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT HELLERMAN ROSENSTEIN ASCII|CONVERT HELLERMAN ROSENSTEIN ASCII]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''World Ocean Atlas 2005''=====&lt;br /&gt;
The World Ocean Atlas (WOA) 2005 climatology provides results for water temperature, salinity and several water quality and biology properties.&lt;br /&gt;
&lt;br /&gt;
Description, Action and Input Files are described in a separate page: [[ConvertToHDF5 WOA2005]].&lt;br /&gt;
&lt;br /&gt;
==Input file (ConvertToHDF5Action.dat)==&lt;br /&gt;
===General structure===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt; (block containing instructions for running a specific action) &lt;br /&gt;
 ACTION                    : ... (intended action)&lt;br /&gt;
 ... (action specific instructions)&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : ...&lt;br /&gt;
 ...&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===GLUES HDF5 FILES===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : GLUES HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 3D_FILE                   : 0/1 (0 = 2D file, 1 = 3D file)&lt;br /&gt;
 &lt;br /&gt;
 TIME_GROUP                : ... (Default=&amp;quot;Time&amp;quot;. Other option: &amp;quot;SurfaceTime&amp;quot;.)&lt;br /&gt;
 &lt;br /&gt;
 BASE_GROUP                : ... (Default=&amp;quot;Results&amp;quot;. Other options: &amp;quot;Residual&amp;quot;, &amp;quot;SurfaceResults&amp;quot;.)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 &lt;br /&gt;
 (block of HDF5 data files)&lt;br /&gt;
 &amp;lt;&amp;lt;begin_list&amp;gt;&amp;gt;&lt;br /&gt;
 ... (path/name of HDF5 file with data to be included in glue, one per line, at least two files)&lt;br /&gt;
 ...                      &lt;br /&gt;
 &amp;lt;&amp;lt;end_list&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===INTERPOLATE GRIDS===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION     : ... (type of horizontal interpolation: 1 = Bilinear, 2 = Spline2D,&lt;br /&gt;
                                  3 = Triangulation)&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION_WINDOW      : ... ... ... ... (2D spatial window to consider for interpolation: &lt;br /&gt;
                                              Xmin Ymin Xmax Ymax; default = all domain)&lt;br /&gt;
 &lt;br /&gt;
 START                     : ... (start date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 END                       : ... (end date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D           : 0/1 (0 = 2D interpolation, 1 = 3D interpolation)&lt;br /&gt;
 &lt;br /&gt;
 FATHER_FILENAME           : ... (path/name of input HDF5 file with data to be interpolated)&lt;br /&gt;
 FATHER_GRID_FILENAME      : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization of input HDF5 file)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of output HDF5 file to be created)&lt;br /&gt;
 NEW_GRID_FILENAME         : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization intended for output HDF5 file)&lt;br /&gt;
 &lt;br /&gt;
 EXTRAPOLATE_2D            : 0/1/2/3/4/5 (2D extrapolation: 0=no extrapolation, 1=medium&lt;br /&gt;
                                      triangulation, 2=high triangulation, &lt;br /&gt;
                                      3=nearest neighbour, 4=nearest cell, &lt;br /&gt;
                                      5=constant value)&lt;br /&gt;
 &lt;br /&gt;
 EXTRAPOLATE_VALUE         : ... (name of the value to extrapolate to when EXTRAPOLATE_2D is&lt;br /&gt;
                                  set to constant value (5))&lt;br /&gt;
 &lt;br /&gt;
 DO_NOT_BELIEVE_MAP        : 0/1 (0=consider input HDF5 file map, 1=do not consider input HDF5&lt;br /&gt;
                                  file map)&lt;br /&gt;
 &lt;br /&gt;
 BASE_GROUP                : ... (name of base group of HDF5 variables containing data to be &lt;br /&gt;
                                  interpolated; default is &amp;quot;/Results&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 (if INTERPOLATION3D : 1 also required:)&lt;br /&gt;
 FATHER_GEOMETRY           : ... (path/name of file (MOHID format) with vertical discretization&lt;br /&gt;
                                  of input HDF5 file)&lt;br /&gt;
 NEW_GEOMETRY              : ... (path/name of file (MOHID format) with vertical discretization&lt;br /&gt;
                                  intended for output HDF5 file)&lt;br /&gt;
 POLI_DEGREE               : 1/... (degree of vertical interpolation: 1=linear, ...)&lt;br /&gt;
 &lt;br /&gt;
 AUX_GRID_FILENAME         : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization intended for auxiliar output HDF5 file;&lt;br /&gt;
                                  default is file provided in NEW_GRID_FILENAME)&lt;br /&gt;
 &lt;br /&gt;
 AUX_OUTPUTFILENAME        : ... (path/name of auxiliar output HDF5 file to contain result&lt;br /&gt;
                                  of horizontal grid interpolation)   &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - the file indicated in AUX_GRID_FILENAME can be different from the one indicated in&lt;br /&gt;
   NEW_GRID_FILENAME in terms of bathymetry, while the horizontal grid should be, commonly, the&lt;br /&gt;
   same: this altered bathymetry can be used to extend the water column in the original data so&lt;br /&gt;
   that the process of vertical interpolation is done easily;&lt;br /&gt;
 &lt;br /&gt;
 - in case of INTERPOLATION3D : 1, ConvertToHDF5 can generate new versions of bathymetry which &lt;br /&gt;
   are consistent with the geometry definition (extension is '.new'); there are possibly three&lt;br /&gt;
   bathymetry changes referring to father grid, new grid and aux grid (the same bathymetry is&lt;br /&gt;
   not altered twice); although initially new and aux grid are the same they can result &lt;br /&gt;
   different because of bathymetry changes;&lt;br /&gt;
 &lt;br /&gt;
 - in case the new geometry is 2D and father geometry is 3D then POLI_DEGREE : 1 &lt;br /&gt;
   (linear interpolation) should be used;&lt;br /&gt;
 &lt;br /&gt;
 - EXTRAPOLATE_2D : 1/2/3/4/5 should be considered if it is expected that the coast line is not&lt;br /&gt;
   coincidental in the father and new grids, to avoid lack of data in the interpolation&lt;br /&gt;
   process; extrapolation is performed for all cells even the land cells; &lt;br /&gt;
 &lt;br /&gt;
 - in case of DO_NOT_BELIEVE_MAP : 1 the application generates a map based on cells where&lt;br /&gt;
   interpolation results are available; this causes that if EXTRAPOLATE_2D : 1/2/3/4/5 is used&lt;br /&gt;
   the AUX_GRID_FILENAME should not have land cells in order for the new map to be concurrent&lt;br /&gt;
   with the result of extrapolation and avoid errors generation, specially if INTERPOLATION3D :&lt;br /&gt;
   1 is considered.&lt;br /&gt;
&lt;br /&gt;
===PATCH HDF5 FILES===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : PATCH HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION     : ... (type of interpolation: 3 = Triangulation, default and only&lt;br /&gt;
                                  one implemented)&lt;br /&gt;
 &lt;br /&gt;
 START                     : ... (start date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 END                       : ... (end date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 &lt;br /&gt;
 (block for each father HDF5 file, should be at least two)&lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                     : ... (integer priority level: 1 = highest, increase for lower&lt;br /&gt;
                                  priority)&lt;br /&gt;
 FATHER_FILENAME           : ... (path/name of input HDF5 file with data to be interpolated)&lt;br /&gt;
 FATHER_GRID_FILENAME      : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization of input HDF5 file)&lt;br /&gt;
 N_REMOVE_FRAME            : 0   (width, in number of cells, of frame to remove)&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of output HDF5 file to be created)&lt;br /&gt;
 NEW_GRID_FILENAME         : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization intended for output HDF5 file)&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CONVERT ERA40 FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT ERA40 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                  : ... (path/name of ERA40 NetCDF file)&lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
                                 (root of name for all files produced)&lt;br /&gt;
 &lt;br /&gt;
 CONVERT_TO_ASCII          : 0/1 (1 = convert variable heading info for ASCII file; 0 = default)&lt;br /&gt;
 CONVERT_TO_HDF5           : 0/1 (1 = convert to HDF5 file; 0 = default)&lt;br /&gt;
 GRIDTO180                 : 0/1 (1 = convert grid from [0 360] to [-180 180], 0 = default)&lt;br /&gt;
 &lt;br /&gt;
 XX_VARIABLE               : ... (name of longitude variable in the input file: usual name &lt;br /&gt;
                                  is &amp;quot;longitude&amp;quot;)&lt;br /&gt;
 YY_VARIABLE               : ... (name of longitude variable in the input file: usual name &lt;br /&gt;
                                  is &amp;quot;latitude&amp;quot;)&lt;br /&gt;
 TIME_VARIABLE             : ... (name of time variable in the input file: usual name is&lt;br /&gt;
                                  &amp;quot;time&amp;quot;)&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - either CONVERT_TO_ASCII : 1 or CONVERT_TO_HDF5 : 1 must be chosen for any action to be&lt;br /&gt;
 performed by ConvertToHDF5;&lt;br /&gt;
 &lt;br /&gt;
 - when CONVERT_TO_HDF5 : 1 an HDF5 file is produced for every variable contained in the&lt;br /&gt;
 original ERA40 file; the name of each file is composed of the name indicated on FILENAME&lt;br /&gt;
 concatenated with the ERA40 variable identifier;&lt;br /&gt;
 &lt;br /&gt;
 - to the XX_VARIABLE, YY_VARIABLE and TIME_VARIABLE keywords should generally be  &lt;br /&gt;
 specified &amp;quot;longitude&amp;quot;, &amp;quot;latitude&amp;quot; and &amp;quot;time&amp;quot;, respectively; the option to&lt;br /&gt;
 include as keywords was made only to make the application robust to future variable name&lt;br /&gt;
 changes.&lt;br /&gt;
&lt;br /&gt;
===CONVERT MM5 FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT MM5 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                  : ... (path/name of MM5 file)&lt;br /&gt;
 TERRAIN_FILENAME          : ... (path/name of MM5 TERRAIN file)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : ... (path/name of grid data file with horizontal grid of MM5 data&lt;br /&gt;
                                  to be created)&lt;br /&gt;
 &lt;br /&gt;
 COMPUTE_WINDSTRESS        : 0/1 (1 = compute and write wind stress field; 0 = default)&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY : 0/1 (1 = compute and write relative humidity field; 0 = default)&lt;br /&gt;
 COMPUTE_PRECIPITATION     : 0/1 (1 = compute and write precipitation field; 0 = default)&lt;br /&gt;
 COMPUTE_WINDMODULUS       : 0/1 (1 = compute wind modulus; 0 = default)&lt;br /&gt;
 &lt;br /&gt;
 WRITE_XYZ                 : 0/1 (1 = write xyz center grid cells; 0 = default)&lt;br /&gt;
 WRITE_TERRAIN             : 0/1 (1 = write MM5 TERRAIN fields; 0 = default)&lt;br /&gt;
 &lt;br /&gt;
 START                     : ... (start date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 END                       : ... (end date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
  &lt;br /&gt;
 (block of MM5 properties to convert)&lt;br /&gt;
 &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;&lt;br /&gt;
 ... (name of MM5 property to convert do HDF5 format, one per line)&lt;br /&gt;
 ... &lt;br /&gt;
 &amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - the name of each MM5 property to convert in &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;...&amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt; block must&lt;br /&gt;
 conform to the MOHID designation specified in code of ModuleGlobalData; the correspondence is &lt;br /&gt;
 the following (see [[Module_InterfaceWaterAir]] for a more detailed explanation).&lt;br /&gt;
 &lt;br /&gt;
           ---MM5 NAME---    ---MOHID NAME---&lt;br /&gt;
             T2             air temperature&lt;br /&gt;
             PSTARCRS       atmospheric pressure&lt;br /&gt;
             U10            wind velocity X&lt;br /&gt;
             V10            wind velocity Y&lt;br /&gt;
             UST            wind shear velocity&lt;br /&gt;
             LHFLUX         latent heat&lt;br /&gt;
             SWDOWN         sensible heat&lt;br /&gt;
             SWDOWN         solar radiation&lt;br /&gt;
             LWDOWN         infrared radiation&lt;br /&gt;
             SWOUT          top outgoing shortwave radiation&lt;br /&gt;
             LWOUT          top outgoing longwave radiation&lt;br /&gt;
             SOIL T 1       soil temperature layer 1&lt;br /&gt;
             SOIL T 1       soil temperature layer 2&lt;br /&gt;
             SOIL T 1       soil temperature layer 3&lt;br /&gt;
             SOIL T 1       soil temperature layer 4&lt;br /&gt;
             SOIL T 1       soil temperature layer 5&lt;br /&gt;
             SOIL T 1       soil temperature layer 6&lt;br /&gt;
             Q2             2-meter mixing ratio&lt;br /&gt;
             TSEASFC        sea water temperature&lt;br /&gt;
             PBL HGT        PBL height&lt;br /&gt;
             PBL REGIME     PBL regime&lt;br /&gt;
             RAIN CON       accumulated convective precipitation        (cm)&lt;br /&gt;
             RAIN NON       accumulated non-convective precipitation    (cm)&lt;br /&gt;
             GROUND T       ground temperature&lt;br /&gt;
             RES TEMP       infinite reservoir slab temperature&lt;br /&gt;
             U              wind velocity X_3D&lt;br /&gt;
             V              wind velocity Y_3D&lt;br /&gt;
             W              wind velocity Z_3D&lt;br /&gt;
             T              air temperature_3D&lt;br /&gt;
             PP             atmospheric pressure_3D&lt;br /&gt;
             Q              mixing ratio_3D&lt;br /&gt;
             CLW            cloud water mixing ratio_3D&lt;br /&gt;
             RNW            rain water mixing ratio_3D&lt;br /&gt;
             ICE            cloud ice mixing ratio_3D&lt;br /&gt;
             SNOW           snow mixing ratio_3D&lt;br /&gt;
             RAD TEND       atmospheric radiation tendency_3D&lt;br /&gt;
&lt;br /&gt;
===CONVERT ALADIN FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT ALADIN FORMAT&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : aladin.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : aladin_griddata.dat&lt;br /&gt;
 &lt;br /&gt;
 !Put here the name of any netcdf file for grid-data generation's sake.&lt;br /&gt;
 INPUT_GRID_FILENAME      :   D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKCLOUD_OPASYMP_19723_20088.nc&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 (path to aladin netcdf file)\ALADIN_BULKIR_OPASYMP_19723_20088.nc&lt;br /&gt;
 ...&lt;br /&gt;
 &amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - the name of each Aladin property to convert in &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;...&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt; block must conform to the following variables&lt;br /&gt;
 &lt;br /&gt;
           ---ALADIN NAME---    ---MOHID NAME---&lt;br /&gt;
             soclotot            CloudCover_&lt;br /&gt;
             sohumrel            RelativeHumidity_&lt;br /&gt;
             sofluxir            NonSolarFlux_&lt;br /&gt;
             sosspres            AtmosphericPressure_&lt;br /&gt;
             sosolarf            SolarRadiation_&lt;br /&gt;
             sotemair            AirTemperature_&lt;br /&gt;
             sowinmod            WindModulus_&lt;br /&gt;
             sowaprec            Precipitation_&lt;br /&gt;
             sozotaux            WindStressX_&lt;br /&gt;
             sometauy            WindStressY_&lt;br /&gt;
             sowindu10           WindVelocityX_&lt;br /&gt;
             sowindv10           WindVelocityY_&lt;br /&gt;
&lt;br /&gt;
===CONVERT MERCATOR FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT MERCATOR FORMAT&lt;br /&gt;
 &lt;br /&gt;
 READ_OPTION               : 1/2/3/4 (version of MERCATOR files)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : ... (path/name of grid data with horizontal discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME  : ... (path/name of geometry file with vertical discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 &lt;br /&gt;
 (if READ_OPTION : 1:)&lt;br /&gt;
 BASE_BULLETIN             : ...&lt;br /&gt;
 DATES_FILE                : ...&lt;br /&gt;
 NUM_DATES                 : ... &lt;br /&gt;
 &lt;br /&gt;
 (if READ_OPTION : 2/3:)&lt;br /&gt;
 INPUT_GRID_FILENAME       : ... (path/name of file with horizontal discretization of water&lt;br /&gt;
                                  properties and water level data)&lt;br /&gt;
 (if READ_OPTION : 2:)&lt;br /&gt;
 INPUT_GRID_FILENAME_U     : ... (path/name of file with horizontal discretization of velocity&lt;br /&gt;
                                  component U data)&lt;br /&gt;
 INPUT_GRID_FILENAME_V     : ... (path/name of file with horizontal discretization of velocity&lt;br /&gt;
                                  component V data)&lt;br /&gt;
 &lt;br /&gt;
 (if READ_OPTION : 3:)&lt;br /&gt;
 INPUT_BATHY_FILENAME      : ... (path/name of file with bathymetry)&lt;br /&gt;
     &lt;br /&gt;
 (if READ_OPTION : 3/4:)&lt;br /&gt;
 CALC_BAROTROPIC_VEL       : 0/1 (1 = calculate barotropic velocity, 0 = not calculate; &lt;br /&gt;
                                  default = 0)&lt;br /&gt;
 &lt;br /&gt;
 (if CALC_BAROTROPIC_VEL : 1 and READ_OPTION : 3:)&lt;br /&gt;
 INPUT_MESH_ZGRID_FILENAME : ... (path/name of file with information about layers ticknesses)&lt;br /&gt;
 &lt;br /&gt;
 (block of MERCATOR data files)&lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 ... (path/name of MERCATOR NetCDF data file, one per line, can be several)&lt;br /&gt;
 ... &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CONVERT LEVITUS FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT LEVITUS FORMAT&lt;br /&gt;
  &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : ... (path/name of grid data with horizontal discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME  : ... (path/name of geometry file with vertical discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 &lt;br /&gt;
 PERIODICITY               : ... (periodicity of Levitus data: &amp;quot;monthly&amp;quot;/&amp;quot;annual&amp;quot;; default is&lt;br /&gt;
                                  &amp;quot;monthly&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 SPATIAL_RESOLUTION        : ... (spatial resolution (degrees) of horizontal Levitus grid)&lt;br /&gt;
 &lt;br /&gt;
 FILL_VALUE                : ... (real value identificator for missing data; default is &lt;br /&gt;
                                  &amp;quot;-99.999900&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 (definition of spatial window to be present in output HDF5 file)&lt;br /&gt;
 LOWER_LEFT_CORNER         : ... ... (longitude and latitude (degrees) of south west corner)&lt;br /&gt;
 UPPER_RIGHT_CORNER        : ... ... (longitude and latitude (degrees) of north east corner)&lt;br /&gt;
 &lt;br /&gt;
 (block for each water property to be present in output HDF5 file, can be several)&lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                      : ... (name of property)&lt;br /&gt;
 ANNUAL_FILE               : ... (path/name of Levitus annual file)&lt;br /&gt;
 &lt;br /&gt;
 (block of Levitus data files)&lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 ... (path/name of Levitus data file (e.g. a monthly data file), one per line, can be several)&lt;br /&gt;
 ... &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CONVERT HELLERMAN ROSENSTEIN ASCII===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT HELLERMAN ROSENSTEIN ASCII&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : ... (path/name of grid data with horizontal discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
  &lt;br /&gt;
 PERIODICITY               : ... (periodicity of Hellerman Rosenstein data: &amp;quot;monthly&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 SPATIAL_RESOLUTION        : ... (spatial resolution (degrees) of horizontal Hellerman&lt;br /&gt;
                                  Rosenstein grid: default and only allowed value is &amp;quot;2.&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 FILL_VALUE                : ... (real value identificator for missing data; default is &lt;br /&gt;
                                  &amp;quot;-99.999900&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 (definition of spatial window to be present in output HDF5 file)&lt;br /&gt;
 LOWER_LEFT_CORNER         : ... ... (longitude and latitude (degrees) of south west corner)&lt;br /&gt;
 UPPER_RIGHT_CORNER        : ... ... (longitude and latitude (degrees) of north east corner)&lt;br /&gt;
   &lt;br /&gt;
 (block for each Hellerman Rosenstein data file)&lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                      : ... (name of property: &amp;quot;wind stress X&amp;quot;/&amp;quot;wind stress Y&amp;quot;)&lt;br /&gt;
 FILE                      : ... (path/name Hellerman Rosenstein file)&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Samples==&lt;br /&gt;
All sample files are named ''ConvertToHDF5Action.dat''.&lt;br /&gt;
&lt;br /&gt;
===Glue several MOHID(.hdf5) files===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : GLUES HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : SurfaceHydro_OP.hdf5&lt;br /&gt;
  &lt;br /&gt;
 &amp;lt;&amp;lt;begin_list&amp;gt;&amp;gt;&lt;br /&gt;
 D:\Projectos\SurfaceHydrodynamic_21.hdf5&lt;br /&gt;
 D:\Projectos\SurfaceHydrodynamic_22.hdf5&lt;br /&gt;
 &amp;lt;&amp;lt;end_list&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Interpolate 2D MOHID(.hdf5) files to a new grid===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION    : 1&lt;br /&gt;
 FATHER_FILENAME          : D:\Projectos\MohidRun\test\res\Lagrangian_1.hdf5 &lt;br /&gt;
 OUTPUTFILENAME           : OilSpillThickness_GridRegular.hdf5&lt;br /&gt;
  &lt;br /&gt;
 START                    : 2006 6 21 17 22 30&lt;br /&gt;
 END                      : 2006 6 22 17 22 0&lt;br /&gt;
  &lt;br /&gt;
 FATHER_GRID_FILENAME     : D:\Projectos\MohidRun\GeneralData\batim\Tagus.dat_A&lt;br /&gt;
 NEW_GRID_FILENAME        : TagusConstSpacing.dat&lt;br /&gt;
  &lt;br /&gt;
 BASE_GROUP               : /Results/Oil/Data_2D&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Interpolate 3D MOHID(.hdf5) files to a new grid===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION   : 1&lt;br /&gt;
 FATHER_FILENAME         : D:\Projectos\MohidRun\test\res\Lagrangian_1.hdf5 &lt;br /&gt;
 OUTPUTFILENAME          : OilSpillThickness_GridRegular.hdf5&lt;br /&gt;
 &lt;br /&gt;
 START                   : 2006 6 21 17 22 30&lt;br /&gt;
 END                     : 2006 6 22 17 22 0&lt;br /&gt;
 &lt;br /&gt;
 FATHER_GRID_FILENAME    : D:\Projectos\MohidRun\GeneralData\batim\Tagus.dat_A&lt;br /&gt;
 NEW_GRID_FILENAME       : TagusConstSpacing.dat&lt;br /&gt;
 &lt;br /&gt;
 BASE_GROUP              : /Results/Oil/Data_2D&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D         : 1&lt;br /&gt;
 FATHER_GEOMETRY         : D:\Projectos\MohidRun\test\data\Geometry_1.dat&lt;br /&gt;
 NEW_GEOMETRY            : TagusGeometry.dat&lt;br /&gt;
 AUX_GRID_FILENAME       : TagusConstSpacing.dat&lt;br /&gt;
 AUX_OUTPUTFILENAME      : Aux_GridRegular.hdf5&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Patch several MOHID(.hdf5) files to a new grid===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION : PATCH HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION   : 3&lt;br /&gt;
 &lt;br /&gt;
 START                   : 2005 2 28 13 0 0&lt;br /&gt;
 END                     : 2005 3 1 13 0 0&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                   : 3&lt;br /&gt;
 FATHER_FILENAME         : K:\MM5output\2005022812_2005030712\MM5OUT_D1.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME    : K:\MM5output\2005022812_2005030712\grid1.dat&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                   : 2&lt;br /&gt;
 FATHER_FILENAME         : K:\MM5output\2005022812_2005030712\MM5OUT_D2.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME    : K:\MM5output\2005022812_2005030712\grid2.dat&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                   : 1&lt;br /&gt;
 FATHER_FILENAME         : K:\MM5output\2005022812_2005030712\MM5OUT_D3.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME    : K:\MM5output\2005022812_2005030712\grid3.dat&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME          : MM5Forcing.hdf5&lt;br /&gt;
 NEW_GRID_FILENAME       : K:\Simula\GeneralData\Batim\CostaPortuguesa.dat&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert an ERA40 file to MOHID(.hdf5)===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                  : CONVERT ERA40 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                : D:\Aplica\ERA40\1971ERA1973.nc&lt;br /&gt;
 OUTPUTFILENAME          : D:\Aplica\ERA40\1971ERA1973T2&lt;br /&gt;
 &lt;br /&gt;
 CONVERT_TO_ASCII        : 0&lt;br /&gt;
 CONVERT_TO_HDF5         : 1&lt;br /&gt;
 &lt;br /&gt;
 XX_VARIABLE             : longitude&lt;br /&gt;
 YY_VARIABLE             : latitude&lt;br /&gt;
 TIME_VARIABLE           : time&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert a MM5 file to MOHID(.hdf5)===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                  : CONVERT MM5 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                : K:\MM5output\DataCenter\Modelos\Meteo_IST\Fev2005\MMOUT_D3&lt;br /&gt;
 TERRAIN_FILENAME        : K:\MM5output\DataCenter\Modelos\Meteo_IST\Fev2005\TERRAIN_D3&lt;br /&gt;
 OUTPUT_GRID_FILENAME    : K:\MM5output\DataCenter\Modelos\Meteo_IST\Fev2005\grid3.dat&lt;br /&gt;
 OUTPUTFILENAME          : K:\MM5output\DataCenter\Modelos\Meteo_IST\Fev2005\MM5_D3.hdf5&lt;br /&gt;
 &lt;br /&gt;
 COMPUTE_WINDSTRESS        : 0&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY : 1&lt;br /&gt;
 WRITE_XYZ                 : 0&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;&lt;br /&gt;
 solar radiation&lt;br /&gt;
 air temperature&lt;br /&gt;
 wind velocity X&lt;br /&gt;
 wind velocity Y&lt;br /&gt;
 sensible heat&lt;br /&gt;
 latent heat&lt;br /&gt;
 atmospheric pressure&lt;br /&gt;
 sea water temperature&lt;br /&gt;
 &amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert Mercator-Ocean(.nc) to MOHID(.hdf5)===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : CONVERT MERCATOR FORMAT&lt;br /&gt;
 &lt;br /&gt;
 READ_OPTION              : 2&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : Psy2v2r1v_R20060628/MercatorR20060628.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME     : Psy2v2r1v_R20060628/MercatorGridR20060628.dat&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME : Psy2v2r1v_R20060628/MercatorGeometryR20060628.dat&lt;br /&gt;
 &lt;br /&gt;
 INPUT_GRID_FILENAME      : GridFiles/ist_meteog-gridT.nc&lt;br /&gt;
 INPUT_GRID_FILENAME_U    : GridFiles/ist_meteog-gridU.nc&lt;br /&gt;
 INPUT_GRID_FILENAME_V    : GridFiles/ist_meteog-gridV.nc&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 Psy2v2r1v_R20060628/ist_meteog-mercatorPsy2v2r1v_T_MEAN_ANA_20060621_R20060628.nc&lt;br /&gt;
 Psy2v2r1v_R20060628/ist_meteog-mercatorPsy2v2r1v_T_MEAN_ANA_20060622_R20060628.nc&lt;br /&gt;
 Psy2v2r1v_R20060628/ist_meteog-mercatorPsy2v2r1v_T_MEAN_ANA_20060623_R20060628.nc&lt;br /&gt;
 &amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert Levitus format to MOHID(.hdf5) and interpolate grid===&lt;br /&gt;
==== Convert ====&lt;br /&gt;
First convert the Levitus ASCII format to a raw HDF5 format:&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : CONVERT LEVITUS FORMAT&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : Levitus.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME     : LevitusGrid.dat&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME : LevitusGeometry.dat&lt;br /&gt;
 &lt;br /&gt;
 PERIODICITY              : monthly&lt;br /&gt;
 SPATIAL_RESOLUTION       : 0.25&lt;br /&gt;
 FILL_VALUE               : -99.9999&lt;br /&gt;
 &lt;br /&gt;
 LOWER_LEFT_CORNER        : -16.0  31&lt;br /&gt;
 UPPER_RIGHT_CORNER       :   1.   40&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : salinity&lt;br /&gt;
 ANNUAL_FILE              : DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s000hr.obj&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s001&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s002&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s003&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s004&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s005&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s006&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s007&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s008&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s009&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s010&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s011&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s012&lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : temperature&lt;br /&gt;
 ANNUAL_FILE              : DataCenter\DadosBase\Ocean\Levitus\Data\Temp\t000hr.obj&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t001&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t002&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t003&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t004&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t005&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t006&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t007&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t008&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t009&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t010&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t011&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t012&lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Extrapolate ====&lt;br /&gt;
Then extrapolate the data (still in the raw HDF5 format):&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION    : 1&lt;br /&gt;
 &lt;br /&gt;
 FATHER_FILENAME          : Levitus.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME     : LevitusGrid.dat&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : LeviTusAllPointsWithData.hdf5&lt;br /&gt;
 NEW_GRID_FILENAME        : LevitusGrid.dat&lt;br /&gt;
 &lt;br /&gt;
 START                    : -9999 1  1 0 0 0&lt;br /&gt;
 END                      : -9999 12 1 0 0 0&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D          : 1&lt;br /&gt;
 FATHER_GEOMETRY          : LevitusGeometry.dat&lt;br /&gt;
 NEW_GEOMETRY             : LevitusGeometry.dat&lt;br /&gt;
 AUX_GRID_FILENAME        : LevitusGrid.dat&lt;br /&gt;
 AUX_OUTPUTFILENAME       : AuxLeviTusAllPointsWithData.hdf5&lt;br /&gt;
 &lt;br /&gt;
 POLI_DEGREE              : 3&lt;br /&gt;
 DO_NOT_BELIEVE_MAP       : 1&lt;br /&gt;
 EXTRAPOLATE_2D           : 2&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Interpolate ====&lt;br /&gt;
Finally, interpolate to the final grid and geometry (same as the [[#Interpolate 3D MOHID(.hdf5) files to a new grid| Interpolate 3D sample]]):&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION    : 1&lt;br /&gt;
 FATHER_FILENAME          : LeviTusAllPointsWithData.hdf5&lt;br /&gt;
 OUTPUTFILENAME           : CadizMonthlyLevitus.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME     : LevitusGrid.dat&lt;br /&gt;
 NEW_GRID_FILENAME        : Algarve0.02SigmaSmooth_V3_CartMoreLayers.dat&lt;br /&gt;
 &lt;br /&gt;
 START                    : -9999 1  1 0 0 0&lt;br /&gt;
 END                      : -9999 12 1 0 0 0&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D          : 1&lt;br /&gt;
 FATHER_GEOMETRY          : LevitusGeometry.dat&lt;br /&gt;
 NEW_GEOMETRY             : Geometry_1.dat&lt;br /&gt;
 AUX_OUTPUTFILENAME       : AuxCadizMonthlyLevitus.hdf5&lt;br /&gt;
 AUX_GRID_FILENAME        : Aux12km.dat&lt;br /&gt;
 &lt;br /&gt;
 POLI_DEGREE              : 3&lt;br /&gt;
 DO_NOT_BELIEVE_MAP       : 1&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that the programme may construct a new bathymetry twice. Use this bathymetry only on the AUX_GRID_FILENAME keyword.&lt;br /&gt;
&lt;br /&gt;
===Convert Hellerman Rosenstein ASCII format to MOHID(.hdf5)  ===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : CONVERT HELLERMAN ROSENSTEIN ASCII&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : ClimatologicWindStress.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME     : ClimatologicWindStressGrid.dat&lt;br /&gt;
 &lt;br /&gt;
 PERIODICITY              : monthly&lt;br /&gt;
 SPATIAL_RESOLUTION       : 2.&lt;br /&gt;
 FILL_VALUE               : -99.9999&lt;br /&gt;
 &lt;br /&gt;
 LOWER_LEFT_CORNER        : -180  -90&lt;br /&gt;
 UPPER_RIGHT_CORNER       : 180  90&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : wind stress X&lt;br /&gt;
 FILE                     : D:\Aplica\Dados\Hellerman_Rosenstein\TAUXX.DAT&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : wind stress Y&lt;br /&gt;
 FILE                     : D:\Aplica\Dados\Hellerman_Rosenstein\TAUYY.DAT&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert ALADIN(.nc) format to MOHID(.hdf5)===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT ALADIN FORMAT&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : aladin.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : aladin_griddata.dat&lt;br /&gt;
 &lt;br /&gt;
 !Put here the name of any netcdf file for grid-data generation's sake.&lt;br /&gt;
 INPUT_GRID_FILENAME      :   D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKCLOUD_OPASYMP_19723_20088.nc&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKIR_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKPRES_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKSOLAR_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKTAIR_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKWIND_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_FLUXPRE_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_STRESSU_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_STRESSV_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_U10_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_V10_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKCLOUD_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKHUMI_OPASYMP_19723_20088.nc&lt;br /&gt;
 &amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== OceanColor modules compilation ==&lt;br /&gt;
Compiling the [[ConvertToHDF5]] tool with the OceanColor modules is more complicated than one might expect. A solution is proposed here for a release version using the Compaq Visual Fortran 6.6c. The difficulties rise because C code is embedded with a fortran interface and also, extra libraries such as hdf4 are required.&lt;br /&gt;
&lt;br /&gt;
=== Pre-requisites ===&lt;br /&gt;
&lt;br /&gt;
This is a list of prerequisites to successfully compile the tool:&lt;br /&gt;
*Compaq Visual Fortran 6.5 with patch 6.6c,&lt;br /&gt;
*VS .NET 2003 (Vc7 in particular),&lt;br /&gt;
*Hdf5 libraries ('''hdf5.lib''' '''hdf5_fortran.lib''' '''hdf5_hl.lib'''),&lt;br /&gt;
*Netcdf libraries ('''netcdf.lib''' '''netcdf_.lib'''),&lt;br /&gt;
*Hdf4 libraries ('''hd421.lib''', '''hm421.lib'''),&lt;br /&gt;
*szlib, zlib and jpeg libraries ('''szlib.lib''', '''zlib.lib''' and '''libjpeg.lib'''),&lt;br /&gt;
*the fortran source files ('''ModuleConvertModisL2.F90 ModuleConvertModisL3.F90 ModuleConvertOceanColorL2.F90'''),&lt;br /&gt;
*the C source files and their fortran interface files ('''readL2scan.c readL2Seadas.c''' and '''cdata.f crossp.f fgeonav.f''').&lt;br /&gt;
&lt;br /&gt;
=== CVF IDE configuration ===&lt;br /&gt;
# Configure everything as specified in [[Compiling with CVF]].&lt;br /&gt;
# Add the source files listed in the prerequisites above to the source files listing.&lt;br /&gt;
# Go to '''Tools--&amp;gt;Options...--&amp;gt;Directories'''. There, add the '''$DOTNET2K3/Vc7/bin''' to the '''Executable files''''; the '''$DOTNET2K3/Vc7/include''' and '''$DOTNET2K3/Vc7/PlatformSDK/include''' to the '''Include files'''; and finally, the '''$DOTNET2K3/Vc7/lib''', '''$DOTNET2K3/Vc7/PlatformSDK/lib''' and  '''$DOTNET2K3/Vc7/PlatformSDK/bin''' to the '''Library files'''.&lt;br /&gt;
# Go to '''Projects--&amp;gt;Settings--&amp;gt;Release--&amp;gt;Link--&amp;gt;Input'''. There, add the following libraries: '''netcdf.lib netcdf_.lib hd421.lib hm421.lib libjpeg.lib'''. (Make sure the hdf5 libraries as well as the szlib and zlib libraries are already mentioned).&lt;br /&gt;
&lt;br /&gt;
=== Troubleshoots ===&lt;br /&gt;
'''Q: I get unresolved external references during linkage, but I have all the libraries mentioned above included. What should I do?'''&lt;br /&gt;
&lt;br /&gt;
A: Unresolved external references can come out for two reasons:&lt;br /&gt;
#you didn't specified all the libraries required or all the paths for the default libraries or,&lt;br /&gt;
#[http://en.wikipedia.org/wiki/Name_decoration name mangling] problems. Use the [[dumpbin]] utility to the libraries to checkout which language convention they are using. If that's the problem then you need to try to get new libraries with the correct naming convention.&lt;br /&gt;
&lt;br /&gt;
That's it, you should now be able to build the [[ConvertToHdf5]] project successfully.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Q: I got a message saying the entry point _NF_PUT_ATT_REAL@28 could not be located in netcdf.dll'''&lt;br /&gt;
&lt;br /&gt;
A: copy the file netcdf.dll to the exe folder&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
*[http://www.hdfgroup.org/ HDF5 Homepage]&lt;br /&gt;
*[http://www.hdfgroup.org/ HDF4 Homepage]&lt;br /&gt;
&lt;br /&gt;
== Links ==&lt;br /&gt;
&lt;br /&gt;
*[[Module_Atmosphere]]&lt;br /&gt;
*[[Module_InterfaceWaterAir]]&lt;br /&gt;
*[[Coupling_Water-Atmosphere_User_Manual]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Tools]]&lt;br /&gt;
[[Category:Hdf5]]&lt;/div&gt;</summary>
		<author><name>Anatrancoso</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=ConvertToHDF5&amp;diff=3233</id>
		<title>ConvertToHDF5</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=ConvertToHDF5&amp;diff=3233"/>
				<updated>2010-08-06T15:56:05Z</updated>
		
		<summary type="html">&lt;p&gt;Anatrancoso: /* Meteorological model data */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The '''ConvertToHDF5''' is an application which allows the making of several operations, called '''actions''', involving HDF5 files: conversion of data in other formats (e.g. NETCDF) to HDF5, grid interpolation, concatenation of several files.&lt;br /&gt;
&lt;br /&gt;
Running options for this application are specified by the user in a input file named [[ConvertToHDF5#Input file (ConvertToHDF5Action.dat)|'''ConvertToHDF5Action.dat''']]. Several actions can be specified in the same input file, being processed sequentially by the ConvertToHDF5 application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
The operations involving HDF5 files performed by ConvertToHDF5, specified individually by an action, can be organized in [[#file management|file management]], [[#grid interpolation|grid interpolation]] and [[#format conversion|format conversion]]. These types and the respective actions are detailed in the next sections. &lt;br /&gt;
&lt;br /&gt;
The input file specification for each action can be found bellow in the [[#Input file (ConvertToHDF5Action.dat)|Input file (ConvertToHDF5Action.dat)]] section.&lt;br /&gt;
&lt;br /&gt;
===Compilation Settings===&lt;br /&gt;
&lt;br /&gt;
====With Compaq Visual Fortran====&lt;br /&gt;
&lt;br /&gt;
* File -&amp;gt; New -&amp;gt; Fortran Console Application&lt;br /&gt;
* Project -&amp;gt; Add to Project -&amp;gt; Files -&amp;gt; *.f90 (do not add ModuleWRFFormat.f90 and proj4.f90 if you don't want to use [[PROJ4]] library).&lt;br /&gt;
* Project -&amp;gt; Settings:&lt;br /&gt;
** Fortran tab:&lt;br /&gt;
*** Compatibility “Big Endian” to work with MM5 files.&lt;br /&gt;
*** Compilation Diagnostics -&amp;gt; Fortran Standards Checking -&amp;gt; Fortran95.&lt;br /&gt;
*** Preprocessor:&lt;br /&gt;
**** Check FPP.&lt;br /&gt;
**** INCLUDE and USE Paths: path to Libs folder.&lt;br /&gt;
** C/C++ tab:&lt;br /&gt;
*** Preprocessor -&amp;gt; Additional include directories: path to Libs.&lt;br /&gt;
** Link tab:&lt;br /&gt;
*** General -&amp;gt; Object/library modules: kernel32.lib hdf5.lib hdf5_hl.lib hdf5_fortran.lib zlib.lib szlib.lib netcdf.lib netcdf_.lib &lt;br /&gt;
*** Input -&amp;gt; Additional library path: path to Libs.&lt;br /&gt;
* Buil -&amp;gt; Rebuild All&lt;br /&gt;
&lt;br /&gt;
To run this executable, copy ''netcdf.dll'' to its directory.&lt;br /&gt;
To work with large files, compile with: Project -&amp;gt; Settings -&amp;gt; Link tab -&amp;gt; Reserve: 10^6.&lt;br /&gt;
To convert [[Meteo|WRF]] files or work with other projection beside UTM and Lambert Conformal, ConvertToHDF5 must be compiled with [[PROJ4]] library. To do that:&lt;br /&gt;
* Same settings as above.&lt;br /&gt;
* Project -&amp;gt; Add to Project -&amp;gt; Files:&lt;br /&gt;
** ModuleWRFFormat.f90&lt;br /&gt;
** Proj4.f90&lt;br /&gt;
* Project -&amp;gt; Settings:&lt;br /&gt;
** Fortran tab -&amp;gt; Predefined Preprocessor symbols: _USE_PROJ4&lt;br /&gt;
** Link tab -&amp;gt; General -&amp;gt; Object/library modules: add libfproj4.lib (Note: ''libfproj4.lib'' and ''proj4.inc'' must be in Libs folder)&lt;br /&gt;
* Build -&amp;gt; Rebuild All.&lt;br /&gt;
&lt;br /&gt;
===File management===&lt;br /&gt;
&lt;br /&gt;
====Glue files====&lt;br /&gt;
This action consists in joining or glue in a single HDF5 file two or more HDF5 files having the same HDF5 data groups and referring to time periods which come in sequence. Both sets of 2D and 3D HDF5 files can be glued.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Glue MOHID Water results files from several runs produced in continuous running of the model, for storage space economy reasons. Can be used to join data from other origins (e.g. results of meteorological models) as long as the HDF5 format is the one supported by MOHID Water.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 files to be glued. &amp;quot;Grid&amp;quot; and &amp;quot;Results&amp;quot; data groups should be equal in all these files.&lt;br /&gt;
&lt;br /&gt;
'''Output:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with glued &amp;quot;Results&amp;quot; data. &amp;quot;Residual&amp;quot; and &amp;quot;Statistics&amp;quot; HDF5 data groups are not copied to the output file since they are time period specific (different values potentially occour in each file). General statistics can be calculated for the glued HDF5 file data using tool [[HDF5Statistics]].&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#GLUES HDF5 FILES|GLUES HDF5 FILES]].&lt;br /&gt;
&lt;br /&gt;
===Grid interpolation===&lt;br /&gt;
&lt;br /&gt;
====Interpolate files====&lt;br /&gt;
This action performs the conversion of one HDF5 file data existing in one 2D or 3D spatial grid to another 2D or 3D spatial grid, creating a new HDF5 file. The interpolation is performed only for the data located a time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
The HDF5 file containing data to be interpolated is called the '''father file'''.&lt;br /&gt;
&lt;br /&gt;
In case of 3D interpolation the application conducts first the horizontal grid interpolation&lt;br /&gt;
(keeping father geometry) and only after it conducts the vertical interpolation (from father geometry to new geometry).&lt;br /&gt;
&lt;br /&gt;
Several types of 2D interpolation are available for use: bilinear, spline 2D and triangulation.&lt;br /&gt;
For vertical interpolation (used in 3D interpolation) can be supplied several polinomial degrees for interpolation.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain an HDF5 file with data for forcing or providing initial conditions for a MOHID Water model, e.g. a meteorological forcing file.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
For 2D/3D interpolation:&lt;br /&gt;
&lt;br /&gt;
- father HDF5 file;&lt;br /&gt;
&lt;br /&gt;
- father horizontal data grid, in a grid data file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
- new horizontal data grid, in a grid data file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
For 3D interpolation also needed:&lt;br /&gt;
&lt;br /&gt;
- father vertical geometry, in a geometry file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
- new vertical geometry, in a geometry file in the format supported by MOHID;&lt;br /&gt;
&lt;br /&gt;
- auxiliary horizontal data grid, in a grid data file in the format supported by MOHID; this file is used for horizontal grid interpolation in 3D interpolation operations.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with interpolated data. In case of 3D interpolation also produced an auxiliary HDF5 file with the result of the horizontal grid interpolation, which can be inspected to check if this operation is well performed.&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#INTERPOLATE GRIDS|INTERPOLATE GRIDS]].&lt;br /&gt;
&lt;br /&gt;
====Patch files====&lt;br /&gt;
This action consists in performing an interpolation of HDF5 data between grids, as in action [[#Interpolate files|Interpolate files]], but considering more than one HDF5 file as containing data to be interpolated to the new grid and a priority scale. The interpolation is performed only for the data located in the time window specified by the user. The present version of this action operates only on 2D data.&lt;br /&gt;
&lt;br /&gt;
Each HDF5 file containing data to be interpolated is called a '''father file''' and has an user-attributed '''priority level''' to be respected in the interpolation process: for each new grid cell the ConvertToHDF5 application will look for data first on the Level 1 father file and only in the case this data is inexistent will it look for data in Level 2 file, proceeding in looking for higher level files if no data is found subsequentely.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
To obtain an HDF5 file with data from several HDF5 files each containing data with different spatial resolution and only for a specific part of the new grid. This is, for instance, the case when one is preparing a best resolution meteorological HDF5 file for forcing MOHID Water from several meteorological model domains, having different spatial resolution and span, since the best resolution data is not available for all new grid cells.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
The new horizontal data grid, in a grid data file in the format supported by MOHID, and for each father file:&lt;br /&gt;
&lt;br /&gt;
- level of priority: 1 = maximum priority, priority decreases with increasing level value;&lt;br /&gt;
&lt;br /&gt;
- data grid, in the form of a grid data file in the format supported by MOHID.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with patched data.&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#PATCH HDF5 FILES|PATCH HDF5 FILES]].&lt;br /&gt;
&lt;br /&gt;
===Format conversion===&lt;br /&gt;
&lt;br /&gt;
====Meteorological model data====&lt;br /&gt;
Mohid does not simulate explicitly the atmosphere, but needs information about atmospheric properties in time and space. This requires that atmospheric properties are supplied to MOHID Water in supported formats. These formats can be derived from meteorological data in HDF5 format. Because the results of meteorological models are accessed in different formats conversion is required. &lt;br /&gt;
&lt;br /&gt;
The formats currently convertible to HDF5 in ConvertToHDF5 include the MM5 and the ERA40. These are succintly detailed in the next sections.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''ERA40''=====&lt;br /&gt;
This format refers to the European Centre for Medium-Range Weather Forecasts (ECMWF) 40 years re-analysises results, acessed by site http://data.ecmwf.int/data/d/era40_daily/. This data is available for several meteorological variables with maximum 6 hour periodicity for days in the period from 1957-09-01 to 2002-08-31. &lt;br /&gt;
&lt;br /&gt;
ERA40 data files are supplied by ECMWF in a NetCDF format and with an user-costumized time window, periodicity (time step range from 6 hours to a day) and meteorological properties set. The ERA40 meteorological properties which are recognized by MOHID are presented bellow together with the correspondent MOHID name: &lt;br /&gt;
&lt;br /&gt;
 ---ERA40 NAME---         ---MOHID NAME---&lt;br /&gt;
   sshf                     sensible heat                &lt;br /&gt;
   slhf                     latent heat                  &lt;br /&gt;
   msl                      atmospheric pressure &lt;br /&gt;
   tcc                      cloud cover &lt;br /&gt;
   p10u                     wind velocity X&lt;br /&gt;
   p10v                     wind velocity Y&lt;br /&gt;
   p2t                      air temperature&lt;br /&gt;
   ewss                     wind stress X&lt;br /&gt;
   nsss                     wind stress Y&lt;br /&gt;
&lt;br /&gt;
The standard ConvertToHDF5 action is to convert to HDF5 the data referring to all MOHID Water recognized property available in the ERA40 file, producing an individual HDF5 file for each property. The name of each HDF5 file generated includes the ERA40 meteorological property identificator correspondent to the data contained.&lt;br /&gt;
&lt;br /&gt;
Alternatively, ConvertToHDF5 can copy to a single ASCII file the heading information concerning each meteorological variable considered in the original ERA40 file.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain an HDF5 file with data suitable for being used for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
ERA40 NetCDF file.&lt;br /&gt;
&lt;br /&gt;
'''Output:'''&lt;br /&gt;
&lt;br /&gt;
One HDF5 file for each meteorological property contained in the original NetCDF file.&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT ERA40 FORMAT|CONVERT ERA40 FORMAT]].&lt;br /&gt;
&lt;br /&gt;
=====''Aladin''=====&lt;br /&gt;
This format relates to Aladin meteorological model results. Some of the atmospheric property needed by MOHID Water is present in Aladin output files, enabling to run prediction simulations with MOHID Water when access to Aladin prevision files is available.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts Aladin results files from the original format to HDF5 format, allowing the easy use of these results in the MOHID framework. Conversion is only performed for the MM5 properties and the time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Produce HDF5 meteorological data usable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
Aladin netcdf results file to convert.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
An HDF5 file with Aladin results and a grid data file in MOHID format with the Aladin grid pseudo-information: a fake orography is created of 100 m depth.&lt;br /&gt;
This last file can be used to interpolate the Aladin data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]), for instance to produce an HDF5 file suitable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Compilation:'''&lt;br /&gt;
&lt;br /&gt;
Caution! The ConvertToHDF5 executable must be compiled with the [[Big-endian little-endian|Big-Endian]] option set (see compatibility in the project's settings).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT ALADIN FORMAT|CONVERT ALADIN FORMAT]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''MM5''=====&lt;br /&gt;
This format relates to the Fifth-Generation NCAR / Penn State Mesoscale Model (MM5) output files format. Almost every atmospheric property needed by MOHID Water is present in MM5 output files.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts MM5 results files from the original format to HDF5 format, allowing the easy use of these results in the MOHID framework. Conversion is only performed for the MM5 properties and the time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
Besides the conversion, the application can calculate some properties not contained in&lt;br /&gt;
the MM5 files using the available information: these are wind stress, relative humidity and mean sea level pressure.&lt;br /&gt;
&lt;br /&gt;
For conversion to be completed it is required the horizontal grid information of MM5 results which is available in special TERRAIN files.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Produce HDF5 meteorological data usable to force MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
MM5 results file to convert and MM5 TERRAIN file. The TERRAIN file supplies the MM5 results grid information. &lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
A HDF5 file with MM5 results and a grid data file in MOHID format with the MM5 grid information.&lt;br /&gt;
This last file can be used to interpolate the MM5 data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]), for instance to produce an HDF5 file suitable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Compilation:'''&lt;br /&gt;
&lt;br /&gt;
Caution! The ConvertToHDF5 executable must be compiled with the [[Big-endian little-endian|Big-Endian]] option set (see compatibility in the project's settings).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT MM5 FORMAT|CONVERT MM5 FORMAT]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''WRF''=====&lt;br /&gt;
This format relates to the Weather Research and Forecast model (WRF) output files format. Almost every atmospheric property needed by MOHID Water is present in WRF output files.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts WRF results files from the original format to HDF5 format, allowing the easy use of these results in the MOHID framework. Conversion is only performed for the WRF properties and the time window specified by the user.&lt;br /&gt;
&lt;br /&gt;
Besides the conversion, the application can calculate some properties not contained in&lt;br /&gt;
the WRF files using the available information: these are wind stress, relative humidity and mean sea level pressure.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Produce HDF5 meteorological data usable to force MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
WRF direct output file.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
An HDF5 file with WRF results and a grid data file in MOHID format with the WRF grid information.&lt;br /&gt;
This last file can be used to interpolate the WRF data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]), for instance to produce an HDF5 file suitable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Compilation:'''&lt;br /&gt;
&lt;br /&gt;
This action needs netcdf and proj4 libraries.&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT WRF FORMAT|CONVERT WRF FORMAT]].&lt;br /&gt;
&lt;br /&gt;
====Ocean model data====&lt;br /&gt;
Ocean model data, available in diverse formats, can be used by MOHID Water to specify boundary (open ocean boundary and surface), initial conditions or for validation. These uses require that the model data is in HDF5 format and conversion is therefore needed.&lt;br /&gt;
&lt;br /&gt;
Currently the large scale ocean models formats convertible into HDF5 by ConvertToHDF5 includes MERCATOR.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''MERCATOR''=====&lt;br /&gt;
MERCATOR data files are supplied in a NetCDF format and with an user-costumized spatial window and periodicity. Water level and water properties (temperature and salinity) data is available in type T files, velocity component u data is available in type U files and velocity component v data is available in type V files. The type of data of a specific MERCATOR file is generally indicated in the file name.&lt;br /&gt;
&lt;br /&gt;
The standard ConvertToHDF5 action is to convert to HDF5 the data referring to temperature, salinity, water level, component u of velocity and component v of velocity.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain HDF5 MERCATOR data usable for forcing or validation of MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
NetCDF MERCATOR results data files and NetCDF MERCATOR grid data files. It should be provided one grid data file of each type: T, U and V. These are generally provided by the MERCATOR services together with the results files.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
One HDF5 file containing all properties contained in the recognized set of properties (temperature, salinity, water level, velocity u and velocity v) and the correspondent grid data and geometry files, containing respectively the horizontal grid and the vertical discretization of the HDF5 file. The grid data and geometry files can be used afterwards to interpolate the MERCATOR data to another grid and geometry (see [[#Interpolate files|Interpolate files]]).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT MERCATOR FORMAT|CONVERT MERCATOR FORMAT]].&lt;br /&gt;
&lt;br /&gt;
====Climatological data====&lt;br /&gt;
Climatological data can be used in MOHID Water to specify boundary (open ocean boundary and surface), initial conditions or for validation, in case more realistic data (measurements or model) data is unavailable. This data is generally supplied by producers in formats not readly usable by MOHID Water which justifies the existence of a conversion tool.&lt;br /&gt;
&lt;br /&gt;
Two climatological data format conversions are implemented in ConvertToHDF5: Levitus ocean data and Hellerman Rosenstein meteorological data.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''Levitus''=====&lt;br /&gt;
The Levitus climatology provides results for water temperature and salinity.&lt;br /&gt;
The ConvertToHDF5 action converts the climatological data for the properties and spatial window requested by the user. &lt;br /&gt;
Typically, it requires 3 steps to complete the task:&lt;br /&gt;
&lt;br /&gt;
- convert levitus format &lt;br /&gt;
&lt;br /&gt;
- extrapolate the data to the whole levitus domain(required to avoid uncoincidental coastlines) &lt;br /&gt;
&lt;br /&gt;
- interpolate with the model grid(bathymetry)&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain climatological data in HDF5 format to use as boundary forcing and/or initial condition specification in MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
Levitus climatological data files, one per property and per time period (e.g a month).&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with Levitus climatological data, grid data file with the horizontal&lt;br /&gt;
grid of the data and a geometry file with vertical discretization of the data (MOHID formats).&lt;br /&gt;
The grid data and the geometry files can be used to interpolate the climatological data from the original grid to a new grid (see [[#Interpolate files|Interpolate files]]).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT LEVITUS FORMAT|CONVERT LEVITUS FORMAT]].&lt;br /&gt;
&lt;br /&gt;
=====''Hellerman Rosenstein''=====&lt;br /&gt;
This is a meteorological climatology providing wind stress. There is a file per wind stress component. Since the data refer to surface values it is a 2D field.&lt;br /&gt;
&lt;br /&gt;
The ConvertToHDF5 action converts the climatological data for the properties and spatial window provided by the user.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain climatological data in HDF5 format to use as meteorological forcing in MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
Hellerman Rosenstein climatological data ASCII files, one per wind stress component.&lt;br /&gt;
&lt;br /&gt;
'''Ouput:'''&lt;br /&gt;
&lt;br /&gt;
HDF5 file with Hellerman Rosenstein climatological data and grid data file with the horizontal&lt;br /&gt;
grid of the climatological data. This grid data file can be used to interpolate the climatological data from the original horizontal grid to a new grid (see [[#Interpolate files|Interpolate files]]).&lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT HELLERMAN ROSENSTEIN ASCII|CONVERT HELLERMAN ROSENSTEIN ASCII]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====''World Ocean Atlas 2005''=====&lt;br /&gt;
The World Ocean Atlas (WOA) 2005 climatology provides results for water temperature, salinity and several water quality and biology properties.&lt;br /&gt;
&lt;br /&gt;
Description, Action and Input Files are described in a separate page: [[ConvertToHDF5 WOA2005]].&lt;br /&gt;
&lt;br /&gt;
==Input file (ConvertToHDF5Action.dat)==&lt;br /&gt;
===General structure===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt; (block containing instructions for running a specific action) &lt;br /&gt;
 ACTION                    : ... (intended action)&lt;br /&gt;
 ... (action specific instructions)&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : ...&lt;br /&gt;
 ...&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===GLUES HDF5 FILES===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : GLUES HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 3D_FILE                   : 0/1 (0 = 2D file, 1 = 3D file)&lt;br /&gt;
 &lt;br /&gt;
 TIME_GROUP                : ... (Default=&amp;quot;Time&amp;quot;. Other option: &amp;quot;SurfaceTime&amp;quot;.)&lt;br /&gt;
 &lt;br /&gt;
 BASE_GROUP                : ... (Default=&amp;quot;Results&amp;quot;. Other options: &amp;quot;Residual&amp;quot;, &amp;quot;SurfaceResults&amp;quot;.)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 &lt;br /&gt;
 (block of HDF5 data files)&lt;br /&gt;
 &amp;lt;&amp;lt;begin_list&amp;gt;&amp;gt;&lt;br /&gt;
 ... (path/name of HDF5 file with data to be included in glue, one per line, at least two files)&lt;br /&gt;
 ...                      &lt;br /&gt;
 &amp;lt;&amp;lt;end_list&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===INTERPOLATE GRIDS===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION     : ... (type of horizontal interpolation: 1 = Bilinear, 2 = Spline2D,&lt;br /&gt;
                                  3 = Triangulation)&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION_WINDOW      : ... ... ... ... (2D spatial window to consider for interpolation: &lt;br /&gt;
                                              Xmin Ymin Xmax Ymax; default = all domain)&lt;br /&gt;
 &lt;br /&gt;
 START                     : ... (start date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 END                       : ... (end date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D           : 0/1 (0 = 2D interpolation, 1 = 3D interpolation)&lt;br /&gt;
 &lt;br /&gt;
 FATHER_FILENAME           : ... (path/name of input HDF5 file with data to be interpolated)&lt;br /&gt;
 FATHER_GRID_FILENAME      : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization of input HDF5 file)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of output HDF5 file to be created)&lt;br /&gt;
 NEW_GRID_FILENAME         : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization intended for output HDF5 file)&lt;br /&gt;
 &lt;br /&gt;
 EXTRAPOLATE_2D            : 0/1/2/3/4/5 (2D extrapolation: 0=no extrapolation, 1=medium&lt;br /&gt;
                                      triangulation, 2=high triangulation, &lt;br /&gt;
                                      3=nearest neighbour, 4=nearest cell, &lt;br /&gt;
                                      5=constant value)&lt;br /&gt;
 &lt;br /&gt;
 EXTRAPOLATE_VALUE         : ... (name of the value to extrapolate to when EXTRAPOLATE_2D is&lt;br /&gt;
                                  set to constant value (5))&lt;br /&gt;
 &lt;br /&gt;
 DO_NOT_BELIEVE_MAP        : 0/1 (0=consider input HDF5 file map, 1=do not consider input HDF5&lt;br /&gt;
                                  file map)&lt;br /&gt;
 &lt;br /&gt;
 BASE_GROUP                : ... (name of base group of HDF5 variables containing data to be &lt;br /&gt;
                                  interpolated; default is &amp;quot;/Results&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 (if INTERPOLATION3D : 1 also required:)&lt;br /&gt;
 FATHER_GEOMETRY           : ... (path/name of file (MOHID format) with vertical discretization&lt;br /&gt;
                                  of input HDF5 file)&lt;br /&gt;
 NEW_GEOMETRY              : ... (path/name of file (MOHID format) with vertical discretization&lt;br /&gt;
                                  intended for output HDF5 file)&lt;br /&gt;
 POLI_DEGREE               : 1/... (degree of vertical interpolation: 1=linear, ...)&lt;br /&gt;
 &lt;br /&gt;
 AUX_GRID_FILENAME         : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization intended for auxiliar output HDF5 file;&lt;br /&gt;
                                  default is file provided in NEW_GRID_FILENAME)&lt;br /&gt;
 &lt;br /&gt;
 AUX_OUTPUTFILENAME        : ... (path/name of auxiliar output HDF5 file to contain result&lt;br /&gt;
                                  of horizontal grid interpolation)   &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - the file indicated in AUX_GRID_FILENAME can be different from the one indicated in&lt;br /&gt;
   NEW_GRID_FILENAME in terms of bathymetry, while the horizontal grid should be, commonly, the&lt;br /&gt;
   same: this altered bathymetry can be used to extend the water column in the original data so&lt;br /&gt;
   that the process of vertical interpolation is done easily;&lt;br /&gt;
 &lt;br /&gt;
 - in case of INTERPOLATION3D : 1, ConvertToHDF5 can generate new versions of bathymetry which &lt;br /&gt;
   are consistent with the geometry definition (extension is '.new'); there are possibly three&lt;br /&gt;
   bathymetry changes referring to father grid, new grid and aux grid (the same bathymetry is&lt;br /&gt;
   not altered twice); although initially new and aux grid are the same they can result &lt;br /&gt;
   different because of bathymetry changes;&lt;br /&gt;
 &lt;br /&gt;
 - in case the new geometry is 2D and father geometry is 3D then POLI_DEGREE : 1 &lt;br /&gt;
   (linear interpolation) should be used;&lt;br /&gt;
 &lt;br /&gt;
 - EXTRAPOLATE_2D : 1/2/3/4/5 should be considered if it is expected that the coast line is not&lt;br /&gt;
   coincidental in the father and new grids, to avoid lack of data in the interpolation&lt;br /&gt;
   process; extrapolation is performed for all cells even the land cells; &lt;br /&gt;
 &lt;br /&gt;
 - in case of DO_NOT_BELIEVE_MAP : 1 the application generates a map based on cells where&lt;br /&gt;
   interpolation results are available; this causes that if EXTRAPOLATE_2D : 1/2/3/4/5 is used&lt;br /&gt;
   the AUX_GRID_FILENAME should not have land cells in order for the new map to be concurrent&lt;br /&gt;
   with the result of extrapolation and avoid errors generation, specially if INTERPOLATION3D :&lt;br /&gt;
   1 is considered.&lt;br /&gt;
&lt;br /&gt;
===PATCH HDF5 FILES===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : PATCH HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION     : ... (type of interpolation: 3 = Triangulation, default and only&lt;br /&gt;
                                  one implemented)&lt;br /&gt;
 &lt;br /&gt;
 START                     : ... (start date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 END                       : ... (end date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 &lt;br /&gt;
 (block for each father HDF5 file, should be at least two)&lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                     : ... (integer priority level: 1 = highest, increase for lower&lt;br /&gt;
                                  priority)&lt;br /&gt;
 FATHER_FILENAME           : ... (path/name of input HDF5 file with data to be interpolated)&lt;br /&gt;
 FATHER_GRID_FILENAME      : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization of input HDF5 file)&lt;br /&gt;
 N_REMOVE_FRAME            : 0   (width, in number of cells, of frame to remove)&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of output HDF5 file to be created)&lt;br /&gt;
 NEW_GRID_FILENAME         : ... (path/name of input grid data file with horizontal&lt;br /&gt;
                                  discretization intended for output HDF5 file)&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CONVERT ERA40 FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT ERA40 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                  : ... (path/name of ERA40 NetCDF file)&lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
                                 (root of name for all files produced)&lt;br /&gt;
 &lt;br /&gt;
 CONVERT_TO_ASCII          : 0/1 (1 = convert variable heading info for ASCII file; 0 = default)&lt;br /&gt;
 CONVERT_TO_HDF5           : 0/1 (1 = convert to HDF5 file; 0 = default)&lt;br /&gt;
 GRIDTO180                 : 0/1 (1 = convert grid from [0 360] to [-180 180], 0 = default)&lt;br /&gt;
 &lt;br /&gt;
 XX_VARIABLE               : ... (name of longitude variable in the input file: usual name &lt;br /&gt;
                                  is &amp;quot;longitude&amp;quot;)&lt;br /&gt;
 YY_VARIABLE               : ... (name of longitude variable in the input file: usual name &lt;br /&gt;
                                  is &amp;quot;latitude&amp;quot;)&lt;br /&gt;
 TIME_VARIABLE             : ... (name of time variable in the input file: usual name is&lt;br /&gt;
                                  &amp;quot;time&amp;quot;)&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - either CONVERT_TO_ASCII : 1 or CONVERT_TO_HDF5 : 1 must be chosen for any action to be&lt;br /&gt;
 performed by ConvertToHDF5;&lt;br /&gt;
 &lt;br /&gt;
 - when CONVERT_TO_HDF5 : 1 an HDF5 file is produced for every variable contained in the&lt;br /&gt;
 original ERA40 file; the name of each file is composed of the name indicated on FILENAME&lt;br /&gt;
 concatenated with the ERA40 variable identifier;&lt;br /&gt;
 &lt;br /&gt;
 - to the XX_VARIABLE, YY_VARIABLE and TIME_VARIABLE keywords should generally be  &lt;br /&gt;
 specified &amp;quot;longitude&amp;quot;, &amp;quot;latitude&amp;quot; and &amp;quot;time&amp;quot;, respectively; the option to&lt;br /&gt;
 include as keywords was made only to make the application robust to future variable name&lt;br /&gt;
 changes.&lt;br /&gt;
&lt;br /&gt;
===CONVERT MM5 FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT MM5 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                  : ... (path/name of MM5 file)&lt;br /&gt;
 TERRAIN_FILENAME          : ... (path/name of MM5 TERRAIN file)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : ... (path/name of grid data file with horizontal grid of MM5 data&lt;br /&gt;
                                  to be created)&lt;br /&gt;
 &lt;br /&gt;
 COMPUTE_WINDSTRESS        : 0/1 (1 = compute and write wind stress field; 0 = default)&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY : 0/1 (1 = compute and write relative humidity field; 0 = default)&lt;br /&gt;
 COMPUTE_PRECIPITATION     : 0/1 (1 = compute and write precipitation field; 0 = default)&lt;br /&gt;
 COMPUTE_WINDMODULUS       : 0/1 (1 = compute wind modulus; 0 = default)&lt;br /&gt;
 &lt;br /&gt;
 WRITE_XYZ                 : 0/1 (1 = write xyz center grid cells; 0 = default)&lt;br /&gt;
 WRITE_TERRAIN             : 0/1 (1 = write MM5 TERRAIN fields; 0 = default)&lt;br /&gt;
 &lt;br /&gt;
 START                     : ... (start date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
 END                       : ... (end date for output file: yyyy mm dd hh mm ss)&lt;br /&gt;
  &lt;br /&gt;
 (block of MM5 properties to convert)&lt;br /&gt;
 &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;&lt;br /&gt;
 ... (name of MM5 property to convert do HDF5 format, one per line)&lt;br /&gt;
 ... &lt;br /&gt;
 &amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - the name of each MM5 property to convert in &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;...&amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt; block must&lt;br /&gt;
 conform to the MOHID designation specified in code of ModuleGlobalData; the correspondence is &lt;br /&gt;
 the following (see [[Module_InterfaceWaterAir]] for a more detailed explanation).&lt;br /&gt;
 &lt;br /&gt;
           ---MM5 NAME---    ---MOHID NAME---&lt;br /&gt;
             T2             air temperature&lt;br /&gt;
             PSTARCRS       atmospheric pressure&lt;br /&gt;
             U10            wind velocity X&lt;br /&gt;
             V10            wind velocity Y&lt;br /&gt;
             UST            wind shear velocity&lt;br /&gt;
             LHFLUX         latent heat&lt;br /&gt;
             SWDOWN         sensible heat&lt;br /&gt;
             SWDOWN         solar radiation&lt;br /&gt;
             LWDOWN         infrared radiation&lt;br /&gt;
             SWOUT          top outgoing shortwave radiation&lt;br /&gt;
             LWOUT          top outgoing longwave radiation&lt;br /&gt;
             SOIL T 1       soil temperature layer 1&lt;br /&gt;
             SOIL T 1       soil temperature layer 2&lt;br /&gt;
             SOIL T 1       soil temperature layer 3&lt;br /&gt;
             SOIL T 1       soil temperature layer 4&lt;br /&gt;
             SOIL T 1       soil temperature layer 5&lt;br /&gt;
             SOIL T 1       soil temperature layer 6&lt;br /&gt;
             Q2             2-meter mixing ratio&lt;br /&gt;
             TSEASFC        sea water temperature&lt;br /&gt;
             PBL HGT        PBL height&lt;br /&gt;
             PBL REGIME     PBL regime&lt;br /&gt;
             RAIN CON       accumulated convective precipitation        (cm)&lt;br /&gt;
             RAIN NON       accumulated non-convective precipitation    (cm)&lt;br /&gt;
             GROUND T       ground temperature&lt;br /&gt;
             RES TEMP       infinite reservoir slab temperature&lt;br /&gt;
             U              wind velocity X_3D&lt;br /&gt;
             V              wind velocity Y_3D&lt;br /&gt;
             W              wind velocity Z_3D&lt;br /&gt;
             T              air temperature_3D&lt;br /&gt;
             PP             atmospheric pressure_3D&lt;br /&gt;
             Q              mixing ratio_3D&lt;br /&gt;
             CLW            cloud water mixing ratio_3D&lt;br /&gt;
             RNW            rain water mixing ratio_3D&lt;br /&gt;
             ICE            cloud ice mixing ratio_3D&lt;br /&gt;
             SNOW           snow mixing ratio_3D&lt;br /&gt;
             RAD TEND       atmospheric radiation tendency_3D&lt;br /&gt;
&lt;br /&gt;
===CONVERT ALADIN FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT ALADIN FORMAT&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : aladin.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : aladin_griddata.dat&lt;br /&gt;
 &lt;br /&gt;
 !Put here the name of any netcdf file for grid-data generation's sake.&lt;br /&gt;
 INPUT_GRID_FILENAME      :   D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKCLOUD_OPASYMP_19723_20088.nc&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 (path to aladin netcdf file)\ALADIN_BULKIR_OPASYMP_19723_20088.nc&lt;br /&gt;
 ...&lt;br /&gt;
 &amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ''Remarks:''&lt;br /&gt;
 &lt;br /&gt;
 - the name of each Aladin property to convert in &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;...&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt; block must conform to the following variables&lt;br /&gt;
 &lt;br /&gt;
           ---ALADIN NAME---    ---MOHID NAME---&lt;br /&gt;
             soclotot            CloudCover_&lt;br /&gt;
             sohumrel            RelativeHumidity_&lt;br /&gt;
             sofluxir            NonSolarFlux_&lt;br /&gt;
             sosspres            AtmosphericPressure_&lt;br /&gt;
             sosolarf            SolarRadiation_&lt;br /&gt;
             sotemair            AirTemperature_&lt;br /&gt;
             sowinmod            WindModulus_&lt;br /&gt;
             sowaprec            Precipitation_&lt;br /&gt;
             sozotaux            WindStressX_&lt;br /&gt;
             sometauy            WindStressY_&lt;br /&gt;
             sowindu10           WindVelocityX_&lt;br /&gt;
             sowindv10           WindVelocityY_&lt;br /&gt;
&lt;br /&gt;
===CONVERT MERCATOR FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT MERCATOR FORMAT&lt;br /&gt;
 &lt;br /&gt;
 READ_OPTION               : 1/2/3/4 (version of MERCATOR files)&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : ... (path/name of grid data with horizontal discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME  : ... (path/name of geometry file with vertical discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 &lt;br /&gt;
 (if READ_OPTION : 1:)&lt;br /&gt;
 BASE_BULLETIN             : ...&lt;br /&gt;
 DATES_FILE                : ...&lt;br /&gt;
 NUM_DATES                 : ... &lt;br /&gt;
 &lt;br /&gt;
 (if READ_OPTION : 2/3:)&lt;br /&gt;
 INPUT_GRID_FILENAME       : ... (path/name of file with horizontal discretization of water&lt;br /&gt;
                                  properties and water level data)&lt;br /&gt;
 (if READ_OPTION : 2:)&lt;br /&gt;
 INPUT_GRID_FILENAME_U     : ... (path/name of file with horizontal discretization of velocity&lt;br /&gt;
                                  component U data)&lt;br /&gt;
 INPUT_GRID_FILENAME_V     : ... (path/name of file with horizontal discretization of velocity&lt;br /&gt;
                                  component V data)&lt;br /&gt;
 &lt;br /&gt;
 (if READ_OPTION : 3:)&lt;br /&gt;
 INPUT_BATHY_FILENAME      : ... (path/name of file with bathymetry)&lt;br /&gt;
     &lt;br /&gt;
 (if READ_OPTION : 3/4:)&lt;br /&gt;
 CALC_BAROTROPIC_VEL       : 0/1 (1 = calculate barotropic velocity, 0 = not calculate; &lt;br /&gt;
                                  default = 0)&lt;br /&gt;
 &lt;br /&gt;
 (if CALC_BAROTROPIC_VEL : 1 and READ_OPTION : 3:)&lt;br /&gt;
 INPUT_MESH_ZGRID_FILENAME : ... (path/name of file with information about layers ticknesses)&lt;br /&gt;
 &lt;br /&gt;
 (block of MERCATOR data files)&lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 ... (path/name of MERCATOR NetCDF data file, one per line, can be several)&lt;br /&gt;
 ... &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CONVERT LEVITUS FORMAT===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT LEVITUS FORMAT&lt;br /&gt;
  &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : ... (path/name of grid data with horizontal discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME  : ... (path/name of geometry file with vertical discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
 &lt;br /&gt;
 PERIODICITY               : ... (periodicity of Levitus data: &amp;quot;monthly&amp;quot;/&amp;quot;annual&amp;quot;; default is&lt;br /&gt;
                                  &amp;quot;monthly&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 SPATIAL_RESOLUTION        : ... (spatial resolution (degrees) of horizontal Levitus grid)&lt;br /&gt;
 &lt;br /&gt;
 FILL_VALUE                : ... (real value identificator for missing data; default is &lt;br /&gt;
                                  &amp;quot;-99.999900&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 (definition of spatial window to be present in output HDF5 file)&lt;br /&gt;
 LOWER_LEFT_CORNER         : ... ... (longitude and latitude (degrees) of south west corner)&lt;br /&gt;
 UPPER_RIGHT_CORNER        : ... ... (longitude and latitude (degrees) of north east corner)&lt;br /&gt;
 &lt;br /&gt;
 (block for each water property to be present in output HDF5 file, can be several)&lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                      : ... (name of property)&lt;br /&gt;
 ANNUAL_FILE               : ... (path/name of Levitus annual file)&lt;br /&gt;
 &lt;br /&gt;
 (block of Levitus data files)&lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 ... (path/name of Levitus data file (e.g. a monthly data file), one per line, can be several)&lt;br /&gt;
 ... &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CONVERT HELLERMAN ROSENSTEIN ASCII===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT HELLERMAN ROSENSTEIN ASCII&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : ... (path/name of grid data with horizontal discretization to be&lt;br /&gt;
                                  created)&lt;br /&gt;
  &lt;br /&gt;
 PERIODICITY               : ... (periodicity of Hellerman Rosenstein data: &amp;quot;monthly&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 SPATIAL_RESOLUTION        : ... (spatial resolution (degrees) of horizontal Hellerman&lt;br /&gt;
                                  Rosenstein grid: default and only allowed value is &amp;quot;2.&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 FILL_VALUE                : ... (real value identificator for missing data; default is &lt;br /&gt;
                                  &amp;quot;-99.999900&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 (definition of spatial window to be present in output HDF5 file)&lt;br /&gt;
 LOWER_LEFT_CORNER         : ... ... (longitude and latitude (degrees) of south west corner)&lt;br /&gt;
 UPPER_RIGHT_CORNER        : ... ... (longitude and latitude (degrees) of north east corner)&lt;br /&gt;
   &lt;br /&gt;
 (block for each Hellerman Rosenstein data file)&lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                      : ... (name of property: &amp;quot;wind stress X&amp;quot;/&amp;quot;wind stress Y&amp;quot;)&lt;br /&gt;
 FILE                      : ... (path/name Hellerman Rosenstein file)&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Samples==&lt;br /&gt;
All sample files are named ''ConvertToHDF5Action.dat''.&lt;br /&gt;
&lt;br /&gt;
===Glue several MOHID(.hdf5) files===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : GLUES HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : SurfaceHydro_OP.hdf5&lt;br /&gt;
  &lt;br /&gt;
 &amp;lt;&amp;lt;begin_list&amp;gt;&amp;gt;&lt;br /&gt;
 D:\Projectos\SurfaceHydrodynamic_21.hdf5&lt;br /&gt;
 D:\Projectos\SurfaceHydrodynamic_22.hdf5&lt;br /&gt;
 &amp;lt;&amp;lt;end_list&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Interpolate 2D MOHID(.hdf5) files to a new grid===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION    : 1&lt;br /&gt;
 FATHER_FILENAME          : D:\Projectos\MohidRun\test\res\Lagrangian_1.hdf5 &lt;br /&gt;
 OUTPUTFILENAME           : OilSpillThickness_GridRegular.hdf5&lt;br /&gt;
  &lt;br /&gt;
 START                    : 2006 6 21 17 22 30&lt;br /&gt;
 END                      : 2006 6 22 17 22 0&lt;br /&gt;
  &lt;br /&gt;
 FATHER_GRID_FILENAME     : D:\Projectos\MohidRun\GeneralData\batim\Tagus.dat_A&lt;br /&gt;
 NEW_GRID_FILENAME        : TagusConstSpacing.dat&lt;br /&gt;
  &lt;br /&gt;
 BASE_GROUP               : /Results/Oil/Data_2D&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Interpolate 3D MOHID(.hdf5) files to a new grid===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION   : 1&lt;br /&gt;
 FATHER_FILENAME         : D:\Projectos\MohidRun\test\res\Lagrangian_1.hdf5 &lt;br /&gt;
 OUTPUTFILENAME          : OilSpillThickness_GridRegular.hdf5&lt;br /&gt;
 &lt;br /&gt;
 START                   : 2006 6 21 17 22 30&lt;br /&gt;
 END                     : 2006 6 22 17 22 0&lt;br /&gt;
 &lt;br /&gt;
 FATHER_GRID_FILENAME    : D:\Projectos\MohidRun\GeneralData\batim\Tagus.dat_A&lt;br /&gt;
 NEW_GRID_FILENAME       : TagusConstSpacing.dat&lt;br /&gt;
 &lt;br /&gt;
 BASE_GROUP              : /Results/Oil/Data_2D&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D         : 1&lt;br /&gt;
 FATHER_GEOMETRY         : D:\Projectos\MohidRun\test\data\Geometry_1.dat&lt;br /&gt;
 NEW_GEOMETRY            : TagusGeometry.dat&lt;br /&gt;
 AUX_GRID_FILENAME       : TagusConstSpacing.dat&lt;br /&gt;
 AUX_OUTPUTFILENAME      : Aux_GridRegular.hdf5&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Patch several MOHID(.hdf5) files to a new grid===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION : PATCH HDF5 FILES&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION   : 3&lt;br /&gt;
 &lt;br /&gt;
 START                   : 2005 2 28 13 0 0&lt;br /&gt;
 END                     : 2005 3 1 13 0 0&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                   : 3&lt;br /&gt;
 FATHER_FILENAME         : K:\MM5output\2005022812_2005030712\MM5OUT_D1.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME    : K:\MM5output\2005022812_2005030712\grid1.dat&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                   : 2&lt;br /&gt;
 FATHER_FILENAME         : K:\MM5output\2005022812_2005030712\MM5OUT_D2.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME    : K:\MM5output\2005022812_2005030712\grid2.dat&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_father&amp;gt;&amp;gt;&lt;br /&gt;
 LEVEL                   : 1&lt;br /&gt;
 FATHER_FILENAME         : K:\MM5output\2005022812_2005030712\MM5OUT_D3.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME    : K:\MM5output\2005022812_2005030712\grid3.dat&lt;br /&gt;
 &amp;lt;&amp;lt;end_father&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME          : MM5Forcing.hdf5&lt;br /&gt;
 NEW_GRID_FILENAME       : K:\Simula\GeneralData\Batim\CostaPortuguesa.dat&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert an ERA40 file to MOHID(.hdf5)===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                  : CONVERT ERA40 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                : D:\Aplica\ERA40\1971ERA1973.nc&lt;br /&gt;
 OUTPUTFILENAME          : D:\Aplica\ERA40\1971ERA1973T2&lt;br /&gt;
 &lt;br /&gt;
 CONVERT_TO_ASCII        : 0&lt;br /&gt;
 CONVERT_TO_HDF5         : 1&lt;br /&gt;
 &lt;br /&gt;
 XX_VARIABLE             : longitude&lt;br /&gt;
 YY_VARIABLE             : latitude&lt;br /&gt;
 TIME_VARIABLE           : time&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert a MM5 file to MOHID(.hdf5)===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                  : CONVERT MM5 FORMAT&lt;br /&gt;
 &lt;br /&gt;
 FILENAME                : K:\MM5output\DataCenter\Modelos\Meteo_IST\Fev2005\MMOUT_D3&lt;br /&gt;
 TERRAIN_FILENAME        : K:\MM5output\DataCenter\Modelos\Meteo_IST\Fev2005\TERRAIN_D3&lt;br /&gt;
 OUTPUT_GRID_FILENAME    : K:\MM5output\DataCenter\Modelos\Meteo_IST\Fev2005\grid3.dat&lt;br /&gt;
 OUTPUTFILENAME          : K:\MM5output\DataCenter\Modelos\Meteo_IST\Fev2005\MM5_D3.hdf5&lt;br /&gt;
 &lt;br /&gt;
 COMPUTE_WINDSTRESS        : 0&lt;br /&gt;
 COMPUTE_RELATIVE_HUMIDITY : 1&lt;br /&gt;
 WRITE_XYZ                 : 0&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;BeginFields&amp;gt;&amp;gt;&lt;br /&gt;
 solar radiation&lt;br /&gt;
 air temperature&lt;br /&gt;
 wind velocity X&lt;br /&gt;
 wind velocity Y&lt;br /&gt;
 sensible heat&lt;br /&gt;
 latent heat&lt;br /&gt;
 atmospheric pressure&lt;br /&gt;
 sea water temperature&lt;br /&gt;
 &amp;lt;&amp;lt;EndFields&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert Mercator-Ocean(.nc) to MOHID(.hdf5)===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : CONVERT MERCATOR FORMAT&lt;br /&gt;
 &lt;br /&gt;
 READ_OPTION              : 2&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : Psy2v2r1v_R20060628/MercatorR20060628.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME     : Psy2v2r1v_R20060628/MercatorGridR20060628.dat&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME : Psy2v2r1v_R20060628/MercatorGeometryR20060628.dat&lt;br /&gt;
 &lt;br /&gt;
 INPUT_GRID_FILENAME      : GridFiles/ist_meteog-gridT.nc&lt;br /&gt;
 INPUT_GRID_FILENAME_U    : GridFiles/ist_meteog-gridU.nc&lt;br /&gt;
 INPUT_GRID_FILENAME_V    : GridFiles/ist_meteog-gridV.nc&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 Psy2v2r1v_R20060628/ist_meteog-mercatorPsy2v2r1v_T_MEAN_ANA_20060621_R20060628.nc&lt;br /&gt;
 Psy2v2r1v_R20060628/ist_meteog-mercatorPsy2v2r1v_T_MEAN_ANA_20060622_R20060628.nc&lt;br /&gt;
 Psy2v2r1v_R20060628/ist_meteog-mercatorPsy2v2r1v_T_MEAN_ANA_20060623_R20060628.nc&lt;br /&gt;
 &amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert Levitus format to MOHID(.hdf5) and interpolate grid===&lt;br /&gt;
==== Convert ====&lt;br /&gt;
First convert the Levitus ASCII format to a raw HDF5 format:&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : CONVERT LEVITUS FORMAT&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : Levitus.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME     : LevitusGrid.dat&lt;br /&gt;
 OUTPUT_GEOMETRY_FILENAME : LevitusGeometry.dat&lt;br /&gt;
 &lt;br /&gt;
 PERIODICITY              : monthly&lt;br /&gt;
 SPATIAL_RESOLUTION       : 0.25&lt;br /&gt;
 FILL_VALUE               : -99.9999&lt;br /&gt;
 &lt;br /&gt;
 LOWER_LEFT_CORNER        : -16.0  31&lt;br /&gt;
 UPPER_RIGHT_CORNER       :   1.   40&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : salinity&lt;br /&gt;
 ANNUAL_FILE              : DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s000hr.obj&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s001&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s002&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s003&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s004&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s005&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s006&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s007&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s008&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s009&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s010&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s011&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Salinity\s012&lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : temperature&lt;br /&gt;
 ANNUAL_FILE              : DataCenter\DadosBase\Ocean\Levitus\Data\Temp\t000hr.obj&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t001&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t002&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t003&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t004&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t005&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t006&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t007&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t008&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t009&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t010&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t011&lt;br /&gt;
 DataCenter\DadosBase\Ocean\Levitus\Data\Temperature\t012&lt;br /&gt;
 &amp;lt;&amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Extrapolate ====&lt;br /&gt;
Then extrapolate the data (still in the raw HDF5 format):&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION    : 1&lt;br /&gt;
 &lt;br /&gt;
 FATHER_FILENAME          : Levitus.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME     : LevitusGrid.dat&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : LeviTusAllPointsWithData.hdf5&lt;br /&gt;
 NEW_GRID_FILENAME        : LevitusGrid.dat&lt;br /&gt;
 &lt;br /&gt;
 START                    : -9999 1  1 0 0 0&lt;br /&gt;
 END                      : -9999 12 1 0 0 0&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D          : 1&lt;br /&gt;
 FATHER_GEOMETRY          : LevitusGeometry.dat&lt;br /&gt;
 NEW_GEOMETRY             : LevitusGeometry.dat&lt;br /&gt;
 AUX_GRID_FILENAME        : LevitusGrid.dat&lt;br /&gt;
 AUX_OUTPUTFILENAME       : AuxLeviTusAllPointsWithData.hdf5&lt;br /&gt;
 &lt;br /&gt;
 POLI_DEGREE              : 3&lt;br /&gt;
 DO_NOT_BELIEVE_MAP       : 1&lt;br /&gt;
 EXTRAPOLATE_2D           : 2&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Interpolate ====&lt;br /&gt;
Finally, interpolate to the final grid and geometry (same as the [[#Interpolate 3D MOHID(.hdf5) files to a new grid| Interpolate 3D sample]]):&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : INTERPOLATE GRIDS&lt;br /&gt;
 &lt;br /&gt;
 TYPE_OF_INTERPOLATION    : 1&lt;br /&gt;
 FATHER_FILENAME          : LeviTusAllPointsWithData.hdf5&lt;br /&gt;
 OUTPUTFILENAME           : CadizMonthlyLevitus.hdf5&lt;br /&gt;
 FATHER_GRID_FILENAME     : LevitusGrid.dat&lt;br /&gt;
 NEW_GRID_FILENAME        : Algarve0.02SigmaSmooth_V3_CartMoreLayers.dat&lt;br /&gt;
 &lt;br /&gt;
 START                    : -9999 1  1 0 0 0&lt;br /&gt;
 END                      : -9999 12 1 0 0 0&lt;br /&gt;
 &lt;br /&gt;
 INTERPOLATION3D          : 1&lt;br /&gt;
 FATHER_GEOMETRY          : LevitusGeometry.dat&lt;br /&gt;
 NEW_GEOMETRY             : Geometry_1.dat&lt;br /&gt;
 AUX_OUTPUTFILENAME       : AuxCadizMonthlyLevitus.hdf5&lt;br /&gt;
 AUX_GRID_FILENAME        : Aux12km.dat&lt;br /&gt;
 &lt;br /&gt;
 POLI_DEGREE              : 3&lt;br /&gt;
 DO_NOT_BELIEVE_MAP       : 1&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that the programme may construct a new bathymetry twice. Use this bathymetry only on the AUX_GRID_FILENAME keyword.&lt;br /&gt;
&lt;br /&gt;
===Convert Hellerman Rosenstein ASCII format to MOHID(.hdf5)  ===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                   : CONVERT HELLERMAN ROSENSTEIN ASCII&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME           : ClimatologicWindStress.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME     : ClimatologicWindStressGrid.dat&lt;br /&gt;
 &lt;br /&gt;
 PERIODICITY              : monthly&lt;br /&gt;
 SPATIAL_RESOLUTION       : 2.&lt;br /&gt;
 FILL_VALUE               : -99.9999&lt;br /&gt;
 &lt;br /&gt;
 LOWER_LEFT_CORNER        : -180  -90&lt;br /&gt;
 UPPER_RIGHT_CORNER       : 180  90&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : wind stress X&lt;br /&gt;
 FILE                     : D:\Aplica\Dados\Hellerman_Rosenstein\TAUXX.DAT&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;beginfield&amp;gt;&amp;gt;&lt;br /&gt;
 NAME                     : wind stress Y&lt;br /&gt;
 FILE                     : D:\Aplica\Dados\Hellerman_Rosenstein\TAUYY.DAT&lt;br /&gt;
 &amp;lt;&amp;lt;endfield&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Convert ALADIN(.nc) format to MOHID(.hdf5)===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT ALADIN FORMAT&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : aladin.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : aladin_griddata.dat&lt;br /&gt;
 &lt;br /&gt;
 !Put here the name of any netcdf file for grid-data generation's sake.&lt;br /&gt;
 INPUT_GRID_FILENAME      :   D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKCLOUD_OPASYMP_19723_20088.nc&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKIR_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKPRES_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKSOLAR_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKTAIR_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKWIND_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_FLUXPRE_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_STRESSU_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_STRESSV_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_U10_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_V10_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKCLOUD_OPASYMP_19723_20088.nc&lt;br /&gt;
 D:\Aplica\BiscayAplica\FORCAGES\METEO\ALADIN_BULKHUMI_OPASYMP_19723_20088.nc&lt;br /&gt;
 &amp;lt;&amp;lt;end_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;end_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== OceanColor modules compilation ==&lt;br /&gt;
Compiling the [[ConvertToHDF5]] tool with the OceanColor modules is more complicated than one might expect. A solution is proposed here for a release version using the Compaq Visual Fortran 6.6c. The difficulties rise because C code is embedded with a fortran interface and also, extra libraries such as hdf4 are required.&lt;br /&gt;
&lt;br /&gt;
=== Pre-requisites ===&lt;br /&gt;
&lt;br /&gt;
This is a list of prerequisites to successfully compile the tool:&lt;br /&gt;
*Compaq Visual Fortran 6.5 with patch 6.6c,&lt;br /&gt;
*VS .NET 2003 (Vc7 in particular),&lt;br /&gt;
*Hdf5 libraries ('''hdf5.lib''' '''hdf5_fortran.lib''' '''hdf5_hl.lib'''),&lt;br /&gt;
*Netcdf libraries ('''netcdf.lib''' '''netcdf_.lib'''),&lt;br /&gt;
*Hdf4 libraries ('''hd421.lib''', '''hm421.lib'''),&lt;br /&gt;
*szlib, zlib and jpeg libraries ('''szlib.lib''', '''zlib.lib''' and '''libjpeg.lib'''),&lt;br /&gt;
*the fortran source files ('''ModuleConvertModisL2.F90 ModuleConvertModisL3.F90 ModuleConvertOceanColorL2.F90'''),&lt;br /&gt;
*the C source files and their fortran interface files ('''readL2scan.c readL2Seadas.c''' and '''cdata.f crossp.f fgeonav.f''').&lt;br /&gt;
&lt;br /&gt;
=== CVF IDE configuration ===&lt;br /&gt;
# Configure everything as specified in [[Compiling with CVF]].&lt;br /&gt;
# Add the source files listed in the prerequisites above to the source files listing.&lt;br /&gt;
# Go to '''Tools--&amp;gt;Options...--&amp;gt;Directories'''. There, add the '''$DOTNET2K3/Vc7/bin''' to the '''Executable files''''; the '''$DOTNET2K3/Vc7/include''' and '''$DOTNET2K3/Vc7/PlatformSDK/include''' to the '''Include files'''; and finally, the '''$DOTNET2K3/Vc7/lib''', '''$DOTNET2K3/Vc7/PlatformSDK/lib''' and  '''$DOTNET2K3/Vc7/PlatformSDK/bin''' to the '''Library files'''.&lt;br /&gt;
# Go to '''Projects--&amp;gt;Settings--&amp;gt;Release--&amp;gt;Link--&amp;gt;Input'''. There, add the following libraries: '''netcdf.lib netcdf_.lib hd421.lib hm421.lib libjpeg.lib'''. (Make sure the hdf5 libraries as well as the szlib and zlib libraries are already mentioned).&lt;br /&gt;
&lt;br /&gt;
=== Troubleshoots ===&lt;br /&gt;
'''Q: I get unresolved external references during linkage, but I have all the libraries mentioned above included. What should I do?'''&lt;br /&gt;
&lt;br /&gt;
A: Unresolved external references can come out for two reasons:&lt;br /&gt;
#you didn't specified all the libraries required or all the paths for the default libraries or,&lt;br /&gt;
#[http://en.wikipedia.org/wiki/Name_decoration name mangling] problems. Use the [[dumpbin]] utility to the libraries to checkout which language convention they are using. If that's the problem then you need to try to get new libraries with the correct naming convention.&lt;br /&gt;
&lt;br /&gt;
That's it, you should now be able to build the [[ConvertToHdf5]] project successfully.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Q: I got a message saying the entry point _NF_PUT_ATT_REAL@28 could not be located in netcdf.dll'''&lt;br /&gt;
&lt;br /&gt;
A: copy the file netcdf.dll to the exe folder&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
*[http://www.hdfgroup.org/ HDF5 Homepage]&lt;br /&gt;
*[http://www.hdfgroup.org/ HDF4 Homepage]&lt;br /&gt;
&lt;br /&gt;
== Links ==&lt;br /&gt;
&lt;br /&gt;
*[[Module_Atmosphere]]&lt;br /&gt;
*[[Module_InterfaceWaterAir]]&lt;br /&gt;
*[[Coupling_Water-Atmosphere_User_Manual]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Tools]]&lt;br /&gt;
[[Category:Hdf5]]&lt;/div&gt;</summary>
		<author><name>Anatrancoso</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Module_DrainageNetwork&amp;diff=2853</id>
		<title>Module DrainageNetwork</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Module_DrainageNetwork&amp;diff=2853"/>
				<updated>2010-02-15T19:37:07Z</updated>
		
		<summary type="html">&lt;p&gt;Anatrancoso: /* Properties */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Overview=&lt;br /&gt;
&lt;br /&gt;
This module can be used by two models: [[Mohid_Land|MOHID Land]], and [[Mohid_River_Network|MOHID River Network]]. Like other modules, it has a specific input file, called '''DrainageNetwork_X.dat''', where X is the simulation number. The following tables describe the keywords that can be used, their data type, and the default values (in case of omission).&lt;br /&gt;
&lt;br /&gt;
==DrainageNetwork_X.dat Keywords==&lt;br /&gt;
&lt;br /&gt;
===General===&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 NETWORK_FILE              : char              -           !Path to drainage network file&lt;br /&gt;
 CHECK_NODES               : 0/1               [1]         !Ckeck nodes consistency&lt;br /&gt;
 CHECK_REACHES             : 0/1               [1]         !Check reaches consistency&lt;br /&gt;
 GLOBAL_MANNING            : real              -           !Rugosity in Channels&lt;br /&gt;
 GEO_CONVERSATION_FACTOR   : real              [1.]        !Lat to Meters rough estimation&lt;br /&gt;
&lt;br /&gt;
===Stabilization===&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 STABILIZE                 : 0/1               [0]         !Restart time iteration if high volume gradients&lt;br /&gt;
 STABILIZE_FACTOR          : real              [0.1]       !max gradient in time steps as fraction of old volume&lt;br /&gt;
 MAX_ITERATIONS            : int               [100]       !Max iterations for stabilized check&lt;br /&gt;
 DT_FACTOR                 : real              [0.8]       !Factor for DT Prediction&lt;br /&gt;
 MAX_DT_FLOOD              : real              [10.0]      !Max DT if channel water level exceeds full bank&lt;br /&gt;
&lt;br /&gt;
===Hydrodynamic===&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 HYDRODYNAMIC_APROX        : int               [1]         !1 - KinematicWave, 2 - DiffusionWave, 3 - DynamicWave&lt;br /&gt;
 NUMERICAL_SCHEME          : int               [0]         !0 - ExplicitScheme, 1 - ImplicitScheme&lt;br /&gt;
 MASS_ERR                  : real(8)           [0.001]     !Max error in mass conservation&lt;br /&gt;
 MIN_WATER_DEPTH           : real              [0.001]     !Min water depth in nodes (For h &amp;lt; MIN_WATER_DEPTH water stops flowing)&lt;br /&gt;
 INITIAL_WATER_DEPTH       : real              [0.0]       !Initial water depth&lt;br /&gt;
 MINIMUM_SLOPE             : real              [0.0]       !Minimum Slope for Kinematic Wave&lt;br /&gt;
&lt;br /&gt;
===Downstream Boundary===&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 DOWNSTREAM_BOUNDARY       : int               [1]         !0 - Dam, 1 - ZDG, 2 - CD, 3 - ImposedWaterDepth, 3 - ImposedVelocity&lt;br /&gt;
 DEFAULTVALUE              : real              -           !Default value at downstream boundary&lt;br /&gt;
 FILE_IN_TIME              : char              [NONE]      !If DOWNSTREAM_BOUNDARY = ImposedWaterDepth, this can be NONE or TIMESERIE&lt;br /&gt;
 FILENAME                  : char              -           !If FILE_IN_TIME = TIMESERIE, this is the name of timeserie file for the downstream boundary&lt;br /&gt;
 DATA_COLUMN               : int               -           !Number of column with data in FILE_IN_TIME&lt;br /&gt;
&lt;br /&gt;
===Output===&lt;br /&gt;
&lt;br /&gt;
Output is given for all nodes in HDF5 format, and also as time series for the specified nodes in TIME_SERIE_LOCATION file. These nodes are identified by their IDS (see Network file) and have to be inside the block  '''&amp;lt;BeginNodeTimeSerie&amp;gt;  / &amp;lt;EndNodeTimeSerie&amp;gt;'''.&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 OUTPUT_TIME               : int int...        [-]         !time interval between outputs for all nodes, in HDF5 format.&lt;br /&gt;
 TIME_SERIE_LOCATION       : char              -           !Path to time serie file with the specified nodes (can be this file)&lt;br /&gt;
 MAX_BUFFER_SIZE           : 1000&lt;br /&gt;
 COMPUTE_RESIDUAL          : 1&lt;br /&gt;
 DT_OUTPUT_TIME            : 1200&lt;br /&gt;
 TIME_SERIE_BY_NODES       : 0/1               [0]         !Keyword to see if the user wants the time series to be written by nodes, i.e.,&lt;br /&gt;
                                                           !One file per node, with all variables in the headers list&lt;br /&gt;
                                                           !if FALSE, its one file per variable with nodes in the headers.&lt;br /&gt;
&lt;br /&gt;
===Processes===&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 MIN_WATER_DEPTH_PROCESS   : real              [0.01]      !Water Quality Process / Surface Fluxes shutdown&lt;br /&gt;
 DISCHARGES                : 0/1               [0]         !Use module discharges (WWTP, etc)&lt;br /&gt;
 TRANSMISSION_LOSSES       : 0/1               [0]         !If user wants to use transmission losses&lt;br /&gt;
 HYDRAULIC_CONDUCTIVITY    : real              -           !Hydraulic Conductivity to calculate transmission losses&lt;br /&gt;
 REMOVE_OVERTOP            : 0/1               [0]         !Removes Water if channels are overtoped&lt;br /&gt;
 AERATION_METHOD           : int               [-]         !1 - PoolAndRifle, 2 - ChannelControled_&lt;br /&gt;
 T90_DECAY_MODEL           : 0                 [1]         !0 - Constant, 1 - Canteras, 2 - Chapra&lt;br /&gt;
 T90                       : real              [7200.]     !if T90_DECAY_MODEL = Constant&lt;br /&gt;
 SHADING_FACTOR            : real              [1.]        !0-1 fraction of riparian shading&lt;br /&gt;
 FRACTION_SEDIMENT         : 0/1               [0]&lt;br /&gt;
 GLOBAL_TOXICITY           : char              ['SUM']     !Global Toxicity Computation Method : SUM,MAX,RISKRATIO&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
===Properties===&lt;br /&gt;
&lt;br /&gt;
Each property keywords must be inside a block '''&amp;lt;beginproperty&amp;gt;/&amp;lt;endproperty&amp;gt;'''.&lt;br /&gt;
&lt;br /&gt;
 Keyword                    : Data Type         Default      !Comment&lt;br /&gt;
 &amp;lt;beginproperty&amp;gt;&lt;br /&gt;
 NAME                       : char              [-]          !Property name, must be on of [[Properties_names]]&lt;br /&gt;
 UNITS                      : char              [-]          !usually mg/L (see IS_COEF)&lt;br /&gt;
 IS_COEF                    : real              [1.e-3]      !Conversion factor to the International System&lt;br /&gt;
 DESCRIPTION                : char              [-]          !Property description&lt;br /&gt;
 DEFAULT_VALUE              : real              [0.0]        !Property initial concentration&lt;br /&gt;
 MIN_VALUE                  : real              [0.0]        !Property minimum concentration&lt;br /&gt;
 OVERLAND_CONCENTRATION     : real              [0.0]        !Concentration discharged from overland&lt;br /&gt;
 GROUNDWATER_CONCENTRATION  : real              [0.0]        !Concentration discharged from ground water&lt;br /&gt;
 DIFFUSEWATER_CONCENTRATION : real              [0.0]&lt;br /&gt;
 ADVECTION_DIFUSION         : 0/1               [1]          !1 - want to transport property; 0 - no transport&lt;br /&gt;
     ADVECTION_SCHEME       : int               [1]          !1 - UpwindOrder1 (currently no more options)&lt;br /&gt;
     DIFFUSION_SCHEME       : int               [5]          !5 - CentralDiff  (currently no more options)&lt;br /&gt;
     DIFFUSIVITY            : real              [1e-8]       !Molecular diffusivity of property in m2/s&lt;br /&gt;
 DISCHARGES                 : 0/1               [0]          !1 - property is discharged; 0 - no discharges&lt;br /&gt;
 TOXICITY                   : 0/1               [0]          !1 - property has an associated toxicity     &lt;br /&gt;
     TOX_EVOLUTION          : int               [1]          !1 - Saturation, 2 - Linear, 3 - RiskRatio&lt;br /&gt;
     EC50                   : real              [0.5]        !If TOX_EVOLUTION = Saturation or RiskRatio,&lt;br /&gt;
                                                             !EC50 is the concentration that causes 50% of effect (Tox = 0.5)&lt;br /&gt;
                                                             !in fraction of initial concentration units [%]&lt;br /&gt;
     SLOPE                  : real              [1.0]        !If TOX_EVOLUTION = Linear&lt;br /&gt;
 DECAY                      : 0/1               [0]          !1- want to use bacterial decay model. 0 - no use. Must have DISCHARGES = 1 and [[Mohid_River_Network|atmosphere]].&lt;br /&gt;
 SURFACE_FLUXES             : 0/1               [0]          !Property has surface fluxes (e.g. evaporation). Needs [[Mohid_River_Network|atmosphere]].&lt;br /&gt;
 BOTTOM_FLUXES              : 0/1               [0]          !Property has bottom fluxes. Must be [[Properties_names|particulate]].&lt;br /&gt;
     BOTTOM_CONC            : real              [0.0]        !Bottom Initial Concentration&lt;br /&gt;
     BOTTOM_MIN_CONC        : real              [0.0]        !Bottom Minimum Concentration&lt;br /&gt;
     EROSION                : 0/1               [1]          !Compute erosion fluxes&lt;br /&gt;
         CRIT_SS_EROSION    : real              [0.2]        !Critical Erosion Shear Stress [Pa]&lt;br /&gt;
         EROSION_COEF       : real              [5.0E-4]     !Erosion Coefficient [kg m-2 s-1]&lt;br /&gt;
     DEPOSITION             : 0/1               [1]          !Compute deposition fluxes&lt;br /&gt;
         CRIT_SS_DEPOSITION : real              [0.1]        !Critical Deposition Shear Stress [Pa]&lt;br /&gt;
         CHS                : real              [4.0]        !Hindered settling [kg m-3] - See [[Module_FreeVerticalMovement]].&lt;br /&gt;
         WS_TYPE            : int               [1]          !Settling type: WSConstant = 1, SPMFunction = 2&lt;br /&gt;
         WS_VALUE           : real              [0.0001]     !Constant settling velocity [m s-1]&lt;br /&gt;
         KL                 : real              [0.1]        !See [[Module_FreeVerticalMovement]].&lt;br /&gt;
         KL1                : real              [0.1]        !See [[Module_FreeVerticalMovement]].&lt;br /&gt;
         ML                 : real              [4.62]       !See [[Module_FreeVerticalMovement]].&lt;br /&gt;
         M                  : real              [1.0]        !See [[Module_FreeVerticalMovement]].&lt;br /&gt;
 WATER_QUALITY              : 0/1               [0]          !1 - use [[Module_WaterQuality|Water Quality Model]] for property transformation; 0 - no use&lt;br /&gt;
 BENTHOS                    : 0/1               [0]          !1 - use [[Module_Benthos|Benthos Model]] for property transformation; 0 - no use&lt;br /&gt;
 CEQUALW2                   : 0/1               [0]          !1 - use [[Module_CEQUALW2|CEQUALW2 Model]] for property transformation; 0 - no use&lt;br /&gt;
 LIFE                       : 0/1               [0]          !1 - use [[Module_Life|Life Model]] for property transformation; 0 - no use&lt;br /&gt;
 EXTINCTION_PARAMETER       : real              [1.0]        !LIGHT EXTINCTION COEFFICIENT&lt;br /&gt;
 TIME_SERIE                 : 0/1               [0]          !Output this property in time series files.&lt;br /&gt;
 OUTPUT_NAME                : char              [NAME]       !Can be NAME or DESCRIPTION.&lt;br /&gt;
 COMPUTE_LOAD               : 0/1               [0]          !Output concentration (in UNITS) x Flow [m3 s-1]&lt;br /&gt;
 SUMTOTALCONC               : 0/1               [0] 0        !Checks if user wants to calculate total Concentration (Column + Bottom).&lt;br /&gt;
 &amp;lt;endproperty&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Toxicity Model====&lt;br /&gt;
*The formulation is to associate an eco-toxiciy value to the property (From project ECORIVER 2002).&lt;br /&gt;
*Every toxic property must be discharged.&lt;br /&gt;
*Its concentration in the river network is set to 0.0.&lt;br /&gt;
*Discharge concentration must be equal to 1, because we are measuring the dilution D = 1 - C_new / C_ini&lt;br /&gt;
*The variable property%toxicity%concentration represents C/c_ini so it starts by being 1.&lt;br /&gt;
*This is not even close to a final version. For more details, or sugestions/corrections, contact MARETEC (Rosa Trancoso).&lt;br /&gt;
*EC50 - Concentration that causes 50% of effect (Tox = 0.5)&lt;br /&gt;
&lt;br /&gt;
==Network file==&lt;br /&gt;
&lt;br /&gt;
The Network file specified in '''NETWORK_FILE''' keyword has two types of blocks:&lt;br /&gt;
* '''&amp;lt;BeginNode&amp;gt;/ &amp;lt;EndNode&amp;gt;'''&lt;br /&gt;
* '''&amp;lt;BeginReach&amp;gt;/&amp;lt;EndReach&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
===Keywords===&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;BeginNode&amp;gt;&lt;br /&gt;
   ID                      : int               -           !Node ID number&lt;br /&gt;
   COORDINATES             : real real         -           !Node coordinates&lt;br /&gt;
   GRID_I                  : int               -           !I position of node, if grid&lt;br /&gt;
   GRID_J                  : int               -           !J position of node, if grid&lt;br /&gt;
   TERRAIN_LEVEL            : real              -           !Bottom level of cross section&lt;br /&gt;
   MANNING_CHANNEL         : real         GLOBAL_MANNING   !Node rugosity&lt;br /&gt;
   WATER_DEPTH             : real      INITIAL_WATER_DEPTH !Node initial water depth&lt;br /&gt;
   CROSS_SECTION_TYPE      : int               [1]         !1 - Trapezoidal, 2 - TrapezoidalFlood, 3 - Tabular&lt;br /&gt;
   1 - Trapezoidal, 2 - TrapezoidalFlood&lt;br /&gt;
       BOTTOM_WIDTH        : real              -           !Bottom width of cross section&lt;br /&gt;
       TOP_WIDTH           : real              -           !Top width of cross section&lt;br /&gt;
       HEIGHT              : real              -           !Max height of cross section&lt;br /&gt;
   2 - TrapezoidalFlood&lt;br /&gt;
       MIDDLE_WIDTH        : real              -           !Middle width of cross section&lt;br /&gt;
       MIDDLE_HEIGHT       : real              -           !Middle height of cross section&lt;br /&gt;
   3 - Tabular&lt;br /&gt;
       N_STATIONS          : integer           -           !number os stations that define the cross section&lt;br /&gt;
       STATION             : real real ...     -           !station values&lt;br /&gt;
       ELEVATION/LEVEL     : real real ...     -           !elevation values&lt;br /&gt;
 &amp;lt;EndNode&amp;gt;&lt;br /&gt;
 &amp;lt;BeginReach&amp;gt;&lt;br /&gt;
   ID                      : int               -           !Reach ID Number&lt;br /&gt;
   DOWNSTREAM_NODE         : int               -           !Downstream node ID&lt;br /&gt;
   UPSTREAM_NODE           : int               -           !Upstream node ID&lt;br /&gt;
 &amp;lt;EndReach&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Creating a Network file===&lt;br /&gt;
&lt;br /&gt;
*Obtain a drainage network with MOHID GIS in [[MOHID_GIS#Delineate_Basins|Delineate Basins]]&lt;br /&gt;
*Alternatively obtain a drainage network with program BasinDelimiter (from SourceSafe) with a '''basin.dat''' file such as:&lt;br /&gt;
&lt;br /&gt;
 TOPOGRAPHIC_FILE              : ..\..\GeneralData\DTM\MDT200mSD.dat&lt;br /&gt;
 TRESHOLD_AREA                 : 100000&lt;br /&gt;
 DELINEATE_BASIN               : 1&lt;br /&gt;
 OUTLET_I                      : 1&lt;br /&gt;
 OUTLET_J                      : 44&lt;br /&gt;
 WRITE_REACHES                 : 1&lt;br /&gt;
 REACHES_FILE                  : ..\..\GeneralData\DrainageNetwork\DrainageNetwork.dnt&lt;br /&gt;
&lt;br /&gt;
*Define the cross sections for each node (see [[Mohid_GIS#Auto_Cross_Sections|MOHID GIS]]). &lt;br /&gt;
**'''Warning 1''': Remember to select &amp;quot;Save All&amp;quot; in MOHID GIS to update the file.&lt;br /&gt;
**'''Warning 2''': Currently, this program writes a BOTTOM_LEVEL keyword for each node instead of the keyword TERRAIN_LEVEL needed by the Drainage Network module. BOTTOM_LEVEL was replaced by TERRAIN_LEVEL in the latest version of this module because of the introduction of the tabular (irregular) cross-section type, generalizing the formulation of cross-sections. The pre-processor tool is not yet adapted. Nevertheless, for regular cross-sections, TERRAIN LEVEL = BOTTOM_LEVEL + HEIGHT. It can be changed manually or with this perl script [http://docs.google.com/leaf?id=0B_xtWE4qvkq8Y2FhNjk5NTQtZTdhZC00N2I1LWE3Y2YtM2QwYzIyMjhhZDRj&amp;amp;sort=name&amp;amp;layout=list&amp;amp;num=50].&lt;/div&gt;</summary>
		<author><name>Anatrancoso</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Module_DrainageNetwork&amp;diff=2852</id>
		<title>Module DrainageNetwork</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Module_DrainageNetwork&amp;diff=2852"/>
				<updated>2010-02-15T19:36:48Z</updated>
		
		<summary type="html">&lt;p&gt;Anatrancoso: /* Properties */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Overview=&lt;br /&gt;
&lt;br /&gt;
This module can be used by two models: [[Mohid_Land|MOHID Land]], and [[Mohid_River_Network|MOHID River Network]]. Like other modules, it has a specific input file, called '''DrainageNetwork_X.dat''', where X is the simulation number. The following tables describe the keywords that can be used, their data type, and the default values (in case of omission).&lt;br /&gt;
&lt;br /&gt;
==DrainageNetwork_X.dat Keywords==&lt;br /&gt;
&lt;br /&gt;
===General===&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 NETWORK_FILE              : char              -           !Path to drainage network file&lt;br /&gt;
 CHECK_NODES               : 0/1               [1]         !Ckeck nodes consistency&lt;br /&gt;
 CHECK_REACHES             : 0/1               [1]         !Check reaches consistency&lt;br /&gt;
 GLOBAL_MANNING            : real              -           !Rugosity in Channels&lt;br /&gt;
 GEO_CONVERSATION_FACTOR   : real              [1.]        !Lat to Meters rough estimation&lt;br /&gt;
&lt;br /&gt;
===Stabilization===&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 STABILIZE                 : 0/1               [0]         !Restart time iteration if high volume gradients&lt;br /&gt;
 STABILIZE_FACTOR          : real              [0.1]       !max gradient in time steps as fraction of old volume&lt;br /&gt;
 MAX_ITERATIONS            : int               [100]       !Max iterations for stabilized check&lt;br /&gt;
 DT_FACTOR                 : real              [0.8]       !Factor for DT Prediction&lt;br /&gt;
 MAX_DT_FLOOD              : real              [10.0]      !Max DT if channel water level exceeds full bank&lt;br /&gt;
&lt;br /&gt;
===Hydrodynamic===&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 HYDRODYNAMIC_APROX        : int               [1]         !1 - KinematicWave, 2 - DiffusionWave, 3 - DynamicWave&lt;br /&gt;
 NUMERICAL_SCHEME          : int               [0]         !0 - ExplicitScheme, 1 - ImplicitScheme&lt;br /&gt;
 MASS_ERR                  : real(8)           [0.001]     !Max error in mass conservation&lt;br /&gt;
 MIN_WATER_DEPTH           : real              [0.001]     !Min water depth in nodes (For h &amp;lt; MIN_WATER_DEPTH water stops flowing)&lt;br /&gt;
 INITIAL_WATER_DEPTH       : real              [0.0]       !Initial water depth&lt;br /&gt;
 MINIMUM_SLOPE             : real              [0.0]       !Minimum Slope for Kinematic Wave&lt;br /&gt;
&lt;br /&gt;
===Downstream Boundary===&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 DOWNSTREAM_BOUNDARY       : int               [1]         !0 - Dam, 1 - ZDG, 2 - CD, 3 - ImposedWaterDepth, 3 - ImposedVelocity&lt;br /&gt;
 DEFAULTVALUE              : real              -           !Default value at downstream boundary&lt;br /&gt;
 FILE_IN_TIME              : char              [NONE]      !If DOWNSTREAM_BOUNDARY = ImposedWaterDepth, this can be NONE or TIMESERIE&lt;br /&gt;
 FILENAME                  : char              -           !If FILE_IN_TIME = TIMESERIE, this is the name of timeserie file for the downstream boundary&lt;br /&gt;
 DATA_COLUMN               : int               -           !Number of column with data in FILE_IN_TIME&lt;br /&gt;
&lt;br /&gt;
===Output===&lt;br /&gt;
&lt;br /&gt;
Output is given for all nodes in HDF5 format, and also as time series for the specified nodes in TIME_SERIE_LOCATION file. These nodes are identified by their IDS (see Network file) and have to be inside the block  '''&amp;lt;BeginNodeTimeSerie&amp;gt;  / &amp;lt;EndNodeTimeSerie&amp;gt;'''.&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 OUTPUT_TIME               : int int...        [-]         !time interval between outputs for all nodes, in HDF5 format.&lt;br /&gt;
 TIME_SERIE_LOCATION       : char              -           !Path to time serie file with the specified nodes (can be this file)&lt;br /&gt;
 MAX_BUFFER_SIZE           : 1000&lt;br /&gt;
 COMPUTE_RESIDUAL          : 1&lt;br /&gt;
 DT_OUTPUT_TIME            : 1200&lt;br /&gt;
 TIME_SERIE_BY_NODES       : 0/1               [0]         !Keyword to see if the user wants the time series to be written by nodes, i.e.,&lt;br /&gt;
                                                           !One file per node, with all variables in the headers list&lt;br /&gt;
                                                           !if FALSE, its one file per variable with nodes in the headers.&lt;br /&gt;
&lt;br /&gt;
===Processes===&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 MIN_WATER_DEPTH_PROCESS   : real              [0.01]      !Water Quality Process / Surface Fluxes shutdown&lt;br /&gt;
 DISCHARGES                : 0/1               [0]         !Use module discharges (WWTP, etc)&lt;br /&gt;
 TRANSMISSION_LOSSES       : 0/1               [0]         !If user wants to use transmission losses&lt;br /&gt;
 HYDRAULIC_CONDUCTIVITY    : real              -           !Hydraulic Conductivity to calculate transmission losses&lt;br /&gt;
 REMOVE_OVERTOP            : 0/1               [0]         !Removes Water if channels are overtoped&lt;br /&gt;
 AERATION_METHOD           : int               [-]         !1 - PoolAndRifle, 2 - ChannelControled_&lt;br /&gt;
 T90_DECAY_MODEL           : 0                 [1]         !0 - Constant, 1 - Canteras, 2 - Chapra&lt;br /&gt;
 T90                       : real              [7200.]     !if T90_DECAY_MODEL = Constant&lt;br /&gt;
 SHADING_FACTOR            : real              [1.]        !0-1 fraction of riparian shading&lt;br /&gt;
 FRACTION_SEDIMENT         : 0/1               [0]&lt;br /&gt;
 GLOBAL_TOXICITY           : char              ['SUM']     !Global Toxicity Computation Method : SUM,MAX,RISKRATIO&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
===Properties===&lt;br /&gt;
&lt;br /&gt;
Each property keywords must be inside a block '''&amp;lt;beginproperty&amp;gt;/&amp;lt;endproperty&amp;gt;'''.&lt;br /&gt;
&lt;br /&gt;
 Keyword                    : Data Type         Default      !Comment&lt;br /&gt;
 &amp;lt;beginproperty&amp;gt;&lt;br /&gt;
 NAME                       : char              [-]          !Property name, must be on of [[Properties_names]]&lt;br /&gt;
 UNITS                      : char              [-]          !usually mg/L (see IS_COEF)&lt;br /&gt;
 IS_COEF                    : real              [1.e-3]      !Conversion factor to the International System&lt;br /&gt;
 DESCRIPTION                : char              [-]          !Property description&lt;br /&gt;
 DEFAULT_VALUE              : real              [0.0]        !Property initial concentration&lt;br /&gt;
 MIN_VALUE                  : real              [0.0]        !Property minimum concentration&lt;br /&gt;
 OVERLAND_CONCENTRATION     : real              [0.0]        !Concentration discharged from overland&lt;br /&gt;
 GROUNDWATER_CONCENTRATION  : real              [0.0]        !Concentration discharged from ground water&lt;br /&gt;
 DIFFUSEWATER_CONCENTRATION : real              [0.0]&lt;br /&gt;
 ADVECTION_DIFUSION         : 0/1               [1]          !1 - want to transport property; 0 - no transport&lt;br /&gt;
     ADVECTION_SCHEME       : int               [1]          !1 - UpwindOrder1 (currently no more options)&lt;br /&gt;
     DIFFUSION_SCHEME       : int               [5]          !5 - CentralDiff  (currently no more options)&lt;br /&gt;
     DIFFUSIVITY            : real              [1e-8]       !Molecular diffusivity of property in m2/s&lt;br /&gt;
 DISCHARGES                 : 0/1               [0]          !1 - property is discharged; 0 - no discharges&lt;br /&gt;
 TOXICITY                   : 0/1               [0]          !1 - property has an associated toxicity     &lt;br /&gt;
     TOX_EVOLUTION          : int               [1]          !1 - Saturation, 2 - Linear, 3 - RiskRatio&lt;br /&gt;
     EC50                   : real              [0.5]        !If TOX_EVOLUTION = Saturation or RiskRatio,&lt;br /&gt;
                                                             !EC50 is the concentration that causes 50% of effect (Tox = 0.5)&lt;br /&gt;
                                                             !in fraction of initial concentration units [%]&lt;br /&gt;
     SLOPE                  : real              [1.0]        !If TOX_EVOLUTION = Linear&lt;br /&gt;
 DECAY                      : 0/1               [0]          !1- want to use bacterial decay model. 0 - no use. Must have DISCHARGES = 1 and [[Mohid_River_Network|atmosphere]].&lt;br /&gt;
 SURFACE_FLUXES             : 0/1               [0]          !Property has surface fluxes (e.g. evaporation). Needs [[Mohid_River_Network|atmosphere]].&lt;br /&gt;
 BOTTOM_FLUXES              : 0/1               [0]          !Property has bottom fluxes. Must be [[Properties_names|particulated]].&lt;br /&gt;
     BOTTOM_CONC            : real              [0.0]        !Bottom Initial Concentration&lt;br /&gt;
     BOTTOM_MIN_CONC        : real              [0.0]        !Bottom Minimum Concentration&lt;br /&gt;
     EROSION                : 0/1               [1]          !Compute erosion fluxes&lt;br /&gt;
         CRIT_SS_EROSION    : real              [0.2]        !Critical Erosion Shear Stress [Pa]&lt;br /&gt;
         EROSION_COEF       : real              [5.0E-4]     !Erosion Coefficient [kg m-2 s-1]&lt;br /&gt;
     DEPOSITION             : 0/1               [1]          !Compute deposition fluxes&lt;br /&gt;
         CRIT_SS_DEPOSITION : real              [0.1]        !Critical Deposition Shear Stress [Pa]&lt;br /&gt;
         CHS                : real              [4.0]        !Hindered settling [kg m-3] - See [[Module_FreeVerticalMovement]].&lt;br /&gt;
         WS_TYPE            : int               [1]          !Settling type: WSConstant = 1, SPMFunction = 2&lt;br /&gt;
         WS_VALUE           : real              [0.0001]     !Constant settling velocity [m s-1]&lt;br /&gt;
         KL                 : real              [0.1]        !See [[Module_FreeVerticalMovement]].&lt;br /&gt;
         KL1                : real              [0.1]        !See [[Module_FreeVerticalMovement]].&lt;br /&gt;
         ML                 : real              [4.62]       !See [[Module_FreeVerticalMovement]].&lt;br /&gt;
         M                  : real              [1.0]        !See [[Module_FreeVerticalMovement]].&lt;br /&gt;
 WATER_QUALITY              : 0/1               [0]          !1 - use [[Module_WaterQuality|Water Quality Model]] for property transformation; 0 - no use&lt;br /&gt;
 BENTHOS                    : 0/1               [0]          !1 - use [[Module_Benthos|Benthos Model]] for property transformation; 0 - no use&lt;br /&gt;
 CEQUALW2                   : 0/1               [0]          !1 - use [[Module_CEQUALW2|CEQUALW2 Model]] for property transformation; 0 - no use&lt;br /&gt;
 LIFE                       : 0/1               [0]          !1 - use [[Module_Life|Life Model]] for property transformation; 0 - no use&lt;br /&gt;
 EXTINCTION_PARAMETER       : real              [1.0]        !LIGHT EXTINCTION COEFFICIENT&lt;br /&gt;
 TIME_SERIE                 : 0/1               [0]          !Output this property in time series files.&lt;br /&gt;
 OUTPUT_NAME                : char              [NAME]       !Can be NAME or DESCRIPTION.&lt;br /&gt;
 COMPUTE_LOAD               : 0/1               [0]          !Output concentration (in UNITS) x Flow [m3 s-1]&lt;br /&gt;
 SUMTOTALCONC               : 0/1               [0] 0        !Checks if user wants to calculate total Concentration (Column + Bottom).&lt;br /&gt;
 &amp;lt;endproperty&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Toxicity Model====&lt;br /&gt;
*The formulation is to associate an eco-toxiciy value to the property (From project ECORIVER 2002).&lt;br /&gt;
*Every toxic property must be discharged.&lt;br /&gt;
*Its concentration in the river network is set to 0.0.&lt;br /&gt;
*Discharge concentration must be equal to 1, because we are measuring the dilution D = 1 - C_new / C_ini&lt;br /&gt;
*The variable property%toxicity%concentration represents C/c_ini so it starts by being 1.&lt;br /&gt;
*This is not even close to a final version. For more details, or sugestions/corrections, contact MARETEC (Rosa Trancoso).&lt;br /&gt;
*EC50 - Concentration that causes 50% of effect (Tox = 0.5)&lt;br /&gt;
&lt;br /&gt;
==Network file==&lt;br /&gt;
&lt;br /&gt;
The Network file specified in '''NETWORK_FILE''' keyword has two types of blocks:&lt;br /&gt;
* '''&amp;lt;BeginNode&amp;gt;/ &amp;lt;EndNode&amp;gt;'''&lt;br /&gt;
* '''&amp;lt;BeginReach&amp;gt;/&amp;lt;EndReach&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
===Keywords===&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;BeginNode&amp;gt;&lt;br /&gt;
   ID                      : int               -           !Node ID number&lt;br /&gt;
   COORDINATES             : real real         -           !Node coordinates&lt;br /&gt;
   GRID_I                  : int               -           !I position of node, if grid&lt;br /&gt;
   GRID_J                  : int               -           !J position of node, if grid&lt;br /&gt;
   TERRAIN_LEVEL            : real              -           !Bottom level of cross section&lt;br /&gt;
   MANNING_CHANNEL         : real         GLOBAL_MANNING   !Node rugosity&lt;br /&gt;
   WATER_DEPTH             : real      INITIAL_WATER_DEPTH !Node initial water depth&lt;br /&gt;
   CROSS_SECTION_TYPE      : int               [1]         !1 - Trapezoidal, 2 - TrapezoidalFlood, 3 - Tabular&lt;br /&gt;
   1 - Trapezoidal, 2 - TrapezoidalFlood&lt;br /&gt;
       BOTTOM_WIDTH        : real              -           !Bottom width of cross section&lt;br /&gt;
       TOP_WIDTH           : real              -           !Top width of cross section&lt;br /&gt;
       HEIGHT              : real              -           !Max height of cross section&lt;br /&gt;
   2 - TrapezoidalFlood&lt;br /&gt;
       MIDDLE_WIDTH        : real              -           !Middle width of cross section&lt;br /&gt;
       MIDDLE_HEIGHT       : real              -           !Middle height of cross section&lt;br /&gt;
   3 - Tabular&lt;br /&gt;
       N_STATIONS          : integer           -           !number os stations that define the cross section&lt;br /&gt;
       STATION             : real real ...     -           !station values&lt;br /&gt;
       ELEVATION/LEVEL     : real real ...     -           !elevation values&lt;br /&gt;
 &amp;lt;EndNode&amp;gt;&lt;br /&gt;
 &amp;lt;BeginReach&amp;gt;&lt;br /&gt;
   ID                      : int               -           !Reach ID Number&lt;br /&gt;
   DOWNSTREAM_NODE         : int               -           !Downstream node ID&lt;br /&gt;
   UPSTREAM_NODE           : int               -           !Upstream node ID&lt;br /&gt;
 &amp;lt;EndReach&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Creating a Network file===&lt;br /&gt;
&lt;br /&gt;
*Obtain a drainage network with MOHID GIS in [[MOHID_GIS#Delineate_Basins|Delineate Basins]]&lt;br /&gt;
*Alternatively obtain a drainage network with program BasinDelimiter (from SourceSafe) with a '''basin.dat''' file such as:&lt;br /&gt;
&lt;br /&gt;
 TOPOGRAPHIC_FILE              : ..\..\GeneralData\DTM\MDT200mSD.dat&lt;br /&gt;
 TRESHOLD_AREA                 : 100000&lt;br /&gt;
 DELINEATE_BASIN               : 1&lt;br /&gt;
 OUTLET_I                      : 1&lt;br /&gt;
 OUTLET_J                      : 44&lt;br /&gt;
 WRITE_REACHES                 : 1&lt;br /&gt;
 REACHES_FILE                  : ..\..\GeneralData\DrainageNetwork\DrainageNetwork.dnt&lt;br /&gt;
&lt;br /&gt;
*Define the cross sections for each node (see [[Mohid_GIS#Auto_Cross_Sections|MOHID GIS]]). &lt;br /&gt;
**'''Warning 1''': Remember to select &amp;quot;Save All&amp;quot; in MOHID GIS to update the file.&lt;br /&gt;
**'''Warning 2''': Currently, this program writes a BOTTOM_LEVEL keyword for each node instead of the keyword TERRAIN_LEVEL needed by the Drainage Network module. BOTTOM_LEVEL was replaced by TERRAIN_LEVEL in the latest version of this module because of the introduction of the tabular (irregular) cross-section type, generalizing the formulation of cross-sections. The pre-processor tool is not yet adapted. Nevertheless, for regular cross-sections, TERRAIN LEVEL = BOTTOM_LEVEL + HEIGHT. It can be changed manually or with this perl script [http://docs.google.com/leaf?id=0B_xtWE4qvkq8Y2FhNjk5NTQtZTdhZC00N2I1LWE3Y2YtM2QwYzIyMjhhZDRj&amp;amp;sort=name&amp;amp;layout=list&amp;amp;num=50].&lt;/div&gt;</summary>
		<author><name>Anatrancoso</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Properties_names&amp;diff=2851</id>
		<title>Properties names</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Properties_names&amp;diff=2851"/>
				<updated>2010-02-15T19:35:01Z</updated>
		
		<summary type="html">&lt;p&gt;Anatrancoso: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align:left&amp;quot; border=1&lt;br /&gt;
|-&lt;br /&gt;
!Name!!Character Variable!!Integer Variable!!Is Particulate&lt;br /&gt;
|-&lt;br /&gt;
|particulated ammonia||Char_AdsorbedAmmonia||AdsorbedAmmonia_||X&lt;br /&gt;
|-&lt;br /&gt;
|particulated inorganic phosphorus||Char_AdsorbedInorganicP||AdsorbedInorganicP_||X&lt;br /&gt;
|-&lt;br /&gt;
|age||Char_Age||Age_||&lt;br /&gt;
|-&lt;br /&gt;
|air temperature||Char_AirTemperature||AirTemperature_||&lt;br /&gt;
|-&lt;br /&gt;
|albedo||Char_Albedo||Albedo_||&lt;br /&gt;
|-&lt;br /&gt;
|algae_1||Char_Algae_1||Algae_1_||X&lt;br /&gt;
|-&lt;br /&gt;
|algae_2||Char_Algae_2||Algae_2_||X&lt;br /&gt;
|-&lt;br /&gt;
|algae_3||Char_Algae_3||Algae_3_||X&lt;br /&gt;
|-&lt;br /&gt;
|algae_4||Char_Algae_4||Algae_4_||X&lt;br /&gt;
|-&lt;br /&gt;
|algae_5||Char_Algae_5||Algae_5_||X&lt;br /&gt;
|-&lt;br /&gt;
|ALIGHTLIM||Char_ALightLim||ALightLim_||&lt;br /&gt;
|-&lt;br /&gt;
|alkalinity||Char_Alkalinity||Alkalinity_||&lt;br /&gt;
|-&lt;br /&gt;
|water level analyzed for altimetry||Char_AltimLevelAnalyzed_||AltimLevelAnalyzed_||&lt;br /&gt;
|-&lt;br /&gt;
|water level for altimetry assimilation||Char_AltimLevelToAssimilate_||AltimLevelToAssimilate_||&lt;br /&gt;
|-&lt;br /&gt;
|salinity analyzed for altimetry||Char_AltimSalinityAnalyzed_||AltimSalinityAnalyzed_||&lt;br /&gt;
|-&lt;br /&gt;
|temperature analyzed for altimetry||Char_AltimTemperatureAnalyzed_||AltimTemperatureAnalyzed_||&lt;br /&gt;
|-&lt;br /&gt;
|ammonia||Char_Ammonia||Ammonia_||&lt;br /&gt;
|-&lt;br /&gt;
|ammonia gas||Char_AmmoniaGas||AmmoniaGas_||&lt;br /&gt;
|-&lt;br /&gt;
|anaerobic microorganism carbon||Char_AnaerobicC||AnaerobicC_||X&lt;br /&gt;
|-&lt;br /&gt;
|anaerobic microorganism nitrogen||Char_AnaerobicN||AnaerobicN_||X&lt;br /&gt;
|-&lt;br /&gt;
|anaerobic microorganism phosphorus||Char_AnaerobicP||AnaerobicP_||X&lt;br /&gt;
|-&lt;br /&gt;
|ANLIM||Char_ANLim||ANLim_||&lt;br /&gt;
|-&lt;br /&gt;
|AOVERALLLIM||Char_AOverallLim||AOverallLim_||&lt;br /&gt;
|-&lt;br /&gt;
|APLIM||Char_APLim||APLim_||&lt;br /&gt;
|-&lt;br /&gt;
|ASLIM||Char_ASLim||ASLim_||&lt;br /&gt;
|-&lt;br /&gt;
|atmospheric pressure||Char_AtmosphericPressure||AtmosphericPressure_||&lt;br /&gt;
|-&lt;br /&gt;
|atmospheric transmitivity||Char_ATMTransmitivity||ATMTransmitivity_||&lt;br /&gt;
|-&lt;br /&gt;
|autotrophic microorganism carbon||Char_AutotrophicC||AutotrophicC_||X&lt;br /&gt;
|-&lt;br /&gt;
|autotrophic microorganism nitrogen||Char_AutotrophicN||AutotrophicN_||X&lt;br /&gt;
|-&lt;br /&gt;
|autotrophic microorganism phosphorus||Char_AutotrophicP||AutotrophicP_||X&lt;br /&gt;
|-&lt;br /&gt;
|bacteria||Char_Bacteria||Bacteria_||X&lt;br /&gt;
|-&lt;br /&gt;
|baroclinic force X||Char_BaroclinicForceX_||BaroclinicForceX_||&lt;br /&gt;
|-&lt;br /&gt;
|baroclinic force Y||Char_BaroclinicForceY_||BaroclinicForceY_||&lt;br /&gt;
|-&lt;br /&gt;
|baroclinic KE||Char_BaroclinicKE||BaroclinicKE_||&lt;br /&gt;
|-&lt;br /&gt;
|baroclinic velocity U||Char_BaroclinicVelocityU_||BaroclinicVelocityU_||&lt;br /&gt;
|-&lt;br /&gt;
|baroclinic velocity V||Char_BaroclinicVelocityV_||BaroclinicVelocityV_||&lt;br /&gt;
|-&lt;br /&gt;
|barotropic velocity U||Char_BarotropicVelocityU_||BarotropicVelocityU_||&lt;br /&gt;
|-&lt;br /&gt;
|barotropic velocity V||Char_BarotropicVelocityV_||BarotropicVelocityV_||&lt;br /&gt;
|-&lt;br /&gt;
|bed rock||Char_BedRock||BedRock_||&lt;br /&gt;
|-&lt;br /&gt;
|biogenic silica||Char_BioSilica||BioSilica_||X&lt;br /&gt;
|-&lt;br /&gt;
|biochemical oxygen demand||Char_BOD||BOD_||&lt;br /&gt;
|-&lt;br /&gt;
|bottom evolution||Char_BottomEvolution||BottomEvolution_||&lt;br /&gt;
|-&lt;br /&gt;
|canopy height||Char_CanopyHeight||CanopyHeight_||&lt;br /&gt;
|-&lt;br /&gt;
|carbon dioxide||Char_CarbonDioxide||CarbonDioxide_||&lt;br /&gt;
|-&lt;br /&gt;
|carbon dioxide flux||Char_CarbonDioxideFlux||CarbonDioxideFlux_||&lt;br /&gt;
|-&lt;br /&gt;
|CBODD||Char_CBODD||CBODD_||&lt;br /&gt;
|-&lt;br /&gt;
|ciliate||Char_Ciliate||Ciliate_||&lt;br /&gt;
|-&lt;br /&gt;
|cloud cover||Char_CloudCover||CloudCover_||&lt;br /&gt;
|-&lt;br /&gt;
|CO2 atmospheric pressure||Char_CO2AtmosphericPressure||CO2AtmosphericPressure_||&lt;br /&gt;
|-&lt;br /&gt;
|dissolved CO2 partial pressure||Char_CO2PartialPressure||CO2PartialPressure_||&lt;br /&gt;
|-&lt;br /&gt;
|carbonate||Char_CO3||CO3_||&lt;br /&gt;
|-&lt;br /&gt;
|cohesive sediment||Char_Cohesive_Sediment||Cohesive_Sediment_||X&lt;br /&gt;
|-&lt;br /&gt;
|cohesive sediment coarse||Char_Cohsed_coarse||COHSED_COARSE_||X&lt;br /&gt;
|-&lt;br /&gt;
|cohesive sediment fine||Char_Cohsed_fine||COHSED_FINE_||X&lt;br /&gt;
|-&lt;br /&gt;
|cohesive sediment medium||Char_Cohsed_medium||COHSED_MEDIUM_||X&lt;br /&gt;
|-&lt;br /&gt;
|consolidation flux||Char_ConsolidationFlux||ConsolidationFlux_||&lt;br /&gt;
|-&lt;br /&gt;
|coriolis X||Char_CoriolisX_||CoriolisX_||&lt;br /&gt;
|-&lt;br /&gt;
|coriolis Y||Char_CoriolisY_||CoriolisY_||&lt;br /&gt;
|-&lt;br /&gt;
|Current X||Char_CurrentX||CurrentX_||&lt;br /&gt;
|-&lt;br /&gt;
|Current Y||Char_CurrentY||CurrentY_||&lt;br /&gt;
|-&lt;br /&gt;
|D35||Char_D35||D35_||&lt;br /&gt;
|-&lt;br /&gt;
|D50||Char_D50||D50_||&lt;br /&gt;
|-&lt;br /&gt;
|D90||Char_D90||D90_||&lt;br /&gt;
|-&lt;br /&gt;
|density||Char_Density||Density_||&lt;br /&gt;
|-&lt;br /&gt;
|detritus||Char_Detritus||Detritus_||X&lt;br /&gt;
|-&lt;br /&gt;
|diagrossprod||Char_DiaGrossProd||DiaGrossProd_||&lt;br /&gt;
|-&lt;br /&gt;
|dialightlim||Char_DiaLightLim||DiaLightLim_||&lt;br /&gt;
|-&lt;br /&gt;
|sand diameter||Char_Diameter||Diameter_||&lt;br /&gt;
|-&lt;br /&gt;
|dianitrogenlim||Char_DiaNLim||DiaNLim_||&lt;br /&gt;
|-&lt;br /&gt;
|dianutrientlim||Char_DiaNutrientLim||DiaNutrientLim_||&lt;br /&gt;
|-&lt;br /&gt;
|diaphosphoruslim||Char_DiaPLim||DiaPLim_||&lt;br /&gt;
|-&lt;br /&gt;
|diasilicalim||Char_DiaSiLim||DiaSiLim_||&lt;br /&gt;
|-&lt;br /&gt;
|diatemperaturelim||Char_DiaTemperatureLim||DiaTemperatureLim_||&lt;br /&gt;
|-&lt;br /&gt;
|diatoms carbon||Char_Diatom_C||Diatom_C_||X&lt;br /&gt;
|-&lt;br /&gt;
|diatoms chlorophyll||Char_Diatom_Chl||Diatom_Chl_||X&lt;br /&gt;
|-&lt;br /&gt;
|diatoms nitrogen||Char_Diatom_N||Diatom_N_||X&lt;br /&gt;
|-&lt;br /&gt;
|diatoms phosphorus||Char_Diatom_P||Diatom_P_||X&lt;br /&gt;
|-&lt;br /&gt;
|diatoms||Char_Diatoms||Diatom_Si_||X&lt;br /&gt;
|-&lt;br /&gt;
|diatoms silica||Char_Diatom_Si||Diatoms_||X&lt;br /&gt;
|-&lt;br /&gt;
|dissolved oxygen percent saturation||Char_DissolO2PercentSat||DissolO2PercentSat_||&lt;br /&gt;
|-&lt;br /&gt;
|dissolved arsenic||Char_DissolvedArsenic||DissolvedArsenic_||&lt;br /&gt;
|-&lt;br /&gt;
|dissolved calcium||Char_DissolvedCalcium||DissolvedCalcium_||&lt;br /&gt;
|-&lt;br /&gt;
|dissolved contaminant||Char_DissolvedContaminant||DissolvedContaminant_||&lt;br /&gt;
|-&lt;br /&gt;
|dissolved sodium||Char_DissolvedSodium||DissolvedSodium_||&lt;br /&gt;
|-&lt;br /&gt;
|DOAP||Char_DOAP||DOAP_||&lt;br /&gt;
|-&lt;br /&gt;
|DOAR||Char_DOAR||DOAR_||&lt;br /&gt;
|-&lt;br /&gt;
|labile dissolved organic carbon||Char_DOC||DOC_||&lt;br /&gt;
|-&lt;br /&gt;
|semi-labile dissolved organic carbon||Char_DOCsl||DOCsl_||&lt;br /&gt;
|-&lt;br /&gt;
|DOEP||Char_DOEP||DOEP_||&lt;br /&gt;
|-&lt;br /&gt;
|DOER||Char_DOER||DOER_||&lt;br /&gt;
|-&lt;br /&gt;
|labile dissolved organic nitrogen||Char_DON||DON_||&lt;br /&gt;
|-&lt;br /&gt;
|DONIT||Char_DONIT||DONIT_||&lt;br /&gt;
|-&lt;br /&gt;
|dissolved non-refractory organic nitrogen||Char_DONNon_Refractory||DONNon_Refractory_||&lt;br /&gt;
|-&lt;br /&gt;
|dissolved refractory organic nitrogen||Char_DONRefractory||DONRefractory_||&lt;br /&gt;
|-&lt;br /&gt;
|semi-labile dissolved organic nitrogen||Char_DONsl||DONsl_||&lt;br /&gt;
|-&lt;br /&gt;
|DOOM||Char_DOOM||DOOM_||&lt;br /&gt;
|-&lt;br /&gt;
|labile dissolved organic phosphorus||Char_DOP||DOP_||&lt;br /&gt;
|-&lt;br /&gt;
|dissolved non-refractory organic phosphorus||Char_DOPNon_Refractory||DOPNon_Refractory_||&lt;br /&gt;
|-&lt;br /&gt;
|dissolved refractory organic phosphorus||Char_DOPRefractory||DOPRefractory_||&lt;br /&gt;
|-&lt;br /&gt;
|semi-labile dissolved organic phosphorus||Char_DOPsl||DOPsl_||&lt;br /&gt;
|-&lt;br /&gt;
|downward long wave radiation||Char_DownwardLongWaveRadiation||DownwardLongWaveRadiation_||&lt;br /&gt;
|-&lt;br /&gt;
|drifting macroalgae||Char_DriftingMacroAlgae||DriftingMacroAlgae_||&lt;br /&gt;
|-&lt;br /&gt;
|DSIAG||Char_DSIAG||DSIAG_||&lt;br /&gt;
|-&lt;br /&gt;
|DSID||Char_DSID||DSID_||&lt;br /&gt;
|-&lt;br /&gt;
|DSIEG||Char_DSIEG||DSIEG_||&lt;br /&gt;
|-&lt;br /&gt;
|dissolved silica||Char_DSilica||DSilica_||&lt;br /&gt;
|-&lt;br /&gt;
|escherichia coli||Char_E_Coli||E_Coli_||&lt;br /&gt;
|-&lt;br /&gt;
|ELIGHTLIM||Char_ELightLim||ELightLim_||&lt;br /&gt;
|-&lt;br /&gt;
|ENLIM||Char_ENLim||ENLim_||&lt;br /&gt;
|-&lt;br /&gt;
|EOVERALLLIM||Char_EOverallLim||EOverallLim_||&lt;br /&gt;
|-&lt;br /&gt;
|epiphyton_1||Char_Epiphyton_1||Epiphyton_1_||X&lt;br /&gt;
|-&lt;br /&gt;
|epiphyton_2||Char_Epiphyton_2||Epiphyton_2_||X&lt;br /&gt;
|-&lt;br /&gt;
|epiphyton_3||Char_Epiphyton_3||Epiphyton_3_||X&lt;br /&gt;
|-&lt;br /&gt;
|epiphyton_4||Char_Epiphyton_4||Epiphyton_4_||X&lt;br /&gt;
|-&lt;br /&gt;
|epiphyton_5||Char_Epiphyton_5||Epiphyton_5_||X&lt;br /&gt;
|-&lt;br /&gt;
|EPLIM||Char_EPLim||EPLim_||&lt;br /&gt;
|-&lt;br /&gt;
|ESLIM||Char_ESLim||ESLim_||&lt;br /&gt;
|-&lt;br /&gt;
|evaporation||Char_Evaporation||Evaporation_||&lt;br /&gt;
|-&lt;br /&gt;
|crop coefficient||Char_EVTPCropCoefficient||EVTPCropCoefficient_||&lt;br /&gt;
|-&lt;br /&gt;
|fecal coliforms||Char_Fecal_Coliforms||Fecal_Coliforms_||&lt;br /&gt;
|-&lt;br /&gt;
|fish||Char_Fish||Fish_||&lt;br /&gt;
|-&lt;br /&gt;
|fish food||Char_FishFood||FishFood_||&lt;br /&gt;
|-&lt;br /&gt;
|flagellates carbon||Char_Flagellate_C||Flagellate_C_||X&lt;br /&gt;
|-&lt;br /&gt;
|flagellates chlorophyll||Char_Flagellate_Chl||Flagellate_Chl_||X&lt;br /&gt;
|-&lt;br /&gt;
|flagellates nitrogen||Char_Flagellate_N||Flagellate_N_||X&lt;br /&gt;
|-&lt;br /&gt;
|flagellates phosphorus||Char_Flagellate_P||Flagellate_P_||X&lt;br /&gt;
|-&lt;br /&gt;
|flow modulus||Char_FlowModulus_||FlowModulus_||&lt;br /&gt;
|-&lt;br /&gt;
|generic property||Char_GenericProperty||GenericProperty_||&lt;br /&gt;
|-&lt;br /&gt;
|grossprod||Char_GrossProd||GrossProd_||&lt;br /&gt;
|-&lt;br /&gt;
|bicarbonate||Char_HCO3||HCO3_||&lt;br /&gt;
|-&lt;br /&gt;
|heterotrophic bacteria carbon||Char_Het_Bacteria_C||Het_Bacteria_C_||&lt;br /&gt;
|-&lt;br /&gt;
|heterotrophic bacteria nitrogen||Char_Het_Bacteria_N||Het_Bacteria_N_||&lt;br /&gt;
|-&lt;br /&gt;
|heterotrophic bacteria phosphorus||Char_Het_Bacteria_P||Het_Bacteria_P_||&lt;br /&gt;
|-&lt;br /&gt;
|heterotrophic microorganism carbon||Char_HeterotrophicC||Het_Nanoflagellate_C_||&lt;br /&gt;
|-&lt;br /&gt;
|heterotrophic microorganism nitrogen||Char_HeterotrophicN||Het_Nanoflagellate_N_||&lt;br /&gt;
|-&lt;br /&gt;
|heterotrophic microorganism phosphorus||Char_HeterotrophicP||Het_Nanoflagellate_P_||&lt;br /&gt;
|-&lt;br /&gt;
|heterotrophic nanoflagellate carbon||Char_Het_Nanoflagellate_C||HeterotrophicC_||X&lt;br /&gt;
|-&lt;br /&gt;
|heterotrophic nanoflagellate nitrogen||Char_Het_Nanoflagellate_N||HeterotrophicN_||X&lt;br /&gt;
|-&lt;br /&gt;
|heterotrophic nanoflagellate phosphorus||Char_Het_Nanoflagellate_P||HeterotrophicP_||X&lt;br /&gt;
|-&lt;br /&gt;
|horizontal transport X||Char_HorizontalTransportX_||HorizontalTransportX_||&lt;br /&gt;
|-&lt;br /&gt;
|horizontal transport Y||Char_HorizontalTransportY_||HorizontalTransportY_||&lt;br /&gt;
|-&lt;br /&gt;
|inorganic carbon||Char_ICarbon||ICarbon_||&lt;br /&gt;
|-&lt;br /&gt;
|ICARBONAP||Char_ICarbonAP||ICarbonAP_||&lt;br /&gt;
|-&lt;br /&gt;
|ICARBONBOD||Char_ICarbonBOD||ICarbonBOD_||&lt;br /&gt;
|-&lt;br /&gt;
|ICARBONEP||Char_ICarbonEP||ICarbonEP_||&lt;br /&gt;
|-&lt;br /&gt;
|inorganic phosphorus||Char_Inorganic_Phosphorus||Inorganic_Phosphorus_||&lt;br /&gt;
|-&lt;br /&gt;
|ionic strength||Char_IonicStrength||IonicStrength_||&lt;br /&gt;
|-&lt;br /&gt;
|irrigation||Char_Irrigation||Irrigation_||&lt;br /&gt;
|-&lt;br /&gt;
|Kinetic Energy||Char_KineticEnergy||KineticEnergy_||&lt;br /&gt;
|-&lt;br /&gt;
|particulate labile organic carbon||Char_LabileOrganicC||LabileOrganicC_||X&lt;br /&gt;
|-&lt;br /&gt;
|larvae||Char_Larvae||Larvae_||X&lt;br /&gt;
|-&lt;br /&gt;
|latent heat||Char_LatentHeat||LatentHeat_||&lt;br /&gt;
|-&lt;br /&gt;
|labile dissolved organic matter||Char_LDOM||LDOM_||&lt;br /&gt;
|-&lt;br /&gt;
|LDOMAP||Char_LDOMAP||LDOMAP_||&lt;br /&gt;
|-&lt;br /&gt;
|LDOMD||Char_LDOMD||LDOMD_||&lt;br /&gt;
|-&lt;br /&gt;
|LDOMEP||Char_LDOMEP||LDOMEP_||&lt;br /&gt;
|-&lt;br /&gt;
|leaf area index||Char_LeafAreaIndex||LeafAreaIndex_||&lt;br /&gt;
|-&lt;br /&gt;
|lightlim||Char_LightLim||LightLim_||&lt;br /&gt;
|-&lt;br /&gt;
|long wave solar radiation extinction||Char_LongWaveSolarRadiaExtin||LongWaveSolarRadiationExtin_||&lt;br /&gt;
|-&lt;br /&gt;
|long wave solar radiation||Char_LongWaveSolarRadiation||LongWaveSolarRadiation_||&lt;br /&gt;
|-&lt;br /&gt;
|labile particulate organic matter||Char_LPOM||LPOM_||X&lt;br /&gt;
|-&lt;br /&gt;
|LPOMAP||Char_LPOMAP||LPOMAP_||&lt;br /&gt;
|-&lt;br /&gt;
|LPOMD||Char_LPOMD||LPOMD_||&lt;br /&gt;
|-&lt;br /&gt;
|LRDOMD||Char_LRDOMD||LRDOMD_||&lt;br /&gt;
|-&lt;br /&gt;
|LRPOMD||Char_LRPOMD||LRPOMD_||&lt;br /&gt;
|-&lt;br /&gt;
|macroalgae||Char_MacroAlgae||MacroAlgae_||X&lt;br /&gt;
|-&lt;br /&gt;
|mean directional spread||Char_MeanDirectionalSpread||MeanDirectionalSpread_||&lt;br /&gt;
|-&lt;br /&gt;
|mean sea level pressure||Char_MeanSeaLevelPressure||MeanSeaLevelPressure_||&lt;br /&gt;
|-&lt;br /&gt;
|mean wave direction||Char_MeanWaveDirection||MeanWaveDirection_||&lt;br /&gt;
|-&lt;br /&gt;
|mean wave length||Char_MeanWaveLength||MeanWaveLength_||&lt;br /&gt;
|-&lt;br /&gt;
|mean wave period||Char_MeanWavePeriod||MeanWavePeriod_||&lt;br /&gt;
|-&lt;br /&gt;
|mesozooplankton carbon||Char_Mesozooplankton_C||Mesozooplankton_C_||&lt;br /&gt;
|-&lt;br /&gt;
|mesozooplankton nitrogen||Char_Mesozooplankton_N||Mesozooplankton_N_||&lt;br /&gt;
|-&lt;br /&gt;
|mesozooplankton phosphorus||Char_Mesozooplankton_P||Mesozooplankton_P_||&lt;br /&gt;
|-&lt;br /&gt;
|methane||Char_Methane||Methane_||&lt;br /&gt;
|-&lt;br /&gt;
|microphytobenthos||Char_MicroPhytoBenthos||MicroPhytoBenthos_||&lt;br /&gt;
|-&lt;br /&gt;
|microzooplankton carbon||Char_Microzooplankton_C||Microzooplankton_C_||&lt;br /&gt;
|-&lt;br /&gt;
|microzooplankton nitrogen||Char_Microzooplankton_N||Microzooplankton_N_||&lt;br /&gt;
|-&lt;br /&gt;
|microzooplankton phosphorus||Char_Microzooplankton_P||Microzooplankton_P_||&lt;br /&gt;
|-&lt;br /&gt;
|autotrophic flagellates carbon||Char_Mix_Flagellate_C||Mix_Flagellate_C_||X&lt;br /&gt;
|-&lt;br /&gt;
|autotrophic flagellates chlorophyll||Char_Mix_Flagellate_Chl||Mix_Flagellate_Chl_||X&lt;br /&gt;
|-&lt;br /&gt;
|autotrophic flagellates nitrogen||Char_Mix_Flagellate_N||Mix_Flagellate_N_||X&lt;br /&gt;
|-&lt;br /&gt;
|autotrophic flagellates phosphorus||Char_Mix_Flagellate_P||Mix_Flagellate_P_||X&lt;br /&gt;
|-&lt;br /&gt;
|net long wave radiation||Char_NetLongWaveRadiation||NetLongWaveRadiation_||&lt;br /&gt;
|-&lt;br /&gt;
|netprod||Char_NetProd||NetProd_||&lt;br /&gt;
|-&lt;br /&gt;
|new bathymetry||Char_Newbathymetry||Newbathymetry_||&lt;br /&gt;
|-&lt;br /&gt;
|nitrogen gas||Char_Ngas||Ngas_||&lt;br /&gt;
|-&lt;br /&gt;
|NH4AG||Char_NH4AG||NH4AG_||&lt;br /&gt;
|-&lt;br /&gt;
|NH4AR||Char_NH4AR||NH4AR_||&lt;br /&gt;
|-&lt;br /&gt;
|NH4BOD||Char_NH4BOD||NH4BOD_||&lt;br /&gt;
|-&lt;br /&gt;
|NH4D||Char_NH4D||NH4D_||&lt;br /&gt;
|-&lt;br /&gt;
|NH4EG||Char_NH4EG||NH4EG_||&lt;br /&gt;
|-&lt;br /&gt;
|NH4ER||Char_NH4ER||NH4ER_||&lt;br /&gt;
|-&lt;br /&gt;
|NH4OM||Char_NH4OM||NH4OM_||&lt;br /&gt;
|-&lt;br /&gt;
|nitrate||Char_Nitrate||Nitrate_||&lt;br /&gt;
|-&lt;br /&gt;
|nitrite||Char_Nitrite||Nitrite_||&lt;br /&gt;
|-&lt;br /&gt;
|nitrogenlim||Char_NLim||NLim_||&lt;br /&gt;
|-&lt;br /&gt;
|NO3AG||Char_NO3AG||NO3AG_||&lt;br /&gt;
|-&lt;br /&gt;
|NO3D||Char_NO3D||NO3D_||&lt;br /&gt;
|-&lt;br /&gt;
|NO3EG||Char_NO3EG||NO3EG_||&lt;br /&gt;
|-&lt;br /&gt;
|non solar flux||Char_NonSolarFlux||NonSolarFlux_||&lt;br /&gt;
|-&lt;br /&gt;
|nutrientlim||Char_NutrientLim||NutrientLim_||&lt;br /&gt;
|-&lt;br /&gt;
|O2 atmospheric pressure||Char_O2AtmosphericPressure||O2AtmosphericPressure_||&lt;br /&gt;
|-&lt;br /&gt;
|obstacle drag coefficient||Char_ObstacleDragCoef||ObstacleDragCoef_||&lt;br /&gt;
|-&lt;br /&gt;
|oil||Char_Oil||Oil_||&lt;br /&gt;
|-&lt;br /&gt;
|oxygen||Char_Oxygen||Oxygen_||&lt;br /&gt;
|-&lt;br /&gt;
|oxygen flux||Char_OxygenFlux||OxygenFlux_||&lt;br /&gt;
|-&lt;br /&gt;
|particulate arsenic||Char_ParticulateArsenic||ParticulateArsenic_||X&lt;br /&gt;
|-&lt;br /&gt;
|particulate calcium||Char_ParticulateCalcium||ParticulateCalcium_||X&lt;br /&gt;
|-&lt;br /&gt;
|particulate contaminant||Char_ParticulateContaminant||ParticulateContaminant_||X&lt;br /&gt;
|-&lt;br /&gt;
|particulate sodium||Char_ParticulateSodium||ParticulateSodium_||X&lt;br /&gt;
|-&lt;br /&gt;
|peak direction||Char_PeakDirection||PeakDirection_||&lt;br /&gt;
|-&lt;br /&gt;
|peak frequency||Char_PeakFrequency||PeakFrequency_||&lt;br /&gt;
|-&lt;br /&gt;
|sand percentage||Char_Percentage||Percentage_||&lt;br /&gt;
|-&lt;br /&gt;
|Perturbation Potential Energy||Char_PerturbationPE||PerturbationPE_||&lt;br /&gt;
|-&lt;br /&gt;
|pH||Char_pH||pH_||&lt;br /&gt;
|-&lt;br /&gt;
|phosphorus adsortion index||Char_PhosphorusAdsortionIndex||PhosphorusAdsortionIndex_||&lt;br /&gt;
|-&lt;br /&gt;
|phytoplankton||Char_Phytoplankton||Phytoplankton_||X&lt;br /&gt;
|-&lt;br /&gt;
|picoalgae carbon||Char_Picoalgae_C||Picoalgae_C_||X&lt;br /&gt;
|-&lt;br /&gt;
|picoalgae chlorophyll||Char_Picoalgae_Chl||Picoalgae_Chl_||X&lt;br /&gt;
|-&lt;br /&gt;
|picoalgae nitrogen||Char_Picoalgae_N||Picoalgae_N_||X&lt;br /&gt;
|-&lt;br /&gt;
|picoalgae phosphorus||Char_Picoalgae_P||Picoalgae_P_||X&lt;br /&gt;
|-&lt;br /&gt;
|phosphoruslim||Char_PLim||PLim_||&lt;br /&gt;
|-&lt;br /&gt;
|PO4AG||Char_PO4AG||PO4AG_||&lt;br /&gt;
|-&lt;br /&gt;
|PO4AR||Char_PO4AR||PO4AR_||&lt;br /&gt;
|-&lt;br /&gt;
|PO4BOD||Char_PO4BOD||PO4BOD_||&lt;br /&gt;
|-&lt;br /&gt;
|PO4EG||Char_PO4EG||PO4EG_||&lt;br /&gt;
|-&lt;br /&gt;
|PO4ER||Char_PO4ER||PO4ER_||&lt;br /&gt;
|-&lt;br /&gt;
|PO4OM||Char_PO4OM||PO4OM_||&lt;br /&gt;
|-&lt;br /&gt;
|particulate organic carbon||Char_POC||POC_||X&lt;br /&gt;
|-&lt;br /&gt;
|particulate organic nitrogen||Char_PON||PON_||X&lt;br /&gt;
|-&lt;br /&gt;
|pon1||Char_PON1||PON1_||X&lt;br /&gt;
|-&lt;br /&gt;
|pon2||Char_PON2||PON2_||X&lt;br /&gt;
|-&lt;br /&gt;
|pon3||Char_PON3||PON3_||X&lt;br /&gt;
|-&lt;br /&gt;
|pon4||Char_PON4||PON4_||X&lt;br /&gt;
|-&lt;br /&gt;
|pon5||Char_PON5||PON5_||X&lt;br /&gt;
|-&lt;br /&gt;
|particulate refractory organic nitrogen||Char_PONRefractory||PONRefractory_||X&lt;br /&gt;
|-&lt;br /&gt;
|particulate organic phosphorus||Char_POP||POP_||X&lt;br /&gt;
|-&lt;br /&gt;
|pop1||Char_POP1||POP1_||X&lt;br /&gt;
|-&lt;br /&gt;
|pop2||Char_POP2||POP2_||X&lt;br /&gt;
|-&lt;br /&gt;
|pop3||Char_POP3||POP3_||X&lt;br /&gt;
|-&lt;br /&gt;
|pop4||Char_POP4||POP4_||X&lt;br /&gt;
|-&lt;br /&gt;
|pop5||Char_POP5||POP5_||X&lt;br /&gt;
|-&lt;br /&gt;
|porosity||Char_Porosity||Porosity_||&lt;br /&gt;
|-&lt;br /&gt;
|precipitation||Char_Precipitation||Precipitation_||&lt;br /&gt;
|-&lt;br /&gt;
|PSIAM||Char_PSIAM||PSIAM_||&lt;br /&gt;
|-&lt;br /&gt;
|PSID||Char_PSID||PSID_||&lt;br /&gt;
|-&lt;br /&gt;
|particulate silica||Char_PSilica||PSilica_||X&lt;br /&gt;
|-&lt;br /&gt;
|refractory dissolved organic matter||Char_RDOM||RDOM_||&lt;br /&gt;
|-&lt;br /&gt;
|RDOMD||Char_RDOMD||RDOMD_||&lt;br /&gt;
|-&lt;br /&gt;
|reference evapotranspiration||Char_RefEvapotrans||RefEvapotrans_||&lt;br /&gt;
|-&lt;br /&gt;
|particulated refractory organic carbon||Char_RefreactaryOrganicC||RefreactaryOrganicC_||X&lt;br /&gt;
|-&lt;br /&gt;
|particulated refractory organic nitrogen||Char_RefreactaryOrganicN||RefreactaryOrganicN_||X&lt;br /&gt;
|-&lt;br /&gt;
|particulated refractory organic phosphorus||Char_RefreactaryOrganicP||RefreactaryOrganicP_||X&lt;br /&gt;
|-&lt;br /&gt;
|relative humidity||Char_RelativeHumidity||RelativeHumidity_||&lt;br /&gt;
|-&lt;br /&gt;
|root biomass||Char_RootBiomass||RootBiomass_||&lt;br /&gt;
|-&lt;br /&gt;
|root depth||Char_RootDepth||RootDepth_||&lt;br /&gt;
|-&lt;br /&gt;
|refractory particulate organic matter||Char_RPOM||RPOM_||X&lt;br /&gt;
|-&lt;br /&gt;
|RPOMD||Char_RPOMD||RPOMD_||&lt;br /&gt;
|-&lt;br /&gt;
|salinity||Char_Salinity||Salinity_||&lt;br /&gt;
|-&lt;br /&gt;
|salinitylim||Char_SalinityLim||SalinityLim_||&lt;br /&gt;
|-&lt;br /&gt;
|sand||Char_Sand||Sand_||&lt;br /&gt;
|-&lt;br /&gt;
|sand tau critic||Char_SandTauCritic||SandTauCritic_||&lt;br /&gt;
|-&lt;br /&gt;
|sediment||Char_Sediment||Sediment||&lt;br /&gt;
|-&lt;br /&gt;
|sensible heat||Char_SensibleHeat||SensibleHeat_||&lt;br /&gt;
|-&lt;br /&gt;
|shear stress||Char_ShearStress_||ShearStress_||&lt;br /&gt;
|-&lt;br /&gt;
|shear velocity||Char_ShearVelocity||ShearVelocity_||&lt;br /&gt;
|-&lt;br /&gt;
|short wave solar radiation extinction||Char_ShortWaveSolarRadiaExtin||ShortWaveSolarRadiationExtin_||&lt;br /&gt;
|-&lt;br /&gt;
|short wave solar radiation||Char_ShortWaveSolarRadiation||ShortWaveSolarRadiation_||&lt;br /&gt;
|-&lt;br /&gt;
|significant wave height||Char_SignificantWaveHeight||SignificantWaveHeight_||&lt;br /&gt;
|-&lt;br /&gt;
|silicate acid||Char_Silicate||Silicate_||&lt;br /&gt;
|-&lt;br /&gt;
|soil dry density||Char_SoilDryDensity||SoilDryDensity_||&lt;br /&gt;
|-&lt;br /&gt;
|solar radiation||Char_SolarRadiation||SolarRadiation_||&lt;br /&gt;
|-&lt;br /&gt;
|solubilizing microorganism carbon||Char_SolubilizingC||SolubilizingC_||X&lt;br /&gt;
|-&lt;br /&gt;
|solubilizing microorganism nitrogen||Char_SolubilizingN||SolubilizingN_||X&lt;br /&gt;
|-&lt;br /&gt;
|solubilizing microorganism phosphorus||Char_SolubilizingP||SolubilizingP_||X&lt;br /&gt;
|-&lt;br /&gt;
|specific leaf storage||Char_SpecificLeafStorage||SpecificLeafStorage_||&lt;br /&gt;
|-&lt;br /&gt;
|sunshine hours||Char_SunHours||SunHours_||&lt;br /&gt;
|-&lt;br /&gt;
|surface radiation||Char_SurfaceRadiation||SurfaceRadiation_||&lt;br /&gt;
|-&lt;br /&gt;
|surface water flux||Char_SurfaceWaterFlux||SurfaceWaterFlux_||&lt;br /&gt;
|-&lt;br /&gt;
|T90||Char_T90||T90_||&lt;br /&gt;
|-&lt;br /&gt;
|T90 e.coli||Char_T90_E_Coli||T90_E_Coli_||&lt;br /&gt;
|-&lt;br /&gt;
|temperature||Char_Temperature||Temperature_||&lt;br /&gt;
|-&lt;br /&gt;
|temperaturelim||Char_TemperatureLim||TemperatureLim_||&lt;br /&gt;
|-&lt;br /&gt;
|total plant biomass||Char_TotalPlantBiomass||TotalPlantBiomass_||&lt;br /&gt;
|-&lt;br /&gt;
|total plant nitrogen||Char_TotalPlantNitrogen||TotalPlantNitrogen_||&lt;br /&gt;
|-&lt;br /&gt;
|total plant phosphorus||Char_TotalPlantPhosphorus||TotalPlantPhosphorus_||&lt;br /&gt;
|-&lt;br /&gt;
|transport capacity||Char_TransportCapacity||TransportCapacity_||&lt;br /&gt;
|-&lt;br /&gt;
|transport capacity X||Char_TransportCapacityX||TransportCapacityX_||&lt;br /&gt;
|-&lt;br /&gt;
|transport capacity Y||Char_TransportCapacityY||TransportCapacityY_||&lt;br /&gt;
|-&lt;br /&gt;
|TSS||Char_TSS||TSS_||X&lt;br /&gt;
|-&lt;br /&gt;
|turbulent kinetic energy||Char_TurbulentKineticEnergy||TurbulentKineticEnergy_||&lt;br /&gt;
|-&lt;br /&gt;
|upward long wave radiation||Char_UpwardLongWaveRadiation||UpwardLongWaveRadiation_||&lt;br /&gt;
|-&lt;br /&gt;
|urea||Char_Urea||Urea_||&lt;br /&gt;
|-&lt;br /&gt;
|variance field for assimilation||Char_VarianceFieldToAssimilate_||VarianceFieldToAssimilate_||&lt;br /&gt;
|-&lt;br /&gt;
|velocity direction||Char_VelocityDirection_||VelocityDirection_||&lt;br /&gt;
|-&lt;br /&gt;
|velocity modulus||Char_VelocityModulus_||VelocityModulus_||&lt;br /&gt;
|-&lt;br /&gt;
|velocity U||Char_VelocityU_||VelocityU_||&lt;br /&gt;
|-&lt;br /&gt;
|velocity V||Char_VelocityV_||VelocityV_||&lt;br /&gt;
|-&lt;br /&gt;
|velocity W||Char_VelocityW_||VelocityW_||&lt;br /&gt;
|-&lt;br /&gt;
|vertical z||Char_VerticalZ||VerticalZ_||&lt;br /&gt;
|-&lt;br /&gt;
|vorticity||Char_Vorticity||Vorticity_||&lt;br /&gt;
|-&lt;br /&gt;
|VSS||Char_VSS||VSS_||X&lt;br /&gt;
|-&lt;br /&gt;
|water flux X||Char_WaterFluxX_||WaterFluxX_||&lt;br /&gt;
|-&lt;br /&gt;
|water flux Y||Char_WaterFluxY_||WaterFluxY_||&lt;br /&gt;
|-&lt;br /&gt;
|water level||Char_WaterLevel_||WaterLevel_||&lt;br /&gt;
|-&lt;br /&gt;
|wave amplitude||Char_WaveAmplitude||WaveAmplitude_||&lt;br /&gt;
|-&lt;br /&gt;
|wave direction||Char_WaveDirection||WaveDirection_||&lt;br /&gt;
|-&lt;br /&gt;
|wave period||Char_WavePeriod||WavePeriod_||&lt;br /&gt;
|-&lt;br /&gt;
|wave stress X||Char_WaveStressX||WaveStressX_||&lt;br /&gt;
|-&lt;br /&gt;
|wave stress Y||Char_WaveStressY||WaveStressY_||&lt;br /&gt;
|-&lt;br /&gt;
|wave swell height||Char_WaveSwellHeight||WaveSwellHeight_||&lt;br /&gt;
|-&lt;br /&gt;
|wind angle||Char_WindAngle||WindAngle_||&lt;br /&gt;
|-&lt;br /&gt;
|wind direction||Char_WindDirection||WindDirection_||&lt;br /&gt;
|-&lt;br /&gt;
|wind modulos||Char_WindModulos||WindModulos_||&lt;br /&gt;
|-&lt;br /&gt;
|wind modulus||Char_WindModulus||WindModulus_||&lt;br /&gt;
|-&lt;br /&gt;
|wind sea peak direction||Char_WindSeaPeakDirection||WindSeaPeakDirection_||&lt;br /&gt;
|-&lt;br /&gt;
|wind sea peak frequency||Char_WindSeaPeakFrequency||WindSeaPeakFrequency_||&lt;br /&gt;
|-&lt;br /&gt;
|wind shear velocity||Char_WindShearVelocity||WindShearVelocity_||&lt;br /&gt;
|-&lt;br /&gt;
|wind stress X||Char_WindStressX||WindStressX_||&lt;br /&gt;
|-&lt;br /&gt;
|wind stress Y||Char_WindStressY||WindStressY_||&lt;br /&gt;
|-&lt;br /&gt;
|wind velocity X||Char_WindVelocityX||WindVelocityX_||&lt;br /&gt;
|-&lt;br /&gt;
|wind velocity Y||Char_WindVelocityY||WindVelocityY_||&lt;br /&gt;
|-&lt;br /&gt;
|zooplankton||Char_Zooplankton||Zooplankton_||&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Anatrancoso</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Module_DrainageNetwork&amp;diff=2850</id>
		<title>Module DrainageNetwork</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Module_DrainageNetwork&amp;diff=2850"/>
				<updated>2010-02-15T17:55:05Z</updated>
		
		<summary type="html">&lt;p&gt;Anatrancoso: /* Creating a Network file */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Overview=&lt;br /&gt;
&lt;br /&gt;
This module can be used by two models: [[Mohid_Land|MOHID Land]], and [[Mohid_River_Network|MOHID River Network]]. Like other modules, it has a specific input file, called '''DrainageNetwork_X.dat''', where X is the simulation number. The following tables describe the keywords that can be used, their data type, and the default values (in case of omission).&lt;br /&gt;
&lt;br /&gt;
==DrainageNetwork_X.dat Keywords==&lt;br /&gt;
&lt;br /&gt;
===General===&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 NETWORK_FILE              : char              -           !Path to drainage network file&lt;br /&gt;
 CHECK_NODES               : 0/1               [1]         !Ckeck nodes consistency&lt;br /&gt;
 CHECK_REACHES             : 0/1               [1]         !Check reaches consistency&lt;br /&gt;
 GLOBAL_MANNING            : real              -           !Rugosity in Channels&lt;br /&gt;
 GEO_CONVERSATION_FACTOR   : real              [1.]        !Lat to Meters rough estimation&lt;br /&gt;
&lt;br /&gt;
===Stabilization===&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 STABILIZE                 : 0/1               [0]         !Restart time iteration if high volume gradients&lt;br /&gt;
 STABILIZE_FACTOR          : real              [0.1]       !max gradient in time steps as fraction of old volume&lt;br /&gt;
 MAX_ITERATIONS            : int               [100]       !Max iterations for stabilized check&lt;br /&gt;
 DT_FACTOR                 : real              [0.8]       !Factor for DT Prediction&lt;br /&gt;
 MAX_DT_FLOOD              : real              [10.0]      !Max DT if channel water level exceeds full bank&lt;br /&gt;
&lt;br /&gt;
===Hydrodynamic===&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 HYDRODYNAMIC_APROX        : int               [1]         !1 - KinematicWave, 2 - DiffusionWave, 3 - DynamicWave&lt;br /&gt;
 NUMERICAL_SCHEME          : int               [0]         !0 - ExplicitScheme, 1 - ImplicitScheme&lt;br /&gt;
 MASS_ERR                  : real(8)           [0.001]     !Max error in mass conservation&lt;br /&gt;
 MIN_WATER_DEPTH           : real              [0.001]     !Min water depth in nodes (For h &amp;lt; MIN_WATER_DEPTH water stops flowing)&lt;br /&gt;
 INITIAL_WATER_DEPTH       : real              [0.0]       !Initial water depth&lt;br /&gt;
 MINIMUM_SLOPE             : real              [0.0]       !Minimum Slope for Kinematic Wave&lt;br /&gt;
&lt;br /&gt;
===Downstream Boundary===&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 DOWNSTREAM_BOUNDARY       : int               [1]         !0 - Dam, 1 - ZDG, 2 - CD, 3 - ImposedWaterDepth, 3 - ImposedVelocity&lt;br /&gt;
 DEFAULTVALUE              : real              -           !Default value at downstream boundary&lt;br /&gt;
 FILE_IN_TIME              : char              [NONE]      !If DOWNSTREAM_BOUNDARY = ImposedWaterDepth, this can be NONE or TIMESERIE&lt;br /&gt;
 FILENAME                  : char              -           !If FILE_IN_TIME = TIMESERIE, this is the name of timeserie file for the downstream boundary&lt;br /&gt;
 DATA_COLUMN               : int               -           !Number of column with data in FILE_IN_TIME&lt;br /&gt;
&lt;br /&gt;
===Output===&lt;br /&gt;
&lt;br /&gt;
Output is given for all nodes in HDF5 format, and also as time series for the specified nodes in TIME_SERIE_LOCATION file. These nodes are identified by their IDS (see Network file) and have to be inside the block  '''&amp;lt;BeginNodeTimeSerie&amp;gt;  / &amp;lt;EndNodeTimeSerie&amp;gt;'''.&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 OUTPUT_TIME               : int int...        [-]         !time interval between outputs for all nodes, in HDF5 format.&lt;br /&gt;
 TIME_SERIE_LOCATION       : char              -           !Path to time serie file with the specified nodes (can be this file)&lt;br /&gt;
 MAX_BUFFER_SIZE           : 1000&lt;br /&gt;
 COMPUTE_RESIDUAL          : 1&lt;br /&gt;
 DT_OUTPUT_TIME            : 1200&lt;br /&gt;
 TIME_SERIE_BY_NODES       : 0/1               [0]         !Keyword to see if the user wants the time series to be written by nodes, i.e.,&lt;br /&gt;
                                                           !One file per node, with all variables in the headers list&lt;br /&gt;
                                                           !if FALSE, its one file per variable with nodes in the headers.&lt;br /&gt;
&lt;br /&gt;
===Processes===&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 MIN_WATER_DEPTH_PROCESS   : real              [0.01]      !Water Quality Process / Surface Fluxes shutdown&lt;br /&gt;
 DISCHARGES                : 0/1               [0]         !Use module discharges (WWTP, etc)&lt;br /&gt;
 TRANSMISSION_LOSSES       : 0/1               [0]         !If user wants to use transmission losses&lt;br /&gt;
 HYDRAULIC_CONDUCTIVITY    : real              -           !Hydraulic Conductivity to calculate transmission losses&lt;br /&gt;
 REMOVE_OVERTOP            : 0/1               [0]         !Removes Water if channels are overtoped&lt;br /&gt;
 AERATION_METHOD           : int               [-]         !1 - PoolAndRifle, 2 - ChannelControled_&lt;br /&gt;
 T90_DECAY_MODEL           : 0                 [1]         !0 - Constant, 1 - Canteras, 2 - Chapra&lt;br /&gt;
 T90                       : real              [7200.]     !if T90_DECAY_MODEL = Constant&lt;br /&gt;
 SHADING_FACTOR            : real              [1.]        !0-1 fraction of riparian shading&lt;br /&gt;
 FRACTION_SEDIMENT         : 0/1               [0]&lt;br /&gt;
 GLOBAL_TOXICITY           : char              ['SUM']     !Global Toxicity Computation Method : SUM,MAX,RISKRATIO&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
===Properties===&lt;br /&gt;
&lt;br /&gt;
Each property keywords must be inside a block '''&amp;lt;beginproperty&amp;gt;/&amp;lt;endproperty&amp;gt;'''.&lt;br /&gt;
&lt;br /&gt;
 Keyword                    : Data Type         Default      !Comment&lt;br /&gt;
 &amp;lt;beginproperty&amp;gt;&lt;br /&gt;
 NAME                       : char              [-]          !Property name, must be on of [[Properties_names]]&lt;br /&gt;
 UNITS                      : char              [-]          !usually mg/L (see IS_COEF)&lt;br /&gt;
 IS_COEF                    : real              [1.e-3]      !Conversion factor to the International System&lt;br /&gt;
 DESCRIPTION                : char              [-]          !Property description&lt;br /&gt;
 DEFAULT_VALUE              : real              [0.0]        !Property initial concentration&lt;br /&gt;
 MIN_VALUE                  : real              [0.0]        !Property minimum concentration&lt;br /&gt;
 OVERLAND_CONCENTRATION     : real              [0.0]        !Concentration discharged from overland&lt;br /&gt;
 GROUNDWATER_CONCENTRATION  : real              [0.0]        !Concentration discharged from ground water&lt;br /&gt;
 DIFFUSEWATER_CONCENTRATION : real              [0.0]&lt;br /&gt;
 ADVECTION_DIFUSION         : 0/1               [1]          !1 - want to transport property; 0 - no transport&lt;br /&gt;
     ADVECTION_SCHEME       : int               [1]          !1 - UpwindOrder1 (currently no more options)&lt;br /&gt;
     DIFFUSION_SCHEME       : int               [5]          !5 - CentralDiff  (currently no more options)&lt;br /&gt;
     DIFFUSIVITY            : real              [1e-8]       !Molecular diffusivity of property in m2/s&lt;br /&gt;
 DISCHARGES                 : 0/1               [0]          !1 - property is discharged; 0 - no discharges&lt;br /&gt;
 TOXICITY                   : 0/1               [0]          !1 - property has an associated toxicity     &lt;br /&gt;
     TOX_EVOLUTION          : int               [1]          !1 - Saturation, 2 - Linear, 3 - RiskRatio&lt;br /&gt;
     EC50                   : real              [0.5]        !If TOX_EVOLUTION = Saturation or RiskRatio,&lt;br /&gt;
                                                             !EC50 is the concentration that causes 50% of effect (Tox = 0.5)&lt;br /&gt;
                                                             !in fraction of initial concentration units [%]&lt;br /&gt;
     SLOPE                  : real              [1.0]        !If TOX_EVOLUTION = Linear&lt;br /&gt;
 DECAY                      : 0/1               [0]          !1- want to use bacterial decay model. 0 - no use. Must have DISCHARGES = 1 and [[Mohid_River_Network|atmosphere]].&lt;br /&gt;
 SURFACE_FLUXES             : 0/1               [0]          !Property has surface fluxes (e.g. evaporation). Needs [[Mohid_River_Network|atmosphere]].&lt;br /&gt;
 BOTTOM_FLUXES              : 0/1               [0]          !Property has bottom fluxes. Must be particulated.&lt;br /&gt;
     BOTTOM_CONC            : real              [0.0]        !Bottom Initial Concentration&lt;br /&gt;
     BOTTOM_MIN_CONC        : real              [0.0]        !Bottom Minimum Concentration&lt;br /&gt;
     EROSION                : 0/1               [1]          !Compute erosion fluxes&lt;br /&gt;
         CRIT_SS_EROSION    : real              [0.2]        !Critical Erosion Shear Stress [Pa]&lt;br /&gt;
         EROSION_COEF       : real              [5.0E-4]     !Erosion Coefficient [kg m-2 s-1]&lt;br /&gt;
     DEPOSITION             : 0/1               [1]          !Compute deposition fluxes&lt;br /&gt;
         CRIT_SS_DEPOSITION : real              [0.1]        !Critical Deposition Shear Stress [Pa]&lt;br /&gt;
         CHS                : real              [4.0]        !Hindered settling [kg m-3] - See [[Module_FreeVerticalMovement]].&lt;br /&gt;
         WS_TYPE            : int               [1]          !Settling type: WSConstant = 1, SPMFunction = 2&lt;br /&gt;
         WS_VALUE           : real              [0.0001]     !Constant settling velocity [m s-1]&lt;br /&gt;
         KL                 : real              [0.1]        !See [[Module_FreeVerticalMovement]].&lt;br /&gt;
         KL1                : real              [0.1]        !See [[Module_FreeVerticalMovement]].&lt;br /&gt;
         ML                 : real              [4.62]       !See [[Module_FreeVerticalMovement]].&lt;br /&gt;
         M                  : real              [1.0]        !See [[Module_FreeVerticalMovement]].&lt;br /&gt;
 WATER_QUALITY              : 0/1               [0]          !1 - use [[Module_WaterQuality|Water Quality Model]] for property transformation; 0 - no use&lt;br /&gt;
 BENTHOS                    : 0/1               [0]          !1 - use [[Module_Benthos|Benthos Model]] for property transformation; 0 - no use&lt;br /&gt;
 CEQUALW2                   : 0/1               [0]          !1 - use [[Module_CEQUALW2|CEQUALW2 Model]] for property transformation; 0 - no use&lt;br /&gt;
 LIFE                       : 0/1               [0]          !1 - use [[Module_Life|Life Model]] for property transformation; 0 - no use&lt;br /&gt;
 EXTINCTION_PARAMETER       : real              [1.0]        !LIGHT EXTINCTION COEFFICIENT&lt;br /&gt;
 TIME_SERIE                 : 0/1               [0]          !Output this property in time series files.&lt;br /&gt;
 OUTPUT_NAME                : char              [NAME]       !Can be NAME or DESCRIPTION.&lt;br /&gt;
 COMPUTE_LOAD               : 0/1               [0]          !Output concentration (in UNITS) x Flow [m3 s-1]&lt;br /&gt;
 SUMTOTALCONC               : 0/1               [0] 0        !Checks if user wants to calculate total Concentration (Column + Bottom) must be particulate&lt;br /&gt;
 &amp;lt;endproperty&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Toxicity Model====&lt;br /&gt;
*The formulation is to associate an eco-toxiciy value to the property (From project ECORIVER 2002).&lt;br /&gt;
*Every toxic property must be discharged.&lt;br /&gt;
*Its concentration in the river network is set to 0.0.&lt;br /&gt;
*Discharge concentration must be equal to 1, because we are measuring the dilution D = 1 - C_new / C_ini&lt;br /&gt;
*The variable property%toxicity%concentration represents C/c_ini so it starts by being 1.&lt;br /&gt;
*This is not even close to a final version. For more details, or sugestions/corrections, contact MARETEC (Rosa Trancoso).&lt;br /&gt;
*EC50 - Concentration that causes 50% of effect (Tox = 0.5)&lt;br /&gt;
&lt;br /&gt;
==Network file==&lt;br /&gt;
&lt;br /&gt;
The Network file specified in '''NETWORK_FILE''' keyword has two types of blocks:&lt;br /&gt;
* '''&amp;lt;BeginNode&amp;gt;/ &amp;lt;EndNode&amp;gt;'''&lt;br /&gt;
* '''&amp;lt;BeginReach&amp;gt;/&amp;lt;EndReach&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
===Keywords===&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;BeginNode&amp;gt;&lt;br /&gt;
   ID                      : int               -           !Node ID number&lt;br /&gt;
   COORDINATES             : real real         -           !Node coordinates&lt;br /&gt;
   GRID_I                  : int               -           !I position of node, if grid&lt;br /&gt;
   GRID_J                  : int               -           !J position of node, if grid&lt;br /&gt;
   TERRAIN_LEVEL            : real              -           !Bottom level of cross section&lt;br /&gt;
   MANNING_CHANNEL         : real         GLOBAL_MANNING   !Node rugosity&lt;br /&gt;
   WATER_DEPTH             : real      INITIAL_WATER_DEPTH !Node initial water depth&lt;br /&gt;
   CROSS_SECTION_TYPE      : int               [1]         !1 - Trapezoidal, 2 - TrapezoidalFlood, 3 - Tabular&lt;br /&gt;
   1 - Trapezoidal, 2 - TrapezoidalFlood&lt;br /&gt;
       BOTTOM_WIDTH        : real              -           !Bottom width of cross section&lt;br /&gt;
       TOP_WIDTH           : real              -           !Top width of cross section&lt;br /&gt;
       HEIGHT              : real              -           !Max height of cross section&lt;br /&gt;
   2 - TrapezoidalFlood&lt;br /&gt;
       MIDDLE_WIDTH        : real              -           !Middle width of cross section&lt;br /&gt;
       MIDDLE_HEIGHT       : real              -           !Middle height of cross section&lt;br /&gt;
   3 - Tabular&lt;br /&gt;
       N_STATIONS          : integer           -           !number os stations that define the cross section&lt;br /&gt;
       STATION             : real real ...     -           !station values&lt;br /&gt;
       ELEVATION/LEVEL     : real real ...     -           !elevation values&lt;br /&gt;
 &amp;lt;EndNode&amp;gt;&lt;br /&gt;
 &amp;lt;BeginReach&amp;gt;&lt;br /&gt;
   ID                      : int               -           !Reach ID Number&lt;br /&gt;
   DOWNSTREAM_NODE         : int               -           !Downstream node ID&lt;br /&gt;
   UPSTREAM_NODE           : int               -           !Upstream node ID&lt;br /&gt;
 &amp;lt;EndReach&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Creating a Network file===&lt;br /&gt;
&lt;br /&gt;
*Obtain a drainage network with MOHID GIS in [[MOHID_GIS#Delineate_Basins|Delineate Basins]]&lt;br /&gt;
*Alternatively obtain a drainage network with program BasinDelimiter (from SourceSafe) with a '''basin.dat''' file such as:&lt;br /&gt;
&lt;br /&gt;
 TOPOGRAPHIC_FILE              : ..\..\GeneralData\DTM\MDT200mSD.dat&lt;br /&gt;
 TRESHOLD_AREA                 : 100000&lt;br /&gt;
 DELINEATE_BASIN               : 1&lt;br /&gt;
 OUTLET_I                      : 1&lt;br /&gt;
 OUTLET_J                      : 44&lt;br /&gt;
 WRITE_REACHES                 : 1&lt;br /&gt;
 REACHES_FILE                  : ..\..\GeneralData\DrainageNetwork\DrainageNetwork.dnt&lt;br /&gt;
&lt;br /&gt;
*Define the cross sections for each node (see [[Mohid_GIS#Auto_Cross_Sections|MOHID GIS]]). &lt;br /&gt;
**'''Warning 1''': Remember to select &amp;quot;Save All&amp;quot; in MOHID GIS to update the file.&lt;br /&gt;
**'''Warning 2''': Currently, this program writes a BOTTOM_LEVEL keyword for each node instead of the keyword TERRAIN_LEVEL needed by the Drainage Network module. BOTTOM_LEVEL was replaced by TERRAIN_LEVEL in the latest version of this module because of the introduction of the tabular (irregular) cross-section type, generalizing the formulation of cross-sections. The pre-processor tool is not yet adapted. Nevertheless, for regular cross-sections, TERRAIN LEVEL = BOTTOM_LEVEL + HEIGHT. It can be changed manually or with this perl script [http://docs.google.com/leaf?id=0B_xtWE4qvkq8Y2FhNjk5NTQtZTdhZC00N2I1LWE3Y2YtM2QwYzIyMjhhZDRj&amp;amp;sort=name&amp;amp;layout=list&amp;amp;num=50].&lt;/div&gt;</summary>
		<author><name>Anatrancoso</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Module_DrainageNetwork&amp;diff=2849</id>
		<title>Module DrainageNetwork</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Module_DrainageNetwork&amp;diff=2849"/>
				<updated>2010-02-15T17:53:48Z</updated>
		
		<summary type="html">&lt;p&gt;Anatrancoso: /* Creating a Network file */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Overview=&lt;br /&gt;
&lt;br /&gt;
This module can be used by two models: [[Mohid_Land|MOHID Land]], and [[Mohid_River_Network|MOHID River Network]]. Like other modules, it has a specific input file, called '''DrainageNetwork_X.dat''', where X is the simulation number. The following tables describe the keywords that can be used, their data type, and the default values (in case of omission).&lt;br /&gt;
&lt;br /&gt;
==DrainageNetwork_X.dat Keywords==&lt;br /&gt;
&lt;br /&gt;
===General===&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 NETWORK_FILE              : char              -           !Path to drainage network file&lt;br /&gt;
 CHECK_NODES               : 0/1               [1]         !Ckeck nodes consistency&lt;br /&gt;
 CHECK_REACHES             : 0/1               [1]         !Check reaches consistency&lt;br /&gt;
 GLOBAL_MANNING            : real              -           !Rugosity in Channels&lt;br /&gt;
 GEO_CONVERSATION_FACTOR   : real              [1.]        !Lat to Meters rough estimation&lt;br /&gt;
&lt;br /&gt;
===Stabilization===&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 STABILIZE                 : 0/1               [0]         !Restart time iteration if high volume gradients&lt;br /&gt;
 STABILIZE_FACTOR          : real              [0.1]       !max gradient in time steps as fraction of old volume&lt;br /&gt;
 MAX_ITERATIONS            : int               [100]       !Max iterations for stabilized check&lt;br /&gt;
 DT_FACTOR                 : real              [0.8]       !Factor for DT Prediction&lt;br /&gt;
 MAX_DT_FLOOD              : real              [10.0]      !Max DT if channel water level exceeds full bank&lt;br /&gt;
&lt;br /&gt;
===Hydrodynamic===&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 HYDRODYNAMIC_APROX        : int               [1]         !1 - KinematicWave, 2 - DiffusionWave, 3 - DynamicWave&lt;br /&gt;
 NUMERICAL_SCHEME          : int               [0]         !0 - ExplicitScheme, 1 - ImplicitScheme&lt;br /&gt;
 MASS_ERR                  : real(8)           [0.001]     !Max error in mass conservation&lt;br /&gt;
 MIN_WATER_DEPTH           : real              [0.001]     !Min water depth in nodes (For h &amp;lt; MIN_WATER_DEPTH water stops flowing)&lt;br /&gt;
 INITIAL_WATER_DEPTH       : real              [0.0]       !Initial water depth&lt;br /&gt;
 MINIMUM_SLOPE             : real              [0.0]       !Minimum Slope for Kinematic Wave&lt;br /&gt;
&lt;br /&gt;
===Downstream Boundary===&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 DOWNSTREAM_BOUNDARY       : int               [1]         !0 - Dam, 1 - ZDG, 2 - CD, 3 - ImposedWaterDepth, 3 - ImposedVelocity&lt;br /&gt;
 DEFAULTVALUE              : real              -           !Default value at downstream boundary&lt;br /&gt;
 FILE_IN_TIME              : char              [NONE]      !If DOWNSTREAM_BOUNDARY = ImposedWaterDepth, this can be NONE or TIMESERIE&lt;br /&gt;
 FILENAME                  : char              -           !If FILE_IN_TIME = TIMESERIE, this is the name of timeserie file for the downstream boundary&lt;br /&gt;
 DATA_COLUMN               : int               -           !Number of column with data in FILE_IN_TIME&lt;br /&gt;
&lt;br /&gt;
===Output===&lt;br /&gt;
&lt;br /&gt;
Output is given for all nodes in HDF5 format, and also as time series for the specified nodes in TIME_SERIE_LOCATION file. These nodes are identified by their IDS (see Network file) and have to be inside the block  '''&amp;lt;BeginNodeTimeSerie&amp;gt;  / &amp;lt;EndNodeTimeSerie&amp;gt;'''.&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 OUTPUT_TIME               : int int...        [-]         !time interval between outputs for all nodes, in HDF5 format.&lt;br /&gt;
 TIME_SERIE_LOCATION       : char              -           !Path to time serie file with the specified nodes (can be this file)&lt;br /&gt;
 MAX_BUFFER_SIZE           : 1000&lt;br /&gt;
 COMPUTE_RESIDUAL          : 1&lt;br /&gt;
 DT_OUTPUT_TIME            : 1200&lt;br /&gt;
 TIME_SERIE_BY_NODES       : 0/1               [0]         !Keyword to see if the user wants the time series to be written by nodes, i.e.,&lt;br /&gt;
                                                           !One file per node, with all variables in the headers list&lt;br /&gt;
                                                           !if FALSE, its one file per variable with nodes in the headers.&lt;br /&gt;
&lt;br /&gt;
===Processes===&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 MIN_WATER_DEPTH_PROCESS   : real              [0.01]      !Water Quality Process / Surface Fluxes shutdown&lt;br /&gt;
 DISCHARGES                : 0/1               [0]         !Use module discharges (WWTP, etc)&lt;br /&gt;
 TRANSMISSION_LOSSES       : 0/1               [0]         !If user wants to use transmission losses&lt;br /&gt;
 HYDRAULIC_CONDUCTIVITY    : real              -           !Hydraulic Conductivity to calculate transmission losses&lt;br /&gt;
 REMOVE_OVERTOP            : 0/1               [0]         !Removes Water if channels are overtoped&lt;br /&gt;
 AERATION_METHOD           : int               [-]         !1 - PoolAndRifle, 2 - ChannelControled_&lt;br /&gt;
 T90_DECAY_MODEL           : 0                 [1]         !0 - Constant, 1 - Canteras, 2 - Chapra&lt;br /&gt;
 T90                       : real              [7200.]     !if T90_DECAY_MODEL = Constant&lt;br /&gt;
 SHADING_FACTOR            : real              [1.]        !0-1 fraction of riparian shading&lt;br /&gt;
 FRACTION_SEDIMENT         : 0/1               [0]&lt;br /&gt;
 GLOBAL_TOXICITY           : char              ['SUM']     !Global Toxicity Computation Method : SUM,MAX,RISKRATIO&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
===Properties===&lt;br /&gt;
&lt;br /&gt;
Each property keywords must be inside a block '''&amp;lt;beginproperty&amp;gt;/&amp;lt;endproperty&amp;gt;'''.&lt;br /&gt;
&lt;br /&gt;
 Keyword                    : Data Type         Default      !Comment&lt;br /&gt;
 &amp;lt;beginproperty&amp;gt;&lt;br /&gt;
 NAME                       : char              [-]          !Property name, must be on of [[Properties_names]]&lt;br /&gt;
 UNITS                      : char              [-]          !usually mg/L (see IS_COEF)&lt;br /&gt;
 IS_COEF                    : real              [1.e-3]      !Conversion factor to the International System&lt;br /&gt;
 DESCRIPTION                : char              [-]          !Property description&lt;br /&gt;
 DEFAULT_VALUE              : real              [0.0]        !Property initial concentration&lt;br /&gt;
 MIN_VALUE                  : real              [0.0]        !Property minimum concentration&lt;br /&gt;
 OVERLAND_CONCENTRATION     : real              [0.0]        !Concentration discharged from overland&lt;br /&gt;
 GROUNDWATER_CONCENTRATION  : real              [0.0]        !Concentration discharged from ground water&lt;br /&gt;
 DIFFUSEWATER_CONCENTRATION : real              [0.0]&lt;br /&gt;
 ADVECTION_DIFUSION         : 0/1               [1]          !1 - want to transport property; 0 - no transport&lt;br /&gt;
     ADVECTION_SCHEME       : int               [1]          !1 - UpwindOrder1 (currently no more options)&lt;br /&gt;
     DIFFUSION_SCHEME       : int               [5]          !5 - CentralDiff  (currently no more options)&lt;br /&gt;
     DIFFUSIVITY            : real              [1e-8]       !Molecular diffusivity of property in m2/s&lt;br /&gt;
 DISCHARGES                 : 0/1               [0]          !1 - property is discharged; 0 - no discharges&lt;br /&gt;
 TOXICITY                   : 0/1               [0]          !1 - property has an associated toxicity     &lt;br /&gt;
     TOX_EVOLUTION          : int               [1]          !1 - Saturation, 2 - Linear, 3 - RiskRatio&lt;br /&gt;
     EC50                   : real              [0.5]        !If TOX_EVOLUTION = Saturation or RiskRatio,&lt;br /&gt;
                                                             !EC50 is the concentration that causes 50% of effect (Tox = 0.5)&lt;br /&gt;
                                                             !in fraction of initial concentration units [%]&lt;br /&gt;
     SLOPE                  : real              [1.0]        !If TOX_EVOLUTION = Linear&lt;br /&gt;
 DECAY                      : 0/1               [0]          !1- want to use bacterial decay model. 0 - no use. Must have DISCHARGES = 1 and [[Mohid_River_Network|atmosphere]].&lt;br /&gt;
 SURFACE_FLUXES             : 0/1               [0]          !Property has surface fluxes (e.g. evaporation). Needs [[Mohid_River_Network|atmosphere]].&lt;br /&gt;
 BOTTOM_FLUXES              : 0/1               [0]          !Property has bottom fluxes. Must be particulated.&lt;br /&gt;
     BOTTOM_CONC            : real              [0.0]        !Bottom Initial Concentration&lt;br /&gt;
     BOTTOM_MIN_CONC        : real              [0.0]        !Bottom Minimum Concentration&lt;br /&gt;
     EROSION                : 0/1               [1]          !Compute erosion fluxes&lt;br /&gt;
         CRIT_SS_EROSION    : real              [0.2]        !Critical Erosion Shear Stress [Pa]&lt;br /&gt;
         EROSION_COEF       : real              [5.0E-4]     !Erosion Coefficient [kg m-2 s-1]&lt;br /&gt;
     DEPOSITION             : 0/1               [1]          !Compute deposition fluxes&lt;br /&gt;
         CRIT_SS_DEPOSITION : real              [0.1]        !Critical Deposition Shear Stress [Pa]&lt;br /&gt;
         CHS                : real              [4.0]        !Hindered settling [kg m-3] - See [[Module_FreeVerticalMovement]].&lt;br /&gt;
         WS_TYPE            : int               [1]          !Settling type: WSConstant = 1, SPMFunction = 2&lt;br /&gt;
         WS_VALUE           : real              [0.0001]     !Constant settling velocity [m s-1]&lt;br /&gt;
         KL                 : real              [0.1]        !See [[Module_FreeVerticalMovement]].&lt;br /&gt;
         KL1                : real              [0.1]        !See [[Module_FreeVerticalMovement]].&lt;br /&gt;
         ML                 : real              [4.62]       !See [[Module_FreeVerticalMovement]].&lt;br /&gt;
         M                  : real              [1.0]        !See [[Module_FreeVerticalMovement]].&lt;br /&gt;
 WATER_QUALITY              : 0/1               [0]          !1 - use [[Module_WaterQuality|Water Quality Model]] for property transformation; 0 - no use&lt;br /&gt;
 BENTHOS                    : 0/1               [0]          !1 - use [[Module_Benthos|Benthos Model]] for property transformation; 0 - no use&lt;br /&gt;
 CEQUALW2                   : 0/1               [0]          !1 - use [[Module_CEQUALW2|CEQUALW2 Model]] for property transformation; 0 - no use&lt;br /&gt;
 LIFE                       : 0/1               [0]          !1 - use [[Module_Life|Life Model]] for property transformation; 0 - no use&lt;br /&gt;
 EXTINCTION_PARAMETER       : real              [1.0]        !LIGHT EXTINCTION COEFFICIENT&lt;br /&gt;
 TIME_SERIE                 : 0/1               [0]          !Output this property in time series files.&lt;br /&gt;
 OUTPUT_NAME                : char              [NAME]       !Can be NAME or DESCRIPTION.&lt;br /&gt;
 COMPUTE_LOAD               : 0/1               [0]          !Output concentration (in UNITS) x Flow [m3 s-1]&lt;br /&gt;
 SUMTOTALCONC               : 0/1               [0] 0        !Checks if user wants to calculate total Concentration (Column + Bottom) must be particulate&lt;br /&gt;
 &amp;lt;endproperty&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Toxicity Model====&lt;br /&gt;
*The formulation is to associate an eco-toxiciy value to the property (From project ECORIVER 2002).&lt;br /&gt;
*Every toxic property must be discharged.&lt;br /&gt;
*Its concentration in the river network is set to 0.0.&lt;br /&gt;
*Discharge concentration must be equal to 1, because we are measuring the dilution D = 1 - C_new / C_ini&lt;br /&gt;
*The variable property%toxicity%concentration represents C/c_ini so it starts by being 1.&lt;br /&gt;
*This is not even close to a final version. For more details, or sugestions/corrections, contact MARETEC (Rosa Trancoso).&lt;br /&gt;
*EC50 - Concentration that causes 50% of effect (Tox = 0.5)&lt;br /&gt;
&lt;br /&gt;
==Network file==&lt;br /&gt;
&lt;br /&gt;
The Network file specified in '''NETWORK_FILE''' keyword has two types of blocks:&lt;br /&gt;
* '''&amp;lt;BeginNode&amp;gt;/ &amp;lt;EndNode&amp;gt;'''&lt;br /&gt;
* '''&amp;lt;BeginReach&amp;gt;/&amp;lt;EndReach&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
===Keywords===&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;BeginNode&amp;gt;&lt;br /&gt;
   ID                      : int               -           !Node ID number&lt;br /&gt;
   COORDINATES             : real real         -           !Node coordinates&lt;br /&gt;
   GRID_I                  : int               -           !I position of node, if grid&lt;br /&gt;
   GRID_J                  : int               -           !J position of node, if grid&lt;br /&gt;
   TERRAIN_LEVEL            : real              -           !Bottom level of cross section&lt;br /&gt;
   MANNING_CHANNEL         : real         GLOBAL_MANNING   !Node rugosity&lt;br /&gt;
   WATER_DEPTH             : real      INITIAL_WATER_DEPTH !Node initial water depth&lt;br /&gt;
   CROSS_SECTION_TYPE      : int               [1]         !1 - Trapezoidal, 2 - TrapezoidalFlood, 3 - Tabular&lt;br /&gt;
   1 - Trapezoidal, 2 - TrapezoidalFlood&lt;br /&gt;
       BOTTOM_WIDTH        : real              -           !Bottom width of cross section&lt;br /&gt;
       TOP_WIDTH           : real              -           !Top width of cross section&lt;br /&gt;
       HEIGHT              : real              -           !Max height of cross section&lt;br /&gt;
   2 - TrapezoidalFlood&lt;br /&gt;
       MIDDLE_WIDTH        : real              -           !Middle width of cross section&lt;br /&gt;
       MIDDLE_HEIGHT       : real              -           !Middle height of cross section&lt;br /&gt;
   3 - Tabular&lt;br /&gt;
       N_STATIONS          : integer           -           !number os stations that define the cross section&lt;br /&gt;
       STATION             : real real ...     -           !station values&lt;br /&gt;
       ELEVATION/LEVEL     : real real ...     -           !elevation values&lt;br /&gt;
 &amp;lt;EndNode&amp;gt;&lt;br /&gt;
 &amp;lt;BeginReach&amp;gt;&lt;br /&gt;
   ID                      : int               -           !Reach ID Number&lt;br /&gt;
   DOWNSTREAM_NODE         : int               -           !Downstream node ID&lt;br /&gt;
   UPSTREAM_NODE           : int               -           !Upstream node ID&lt;br /&gt;
 &amp;lt;EndReach&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Creating a Network file===&lt;br /&gt;
&lt;br /&gt;
*Obtain a drainage network with MOHID GIS in [[MOHID_GIS#Delineate_Basins|Delineate Basins]]&lt;br /&gt;
*Alternatively obtain a drainage network with program BasinDelimiter (from SourceSafe) with a '''basin.dat''' file such as:&lt;br /&gt;
&lt;br /&gt;
 TOPOGRAPHIC_FILE              : ..\..\GeneralData\DTM\MDT200mSD.dat&lt;br /&gt;
 TRESHOLD_AREA                 : 100000&lt;br /&gt;
 DELINEATE_BASIN               : 1&lt;br /&gt;
 OUTLET_I                      : 1&lt;br /&gt;
 OUTLET_J                      : 44&lt;br /&gt;
 WRITE_REACHES                 : 1&lt;br /&gt;
 REACHES_FILE                  : ..\..\GeneralData\DrainageNetwork\DrainageNetwork.dnt&lt;br /&gt;
&lt;br /&gt;
*Define the cross sections for each node (see [[Mohid_GIS#Auto_Cross_Sections|MOHID GIS]]). &lt;br /&gt;
**'''Warning 1''': Remember to select &amp;quot;Save All&amp;quot; in MOHID GIS to update the file.&lt;br /&gt;
**'''Warning 2''': Currently, this program writes a BOTTOM_LEVEL keyword for each node instead of the keyword TERRAIN_LEVEL. BOTTOM_LEVEL was replaced by TERRAIN_LEVEL in the latest version of this module because of the introduction of irregular cross-sections type, generalizing the formulation of cross-sections. The pre-processor tool is not yet adapted. Nevertheless, for regular cross-sections, TERRAIN LEVEL = BOTTOM_LEVEL + HEIGHT. It can be changed manually or with this perl script [http://docs.google.com/leaf?id=0B_xtWE4qvkq8Y2FhNjk5NTQtZTdhZC00N2I1LWE3Y2YtM2QwYzIyMjhhZDRj&amp;amp;sort=name&amp;amp;layout=list&amp;amp;num=50].&lt;/div&gt;</summary>
		<author><name>Anatrancoso</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Module_DrainageNetwork&amp;diff=2848</id>
		<title>Module DrainageNetwork</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Module_DrainageNetwork&amp;diff=2848"/>
				<updated>2010-02-15T17:52:06Z</updated>
		
		<summary type="html">&lt;p&gt;Anatrancoso: /* Creating a Network file */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Overview=&lt;br /&gt;
&lt;br /&gt;
This module can be used by two models: [[Mohid_Land|MOHID Land]], and [[Mohid_River_Network|MOHID River Network]]. Like other modules, it has a specific input file, called '''DrainageNetwork_X.dat''', where X is the simulation number. The following tables describe the keywords that can be used, their data type, and the default values (in case of omission).&lt;br /&gt;
&lt;br /&gt;
==DrainageNetwork_X.dat Keywords==&lt;br /&gt;
&lt;br /&gt;
===General===&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 NETWORK_FILE              : char              -           !Path to drainage network file&lt;br /&gt;
 CHECK_NODES               : 0/1               [1]         !Ckeck nodes consistency&lt;br /&gt;
 CHECK_REACHES             : 0/1               [1]         !Check reaches consistency&lt;br /&gt;
 GLOBAL_MANNING            : real              -           !Rugosity in Channels&lt;br /&gt;
 GEO_CONVERSATION_FACTOR   : real              [1.]        !Lat to Meters rough estimation&lt;br /&gt;
&lt;br /&gt;
===Stabilization===&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 STABILIZE                 : 0/1               [0]         !Restart time iteration if high volume gradients&lt;br /&gt;
 STABILIZE_FACTOR          : real              [0.1]       !max gradient in time steps as fraction of old volume&lt;br /&gt;
 MAX_ITERATIONS            : int               [100]       !Max iterations for stabilized check&lt;br /&gt;
 DT_FACTOR                 : real              [0.8]       !Factor for DT Prediction&lt;br /&gt;
 MAX_DT_FLOOD              : real              [10.0]      !Max DT if channel water level exceeds full bank&lt;br /&gt;
&lt;br /&gt;
===Hydrodynamic===&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 HYDRODYNAMIC_APROX        : int               [1]         !1 - KinematicWave, 2 - DiffusionWave, 3 - DynamicWave&lt;br /&gt;
 NUMERICAL_SCHEME          : int               [0]         !0 - ExplicitScheme, 1 - ImplicitScheme&lt;br /&gt;
 MASS_ERR                  : real(8)           [0.001]     !Max error in mass conservation&lt;br /&gt;
 MIN_WATER_DEPTH           : real              [0.001]     !Min water depth in nodes (For h &amp;lt; MIN_WATER_DEPTH water stops flowing)&lt;br /&gt;
 INITIAL_WATER_DEPTH       : real              [0.0]       !Initial water depth&lt;br /&gt;
 MINIMUM_SLOPE             : real              [0.0]       !Minimum Slope for Kinematic Wave&lt;br /&gt;
&lt;br /&gt;
===Downstream Boundary===&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 DOWNSTREAM_BOUNDARY       : int               [1]         !0 - Dam, 1 - ZDG, 2 - CD, 3 - ImposedWaterDepth, 3 - ImposedVelocity&lt;br /&gt;
 DEFAULTVALUE              : real              -           !Default value at downstream boundary&lt;br /&gt;
 FILE_IN_TIME              : char              [NONE]      !If DOWNSTREAM_BOUNDARY = ImposedWaterDepth, this can be NONE or TIMESERIE&lt;br /&gt;
 FILENAME                  : char              -           !If FILE_IN_TIME = TIMESERIE, this is the name of timeserie file for the downstream boundary&lt;br /&gt;
 DATA_COLUMN               : int               -           !Number of column with data in FILE_IN_TIME&lt;br /&gt;
&lt;br /&gt;
===Output===&lt;br /&gt;
&lt;br /&gt;
Output is given for all nodes in HDF5 format, and also as time series for the specified nodes in TIME_SERIE_LOCATION file. These nodes are identified by their IDS (see Network file) and have to be inside the block  '''&amp;lt;BeginNodeTimeSerie&amp;gt;  / &amp;lt;EndNodeTimeSerie&amp;gt;'''.&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 OUTPUT_TIME               : int int...        [-]         !time interval between outputs for all nodes, in HDF5 format.&lt;br /&gt;
 TIME_SERIE_LOCATION       : char              -           !Path to time serie file with the specified nodes (can be this file)&lt;br /&gt;
 MAX_BUFFER_SIZE           : 1000&lt;br /&gt;
 COMPUTE_RESIDUAL          : 1&lt;br /&gt;
 DT_OUTPUT_TIME            : 1200&lt;br /&gt;
 TIME_SERIE_BY_NODES       : 0/1               [0]         !Keyword to see if the user wants the time series to be written by nodes, i.e.,&lt;br /&gt;
                                                           !One file per node, with all variables in the headers list&lt;br /&gt;
                                                           !if FALSE, its one file per variable with nodes in the headers.&lt;br /&gt;
&lt;br /&gt;
===Processes===&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 MIN_WATER_DEPTH_PROCESS   : real              [0.01]      !Water Quality Process / Surface Fluxes shutdown&lt;br /&gt;
 DISCHARGES                : 0/1               [0]         !Use module discharges (WWTP, etc)&lt;br /&gt;
 TRANSMISSION_LOSSES       : 0/1               [0]         !If user wants to use transmission losses&lt;br /&gt;
 HYDRAULIC_CONDUCTIVITY    : real              -           !Hydraulic Conductivity to calculate transmission losses&lt;br /&gt;
 REMOVE_OVERTOP            : 0/1               [0]         !Removes Water if channels are overtoped&lt;br /&gt;
 AERATION_METHOD           : int               [-]         !1 - PoolAndRifle, 2 - ChannelControled_&lt;br /&gt;
 T90_DECAY_MODEL           : 0                 [1]         !0 - Constant, 1 - Canteras, 2 - Chapra&lt;br /&gt;
 T90                       : real              [7200.]     !if T90_DECAY_MODEL = Constant&lt;br /&gt;
 SHADING_FACTOR            : real              [1.]        !0-1 fraction of riparian shading&lt;br /&gt;
 FRACTION_SEDIMENT         : 0/1               [0]&lt;br /&gt;
 GLOBAL_TOXICITY           : char              ['SUM']     !Global Toxicity Computation Method : SUM,MAX,RISKRATIO&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
===Properties===&lt;br /&gt;
&lt;br /&gt;
Each property keywords must be inside a block '''&amp;lt;beginproperty&amp;gt;/&amp;lt;endproperty&amp;gt;'''.&lt;br /&gt;
&lt;br /&gt;
 Keyword                    : Data Type         Default      !Comment&lt;br /&gt;
 &amp;lt;beginproperty&amp;gt;&lt;br /&gt;
 NAME                       : char              [-]          !Property name, must be on of [[Properties_names]]&lt;br /&gt;
 UNITS                      : char              [-]          !usually mg/L (see IS_COEF)&lt;br /&gt;
 IS_COEF                    : real              [1.e-3]      !Conversion factor to the International System&lt;br /&gt;
 DESCRIPTION                : char              [-]          !Property description&lt;br /&gt;
 DEFAULT_VALUE              : real              [0.0]        !Property initial concentration&lt;br /&gt;
 MIN_VALUE                  : real              [0.0]        !Property minimum concentration&lt;br /&gt;
 OVERLAND_CONCENTRATION     : real              [0.0]        !Concentration discharged from overland&lt;br /&gt;
 GROUNDWATER_CONCENTRATION  : real              [0.0]        !Concentration discharged from ground water&lt;br /&gt;
 DIFFUSEWATER_CONCENTRATION : real              [0.0]&lt;br /&gt;
 ADVECTION_DIFUSION         : 0/1               [1]          !1 - want to transport property; 0 - no transport&lt;br /&gt;
     ADVECTION_SCHEME       : int               [1]          !1 - UpwindOrder1 (currently no more options)&lt;br /&gt;
     DIFFUSION_SCHEME       : int               [5]          !5 - CentralDiff  (currently no more options)&lt;br /&gt;
     DIFFUSIVITY            : real              [1e-8]       !Molecular diffusivity of property in m2/s&lt;br /&gt;
 DISCHARGES                 : 0/1               [0]          !1 - property is discharged; 0 - no discharges&lt;br /&gt;
 TOXICITY                   : 0/1               [0]          !1 - property has an associated toxicity     &lt;br /&gt;
     TOX_EVOLUTION          : int               [1]          !1 - Saturation, 2 - Linear, 3 - RiskRatio&lt;br /&gt;
     EC50                   : real              [0.5]        !If TOX_EVOLUTION = Saturation or RiskRatio,&lt;br /&gt;
                                                             !EC50 is the concentration that causes 50% of effect (Tox = 0.5)&lt;br /&gt;
                                                             !in fraction of initial concentration units [%]&lt;br /&gt;
     SLOPE                  : real              [1.0]        !If TOX_EVOLUTION = Linear&lt;br /&gt;
 DECAY                      : 0/1               [0]          !1- want to use bacterial decay model. 0 - no use. Must have DISCHARGES = 1 and [[Mohid_River_Network|atmosphere]].&lt;br /&gt;
 SURFACE_FLUXES             : 0/1               [0]          !Property has surface fluxes (e.g. evaporation). Needs [[Mohid_River_Network|atmosphere]].&lt;br /&gt;
 BOTTOM_FLUXES              : 0/1               [0]          !Property has bottom fluxes. Must be particulated.&lt;br /&gt;
     BOTTOM_CONC            : real              [0.0]        !Bottom Initial Concentration&lt;br /&gt;
     BOTTOM_MIN_CONC        : real              [0.0]        !Bottom Minimum Concentration&lt;br /&gt;
     EROSION                : 0/1               [1]          !Compute erosion fluxes&lt;br /&gt;
         CRIT_SS_EROSION    : real              [0.2]        !Critical Erosion Shear Stress [Pa]&lt;br /&gt;
         EROSION_COEF       : real              [5.0E-4]     !Erosion Coefficient [kg m-2 s-1]&lt;br /&gt;
     DEPOSITION             : 0/1               [1]          !Compute deposition fluxes&lt;br /&gt;
         CRIT_SS_DEPOSITION : real              [0.1]        !Critical Deposition Shear Stress [Pa]&lt;br /&gt;
         CHS                : real              [4.0]        !Hindered settling [kg m-3] - See [[Module_FreeVerticalMovement]].&lt;br /&gt;
         WS_TYPE            : int               [1]          !Settling type: WSConstant = 1, SPMFunction = 2&lt;br /&gt;
         WS_VALUE           : real              [0.0001]     !Constant settling velocity [m s-1]&lt;br /&gt;
         KL                 : real              [0.1]        !See [[Module_FreeVerticalMovement]].&lt;br /&gt;
         KL1                : real              [0.1]        !See [[Module_FreeVerticalMovement]].&lt;br /&gt;
         ML                 : real              [4.62]       !See [[Module_FreeVerticalMovement]].&lt;br /&gt;
         M                  : real              [1.0]        !See [[Module_FreeVerticalMovement]].&lt;br /&gt;
 WATER_QUALITY              : 0/1               [0]          !1 - use [[Module_WaterQuality|Water Quality Model]] for property transformation; 0 - no use&lt;br /&gt;
 BENTHOS                    : 0/1               [0]          !1 - use [[Module_Benthos|Benthos Model]] for property transformation; 0 - no use&lt;br /&gt;
 CEQUALW2                   : 0/1               [0]          !1 - use [[Module_CEQUALW2|CEQUALW2 Model]] for property transformation; 0 - no use&lt;br /&gt;
 LIFE                       : 0/1               [0]          !1 - use [[Module_Life|Life Model]] for property transformation; 0 - no use&lt;br /&gt;
 EXTINCTION_PARAMETER       : real              [1.0]        !LIGHT EXTINCTION COEFFICIENT&lt;br /&gt;
 TIME_SERIE                 : 0/1               [0]          !Output this property in time series files.&lt;br /&gt;
 OUTPUT_NAME                : char              [NAME]       !Can be NAME or DESCRIPTION.&lt;br /&gt;
 COMPUTE_LOAD               : 0/1               [0]          !Output concentration (in UNITS) x Flow [m3 s-1]&lt;br /&gt;
 SUMTOTALCONC               : 0/1               [0] 0        !Checks if user wants to calculate total Concentration (Column + Bottom) must be particulate&lt;br /&gt;
 &amp;lt;endproperty&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Toxicity Model====&lt;br /&gt;
*The formulation is to associate an eco-toxiciy value to the property (From project ECORIVER 2002).&lt;br /&gt;
*Every toxic property must be discharged.&lt;br /&gt;
*Its concentration in the river network is set to 0.0.&lt;br /&gt;
*Discharge concentration must be equal to 1, because we are measuring the dilution D = 1 - C_new / C_ini&lt;br /&gt;
*The variable property%toxicity%concentration represents C/c_ini so it starts by being 1.&lt;br /&gt;
*This is not even close to a final version. For more details, or sugestions/corrections, contact MARETEC (Rosa Trancoso).&lt;br /&gt;
*EC50 - Concentration that causes 50% of effect (Tox = 0.5)&lt;br /&gt;
&lt;br /&gt;
==Network file==&lt;br /&gt;
&lt;br /&gt;
The Network file specified in '''NETWORK_FILE''' keyword has two types of blocks:&lt;br /&gt;
* '''&amp;lt;BeginNode&amp;gt;/ &amp;lt;EndNode&amp;gt;'''&lt;br /&gt;
* '''&amp;lt;BeginReach&amp;gt;/&amp;lt;EndReach&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
===Keywords===&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;BeginNode&amp;gt;&lt;br /&gt;
   ID                      : int               -           !Node ID number&lt;br /&gt;
   COORDINATES             : real real         -           !Node coordinates&lt;br /&gt;
   GRID_I                  : int               -           !I position of node, if grid&lt;br /&gt;
   GRID_J                  : int               -           !J position of node, if grid&lt;br /&gt;
   TERRAIN_LEVEL            : real              -           !Bottom level of cross section&lt;br /&gt;
   MANNING_CHANNEL         : real         GLOBAL_MANNING   !Node rugosity&lt;br /&gt;
   WATER_DEPTH             : real      INITIAL_WATER_DEPTH !Node initial water depth&lt;br /&gt;
   CROSS_SECTION_TYPE      : int               [1]         !1 - Trapezoidal, 2 - TrapezoidalFlood, 3 - Tabular&lt;br /&gt;
   1 - Trapezoidal, 2 - TrapezoidalFlood&lt;br /&gt;
       BOTTOM_WIDTH        : real              -           !Bottom width of cross section&lt;br /&gt;
       TOP_WIDTH           : real              -           !Top width of cross section&lt;br /&gt;
       HEIGHT              : real              -           !Max height of cross section&lt;br /&gt;
   2 - TrapezoidalFlood&lt;br /&gt;
       MIDDLE_WIDTH        : real              -           !Middle width of cross section&lt;br /&gt;
       MIDDLE_HEIGHT       : real              -           !Middle height of cross section&lt;br /&gt;
   3 - Tabular&lt;br /&gt;
       N_STATIONS          : integer           -           !number os stations that define the cross section&lt;br /&gt;
       STATION             : real real ...     -           !station values&lt;br /&gt;
       ELEVATION/LEVEL     : real real ...     -           !elevation values&lt;br /&gt;
 &amp;lt;EndNode&amp;gt;&lt;br /&gt;
 &amp;lt;BeginReach&amp;gt;&lt;br /&gt;
   ID                      : int               -           !Reach ID Number&lt;br /&gt;
   DOWNSTREAM_NODE         : int               -           !Downstream node ID&lt;br /&gt;
   UPSTREAM_NODE           : int               -           !Upstream node ID&lt;br /&gt;
 &amp;lt;EndReach&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Creating a Network file===&lt;br /&gt;
&lt;br /&gt;
*Obtain a drainage network with MOHID GIS in [[MOHID_GIS#Delineate_Basins|Delineate Basins]]&lt;br /&gt;
*Alternatively obtain a drainage network with program BasinDelimiter (from SourceSafe) with a '''basin.dat''' file such as:&lt;br /&gt;
&lt;br /&gt;
 TOPOGRAPHIC_FILE              : ..\..\GeneralData\DTM\MDT200mSD.dat&lt;br /&gt;
 TRESHOLD_AREA                 : 100000&lt;br /&gt;
 DELINEATE_BASIN               : 1&lt;br /&gt;
 OUTLET_I                      : 1&lt;br /&gt;
 OUTLET_J                      : 44&lt;br /&gt;
 WRITE_REACHES                 : 1&lt;br /&gt;
 REACHES_FILE                  : ..\..\GeneralData\DrainageNetwork\DrainageNetwork.dnt&lt;br /&gt;
&lt;br /&gt;
*Define the cross sections for each node (see [[Mohid_GIS#Auto_Cross_Sections|MOHID GIS]]). &lt;br /&gt;
**'''Warning 1''': Remember to select &amp;quot;Save All&amp;quot; in MOHID GIS to update the file.&lt;br /&gt;
**'''Warning 2''': Currently, this program writes a BOTTOM_LEVEL keyword for each node instead of the keyword TERRAIN_LEVEL. BOTTOM_LEVEL was replaced by TERRAIN_LEVEL in the latest version of this module because of the introduction of irregular cross-sections type, generalizing the formulation of cross-sections. The pre-processor tool is not yet adapted. Nevertheless, for regular cross-sections, TERRAIN LEVEL = BOTTOM_LEVEL + HEIGHT. It can be changed manually or with [[http://docs.google.com/leaf?id=0B_xtWE4qvkq8Y2FhNjk5NTQtZTdhZC00N2I1LWE3Y2YtM2QwYzIyMjhhZDRj&amp;amp;sort=name&amp;amp;layout=list&amp;amp;num=50|BOTTOM2TERRAIN.pl]]&lt;/div&gt;</summary>
		<author><name>Anatrancoso</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Module_DrainageNetwork&amp;diff=2847</id>
		<title>Module DrainageNetwork</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Module_DrainageNetwork&amp;diff=2847"/>
				<updated>2010-02-15T17:40:27Z</updated>
		
		<summary type="html">&lt;p&gt;Anatrancoso: /* Creating a Network file */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Overview=&lt;br /&gt;
&lt;br /&gt;
This module can be used by two models: [[Mohid_Land|MOHID Land]], and [[Mohid_River_Network|MOHID River Network]]. Like other modules, it has a specific input file, called '''DrainageNetwork_X.dat''', where X is the simulation number. The following tables describe the keywords that can be used, their data type, and the default values (in case of omission).&lt;br /&gt;
&lt;br /&gt;
==DrainageNetwork_X.dat Keywords==&lt;br /&gt;
&lt;br /&gt;
===General===&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 NETWORK_FILE              : char              -           !Path to drainage network file&lt;br /&gt;
 CHECK_NODES               : 0/1               [1]         !Ckeck nodes consistency&lt;br /&gt;
 CHECK_REACHES             : 0/1               [1]         !Check reaches consistency&lt;br /&gt;
 GLOBAL_MANNING            : real              -           !Rugosity in Channels&lt;br /&gt;
 GEO_CONVERSATION_FACTOR   : real              [1.]        !Lat to Meters rough estimation&lt;br /&gt;
&lt;br /&gt;
===Stabilization===&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 STABILIZE                 : 0/1               [0]         !Restart time iteration if high volume gradients&lt;br /&gt;
 STABILIZE_FACTOR          : real              [0.1]       !max gradient in time steps as fraction of old volume&lt;br /&gt;
 MAX_ITERATIONS            : int               [100]       !Max iterations for stabilized check&lt;br /&gt;
 DT_FACTOR                 : real              [0.8]       !Factor for DT Prediction&lt;br /&gt;
 MAX_DT_FLOOD              : real              [10.0]      !Max DT if channel water level exceeds full bank&lt;br /&gt;
&lt;br /&gt;
===Hydrodynamic===&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 HYDRODYNAMIC_APROX        : int               [1]         !1 - KinematicWave, 2 - DiffusionWave, 3 - DynamicWave&lt;br /&gt;
 NUMERICAL_SCHEME          : int               [0]         !0 - ExplicitScheme, 1 - ImplicitScheme&lt;br /&gt;
 MASS_ERR                  : real(8)           [0.001]     !Max error in mass conservation&lt;br /&gt;
 MIN_WATER_DEPTH           : real              [0.001]     !Min water depth in nodes (For h &amp;lt; MIN_WATER_DEPTH water stops flowing)&lt;br /&gt;
 INITIAL_WATER_DEPTH       : real              [0.0]       !Initial water depth&lt;br /&gt;
 MINIMUM_SLOPE             : real              [0.0]       !Minimum Slope for Kinematic Wave&lt;br /&gt;
&lt;br /&gt;
===Downstream Boundary===&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 DOWNSTREAM_BOUNDARY       : int               [1]         !0 - Dam, 1 - ZDG, 2 - CD, 3 - ImposedWaterDepth, 3 - ImposedVelocity&lt;br /&gt;
 DEFAULTVALUE              : real              -           !Default value at downstream boundary&lt;br /&gt;
 FILE_IN_TIME              : char              [NONE]      !If DOWNSTREAM_BOUNDARY = ImposedWaterDepth, this can be NONE or TIMESERIE&lt;br /&gt;
 FILENAME                  : char              -           !If FILE_IN_TIME = TIMESERIE, this is the name of timeserie file for the downstream boundary&lt;br /&gt;
 DATA_COLUMN               : int               -           !Number of column with data in FILE_IN_TIME&lt;br /&gt;
&lt;br /&gt;
===Output===&lt;br /&gt;
&lt;br /&gt;
Output is given for all nodes in HDF5 format, and also as time series for the specified nodes in TIME_SERIE_LOCATION file. These nodes are identified by their IDS (see Network file) and have to be inside the block  '''&amp;lt;BeginNodeTimeSerie&amp;gt;  / &amp;lt;EndNodeTimeSerie&amp;gt;'''.&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 OUTPUT_TIME               : int int...        [-]         !time interval between outputs for all nodes, in HDF5 format.&lt;br /&gt;
 TIME_SERIE_LOCATION       : char              -           !Path to time serie file with the specified nodes (can be this file)&lt;br /&gt;
 MAX_BUFFER_SIZE           : 1000&lt;br /&gt;
 COMPUTE_RESIDUAL          : 1&lt;br /&gt;
 DT_OUTPUT_TIME            : 1200&lt;br /&gt;
 TIME_SERIE_BY_NODES       : 0/1               [0]         !Keyword to see if the user wants the time series to be written by nodes, i.e.,&lt;br /&gt;
                                                           !One file per node, with all variables in the headers list&lt;br /&gt;
                                                           !if FALSE, its one file per variable with nodes in the headers.&lt;br /&gt;
&lt;br /&gt;
===Processes===&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 MIN_WATER_DEPTH_PROCESS   : real              [0.01]      !Water Quality Process / Surface Fluxes shutdown&lt;br /&gt;
 DISCHARGES                : 0/1               [0]         !Use module discharges (WWTP, etc)&lt;br /&gt;
 TRANSMISSION_LOSSES       : 0/1               [0]         !If user wants to use transmission losses&lt;br /&gt;
 HYDRAULIC_CONDUCTIVITY    : real              -           !Hydraulic Conductivity to calculate transmission losses&lt;br /&gt;
 REMOVE_OVERTOP            : 0/1               [0]         !Removes Water if channels are overtoped&lt;br /&gt;
 AERATION_METHOD           : int               [-]         !1 - PoolAndRifle, 2 - ChannelControled_&lt;br /&gt;
 T90_DECAY_MODEL           : 0                 [1]         !0 - Constant, 1 - Canteras, 2 - Chapra&lt;br /&gt;
 T90                       : real              [7200.]     !if T90_DECAY_MODEL = Constant&lt;br /&gt;
 SHADING_FACTOR            : real              [1.]        !0-1 fraction of riparian shading&lt;br /&gt;
 FRACTION_SEDIMENT         : 0/1               [0]&lt;br /&gt;
 GLOBAL_TOXICITY           : char              ['SUM']     !Global Toxicity Computation Method : SUM,MAX,RISKRATIO&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
===Properties===&lt;br /&gt;
&lt;br /&gt;
Each property keywords must be inside a block '''&amp;lt;beginproperty&amp;gt;/&amp;lt;endproperty&amp;gt;'''.&lt;br /&gt;
&lt;br /&gt;
 Keyword                    : Data Type         Default      !Comment&lt;br /&gt;
 &amp;lt;beginproperty&amp;gt;&lt;br /&gt;
 NAME                       : char              [-]          !Property name, must be on of [[Properties_names]]&lt;br /&gt;
 UNITS                      : char              [-]          !usually mg/L (see IS_COEF)&lt;br /&gt;
 IS_COEF                    : real              [1.e-3]      !Conversion factor to the International System&lt;br /&gt;
 DESCRIPTION                : char              [-]          !Property description&lt;br /&gt;
 DEFAULT_VALUE              : real              [0.0]        !Property initial concentration&lt;br /&gt;
 MIN_VALUE                  : real              [0.0]        !Property minimum concentration&lt;br /&gt;
 OVERLAND_CONCENTRATION     : real              [0.0]        !Concentration discharged from overland&lt;br /&gt;
 GROUNDWATER_CONCENTRATION  : real              [0.0]        !Concentration discharged from ground water&lt;br /&gt;
 DIFFUSEWATER_CONCENTRATION : real              [0.0]&lt;br /&gt;
 ADVECTION_DIFUSION         : 0/1               [1]          !1 - want to transport property; 0 - no transport&lt;br /&gt;
     ADVECTION_SCHEME       : int               [1]          !1 - UpwindOrder1 (currently no more options)&lt;br /&gt;
     DIFFUSION_SCHEME       : int               [5]          !5 - CentralDiff  (currently no more options)&lt;br /&gt;
     DIFFUSIVITY            : real              [1e-8]       !Molecular diffusivity of property in m2/s&lt;br /&gt;
 DISCHARGES                 : 0/1               [0]          !1 - property is discharged; 0 - no discharges&lt;br /&gt;
 TOXICITY                   : 0/1               [0]          !1 - property has an associated toxicity     &lt;br /&gt;
     TOX_EVOLUTION          : int               [1]          !1 - Saturation, 2 - Linear, 3 - RiskRatio&lt;br /&gt;
     EC50                   : real              [0.5]        !If TOX_EVOLUTION = Saturation or RiskRatio,&lt;br /&gt;
                                                             !EC50 is the concentration that causes 50% of effect (Tox = 0.5)&lt;br /&gt;
                                                             !in fraction of initial concentration units [%]&lt;br /&gt;
     SLOPE                  : real              [1.0]        !If TOX_EVOLUTION = Linear&lt;br /&gt;
 DECAY                      : 0/1               [0]          !1- want to use bacterial decay model. 0 - no use. Must have DISCHARGES = 1 and [[Mohid_River_Network|atmosphere]].&lt;br /&gt;
 SURFACE_FLUXES             : 0/1               [0]          !Property has surface fluxes (e.g. evaporation). Needs [[Mohid_River_Network|atmosphere]].&lt;br /&gt;
 BOTTOM_FLUXES              : 0/1               [0]          !Property has bottom fluxes. Must be particulated.&lt;br /&gt;
     BOTTOM_CONC            : real              [0.0]        !Bottom Initial Concentration&lt;br /&gt;
     BOTTOM_MIN_CONC        : real              [0.0]        !Bottom Minimum Concentration&lt;br /&gt;
     EROSION                : 0/1               [1]          !Compute erosion fluxes&lt;br /&gt;
         CRIT_SS_EROSION    : real              [0.2]        !Critical Erosion Shear Stress [Pa]&lt;br /&gt;
         EROSION_COEF       : real              [5.0E-4]     !Erosion Coefficient [kg m-2 s-1]&lt;br /&gt;
     DEPOSITION             : 0/1               [1]          !Compute deposition fluxes&lt;br /&gt;
         CRIT_SS_DEPOSITION : real              [0.1]        !Critical Deposition Shear Stress [Pa]&lt;br /&gt;
         CHS                : real              [4.0]        !Hindered settling [kg m-3] - See [[Module_FreeVerticalMovement]].&lt;br /&gt;
         WS_TYPE            : int               [1]          !Settling type: WSConstant = 1, SPMFunction = 2&lt;br /&gt;
         WS_VALUE           : real              [0.0001]     !Constant settling velocity [m s-1]&lt;br /&gt;
         KL                 : real              [0.1]        !See [[Module_FreeVerticalMovement]].&lt;br /&gt;
         KL1                : real              [0.1]        !See [[Module_FreeVerticalMovement]].&lt;br /&gt;
         ML                 : real              [4.62]       !See [[Module_FreeVerticalMovement]].&lt;br /&gt;
         M                  : real              [1.0]        !See [[Module_FreeVerticalMovement]].&lt;br /&gt;
 WATER_QUALITY              : 0/1               [0]          !1 - use [[Module_WaterQuality|Water Quality Model]] for property transformation; 0 - no use&lt;br /&gt;
 BENTHOS                    : 0/1               [0]          !1 - use [[Module_Benthos|Benthos Model]] for property transformation; 0 - no use&lt;br /&gt;
 CEQUALW2                   : 0/1               [0]          !1 - use [[Module_CEQUALW2|CEQUALW2 Model]] for property transformation; 0 - no use&lt;br /&gt;
 LIFE                       : 0/1               [0]          !1 - use [[Module_Life|Life Model]] for property transformation; 0 - no use&lt;br /&gt;
 EXTINCTION_PARAMETER       : real              [1.0]        !LIGHT EXTINCTION COEFFICIENT&lt;br /&gt;
 TIME_SERIE                 : 0/1               [0]          !Output this property in time series files.&lt;br /&gt;
 OUTPUT_NAME                : char              [NAME]       !Can be NAME or DESCRIPTION.&lt;br /&gt;
 COMPUTE_LOAD               : 0/1               [0]          !Output concentration (in UNITS) x Flow [m3 s-1]&lt;br /&gt;
 SUMTOTALCONC               : 0/1               [0] 0        !Checks if user wants to calculate total Concentration (Column + Bottom) must be particulate&lt;br /&gt;
 &amp;lt;endproperty&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Toxicity Model====&lt;br /&gt;
*The formulation is to associate an eco-toxiciy value to the property (From project ECORIVER 2002).&lt;br /&gt;
*Every toxic property must be discharged.&lt;br /&gt;
*Its concentration in the river network is set to 0.0.&lt;br /&gt;
*Discharge concentration must be equal to 1, because we are measuring the dilution D = 1 - C_new / C_ini&lt;br /&gt;
*The variable property%toxicity%concentration represents C/c_ini so it starts by being 1.&lt;br /&gt;
*This is not even close to a final version. For more details, or sugestions/corrections, contact MARETEC (Rosa Trancoso).&lt;br /&gt;
*EC50 - Concentration that causes 50% of effect (Tox = 0.5)&lt;br /&gt;
&lt;br /&gt;
==Network file==&lt;br /&gt;
&lt;br /&gt;
The Network file specified in '''NETWORK_FILE''' keyword has two types of blocks:&lt;br /&gt;
* '''&amp;lt;BeginNode&amp;gt;/ &amp;lt;EndNode&amp;gt;'''&lt;br /&gt;
* '''&amp;lt;BeginReach&amp;gt;/&amp;lt;EndReach&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
===Keywords===&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;BeginNode&amp;gt;&lt;br /&gt;
   ID                      : int               -           !Node ID number&lt;br /&gt;
   COORDINATES             : real real         -           !Node coordinates&lt;br /&gt;
   GRID_I                  : int               -           !I position of node, if grid&lt;br /&gt;
   GRID_J                  : int               -           !J position of node, if grid&lt;br /&gt;
   TERRAIN_LEVEL            : real              -           !Bottom level of cross section&lt;br /&gt;
   MANNING_CHANNEL         : real         GLOBAL_MANNING   !Node rugosity&lt;br /&gt;
   WATER_DEPTH             : real      INITIAL_WATER_DEPTH !Node initial water depth&lt;br /&gt;
   CROSS_SECTION_TYPE      : int               [1]         !1 - Trapezoidal, 2 - TrapezoidalFlood, 3 - Tabular&lt;br /&gt;
   1 - Trapezoidal, 2 - TrapezoidalFlood&lt;br /&gt;
       BOTTOM_WIDTH        : real              -           !Bottom width of cross section&lt;br /&gt;
       TOP_WIDTH           : real              -           !Top width of cross section&lt;br /&gt;
       HEIGHT              : real              -           !Max height of cross section&lt;br /&gt;
   2 - TrapezoidalFlood&lt;br /&gt;
       MIDDLE_WIDTH        : real              -           !Middle width of cross section&lt;br /&gt;
       MIDDLE_HEIGHT       : real              -           !Middle height of cross section&lt;br /&gt;
   3 - Tabular&lt;br /&gt;
       N_STATIONS          : integer           -           !number os stations that define the cross section&lt;br /&gt;
       STATION             : real real ...     -           !station values&lt;br /&gt;
       ELEVATION/LEVEL     : real real ...     -           !elevation values&lt;br /&gt;
 &amp;lt;EndNode&amp;gt;&lt;br /&gt;
 &amp;lt;BeginReach&amp;gt;&lt;br /&gt;
   ID                      : int               -           !Reach ID Number&lt;br /&gt;
   DOWNSTREAM_NODE         : int               -           !Downstream node ID&lt;br /&gt;
   UPSTREAM_NODE           : int               -           !Upstream node ID&lt;br /&gt;
 &amp;lt;EndReach&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Creating a Network file===&lt;br /&gt;
&lt;br /&gt;
*Obtain a drainage network with MOHID GIS in [[MOHID_GIS#Delineate_Basins|Delineate Basins]]&lt;br /&gt;
*Alternatively obtain a drainage network with program BasinDelimiter (from SourceSafe) with a '''basin.dat''' file such as:&lt;br /&gt;
&lt;br /&gt;
 TOPOGRAPHIC_FILE              : ..\..\GeneralData\DTM\MDT200mSD.dat&lt;br /&gt;
 TRESHOLD_AREA                 : 100000&lt;br /&gt;
 DELINEATE_BASIN               : 1&lt;br /&gt;
 OUTLET_I                      : 1&lt;br /&gt;
 OUTLET_J                      : 44&lt;br /&gt;
 WRITE_REACHES                 : 1&lt;br /&gt;
 REACHES_FILE                  : ..\..\GeneralData\DrainageNetwork\DrainageNetwork.dnt&lt;br /&gt;
&lt;br /&gt;
*Define the cross sections for each node (see [[Mohid_GIS#Auto_Cross_Sections|MOHID GIS]]). &lt;br /&gt;
**'''Warning 1''': Remember to select &amp;quot;Save All&amp;quot; in MOHID GIS to update the file.&lt;br /&gt;
**'''Warning 2''': Currently, this program writes a BOTTOM_LEVEL keyword for each node instead of the keyword TERRAIN_LEVEL. BOTTOM_LEVEL was replaced by TERRAIN_LEVEL in the latest version of this module because of the introduction of irregular cross-sections type, generalizing the formulation of cross-sections. The pre-processor tool is not yet adapted. Nevertheless, for regular cross-sections, TERRAIN LEVEL = BOTTOM_LEVEL + HEIGHT. It can be changed manually or with&lt;/div&gt;</summary>
		<author><name>Anatrancoso</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Module_DrainageNetwork&amp;diff=2846</id>
		<title>Module DrainageNetwork</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Module_DrainageNetwork&amp;diff=2846"/>
				<updated>2010-02-15T17:40:07Z</updated>
		
		<summary type="html">&lt;p&gt;Anatrancoso: /* Creating a Network file */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Overview=&lt;br /&gt;
&lt;br /&gt;
This module can be used by two models: [[Mohid_Land|MOHID Land]], and [[Mohid_River_Network|MOHID River Network]]. Like other modules, it has a specific input file, called '''DrainageNetwork_X.dat''', where X is the simulation number. The following tables describe the keywords that can be used, their data type, and the default values (in case of omission).&lt;br /&gt;
&lt;br /&gt;
==DrainageNetwork_X.dat Keywords==&lt;br /&gt;
&lt;br /&gt;
===General===&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 NETWORK_FILE              : char              -           !Path to drainage network file&lt;br /&gt;
 CHECK_NODES               : 0/1               [1]         !Ckeck nodes consistency&lt;br /&gt;
 CHECK_REACHES             : 0/1               [1]         !Check reaches consistency&lt;br /&gt;
 GLOBAL_MANNING            : real              -           !Rugosity in Channels&lt;br /&gt;
 GEO_CONVERSATION_FACTOR   : real              [1.]        !Lat to Meters rough estimation&lt;br /&gt;
&lt;br /&gt;
===Stabilization===&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 STABILIZE                 : 0/1               [0]         !Restart time iteration if high volume gradients&lt;br /&gt;
 STABILIZE_FACTOR          : real              [0.1]       !max gradient in time steps as fraction of old volume&lt;br /&gt;
 MAX_ITERATIONS            : int               [100]       !Max iterations for stabilized check&lt;br /&gt;
 DT_FACTOR                 : real              [0.8]       !Factor for DT Prediction&lt;br /&gt;
 MAX_DT_FLOOD              : real              [10.0]      !Max DT if channel water level exceeds full bank&lt;br /&gt;
&lt;br /&gt;
===Hydrodynamic===&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 HYDRODYNAMIC_APROX        : int               [1]         !1 - KinematicWave, 2 - DiffusionWave, 3 - DynamicWave&lt;br /&gt;
 NUMERICAL_SCHEME          : int               [0]         !0 - ExplicitScheme, 1 - ImplicitScheme&lt;br /&gt;
 MASS_ERR                  : real(8)           [0.001]     !Max error in mass conservation&lt;br /&gt;
 MIN_WATER_DEPTH           : real              [0.001]     !Min water depth in nodes (For h &amp;lt; MIN_WATER_DEPTH water stops flowing)&lt;br /&gt;
 INITIAL_WATER_DEPTH       : real              [0.0]       !Initial water depth&lt;br /&gt;
 MINIMUM_SLOPE             : real              [0.0]       !Minimum Slope for Kinematic Wave&lt;br /&gt;
&lt;br /&gt;
===Downstream Boundary===&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 DOWNSTREAM_BOUNDARY       : int               [1]         !0 - Dam, 1 - ZDG, 2 - CD, 3 - ImposedWaterDepth, 3 - ImposedVelocity&lt;br /&gt;
 DEFAULTVALUE              : real              -           !Default value at downstream boundary&lt;br /&gt;
 FILE_IN_TIME              : char              [NONE]      !If DOWNSTREAM_BOUNDARY = ImposedWaterDepth, this can be NONE or TIMESERIE&lt;br /&gt;
 FILENAME                  : char              -           !If FILE_IN_TIME = TIMESERIE, this is the name of timeserie file for the downstream boundary&lt;br /&gt;
 DATA_COLUMN               : int               -           !Number of column with data in FILE_IN_TIME&lt;br /&gt;
&lt;br /&gt;
===Output===&lt;br /&gt;
&lt;br /&gt;
Output is given for all nodes in HDF5 format, and also as time series for the specified nodes in TIME_SERIE_LOCATION file. These nodes are identified by their IDS (see Network file) and have to be inside the block  '''&amp;lt;BeginNodeTimeSerie&amp;gt;  / &amp;lt;EndNodeTimeSerie&amp;gt;'''.&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 OUTPUT_TIME               : int int...        [-]         !time interval between outputs for all nodes, in HDF5 format.&lt;br /&gt;
 TIME_SERIE_LOCATION       : char              -           !Path to time serie file with the specified nodes (can be this file)&lt;br /&gt;
 MAX_BUFFER_SIZE           : 1000&lt;br /&gt;
 COMPUTE_RESIDUAL          : 1&lt;br /&gt;
 DT_OUTPUT_TIME            : 1200&lt;br /&gt;
 TIME_SERIE_BY_NODES       : 0/1               [0]         !Keyword to see if the user wants the time series to be written by nodes, i.e.,&lt;br /&gt;
                                                           !One file per node, with all variables in the headers list&lt;br /&gt;
                                                           !if FALSE, its one file per variable with nodes in the headers.&lt;br /&gt;
&lt;br /&gt;
===Processes===&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 MIN_WATER_DEPTH_PROCESS   : real              [0.01]      !Water Quality Process / Surface Fluxes shutdown&lt;br /&gt;
 DISCHARGES                : 0/1               [0]         !Use module discharges (WWTP, etc)&lt;br /&gt;
 TRANSMISSION_LOSSES       : 0/1               [0]         !If user wants to use transmission losses&lt;br /&gt;
 HYDRAULIC_CONDUCTIVITY    : real              -           !Hydraulic Conductivity to calculate transmission losses&lt;br /&gt;
 REMOVE_OVERTOP            : 0/1               [0]         !Removes Water if channels are overtoped&lt;br /&gt;
 AERATION_METHOD           : int               [-]         !1 - PoolAndRifle, 2 - ChannelControled_&lt;br /&gt;
 T90_DECAY_MODEL           : 0                 [1]         !0 - Constant, 1 - Canteras, 2 - Chapra&lt;br /&gt;
 T90                       : real              [7200.]     !if T90_DECAY_MODEL = Constant&lt;br /&gt;
 SHADING_FACTOR            : real              [1.]        !0-1 fraction of riparian shading&lt;br /&gt;
 FRACTION_SEDIMENT         : 0/1               [0]&lt;br /&gt;
 GLOBAL_TOXICITY           : char              ['SUM']     !Global Toxicity Computation Method : SUM,MAX,RISKRATIO&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
===Properties===&lt;br /&gt;
&lt;br /&gt;
Each property keywords must be inside a block '''&amp;lt;beginproperty&amp;gt;/&amp;lt;endproperty&amp;gt;'''.&lt;br /&gt;
&lt;br /&gt;
 Keyword                    : Data Type         Default      !Comment&lt;br /&gt;
 &amp;lt;beginproperty&amp;gt;&lt;br /&gt;
 NAME                       : char              [-]          !Property name, must be on of [[Properties_names]]&lt;br /&gt;
 UNITS                      : char              [-]          !usually mg/L (see IS_COEF)&lt;br /&gt;
 IS_COEF                    : real              [1.e-3]      !Conversion factor to the International System&lt;br /&gt;
 DESCRIPTION                : char              [-]          !Property description&lt;br /&gt;
 DEFAULT_VALUE              : real              [0.0]        !Property initial concentration&lt;br /&gt;
 MIN_VALUE                  : real              [0.0]        !Property minimum concentration&lt;br /&gt;
 OVERLAND_CONCENTRATION     : real              [0.0]        !Concentration discharged from overland&lt;br /&gt;
 GROUNDWATER_CONCENTRATION  : real              [0.0]        !Concentration discharged from ground water&lt;br /&gt;
 DIFFUSEWATER_CONCENTRATION : real              [0.0]&lt;br /&gt;
 ADVECTION_DIFUSION         : 0/1               [1]          !1 - want to transport property; 0 - no transport&lt;br /&gt;
     ADVECTION_SCHEME       : int               [1]          !1 - UpwindOrder1 (currently no more options)&lt;br /&gt;
     DIFFUSION_SCHEME       : int               [5]          !5 - CentralDiff  (currently no more options)&lt;br /&gt;
     DIFFUSIVITY            : real              [1e-8]       !Molecular diffusivity of property in m2/s&lt;br /&gt;
 DISCHARGES                 : 0/1               [0]          !1 - property is discharged; 0 - no discharges&lt;br /&gt;
 TOXICITY                   : 0/1               [0]          !1 - property has an associated toxicity     &lt;br /&gt;
     TOX_EVOLUTION          : int               [1]          !1 - Saturation, 2 - Linear, 3 - RiskRatio&lt;br /&gt;
     EC50                   : real              [0.5]        !If TOX_EVOLUTION = Saturation or RiskRatio,&lt;br /&gt;
                                                             !EC50 is the concentration that causes 50% of effect (Tox = 0.5)&lt;br /&gt;
                                                             !in fraction of initial concentration units [%]&lt;br /&gt;
     SLOPE                  : real              [1.0]        !If TOX_EVOLUTION = Linear&lt;br /&gt;
 DECAY                      : 0/1               [0]          !1- want to use bacterial decay model. 0 - no use. Must have DISCHARGES = 1 and [[Mohid_River_Network|atmosphere]].&lt;br /&gt;
 SURFACE_FLUXES             : 0/1               [0]          !Property has surface fluxes (e.g. evaporation). Needs [[Mohid_River_Network|atmosphere]].&lt;br /&gt;
 BOTTOM_FLUXES              : 0/1               [0]          !Property has bottom fluxes. Must be particulated.&lt;br /&gt;
     BOTTOM_CONC            : real              [0.0]        !Bottom Initial Concentration&lt;br /&gt;
     BOTTOM_MIN_CONC        : real              [0.0]        !Bottom Minimum Concentration&lt;br /&gt;
     EROSION                : 0/1               [1]          !Compute erosion fluxes&lt;br /&gt;
         CRIT_SS_EROSION    : real              [0.2]        !Critical Erosion Shear Stress [Pa]&lt;br /&gt;
         EROSION_COEF       : real              [5.0E-4]     !Erosion Coefficient [kg m-2 s-1]&lt;br /&gt;
     DEPOSITION             : 0/1               [1]          !Compute deposition fluxes&lt;br /&gt;
         CRIT_SS_DEPOSITION : real              [0.1]        !Critical Deposition Shear Stress [Pa]&lt;br /&gt;
         CHS                : real              [4.0]        !Hindered settling [kg m-3] - See [[Module_FreeVerticalMovement]].&lt;br /&gt;
         WS_TYPE            : int               [1]          !Settling type: WSConstant = 1, SPMFunction = 2&lt;br /&gt;
         WS_VALUE           : real              [0.0001]     !Constant settling velocity [m s-1]&lt;br /&gt;
         KL                 : real              [0.1]        !See [[Module_FreeVerticalMovement]].&lt;br /&gt;
         KL1                : real              [0.1]        !See [[Module_FreeVerticalMovement]].&lt;br /&gt;
         ML                 : real              [4.62]       !See [[Module_FreeVerticalMovement]].&lt;br /&gt;
         M                  : real              [1.0]        !See [[Module_FreeVerticalMovement]].&lt;br /&gt;
 WATER_QUALITY              : 0/1               [0]          !1 - use [[Module_WaterQuality|Water Quality Model]] for property transformation; 0 - no use&lt;br /&gt;
 BENTHOS                    : 0/1               [0]          !1 - use [[Module_Benthos|Benthos Model]] for property transformation; 0 - no use&lt;br /&gt;
 CEQUALW2                   : 0/1               [0]          !1 - use [[Module_CEQUALW2|CEQUALW2 Model]] for property transformation; 0 - no use&lt;br /&gt;
 LIFE                       : 0/1               [0]          !1 - use [[Module_Life|Life Model]] for property transformation; 0 - no use&lt;br /&gt;
 EXTINCTION_PARAMETER       : real              [1.0]        !LIGHT EXTINCTION COEFFICIENT&lt;br /&gt;
 TIME_SERIE                 : 0/1               [0]          !Output this property in time series files.&lt;br /&gt;
 OUTPUT_NAME                : char              [NAME]       !Can be NAME or DESCRIPTION.&lt;br /&gt;
 COMPUTE_LOAD               : 0/1               [0]          !Output concentration (in UNITS) x Flow [m3 s-1]&lt;br /&gt;
 SUMTOTALCONC               : 0/1               [0] 0        !Checks if user wants to calculate total Concentration (Column + Bottom) must be particulate&lt;br /&gt;
 &amp;lt;endproperty&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Toxicity Model====&lt;br /&gt;
*The formulation is to associate an eco-toxiciy value to the property (From project ECORIVER 2002).&lt;br /&gt;
*Every toxic property must be discharged.&lt;br /&gt;
*Its concentration in the river network is set to 0.0.&lt;br /&gt;
*Discharge concentration must be equal to 1, because we are measuring the dilution D = 1 - C_new / C_ini&lt;br /&gt;
*The variable property%toxicity%concentration represents C/c_ini so it starts by being 1.&lt;br /&gt;
*This is not even close to a final version. For more details, or sugestions/corrections, contact MARETEC (Rosa Trancoso).&lt;br /&gt;
*EC50 - Concentration that causes 50% of effect (Tox = 0.5)&lt;br /&gt;
&lt;br /&gt;
==Network file==&lt;br /&gt;
&lt;br /&gt;
The Network file specified in '''NETWORK_FILE''' keyword has two types of blocks:&lt;br /&gt;
* '''&amp;lt;BeginNode&amp;gt;/ &amp;lt;EndNode&amp;gt;'''&lt;br /&gt;
* '''&amp;lt;BeginReach&amp;gt;/&amp;lt;EndReach&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
===Keywords===&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;BeginNode&amp;gt;&lt;br /&gt;
   ID                      : int               -           !Node ID number&lt;br /&gt;
   COORDINATES             : real real         -           !Node coordinates&lt;br /&gt;
   GRID_I                  : int               -           !I position of node, if grid&lt;br /&gt;
   GRID_J                  : int               -           !J position of node, if grid&lt;br /&gt;
   TERRAIN_LEVEL            : real              -           !Bottom level of cross section&lt;br /&gt;
   MANNING_CHANNEL         : real         GLOBAL_MANNING   !Node rugosity&lt;br /&gt;
   WATER_DEPTH             : real      INITIAL_WATER_DEPTH !Node initial water depth&lt;br /&gt;
   CROSS_SECTION_TYPE      : int               [1]         !1 - Trapezoidal, 2 - TrapezoidalFlood, 3 - Tabular&lt;br /&gt;
   1 - Trapezoidal, 2 - TrapezoidalFlood&lt;br /&gt;
       BOTTOM_WIDTH        : real              -           !Bottom width of cross section&lt;br /&gt;
       TOP_WIDTH           : real              -           !Top width of cross section&lt;br /&gt;
       HEIGHT              : real              -           !Max height of cross section&lt;br /&gt;
   2 - TrapezoidalFlood&lt;br /&gt;
       MIDDLE_WIDTH        : real              -           !Middle width of cross section&lt;br /&gt;
       MIDDLE_HEIGHT       : real              -           !Middle height of cross section&lt;br /&gt;
   3 - Tabular&lt;br /&gt;
       N_STATIONS          : integer           -           !number os stations that define the cross section&lt;br /&gt;
       STATION             : real real ...     -           !station values&lt;br /&gt;
       ELEVATION/LEVEL     : real real ...     -           !elevation values&lt;br /&gt;
 &amp;lt;EndNode&amp;gt;&lt;br /&gt;
 &amp;lt;BeginReach&amp;gt;&lt;br /&gt;
   ID                      : int               -           !Reach ID Number&lt;br /&gt;
   DOWNSTREAM_NODE         : int               -           !Downstream node ID&lt;br /&gt;
   UPSTREAM_NODE           : int               -           !Upstream node ID&lt;br /&gt;
 &amp;lt;EndReach&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Creating a Network file===&lt;br /&gt;
&lt;br /&gt;
*Obtain a drainage network with MOHID GIS in [[MOHID_GIS#Delineate_Basins|Delineate Basins]]&lt;br /&gt;
*Alternatively obtain a drainage network with program BasinDelimiter (from SourceSafe) with a '''basin.dat''' file such as:&lt;br /&gt;
&lt;br /&gt;
 TOPOGRAPHIC_FILE              : ..\..\GeneralData\DTM\MDT200mSD.dat&lt;br /&gt;
 TRESHOLD_AREA                 : 100000&lt;br /&gt;
 DELINEATE_BASIN               : 1&lt;br /&gt;
 OUTLET_I                      : 1&lt;br /&gt;
 OUTLET_J                      : 44&lt;br /&gt;
 WRITE_REACHES                 : 1&lt;br /&gt;
 REACHES_FILE                  : ..\..\GeneralData\DrainageNetwork\DrainageNetwork.dnt&lt;br /&gt;
&lt;br /&gt;
*Define the cross sections for each node (see [[Mohid_GIS#Auto_Cross_Sections|MOHID GIS]]). &lt;br /&gt;
**Warning 1: Remember to select &amp;quot;Save All&amp;quot; in MOHID GIS to update the file.&lt;br /&gt;
**Warning 2: Currently, this program writes a BOTTOM_LEVEL keyword for each node instead of the keyword TERRAIN_LEVEL. BOTTOM_LEVEL was replaced by TERRAIN_LEVEL in the latest version of this module because of the introduction of irregular cross-sections type, generalizing the formulation of cross-sections. The pre-processor tool is not yet adapted. Nevertheless, for regular cross-sections, TERRAIN LEVEL = BOTTOM_LEVEL + HEIGHT. It can be changed manually or with&lt;/div&gt;</summary>
		<author><name>Anatrancoso</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Module_DrainageNetwork&amp;diff=2845</id>
		<title>Module DrainageNetwork</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Module_DrainageNetwork&amp;diff=2845"/>
				<updated>2010-02-15T17:33:41Z</updated>
		
		<summary type="html">&lt;p&gt;Anatrancoso: /* Network file */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Overview=&lt;br /&gt;
&lt;br /&gt;
This module can be used by two models: [[Mohid_Land|MOHID Land]], and [[Mohid_River_Network|MOHID River Network]]. Like other modules, it has a specific input file, called '''DrainageNetwork_X.dat''', where X is the simulation number. The following tables describe the keywords that can be used, their data type, and the default values (in case of omission).&lt;br /&gt;
&lt;br /&gt;
==DrainageNetwork_X.dat Keywords==&lt;br /&gt;
&lt;br /&gt;
===General===&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 NETWORK_FILE              : char              -           !Path to drainage network file&lt;br /&gt;
 CHECK_NODES               : 0/1               [1]         !Ckeck nodes consistency&lt;br /&gt;
 CHECK_REACHES             : 0/1               [1]         !Check reaches consistency&lt;br /&gt;
 GLOBAL_MANNING            : real              -           !Rugosity in Channels&lt;br /&gt;
 GEO_CONVERSATION_FACTOR   : real              [1.]        !Lat to Meters rough estimation&lt;br /&gt;
&lt;br /&gt;
===Stabilization===&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 STABILIZE                 : 0/1               [0]         !Restart time iteration if high volume gradients&lt;br /&gt;
 STABILIZE_FACTOR          : real              [0.1]       !max gradient in time steps as fraction of old volume&lt;br /&gt;
 MAX_ITERATIONS            : int               [100]       !Max iterations for stabilized check&lt;br /&gt;
 DT_FACTOR                 : real              [0.8]       !Factor for DT Prediction&lt;br /&gt;
 MAX_DT_FLOOD              : real              [10.0]      !Max DT if channel water level exceeds full bank&lt;br /&gt;
&lt;br /&gt;
===Hydrodynamic===&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 HYDRODYNAMIC_APROX        : int               [1]         !1 - KinematicWave, 2 - DiffusionWave, 3 - DynamicWave&lt;br /&gt;
 NUMERICAL_SCHEME          : int               [0]         !0 - ExplicitScheme, 1 - ImplicitScheme&lt;br /&gt;
 MASS_ERR                  : real(8)           [0.001]     !Max error in mass conservation&lt;br /&gt;
 MIN_WATER_DEPTH           : real              [0.001]     !Min water depth in nodes (For h &amp;lt; MIN_WATER_DEPTH water stops flowing)&lt;br /&gt;
 INITIAL_WATER_DEPTH       : real              [0.0]       !Initial water depth&lt;br /&gt;
 MINIMUM_SLOPE             : real              [0.0]       !Minimum Slope for Kinematic Wave&lt;br /&gt;
&lt;br /&gt;
===Downstream Boundary===&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 DOWNSTREAM_BOUNDARY       : int               [1]         !0 - Dam, 1 - ZDG, 2 - CD, 3 - ImposedWaterDepth, 3 - ImposedVelocity&lt;br /&gt;
 DEFAULTVALUE              : real              -           !Default value at downstream boundary&lt;br /&gt;
 FILE_IN_TIME              : char              [NONE]      !If DOWNSTREAM_BOUNDARY = ImposedWaterDepth, this can be NONE or TIMESERIE&lt;br /&gt;
 FILENAME                  : char              -           !If FILE_IN_TIME = TIMESERIE, this is the name of timeserie file for the downstream boundary&lt;br /&gt;
 DATA_COLUMN               : int               -           !Number of column with data in FILE_IN_TIME&lt;br /&gt;
&lt;br /&gt;
===Output===&lt;br /&gt;
&lt;br /&gt;
Output is given for all nodes in HDF5 format, and also as time series for the specified nodes in TIME_SERIE_LOCATION file. These nodes are identified by their IDS (see Network file) and have to be inside the block  '''&amp;lt;BeginNodeTimeSerie&amp;gt;  / &amp;lt;EndNodeTimeSerie&amp;gt;'''.&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 OUTPUT_TIME               : int int...        [-]         !time interval between outputs for all nodes, in HDF5 format.&lt;br /&gt;
 TIME_SERIE_LOCATION       : char              -           !Path to time serie file with the specified nodes (can be this file)&lt;br /&gt;
 MAX_BUFFER_SIZE           : 1000&lt;br /&gt;
 COMPUTE_RESIDUAL          : 1&lt;br /&gt;
 DT_OUTPUT_TIME            : 1200&lt;br /&gt;
 TIME_SERIE_BY_NODES       : 0/1               [0]         !Keyword to see if the user wants the time series to be written by nodes, i.e.,&lt;br /&gt;
                                                           !One file per node, with all variables in the headers list&lt;br /&gt;
                                                           !if FALSE, its one file per variable with nodes in the headers.&lt;br /&gt;
&lt;br /&gt;
===Processes===&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 MIN_WATER_DEPTH_PROCESS   : real              [0.01]      !Water Quality Process / Surface Fluxes shutdown&lt;br /&gt;
 DISCHARGES                : 0/1               [0]         !Use module discharges (WWTP, etc)&lt;br /&gt;
 TRANSMISSION_LOSSES       : 0/1               [0]         !If user wants to use transmission losses&lt;br /&gt;
 HYDRAULIC_CONDUCTIVITY    : real              -           !Hydraulic Conductivity to calculate transmission losses&lt;br /&gt;
 REMOVE_OVERTOP            : 0/1               [0]         !Removes Water if channels are overtoped&lt;br /&gt;
 AERATION_METHOD           : int               [-]         !1 - PoolAndRifle, 2 - ChannelControled_&lt;br /&gt;
 T90_DECAY_MODEL           : 0                 [1]         !0 - Constant, 1 - Canteras, 2 - Chapra&lt;br /&gt;
 T90                       : real              [7200.]     !if T90_DECAY_MODEL = Constant&lt;br /&gt;
 SHADING_FACTOR            : real              [1.]        !0-1 fraction of riparian shading&lt;br /&gt;
 FRACTION_SEDIMENT         : 0/1               [0]&lt;br /&gt;
 GLOBAL_TOXICITY           : char              ['SUM']     !Global Toxicity Computation Method : SUM,MAX,RISKRATIO&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
===Properties===&lt;br /&gt;
&lt;br /&gt;
Each property keywords must be inside a block '''&amp;lt;beginproperty&amp;gt;/&amp;lt;endproperty&amp;gt;'''.&lt;br /&gt;
&lt;br /&gt;
 Keyword                    : Data Type         Default      !Comment&lt;br /&gt;
 &amp;lt;beginproperty&amp;gt;&lt;br /&gt;
 NAME                       : char              [-]          !Property name, must be on of [[Properties_names]]&lt;br /&gt;
 UNITS                      : char              [-]          !usually mg/L (see IS_COEF)&lt;br /&gt;
 IS_COEF                    : real              [1.e-3]      !Conversion factor to the International System&lt;br /&gt;
 DESCRIPTION                : char              [-]          !Property description&lt;br /&gt;
 DEFAULT_VALUE              : real              [0.0]        !Property initial concentration&lt;br /&gt;
 MIN_VALUE                  : real              [0.0]        !Property minimum concentration&lt;br /&gt;
 OVERLAND_CONCENTRATION     : real              [0.0]        !Concentration discharged from overland&lt;br /&gt;
 GROUNDWATER_CONCENTRATION  : real              [0.0]        !Concentration discharged from ground water&lt;br /&gt;
 DIFFUSEWATER_CONCENTRATION : real              [0.0]&lt;br /&gt;
 ADVECTION_DIFUSION         : 0/1               [1]          !1 - want to transport property; 0 - no transport&lt;br /&gt;
     ADVECTION_SCHEME       : int               [1]          !1 - UpwindOrder1 (currently no more options)&lt;br /&gt;
     DIFFUSION_SCHEME       : int               [5]          !5 - CentralDiff  (currently no more options)&lt;br /&gt;
     DIFFUSIVITY            : real              [1e-8]       !Molecular diffusivity of property in m2/s&lt;br /&gt;
 DISCHARGES                 : 0/1               [0]          !1 - property is discharged; 0 - no discharges&lt;br /&gt;
 TOXICITY                   : 0/1               [0]          !1 - property has an associated toxicity     &lt;br /&gt;
     TOX_EVOLUTION          : int               [1]          !1 - Saturation, 2 - Linear, 3 - RiskRatio&lt;br /&gt;
     EC50                   : real              [0.5]        !If TOX_EVOLUTION = Saturation or RiskRatio,&lt;br /&gt;
                                                             !EC50 is the concentration that causes 50% of effect (Tox = 0.5)&lt;br /&gt;
                                                             !in fraction of initial concentration units [%]&lt;br /&gt;
     SLOPE                  : real              [1.0]        !If TOX_EVOLUTION = Linear&lt;br /&gt;
 DECAY                      : 0/1               [0]          !1- want to use bacterial decay model. 0 - no use. Must have DISCHARGES = 1 and [[Mohid_River_Network|atmosphere]].&lt;br /&gt;
 SURFACE_FLUXES             : 0/1               [0]          !Property has surface fluxes (e.g. evaporation). Needs [[Mohid_River_Network|atmosphere]].&lt;br /&gt;
 BOTTOM_FLUXES              : 0/1               [0]          !Property has bottom fluxes. Must be particulated.&lt;br /&gt;
     BOTTOM_CONC            : real              [0.0]        !Bottom Initial Concentration&lt;br /&gt;
     BOTTOM_MIN_CONC        : real              [0.0]        !Bottom Minimum Concentration&lt;br /&gt;
     EROSION                : 0/1               [1]          !Compute erosion fluxes&lt;br /&gt;
         CRIT_SS_EROSION    : real              [0.2]        !Critical Erosion Shear Stress [Pa]&lt;br /&gt;
         EROSION_COEF       : real              [5.0E-4]     !Erosion Coefficient [kg m-2 s-1]&lt;br /&gt;
     DEPOSITION             : 0/1               [1]          !Compute deposition fluxes&lt;br /&gt;
         CRIT_SS_DEPOSITION : real              [0.1]        !Critical Deposition Shear Stress [Pa]&lt;br /&gt;
         CHS                : real              [4.0]        !Hindered settling [kg m-3] - See [[Module_FreeVerticalMovement]].&lt;br /&gt;
         WS_TYPE            : int               [1]          !Settling type: WSConstant = 1, SPMFunction = 2&lt;br /&gt;
         WS_VALUE           : real              [0.0001]     !Constant settling velocity [m s-1]&lt;br /&gt;
         KL                 : real              [0.1]        !See [[Module_FreeVerticalMovement]].&lt;br /&gt;
         KL1                : real              [0.1]        !See [[Module_FreeVerticalMovement]].&lt;br /&gt;
         ML                 : real              [4.62]       !See [[Module_FreeVerticalMovement]].&lt;br /&gt;
         M                  : real              [1.0]        !See [[Module_FreeVerticalMovement]].&lt;br /&gt;
 WATER_QUALITY              : 0/1               [0]          !1 - use [[Module_WaterQuality|Water Quality Model]] for property transformation; 0 - no use&lt;br /&gt;
 BENTHOS                    : 0/1               [0]          !1 - use [[Module_Benthos|Benthos Model]] for property transformation; 0 - no use&lt;br /&gt;
 CEQUALW2                   : 0/1               [0]          !1 - use [[Module_CEQUALW2|CEQUALW2 Model]] for property transformation; 0 - no use&lt;br /&gt;
 LIFE                       : 0/1               [0]          !1 - use [[Module_Life|Life Model]] for property transformation; 0 - no use&lt;br /&gt;
 EXTINCTION_PARAMETER       : real              [1.0]        !LIGHT EXTINCTION COEFFICIENT&lt;br /&gt;
 TIME_SERIE                 : 0/1               [0]          !Output this property in time series files.&lt;br /&gt;
 OUTPUT_NAME                : char              [NAME]       !Can be NAME or DESCRIPTION.&lt;br /&gt;
 COMPUTE_LOAD               : 0/1               [0]          !Output concentration (in UNITS) x Flow [m3 s-1]&lt;br /&gt;
 SUMTOTALCONC               : 0/1               [0] 0        !Checks if user wants to calculate total Concentration (Column + Bottom) must be particulate&lt;br /&gt;
 &amp;lt;endproperty&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Toxicity Model====&lt;br /&gt;
*The formulation is to associate an eco-toxiciy value to the property (From project ECORIVER 2002).&lt;br /&gt;
*Every toxic property must be discharged.&lt;br /&gt;
*Its concentration in the river network is set to 0.0.&lt;br /&gt;
*Discharge concentration must be equal to 1, because we are measuring the dilution D = 1 - C_new / C_ini&lt;br /&gt;
*The variable property%toxicity%concentration represents C/c_ini so it starts by being 1.&lt;br /&gt;
*This is not even close to a final version. For more details, or sugestions/corrections, contact MARETEC (Rosa Trancoso).&lt;br /&gt;
*EC50 - Concentration that causes 50% of effect (Tox = 0.5)&lt;br /&gt;
&lt;br /&gt;
==Network file==&lt;br /&gt;
&lt;br /&gt;
The Network file specified in '''NETWORK_FILE''' keyword has two types of blocks:&lt;br /&gt;
* '''&amp;lt;BeginNode&amp;gt;/ &amp;lt;EndNode&amp;gt;'''&lt;br /&gt;
* '''&amp;lt;BeginReach&amp;gt;/&amp;lt;EndReach&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
===Keywords===&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;BeginNode&amp;gt;&lt;br /&gt;
   ID                      : int               -           !Node ID number&lt;br /&gt;
   COORDINATES             : real real         -           !Node coordinates&lt;br /&gt;
   GRID_I                  : int               -           !I position of node, if grid&lt;br /&gt;
   GRID_J                  : int               -           !J position of node, if grid&lt;br /&gt;
   TERRAIN_LEVEL            : real              -           !Bottom level of cross section&lt;br /&gt;
   MANNING_CHANNEL         : real         GLOBAL_MANNING   !Node rugosity&lt;br /&gt;
   WATER_DEPTH             : real      INITIAL_WATER_DEPTH !Node initial water depth&lt;br /&gt;
   CROSS_SECTION_TYPE      : int               [1]         !1 - Trapezoidal, 2 - TrapezoidalFlood, 3 - Tabular&lt;br /&gt;
   1 - Trapezoidal, 2 - TrapezoidalFlood&lt;br /&gt;
       BOTTOM_WIDTH        : real              -           !Bottom width of cross section&lt;br /&gt;
       TOP_WIDTH           : real              -           !Top width of cross section&lt;br /&gt;
       HEIGHT              : real              -           !Max height of cross section&lt;br /&gt;
   2 - TrapezoidalFlood&lt;br /&gt;
       MIDDLE_WIDTH        : real              -           !Middle width of cross section&lt;br /&gt;
       MIDDLE_HEIGHT       : real              -           !Middle height of cross section&lt;br /&gt;
   3 - Tabular&lt;br /&gt;
       N_STATIONS          : integer           -           !number os stations that define the cross section&lt;br /&gt;
       STATION             : real real ...     -           !station values&lt;br /&gt;
       ELEVATION/LEVEL     : real real ...     -           !elevation values&lt;br /&gt;
 &amp;lt;EndNode&amp;gt;&lt;br /&gt;
 &amp;lt;BeginReach&amp;gt;&lt;br /&gt;
   ID                      : int               -           !Reach ID Number&lt;br /&gt;
   DOWNSTREAM_NODE         : int               -           !Downstream node ID&lt;br /&gt;
   UPSTREAM_NODE           : int               -           !Upstream node ID&lt;br /&gt;
 &amp;lt;EndReach&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Creating a Network file===&lt;br /&gt;
&lt;br /&gt;
*Obtain a drainage network with MOHID GIS in [[MOHID_GIS#Delineate_Basins|Delineate Basins]]&lt;br /&gt;
*Alternatively obtain a drainage network with program BasinDelimiter (from SourceSafe) with a '''basin.dat''' file such as:&lt;br /&gt;
&lt;br /&gt;
 TOPOGRAPHIC_FILE              : ..\..\GeneralData\DTM\MDT200mSD.dat&lt;br /&gt;
 TRESHOLD_AREA                 : 100000&lt;br /&gt;
 DELINEATE_BASIN               : 1&lt;br /&gt;
 OUTLET_I                      : 1&lt;br /&gt;
 OUTLET_J                      : 44&lt;br /&gt;
 WRITE_REACHES                 : 1&lt;br /&gt;
 REACHES_FILE                  : ..\..\GeneralData\DrainageNetwork\DrainageNetwork.dnt&lt;br /&gt;
&lt;br /&gt;
*Define the cross sections for each node (see [[Mohid_GIS#Auto_Cross_Sections|MOHID GIS]]). ''DO NOT FORGET TO SELECT SAVE ALL IN MOHID GIS TO UPDATE THE FILE!!!'' (Currently, this program writes a BOTTOM_LEVEL keyword for each node instead of the new version TERRAIN_LEVEL. This is because irregular cross-sections were the latest update into the model, and the pre-processor tool is not adapted yet. Nevertheless, TERRAIN LEVEL = BOTTOM_LEVEL + HEIGHT. It can be changed manually or with&lt;/div&gt;</summary>
		<author><name>Anatrancoso</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Module_DrainageNetwork&amp;diff=2844</id>
		<title>Module DrainageNetwork</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Module_DrainageNetwork&amp;diff=2844"/>
				<updated>2010-02-15T17:28:20Z</updated>
		
		<summary type="html">&lt;p&gt;Anatrancoso: /* Creatig a drainage network file */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Overview=&lt;br /&gt;
&lt;br /&gt;
This module can be used by two models: [[Mohid_Land|MOHID Land]], and [[Mohid_River_Network|MOHID River Network]]. Like other modules, it has a specific input file, called '''DrainageNetwork_X.dat''', where X is the simulation number. The following tables describe the keywords that can be used, their data type, and the default values (in case of omission).&lt;br /&gt;
&lt;br /&gt;
==DrainageNetwork_X.dat Keywords==&lt;br /&gt;
&lt;br /&gt;
===General===&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 NETWORK_FILE              : char              -           !Path to drainage network file&lt;br /&gt;
 CHECK_NODES               : 0/1               [1]         !Ckeck nodes consistency&lt;br /&gt;
 CHECK_REACHES             : 0/1               [1]         !Check reaches consistency&lt;br /&gt;
 GLOBAL_MANNING            : real              -           !Rugosity in Channels&lt;br /&gt;
 GEO_CONVERSATION_FACTOR   : real              [1.]        !Lat to Meters rough estimation&lt;br /&gt;
&lt;br /&gt;
===Stabilization===&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 STABILIZE                 : 0/1               [0]         !Restart time iteration if high volume gradients&lt;br /&gt;
 STABILIZE_FACTOR          : real              [0.1]       !max gradient in time steps as fraction of old volume&lt;br /&gt;
 MAX_ITERATIONS            : int               [100]       !Max iterations for stabilized check&lt;br /&gt;
 DT_FACTOR                 : real              [0.8]       !Factor for DT Prediction&lt;br /&gt;
 MAX_DT_FLOOD              : real              [10.0]      !Max DT if channel water level exceeds full bank&lt;br /&gt;
&lt;br /&gt;
===Hydrodynamic===&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 HYDRODYNAMIC_APROX        : int               [1]         !1 - KinematicWave, 2 - DiffusionWave, 3 - DynamicWave&lt;br /&gt;
 NUMERICAL_SCHEME          : int               [0]         !0 - ExplicitScheme, 1 - ImplicitScheme&lt;br /&gt;
 MASS_ERR                  : real(8)           [0.001]     !Max error in mass conservation&lt;br /&gt;
 MIN_WATER_DEPTH           : real              [0.001]     !Min water depth in nodes (For h &amp;lt; MIN_WATER_DEPTH water stops flowing)&lt;br /&gt;
 INITIAL_WATER_DEPTH       : real              [0.0]       !Initial water depth&lt;br /&gt;
 MINIMUM_SLOPE             : real              [0.0]       !Minimum Slope for Kinematic Wave&lt;br /&gt;
&lt;br /&gt;
===Downstream Boundary===&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 DOWNSTREAM_BOUNDARY       : int               [1]         !0 - Dam, 1 - ZDG, 2 - CD, 3 - ImposedWaterDepth, 3 - ImposedVelocity&lt;br /&gt;
 DEFAULTVALUE              : real              -           !Default value at downstream boundary&lt;br /&gt;
 FILE_IN_TIME              : char              [NONE]      !If DOWNSTREAM_BOUNDARY = ImposedWaterDepth, this can be NONE or TIMESERIE&lt;br /&gt;
 FILENAME                  : char              -           !If FILE_IN_TIME = TIMESERIE, this is the name of timeserie file for the downstream boundary&lt;br /&gt;
 DATA_COLUMN               : int               -           !Number of column with data in FILE_IN_TIME&lt;br /&gt;
&lt;br /&gt;
===Output===&lt;br /&gt;
&lt;br /&gt;
Output is given for all nodes in HDF5 format, and also as time series for the specified nodes in TIME_SERIE_LOCATION file. These nodes are identified by their IDS (see Network file) and have to be inside the block  '''&amp;lt;BeginNodeTimeSerie&amp;gt;  / &amp;lt;EndNodeTimeSerie&amp;gt;'''.&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 OUTPUT_TIME               : int int...        [-]         !time interval between outputs for all nodes, in HDF5 format.&lt;br /&gt;
 TIME_SERIE_LOCATION       : char              -           !Path to time serie file with the specified nodes (can be this file)&lt;br /&gt;
 MAX_BUFFER_SIZE           : 1000&lt;br /&gt;
 COMPUTE_RESIDUAL          : 1&lt;br /&gt;
 DT_OUTPUT_TIME            : 1200&lt;br /&gt;
 TIME_SERIE_BY_NODES       : 0/1               [0]         !Keyword to see if the user wants the time series to be written by nodes, i.e.,&lt;br /&gt;
                                                           !One file per node, with all variables in the headers list&lt;br /&gt;
                                                           !if FALSE, its one file per variable with nodes in the headers.&lt;br /&gt;
&lt;br /&gt;
===Processes===&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 MIN_WATER_DEPTH_PROCESS   : real              [0.01]      !Water Quality Process / Surface Fluxes shutdown&lt;br /&gt;
 DISCHARGES                : 0/1               [0]         !Use module discharges (WWTP, etc)&lt;br /&gt;
 TRANSMISSION_LOSSES       : 0/1               [0]         !If user wants to use transmission losses&lt;br /&gt;
 HYDRAULIC_CONDUCTIVITY    : real              -           !Hydraulic Conductivity to calculate transmission losses&lt;br /&gt;
 REMOVE_OVERTOP            : 0/1               [0]         !Removes Water if channels are overtoped&lt;br /&gt;
 AERATION_METHOD           : int               [-]         !1 - PoolAndRifle, 2 - ChannelControled_&lt;br /&gt;
 T90_DECAY_MODEL           : 0                 [1]         !0 - Constant, 1 - Canteras, 2 - Chapra&lt;br /&gt;
 T90                       : real              [7200.]     !if T90_DECAY_MODEL = Constant&lt;br /&gt;
 SHADING_FACTOR            : real              [1.]        !0-1 fraction of riparian shading&lt;br /&gt;
 FRACTION_SEDIMENT         : 0/1               [0]&lt;br /&gt;
 GLOBAL_TOXICITY           : char              ['SUM']     !Global Toxicity Computation Method : SUM,MAX,RISKRATIO&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
===Properties===&lt;br /&gt;
&lt;br /&gt;
Each property keywords must be inside a block '''&amp;lt;beginproperty&amp;gt;/&amp;lt;endproperty&amp;gt;'''.&lt;br /&gt;
&lt;br /&gt;
 Keyword                    : Data Type         Default      !Comment&lt;br /&gt;
 &amp;lt;beginproperty&amp;gt;&lt;br /&gt;
 NAME                       : char              [-]          !Property name, must be on of [[Properties_names]]&lt;br /&gt;
 UNITS                      : char              [-]          !usually mg/L (see IS_COEF)&lt;br /&gt;
 IS_COEF                    : real              [1.e-3]      !Conversion factor to the International System&lt;br /&gt;
 DESCRIPTION                : char              [-]          !Property description&lt;br /&gt;
 DEFAULT_VALUE              : real              [0.0]        !Property initial concentration&lt;br /&gt;
 MIN_VALUE                  : real              [0.0]        !Property minimum concentration&lt;br /&gt;
 OVERLAND_CONCENTRATION     : real              [0.0]        !Concentration discharged from overland&lt;br /&gt;
 GROUNDWATER_CONCENTRATION  : real              [0.0]        !Concentration discharged from ground water&lt;br /&gt;
 DIFFUSEWATER_CONCENTRATION : real              [0.0]&lt;br /&gt;
 ADVECTION_DIFUSION         : 0/1               [1]          !1 - want to transport property; 0 - no transport&lt;br /&gt;
     ADVECTION_SCHEME       : int               [1]          !1 - UpwindOrder1 (currently no more options)&lt;br /&gt;
     DIFFUSION_SCHEME       : int               [5]          !5 - CentralDiff  (currently no more options)&lt;br /&gt;
     DIFFUSIVITY            : real              [1e-8]       !Molecular diffusivity of property in m2/s&lt;br /&gt;
 DISCHARGES                 : 0/1               [0]          !1 - property is discharged; 0 - no discharges&lt;br /&gt;
 TOXICITY                   : 0/1               [0]          !1 - property has an associated toxicity     &lt;br /&gt;
     TOX_EVOLUTION          : int               [1]          !1 - Saturation, 2 - Linear, 3 - RiskRatio&lt;br /&gt;
     EC50                   : real              [0.5]        !If TOX_EVOLUTION = Saturation or RiskRatio,&lt;br /&gt;
                                                             !EC50 is the concentration that causes 50% of effect (Tox = 0.5)&lt;br /&gt;
                                                             !in fraction of initial concentration units [%]&lt;br /&gt;
     SLOPE                  : real              [1.0]        !If TOX_EVOLUTION = Linear&lt;br /&gt;
 DECAY                      : 0/1               [0]          !1- want to use bacterial decay model. 0 - no use. Must have DISCHARGES = 1 and [[Mohid_River_Network|atmosphere]].&lt;br /&gt;
 SURFACE_FLUXES             : 0/1               [0]          !Property has surface fluxes (e.g. evaporation). Needs [[Mohid_River_Network|atmosphere]].&lt;br /&gt;
 BOTTOM_FLUXES              : 0/1               [0]          !Property has bottom fluxes. Must be particulated.&lt;br /&gt;
     BOTTOM_CONC            : real              [0.0]        !Bottom Initial Concentration&lt;br /&gt;
     BOTTOM_MIN_CONC        : real              [0.0]        !Bottom Minimum Concentration&lt;br /&gt;
     EROSION                : 0/1               [1]          !Compute erosion fluxes&lt;br /&gt;
         CRIT_SS_EROSION    : real              [0.2]        !Critical Erosion Shear Stress [Pa]&lt;br /&gt;
         EROSION_COEF       : real              [5.0E-4]     !Erosion Coefficient [kg m-2 s-1]&lt;br /&gt;
     DEPOSITION             : 0/1               [1]          !Compute deposition fluxes&lt;br /&gt;
         CRIT_SS_DEPOSITION : real              [0.1]        !Critical Deposition Shear Stress [Pa]&lt;br /&gt;
         CHS                : real              [4.0]        !Hindered settling [kg m-3] - See [[Module_FreeVerticalMovement]].&lt;br /&gt;
         WS_TYPE            : int               [1]          !Settling type: WSConstant = 1, SPMFunction = 2&lt;br /&gt;
         WS_VALUE           : real              [0.0001]     !Constant settling velocity [m s-1]&lt;br /&gt;
         KL                 : real              [0.1]        !See [[Module_FreeVerticalMovement]].&lt;br /&gt;
         KL1                : real              [0.1]        !See [[Module_FreeVerticalMovement]].&lt;br /&gt;
         ML                 : real              [4.62]       !See [[Module_FreeVerticalMovement]].&lt;br /&gt;
         M                  : real              [1.0]        !See [[Module_FreeVerticalMovement]].&lt;br /&gt;
 WATER_QUALITY              : 0/1               [0]          !1 - use [[Module_WaterQuality|Water Quality Model]] for property transformation; 0 - no use&lt;br /&gt;
 BENTHOS                    : 0/1               [0]          !1 - use [[Module_Benthos|Benthos Model]] for property transformation; 0 - no use&lt;br /&gt;
 CEQUALW2                   : 0/1               [0]          !1 - use [[Module_CEQUALW2|CEQUALW2 Model]] for property transformation; 0 - no use&lt;br /&gt;
 LIFE                       : 0/1               [0]          !1 - use [[Module_Life|Life Model]] for property transformation; 0 - no use&lt;br /&gt;
 EXTINCTION_PARAMETER       : real              [1.0]        !LIGHT EXTINCTION COEFFICIENT&lt;br /&gt;
 TIME_SERIE                 : 0/1               [0]          !Output this property in time series files.&lt;br /&gt;
 OUTPUT_NAME                : char              [NAME]       !Can be NAME or DESCRIPTION.&lt;br /&gt;
 COMPUTE_LOAD               : 0/1               [0]          !Output concentration (in UNITS) x Flow [m3 s-1]&lt;br /&gt;
 SUMTOTALCONC               : 0/1               [0] 0        !Checks if user wants to calculate total Concentration (Column + Bottom) must be particulate&lt;br /&gt;
 &amp;lt;endproperty&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Toxicity Model====&lt;br /&gt;
*The formulation is to associate an eco-toxiciy value to the property (From project ECORIVER 2002).&lt;br /&gt;
*Every toxic property must be discharged.&lt;br /&gt;
*Its concentration in the river network is set to 0.0.&lt;br /&gt;
*Discharge concentration must be equal to 1, because we are measuring the dilution D = 1 - C_new / C_ini&lt;br /&gt;
*The variable property%toxicity%concentration represents C/c_ini so it starts by being 1.&lt;br /&gt;
*This is not even close to a final version. For more details, or sugestions/corrections, contact MARETEC (Rosa Trancoso).&lt;br /&gt;
*EC50 - Concentration that causes 50% of effect (Tox = 0.5)&lt;br /&gt;
&lt;br /&gt;
==Network file==&lt;br /&gt;
&lt;br /&gt;
The Network file specified in NETWORK_FILE keyword has two types of blocks:&lt;br /&gt;
* '''&amp;lt;BeginNode&amp;gt;/ &amp;lt;EndNode&amp;gt;''''&lt;br /&gt;
* '''&amp;lt;BeginReach&amp;gt;/&amp;lt;EndReach&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
===Keywords===&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;BeginNode&amp;gt;&lt;br /&gt;
   ID                      : int               -           !Node ID number&lt;br /&gt;
   COORDINATES             : real real         -           !Node coordinates&lt;br /&gt;
   GRID_I                  : int               -           !I position of node, if grid&lt;br /&gt;
   GRID_J                  : int               -           !J position of node, if grid&lt;br /&gt;
   TERRAIN_LEVEL            : real              -           !Bottom level of cross section&lt;br /&gt;
   MANNING_CHANNEL         : real         GLOBAL_MANNING   !Node rugosity&lt;br /&gt;
   WATER_DEPTH             : real      INITIAL_WATER_DEPTH !Node initial water depth&lt;br /&gt;
   CROSS_SECTION_TYPE      : int               [1]         !1 - Trapezoidal, 2 - TrapezoidalFlood, 3 - Tabular&lt;br /&gt;
   1 - Trapezoidal, 2 - TrapezoidalFlood&lt;br /&gt;
       BOTTOM_WIDTH        : real              -           !Bottom width of cross section&lt;br /&gt;
       TOP_WIDTH           : real              -           !Top width of cross section&lt;br /&gt;
       HEIGHT              : real              -           !Max height of cross section&lt;br /&gt;
   2 - TrapezoidalFlood&lt;br /&gt;
       MIDDLE_WIDTH        : real              -           !Middle width of cross section&lt;br /&gt;
       MIDDLE_HEIGHT       : real              -           !Middle height of cross section&lt;br /&gt;
   3 - Tabular&lt;br /&gt;
       N_STATIONS          : integer           -           !number os stations that define the cross section&lt;br /&gt;
       STATION             : real real ...     -           !station values&lt;br /&gt;
       ELEVATION/LEVEL     : real real ...     -           !elevation values&lt;br /&gt;
 &amp;lt;EndNode&amp;gt;&lt;br /&gt;
 &amp;lt;BeginReach&amp;gt;&lt;br /&gt;
   ID                      : int               -           !Reach ID Number&lt;br /&gt;
   DOWNSTREAM_NODE         : int               -           !Downstream node ID&lt;br /&gt;
   UPSTREAM_NODE           : int               -           !Upstream node ID&lt;br /&gt;
 &amp;lt;EndReach&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Network file can be generated&lt;br /&gt;
&lt;br /&gt;
===Sample===&lt;br /&gt;
&lt;br /&gt;
 NETWORK_FILE              : ..\..\GeneralData\DrainageNetwork\DrainageNetworkAlcabrichel_100ha_terrain.dnt&lt;br /&gt;
 CHECK_NODES               : 1&lt;br /&gt;
 CHECK_REACHES             : 1&lt;br /&gt;
 HYDRODYNAMIC_APROX        : 1&lt;br /&gt;
 MASS_ERR                  : 0.001&lt;br /&gt;
 GLOBAL_MANNING            : 0.06&lt;br /&gt;
 MIN_WATER_DEPTH           : 0.01&lt;br /&gt;
 INITIAL_WATER_DEPTH       : 0.0&lt;br /&gt;
 XS_CALC                   : 1&lt;br /&gt;
 DOWNSTREAM_BOUNDARY       : 1&lt;br /&gt;
 TIME_SERIE_LOCATION       : ..\..\GeneralData\Timeseries\TimeSerieLocation_200_new.dat&lt;br /&gt;
 &lt;br /&gt;
 OUTPUT_TIME               : 0 864000&lt;br /&gt;
 &lt;br /&gt;
 DISCHARGES                : 1 (1-if have a discharge file; 0 if not discharging)&lt;br /&gt;
 CONTINUOUS                : 0&lt;br /&gt;
 &lt;br /&gt;
 MAX_DT_FLOOD              : 100&lt;br /&gt;
 STABILIZE                 : 1&lt;br /&gt;
 DT_FACTOR                 : 0.75&lt;br /&gt;
 STABILIZE_FACTOR          : 0.05&lt;br /&gt;
 &lt;br /&gt;
 MINIMUM_SLOPE             : 0.0001&lt;br /&gt;
&lt;br /&gt;
====If want to model Properties ====&lt;br /&gt;
&lt;br /&gt;
Than additionaly to the above options need to define properties to be modelled. One block for each property (see a list&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;beginproperty&amp;gt;&lt;br /&gt;
 NAME                    : salinity&lt;br /&gt;
 UNITS                   : psu&lt;br /&gt;
 DESCRIPTION             : salinity&lt;br /&gt;
 DEFAULT_VALUE           : 0.3&lt;br /&gt;
 MIN_VALUE               : 0.0&lt;br /&gt;
 ADVECTION_DIFUSION      : 1       !1-want to transport property; 0 - no transport&lt;br /&gt;
 DISCHARGES              : 0       !1-property is discharged;0 - no discharges&lt;br /&gt;
 TIME_SERIE              : 1&lt;br /&gt;
 WATER_QUALITY           : 0       !1-use water quality model for property transformation;0-no transformation&lt;br /&gt;
 &amp;lt;endproperty&amp;gt;&lt;/div&gt;</summary>
		<author><name>Anatrancoso</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Module_DrainageNetwork&amp;diff=2843</id>
		<title>Module DrainageNetwork</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Module_DrainageNetwork&amp;diff=2843"/>
				<updated>2010-02-15T17:27:58Z</updated>
		
		<summary type="html">&lt;p&gt;Anatrancoso: /* Network file: */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Overview=&lt;br /&gt;
&lt;br /&gt;
This module can be used by two models: [[Mohid_Land|MOHID Land]], and [[Mohid_River_Network|MOHID River Network]]. Like other modules, it has a specific input file, called '''DrainageNetwork_X.dat''', where X is the simulation number. The following tables describe the keywords that can be used, their data type, and the default values (in case of omission).&lt;br /&gt;
&lt;br /&gt;
==DrainageNetwork_X.dat Keywords==&lt;br /&gt;
&lt;br /&gt;
===General===&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 NETWORK_FILE              : char              -           !Path to drainage network file&lt;br /&gt;
 CHECK_NODES               : 0/1               [1]         !Ckeck nodes consistency&lt;br /&gt;
 CHECK_REACHES             : 0/1               [1]         !Check reaches consistency&lt;br /&gt;
 GLOBAL_MANNING            : real              -           !Rugosity in Channels&lt;br /&gt;
 GEO_CONVERSATION_FACTOR   : real              [1.]        !Lat to Meters rough estimation&lt;br /&gt;
&lt;br /&gt;
===Stabilization===&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 STABILIZE                 : 0/1               [0]         !Restart time iteration if high volume gradients&lt;br /&gt;
 STABILIZE_FACTOR          : real              [0.1]       !max gradient in time steps as fraction of old volume&lt;br /&gt;
 MAX_ITERATIONS            : int               [100]       !Max iterations for stabilized check&lt;br /&gt;
 DT_FACTOR                 : real              [0.8]       !Factor for DT Prediction&lt;br /&gt;
 MAX_DT_FLOOD              : real              [10.0]      !Max DT if channel water level exceeds full bank&lt;br /&gt;
&lt;br /&gt;
===Hydrodynamic===&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 HYDRODYNAMIC_APROX        : int               [1]         !1 - KinematicWave, 2 - DiffusionWave, 3 - DynamicWave&lt;br /&gt;
 NUMERICAL_SCHEME          : int               [0]         !0 - ExplicitScheme, 1 - ImplicitScheme&lt;br /&gt;
 MASS_ERR                  : real(8)           [0.001]     !Max error in mass conservation&lt;br /&gt;
 MIN_WATER_DEPTH           : real              [0.001]     !Min water depth in nodes (For h &amp;lt; MIN_WATER_DEPTH water stops flowing)&lt;br /&gt;
 INITIAL_WATER_DEPTH       : real              [0.0]       !Initial water depth&lt;br /&gt;
 MINIMUM_SLOPE             : real              [0.0]       !Minimum Slope for Kinematic Wave&lt;br /&gt;
&lt;br /&gt;
===Downstream Boundary===&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 DOWNSTREAM_BOUNDARY       : int               [1]         !0 - Dam, 1 - ZDG, 2 - CD, 3 - ImposedWaterDepth, 3 - ImposedVelocity&lt;br /&gt;
 DEFAULTVALUE              : real              -           !Default value at downstream boundary&lt;br /&gt;
 FILE_IN_TIME              : char              [NONE]      !If DOWNSTREAM_BOUNDARY = ImposedWaterDepth, this can be NONE or TIMESERIE&lt;br /&gt;
 FILENAME                  : char              -           !If FILE_IN_TIME = TIMESERIE, this is the name of timeserie file for the downstream boundary&lt;br /&gt;
 DATA_COLUMN               : int               -           !Number of column with data in FILE_IN_TIME&lt;br /&gt;
&lt;br /&gt;
===Output===&lt;br /&gt;
&lt;br /&gt;
Output is given for all nodes in HDF5 format, and also as time series for the specified nodes in TIME_SERIE_LOCATION file. These nodes are identified by their IDS (see Network file) and have to be inside the block  '''&amp;lt;BeginNodeTimeSerie&amp;gt;  / &amp;lt;EndNodeTimeSerie&amp;gt;'''.&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 OUTPUT_TIME               : int int...        [-]         !time interval between outputs for all nodes, in HDF5 format.&lt;br /&gt;
 TIME_SERIE_LOCATION       : char              -           !Path to time serie file with the specified nodes (can be this file)&lt;br /&gt;
 MAX_BUFFER_SIZE           : 1000&lt;br /&gt;
 COMPUTE_RESIDUAL          : 1&lt;br /&gt;
 DT_OUTPUT_TIME            : 1200&lt;br /&gt;
 TIME_SERIE_BY_NODES       : 0/1               [0]         !Keyword to see if the user wants the time series to be written by nodes, i.e.,&lt;br /&gt;
                                                           !One file per node, with all variables in the headers list&lt;br /&gt;
                                                           !if FALSE, its one file per variable with nodes in the headers.&lt;br /&gt;
&lt;br /&gt;
===Processes===&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 MIN_WATER_DEPTH_PROCESS   : real              [0.01]      !Water Quality Process / Surface Fluxes shutdown&lt;br /&gt;
 DISCHARGES                : 0/1               [0]         !Use module discharges (WWTP, etc)&lt;br /&gt;
 TRANSMISSION_LOSSES       : 0/1               [0]         !If user wants to use transmission losses&lt;br /&gt;
 HYDRAULIC_CONDUCTIVITY    : real              -           !Hydraulic Conductivity to calculate transmission losses&lt;br /&gt;
 REMOVE_OVERTOP            : 0/1               [0]         !Removes Water if channels are overtoped&lt;br /&gt;
 AERATION_METHOD           : int               [-]         !1 - PoolAndRifle, 2 - ChannelControled_&lt;br /&gt;
 T90_DECAY_MODEL           : 0                 [1]         !0 - Constant, 1 - Canteras, 2 - Chapra&lt;br /&gt;
 T90                       : real              [7200.]     !if T90_DECAY_MODEL = Constant&lt;br /&gt;
 SHADING_FACTOR            : real              [1.]        !0-1 fraction of riparian shading&lt;br /&gt;
 FRACTION_SEDIMENT         : 0/1               [0]&lt;br /&gt;
 GLOBAL_TOXICITY           : char              ['SUM']     !Global Toxicity Computation Method : SUM,MAX,RISKRATIO&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
===Properties===&lt;br /&gt;
&lt;br /&gt;
Each property keywords must be inside a block '''&amp;lt;beginproperty&amp;gt;/&amp;lt;endproperty&amp;gt;'''.&lt;br /&gt;
&lt;br /&gt;
 Keyword                    : Data Type         Default      !Comment&lt;br /&gt;
 &amp;lt;beginproperty&amp;gt;&lt;br /&gt;
 NAME                       : char              [-]          !Property name, must be on of [[Properties_names]]&lt;br /&gt;
 UNITS                      : char              [-]          !usually mg/L (see IS_COEF)&lt;br /&gt;
 IS_COEF                    : real              [1.e-3]      !Conversion factor to the International System&lt;br /&gt;
 DESCRIPTION                : char              [-]          !Property description&lt;br /&gt;
 DEFAULT_VALUE              : real              [0.0]        !Property initial concentration&lt;br /&gt;
 MIN_VALUE                  : real              [0.0]        !Property minimum concentration&lt;br /&gt;
 OVERLAND_CONCENTRATION     : real              [0.0]        !Concentration discharged from overland&lt;br /&gt;
 GROUNDWATER_CONCENTRATION  : real              [0.0]        !Concentration discharged from ground water&lt;br /&gt;
 DIFFUSEWATER_CONCENTRATION : real              [0.0]&lt;br /&gt;
 ADVECTION_DIFUSION         : 0/1               [1]          !1 - want to transport property; 0 - no transport&lt;br /&gt;
     ADVECTION_SCHEME       : int               [1]          !1 - UpwindOrder1 (currently no more options)&lt;br /&gt;
     DIFFUSION_SCHEME       : int               [5]          !5 - CentralDiff  (currently no more options)&lt;br /&gt;
     DIFFUSIVITY            : real              [1e-8]       !Molecular diffusivity of property in m2/s&lt;br /&gt;
 DISCHARGES                 : 0/1               [0]          !1 - property is discharged; 0 - no discharges&lt;br /&gt;
 TOXICITY                   : 0/1               [0]          !1 - property has an associated toxicity     &lt;br /&gt;
     TOX_EVOLUTION          : int               [1]          !1 - Saturation, 2 - Linear, 3 - RiskRatio&lt;br /&gt;
     EC50                   : real              [0.5]        !If TOX_EVOLUTION = Saturation or RiskRatio,&lt;br /&gt;
                                                             !EC50 is the concentration that causes 50% of effect (Tox = 0.5)&lt;br /&gt;
                                                             !in fraction of initial concentration units [%]&lt;br /&gt;
     SLOPE                  : real              [1.0]        !If TOX_EVOLUTION = Linear&lt;br /&gt;
 DECAY                      : 0/1               [0]          !1- want to use bacterial decay model. 0 - no use. Must have DISCHARGES = 1 and [[Mohid_River_Network|atmosphere]].&lt;br /&gt;
 SURFACE_FLUXES             : 0/1               [0]          !Property has surface fluxes (e.g. evaporation). Needs [[Mohid_River_Network|atmosphere]].&lt;br /&gt;
 BOTTOM_FLUXES              : 0/1               [0]          !Property has bottom fluxes. Must be particulated.&lt;br /&gt;
     BOTTOM_CONC            : real              [0.0]        !Bottom Initial Concentration&lt;br /&gt;
     BOTTOM_MIN_CONC        : real              [0.0]        !Bottom Minimum Concentration&lt;br /&gt;
     EROSION                : 0/1               [1]          !Compute erosion fluxes&lt;br /&gt;
         CRIT_SS_EROSION    : real              [0.2]        !Critical Erosion Shear Stress [Pa]&lt;br /&gt;
         EROSION_COEF       : real              [5.0E-4]     !Erosion Coefficient [kg m-2 s-1]&lt;br /&gt;
     DEPOSITION             : 0/1               [1]          !Compute deposition fluxes&lt;br /&gt;
         CRIT_SS_DEPOSITION : real              [0.1]        !Critical Deposition Shear Stress [Pa]&lt;br /&gt;
         CHS                : real              [4.0]        !Hindered settling [kg m-3] - See [[Module_FreeVerticalMovement]].&lt;br /&gt;
         WS_TYPE            : int               [1]          !Settling type: WSConstant = 1, SPMFunction = 2&lt;br /&gt;
         WS_VALUE           : real              [0.0001]     !Constant settling velocity [m s-1]&lt;br /&gt;
         KL                 : real              [0.1]        !See [[Module_FreeVerticalMovement]].&lt;br /&gt;
         KL1                : real              [0.1]        !See [[Module_FreeVerticalMovement]].&lt;br /&gt;
         ML                 : real              [4.62]       !See [[Module_FreeVerticalMovement]].&lt;br /&gt;
         M                  : real              [1.0]        !See [[Module_FreeVerticalMovement]].&lt;br /&gt;
 WATER_QUALITY              : 0/1               [0]          !1 - use [[Module_WaterQuality|Water Quality Model]] for property transformation; 0 - no use&lt;br /&gt;
 BENTHOS                    : 0/1               [0]          !1 - use [[Module_Benthos|Benthos Model]] for property transformation; 0 - no use&lt;br /&gt;
 CEQUALW2                   : 0/1               [0]          !1 - use [[Module_CEQUALW2|CEQUALW2 Model]] for property transformation; 0 - no use&lt;br /&gt;
 LIFE                       : 0/1               [0]          !1 - use [[Module_Life|Life Model]] for property transformation; 0 - no use&lt;br /&gt;
 EXTINCTION_PARAMETER       : real              [1.0]        !LIGHT EXTINCTION COEFFICIENT&lt;br /&gt;
 TIME_SERIE                 : 0/1               [0]          !Output this property in time series files.&lt;br /&gt;
 OUTPUT_NAME                : char              [NAME]       !Can be NAME or DESCRIPTION.&lt;br /&gt;
 COMPUTE_LOAD               : 0/1               [0]          !Output concentration (in UNITS) x Flow [m3 s-1]&lt;br /&gt;
 SUMTOTALCONC               : 0/1               [0] 0        !Checks if user wants to calculate total Concentration (Column + Bottom) must be particulate&lt;br /&gt;
 &amp;lt;endproperty&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Toxicity Model====&lt;br /&gt;
*The formulation is to associate an eco-toxiciy value to the property (From project ECORIVER 2002).&lt;br /&gt;
*Every toxic property must be discharged.&lt;br /&gt;
*Its concentration in the river network is set to 0.0.&lt;br /&gt;
*Discharge concentration must be equal to 1, because we are measuring the dilution D = 1 - C_new / C_ini&lt;br /&gt;
*The variable property%toxicity%concentration represents C/c_ini so it starts by being 1.&lt;br /&gt;
*This is not even close to a final version. For more details, or sugestions/corrections, contact MARETEC (Rosa Trancoso).&lt;br /&gt;
*EC50 - Concentration that causes 50% of effect (Tox = 0.5)&lt;br /&gt;
&lt;br /&gt;
==Network file==&lt;br /&gt;
&lt;br /&gt;
The Network file specified in NETWORK_FILE keyword has two types of blocks:&lt;br /&gt;
* '''&amp;lt;BeginNode&amp;gt;/ &amp;lt;EndNode&amp;gt;''''&lt;br /&gt;
* '''&amp;lt;BeginReach&amp;gt;/&amp;lt;EndReach&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
===Keywords===&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;BeginNode&amp;gt;&lt;br /&gt;
   ID                      : int               -           !Node ID number&lt;br /&gt;
   COORDINATES             : real real         -           !Node coordinates&lt;br /&gt;
   GRID_I                  : int               -           !I position of node, if grid&lt;br /&gt;
   GRID_J                  : int               -           !J position of node, if grid&lt;br /&gt;
   TERRAIN_LEVEL            : real              -           !Bottom level of cross section&lt;br /&gt;
   MANNING_CHANNEL         : real         GLOBAL_MANNING   !Node rugosity&lt;br /&gt;
   WATER_DEPTH             : real      INITIAL_WATER_DEPTH !Node initial water depth&lt;br /&gt;
   CROSS_SECTION_TYPE      : int               [1]         !1 - Trapezoidal, 2 - TrapezoidalFlood, 3 - Tabular&lt;br /&gt;
   1 - Trapezoidal, 2 - TrapezoidalFlood&lt;br /&gt;
       BOTTOM_WIDTH        : real              -           !Bottom width of cross section&lt;br /&gt;
       TOP_WIDTH           : real              -           !Top width of cross section&lt;br /&gt;
       HEIGHT              : real              -           !Max height of cross section&lt;br /&gt;
   2 - TrapezoidalFlood&lt;br /&gt;
       MIDDLE_WIDTH        : real              -           !Middle width of cross section&lt;br /&gt;
       MIDDLE_HEIGHT       : real              -           !Middle height of cross section&lt;br /&gt;
   3 - Tabular&lt;br /&gt;
       N_STATIONS          : integer           -           !number os stations that define the cross section&lt;br /&gt;
       STATION             : real real ...     -           !station values&lt;br /&gt;
       ELEVATION/LEVEL     : real real ...     -           !elevation values&lt;br /&gt;
 &amp;lt;EndNode&amp;gt;&lt;br /&gt;
 &amp;lt;BeginReach&amp;gt;&lt;br /&gt;
   ID                      : int               -           !Reach ID Number&lt;br /&gt;
   DOWNSTREAM_NODE         : int               -           !Downstream node ID&lt;br /&gt;
   UPSTREAM_NODE           : int               -           !Upstream node ID&lt;br /&gt;
 &amp;lt;EndReach&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Network file can be generated&lt;br /&gt;
&lt;br /&gt;
===Sample===&lt;br /&gt;
&lt;br /&gt;
 NETWORK_FILE              : ..\..\GeneralData\DrainageNetwork\DrainageNetworkAlcabrichel_100ha_terrain.dnt&lt;br /&gt;
 CHECK_NODES               : 1&lt;br /&gt;
 CHECK_REACHES             : 1&lt;br /&gt;
 HYDRODYNAMIC_APROX        : 1&lt;br /&gt;
 MASS_ERR                  : 0.001&lt;br /&gt;
 GLOBAL_MANNING            : 0.06&lt;br /&gt;
 MIN_WATER_DEPTH           : 0.01&lt;br /&gt;
 INITIAL_WATER_DEPTH       : 0.0&lt;br /&gt;
 XS_CALC                   : 1&lt;br /&gt;
 DOWNSTREAM_BOUNDARY       : 1&lt;br /&gt;
 TIME_SERIE_LOCATION       : ..\..\GeneralData\Timeseries\TimeSerieLocation_200_new.dat&lt;br /&gt;
 &lt;br /&gt;
 OUTPUT_TIME               : 0 864000&lt;br /&gt;
 &lt;br /&gt;
 DISCHARGES                : 1 (1-if have a discharge file; 0 if not discharging)&lt;br /&gt;
 CONTINUOUS                : 0&lt;br /&gt;
 &lt;br /&gt;
 MAX_DT_FLOOD              : 100&lt;br /&gt;
 STABILIZE                 : 1&lt;br /&gt;
 DT_FACTOR                 : 0.75&lt;br /&gt;
 STABILIZE_FACTOR          : 0.05&lt;br /&gt;
 &lt;br /&gt;
 MINIMUM_SLOPE             : 0.0001&lt;br /&gt;
&lt;br /&gt;
====If want to model Properties ====&lt;br /&gt;
&lt;br /&gt;
Than additionaly to the above options need to define properties to be modelled. One block for each property (see a list&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;beginproperty&amp;gt;&lt;br /&gt;
 NAME                    : salinity&lt;br /&gt;
 UNITS                   : psu&lt;br /&gt;
 DESCRIPTION             : salinity&lt;br /&gt;
 DEFAULT_VALUE           : 0.3&lt;br /&gt;
 MIN_VALUE               : 0.0&lt;br /&gt;
 ADVECTION_DIFUSION      : 1       !1-want to transport property; 0 - no transport&lt;br /&gt;
 DISCHARGES              : 0       !1-property is discharged;0 - no discharges&lt;br /&gt;
 TIME_SERIE              : 1&lt;br /&gt;
 WATER_QUALITY           : 0       !1-use water quality model for property transformation;0-no transformation&lt;br /&gt;
 &amp;lt;endproperty&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Creatig a drainage network file==&lt;br /&gt;
&lt;br /&gt;
*Obtain a drainage network with MOHID GIS in [[MOHID_GIS#Delineate_Basins|Delineate Basins]]&lt;br /&gt;
&lt;br /&gt;
*Alternatively can also obtain a drainage network with program BasinDelimiter (from SourceSafe) with a basin.dat with the keywords, adapted to the study watershed:&lt;br /&gt;
&lt;br /&gt;
 TOPOGRAPHIC_FILE              : ..\..\GeneralData\DTM\MDT200mSD.dat&lt;br /&gt;
 TRESHOLD_AREA                 : 100000&lt;br /&gt;
 DELINEATE_BASIN               : 1&lt;br /&gt;
 OUTLET_I                      : 1&lt;br /&gt;
 OUTLET_J                      : 44&lt;br /&gt;
 WRITE_REACHES                 : 1&lt;br /&gt;
 REACHES_FILE                  : ..\..\GeneralData\DrainageNetwork\DrainageNetwork.dnt&lt;br /&gt;
&lt;br /&gt;
*Define the cross sections for the drainage network file in [[Mohid_GIS#Auto_Cross_Sections|MOHID GIS]].&lt;br /&gt;
DO NOT FORGET TO SELECT SAVE ALL IN MOHID GIS TO UPDATE THE FILE!!!&lt;br /&gt;
&lt;br /&gt;
(Currently in this version of the cross sections program keyword TERRAIN_LEVEL is not written, instead is written BOTTOM_LEVEL (old version). TERRAIN LEVEL = BOTTOM_LEVEL + HEIGHT. Change it for example with excel, new program should be written)&lt;br /&gt;
&lt;br /&gt;
*Define the network file just created in the drainage network data file with:&lt;br /&gt;
&lt;br /&gt;
 NETWORK_FILE : ..\..\GeneralData\DrainageNetwork\DrainageNetwork.dnt&lt;/div&gt;</summary>
		<author><name>Anatrancoso</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Module_DrainageNetwork&amp;diff=2842</id>
		<title>Module DrainageNetwork</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Module_DrainageNetwork&amp;diff=2842"/>
				<updated>2010-02-15T17:25:42Z</updated>
		
		<summary type="html">&lt;p&gt;Anatrancoso: /* EcoToxicity Model */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Overview=&lt;br /&gt;
&lt;br /&gt;
This module can be used by two models: [[Mohid_Land|MOHID Land]], and [[Mohid_River_Network|MOHID River Network]]. Like other modules, it has a specific input file, called '''DrainageNetwork_X.dat''', where X is the simulation number. The following tables describe the keywords that can be used, their data type, and the default values (in case of omission).&lt;br /&gt;
&lt;br /&gt;
==DrainageNetwork_X.dat Keywords==&lt;br /&gt;
&lt;br /&gt;
===General===&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 NETWORK_FILE              : char              -           !Path to drainage network file&lt;br /&gt;
 CHECK_NODES               : 0/1               [1]         !Ckeck nodes consistency&lt;br /&gt;
 CHECK_REACHES             : 0/1               [1]         !Check reaches consistency&lt;br /&gt;
 GLOBAL_MANNING            : real              -           !Rugosity in Channels&lt;br /&gt;
 GEO_CONVERSATION_FACTOR   : real              [1.]        !Lat to Meters rough estimation&lt;br /&gt;
&lt;br /&gt;
===Stabilization===&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 STABILIZE                 : 0/1               [0]         !Restart time iteration if high volume gradients&lt;br /&gt;
 STABILIZE_FACTOR          : real              [0.1]       !max gradient in time steps as fraction of old volume&lt;br /&gt;
 MAX_ITERATIONS            : int               [100]       !Max iterations for stabilized check&lt;br /&gt;
 DT_FACTOR                 : real              [0.8]       !Factor for DT Prediction&lt;br /&gt;
 MAX_DT_FLOOD              : real              [10.0]      !Max DT if channel water level exceeds full bank&lt;br /&gt;
&lt;br /&gt;
===Hydrodynamic===&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 HYDRODYNAMIC_APROX        : int               [1]         !1 - KinematicWave, 2 - DiffusionWave, 3 - DynamicWave&lt;br /&gt;
 NUMERICAL_SCHEME          : int               [0]         !0 - ExplicitScheme, 1 - ImplicitScheme&lt;br /&gt;
 MASS_ERR                  : real(8)           [0.001]     !Max error in mass conservation&lt;br /&gt;
 MIN_WATER_DEPTH           : real              [0.001]     !Min water depth in nodes (For h &amp;lt; MIN_WATER_DEPTH water stops flowing)&lt;br /&gt;
 INITIAL_WATER_DEPTH       : real              [0.0]       !Initial water depth&lt;br /&gt;
 MINIMUM_SLOPE             : real              [0.0]       !Minimum Slope for Kinematic Wave&lt;br /&gt;
&lt;br /&gt;
===Downstream Boundary===&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 DOWNSTREAM_BOUNDARY       : int               [1]         !0 - Dam, 1 - ZDG, 2 - CD, 3 - ImposedWaterDepth, 3 - ImposedVelocity&lt;br /&gt;
 DEFAULTVALUE              : real              -           !Default value at downstream boundary&lt;br /&gt;
 FILE_IN_TIME              : char              [NONE]      !If DOWNSTREAM_BOUNDARY = ImposedWaterDepth, this can be NONE or TIMESERIE&lt;br /&gt;
 FILENAME                  : char              -           !If FILE_IN_TIME = TIMESERIE, this is the name of timeserie file for the downstream boundary&lt;br /&gt;
 DATA_COLUMN               : int               -           !Number of column with data in FILE_IN_TIME&lt;br /&gt;
&lt;br /&gt;
===Output===&lt;br /&gt;
&lt;br /&gt;
Output is given for all nodes in HDF5 format, and also as time series for the specified nodes in TIME_SERIE_LOCATION file. These nodes are identified by their IDS (see Network file) and have to be inside the block  '''&amp;lt;BeginNodeTimeSerie&amp;gt;  / &amp;lt;EndNodeTimeSerie&amp;gt;'''.&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 OUTPUT_TIME               : int int...        [-]         !time interval between outputs for all nodes, in HDF5 format.&lt;br /&gt;
 TIME_SERIE_LOCATION       : char              -           !Path to time serie file with the specified nodes (can be this file)&lt;br /&gt;
 MAX_BUFFER_SIZE           : 1000&lt;br /&gt;
 COMPUTE_RESIDUAL          : 1&lt;br /&gt;
 DT_OUTPUT_TIME            : 1200&lt;br /&gt;
 TIME_SERIE_BY_NODES       : 0/1               [0]         !Keyword to see if the user wants the time series to be written by nodes, i.e.,&lt;br /&gt;
                                                           !One file per node, with all variables in the headers list&lt;br /&gt;
                                                           !if FALSE, its one file per variable with nodes in the headers.&lt;br /&gt;
&lt;br /&gt;
===Processes===&lt;br /&gt;
&lt;br /&gt;
 Keyword                   : Data Type         Default     !Comment&lt;br /&gt;
 MIN_WATER_DEPTH_PROCESS   : real              [0.01]      !Water Quality Process / Surface Fluxes shutdown&lt;br /&gt;
 DISCHARGES                : 0/1               [0]         !Use module discharges (WWTP, etc)&lt;br /&gt;
 TRANSMISSION_LOSSES       : 0/1               [0]         !If user wants to use transmission losses&lt;br /&gt;
 HYDRAULIC_CONDUCTIVITY    : real              -           !Hydraulic Conductivity to calculate transmission losses&lt;br /&gt;
 REMOVE_OVERTOP            : 0/1               [0]         !Removes Water if channels are overtoped&lt;br /&gt;
 AERATION_METHOD           : int               [-]         !1 - PoolAndRifle, 2 - ChannelControled_&lt;br /&gt;
 T90_DECAY_MODEL           : 0                 [1]         !0 - Constant, 1 - Canteras, 2 - Chapra&lt;br /&gt;
 T90                       : real              [7200.]     !if T90_DECAY_MODEL = Constant&lt;br /&gt;
 SHADING_FACTOR            : real              [1.]        !0-1 fraction of riparian shading&lt;br /&gt;
 FRACTION_SEDIMENT         : 0/1               [0]&lt;br /&gt;
 GLOBAL_TOXICITY           : char              ['SUM']     !Global Toxicity Computation Method : SUM,MAX,RISKRATIO&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
===Properties===&lt;br /&gt;
&lt;br /&gt;
Each property keywords must be inside a block '''&amp;lt;beginproperty&amp;gt;/&amp;lt;endproperty&amp;gt;'''.&lt;br /&gt;
&lt;br /&gt;
 Keyword                    : Data Type         Default      !Comment&lt;br /&gt;
 &amp;lt;beginproperty&amp;gt;&lt;br /&gt;
 NAME                       : char              [-]          !Property name, must be on of [[Properties_names]]&lt;br /&gt;
 UNITS                      : char              [-]          !usually mg/L (see IS_COEF)&lt;br /&gt;
 IS_COEF                    : real              [1.e-3]      !Conversion factor to the International System&lt;br /&gt;
 DESCRIPTION                : char              [-]          !Property description&lt;br /&gt;
 DEFAULT_VALUE              : real              [0.0]        !Property initial concentration&lt;br /&gt;
 MIN_VALUE                  : real              [0.0]        !Property minimum concentration&lt;br /&gt;
 OVERLAND_CONCENTRATION     : real              [0.0]        !Concentration discharged from overland&lt;br /&gt;
 GROUNDWATER_CONCENTRATION  : real              [0.0]        !Concentration discharged from ground water&lt;br /&gt;
 DIFFUSEWATER_CONCENTRATION : real              [0.0]&lt;br /&gt;
 ADVECTION_DIFUSION         : 0/1               [1]          !1 - want to transport property; 0 - no transport&lt;br /&gt;
     ADVECTION_SCHEME       : int               [1]          !1 - UpwindOrder1 (currently no more options)&lt;br /&gt;
     DIFFUSION_SCHEME       : int               [5]          !5 - CentralDiff  (currently no more options)&lt;br /&gt;
     DIFFUSIVITY            : real              [1e-8]       !Molecular diffusivity of property in m2/s&lt;br /&gt;
 DISCHARGES                 : 0/1               [0]          !1 - property is discharged; 0 - no discharges&lt;br /&gt;
 TOXICITY                   : 0/1               [0]          !1 - property has an associated toxicity     &lt;br /&gt;
     TOX_EVOLUTION          : int               [1]          !1 - Saturation, 2 - Linear, 3 - RiskRatio&lt;br /&gt;
     EC50                   : real              [0.5]        !If TOX_EVOLUTION = Saturation or RiskRatio,&lt;br /&gt;
                                                             !EC50 is the concentration that causes 50% of effect (Tox = 0.5)&lt;br /&gt;
                                                             !in fraction of initial concentration units [%]&lt;br /&gt;
     SLOPE                  : real              [1.0]        !If TOX_EVOLUTION = Linear&lt;br /&gt;
 DECAY                      : 0/1               [0]          !1- want to use bacterial decay model. 0 - no use. Must have DISCHARGES = 1 and [[Mohid_River_Network|atmosphere]].&lt;br /&gt;
 SURFACE_FLUXES             : 0/1               [0]          !Property has surface fluxes (e.g. evaporation). Needs [[Mohid_River_Network|atmosphere]].&lt;br /&gt;
 BOTTOM_FLUXES              : 0/1               [0]          !Property has bottom fluxes. Must be particulated.&lt;br /&gt;
     BOTTOM_CONC            : real              [0.0]        !Bottom Initial Concentration&lt;br /&gt;
     BOTTOM_MIN_CONC        : real              [0.0]        !Bottom Minimum Concentration&lt;br /&gt;
     EROSION                : 0/1               [1]          !Compute erosion fluxes&lt;br /&gt;
         CRIT_SS_EROSION    : real              [0.2]        !Critical Erosion Shear Stress [Pa]&lt;br /&gt;
         EROSION_COEF       : real              [5.0E-4]     !Erosion Coefficient [kg m-2 s-1]&lt;br /&gt;
     DEPOSITION             : 0/1               [1]          !Compute deposition fluxes&lt;br /&gt;
         CRIT_SS_DEPOSITION : real              [0.1]        !Critical Deposition Shear Stress [Pa]&lt;br /&gt;
         CHS                : real              [4.0]        !Hindered settling [kg m-3] - See [[Module_FreeVerticalMovement]].&lt;br /&gt;
         WS_TYPE            : int               [1]          !Settling type: WSConstant = 1, SPMFunction = 2&lt;br /&gt;
         WS_VALUE           : real              [0.0001]     !Constant settling velocity [m s-1]&lt;br /&gt;
         KL                 : real              [0.1]        !See [[Module_FreeVerticalMovement]].&lt;br /&gt;
         KL1                : real              [0.1]        !See [[Module_FreeVerticalMovement]].&lt;br /&gt;
         ML                 : real              [4.62]       !See [[Module_FreeVerticalMovement]].&lt;br /&gt;
         M                  : real              [1.0]        !See [[Module_FreeVerticalMovement]].&lt;br /&gt;
 WATER_QUALITY              : 0/1               [0]          !1 - use [[Module_WaterQuality|Water Quality Model]] for property transformation; 0 - no use&lt;br /&gt;
 BENTHOS                    : 0/1               [0]          !1 - use [[Module_Benthos|Benthos Model]] for property transformation; 0 - no use&lt;br /&gt;
 CEQUALW2                   : 0/1               [0]          !1 - use [[Module_CEQUALW2|CEQUALW2 Model]] for property transformation; 0 - no use&lt;br /&gt;
 LIFE                       : 0/1               [0]          !1 - use [[Module_Life|Life Model]] for property transformation; 0 - no use&lt;br /&gt;
 EXTINCTION_PARAMETER       : real              [1.0]        !LIGHT EXTINCTION COEFFICIENT&lt;br /&gt;
 TIME_SERIE                 : 0/1               [0]          !Output this property in time series files.&lt;br /&gt;
 OUTPUT_NAME                : char              [NAME]       !Can be NAME or DESCRIPTION.&lt;br /&gt;
 COMPUTE_LOAD               : 0/1               [0]          !Output concentration (in UNITS) x Flow [m3 s-1]&lt;br /&gt;
 SUMTOTALCONC               : 0/1               [0] 0        !Checks if user wants to calculate total Concentration (Column + Bottom) must be particulate&lt;br /&gt;
 &amp;lt;endproperty&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Toxicity Model====&lt;br /&gt;
*The formulation is to associate an eco-toxiciy value to the property (From project ECORIVER 2002).&lt;br /&gt;
*Every toxic property must be discharged.&lt;br /&gt;
*Its concentration in the river network is set to 0.0.&lt;br /&gt;
*Discharge concentration must be equal to 1, because we are measuring the dilution D = 1 - C_new / C_ini&lt;br /&gt;
*The variable property%toxicity%concentration represents C/c_ini so it starts by being 1.&lt;br /&gt;
*This is not even close to a final version. For more details, or sugestions/corrections, contact MARETEC (Rosa Trancoso).&lt;br /&gt;
*EC50 - Concentration that causes 50% of effect (Tox = 0.5)&lt;br /&gt;
&lt;br /&gt;
===Network file:===&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;BeginNode&amp;gt;&lt;br /&gt;
   ID                      : int               -           !Node ID number&lt;br /&gt;
   COORDINATES             : real real         -           !Node coordinates&lt;br /&gt;
   GRID_I                  : int               -           !I position of node, if grid&lt;br /&gt;
   GRID_J                  : int               -           !J position of node, if grid&lt;br /&gt;
   TERRAIN_LEVEL            : real              -           !Bottom level of cross section&lt;br /&gt;
   MANNING_CHANNEL         : real         GLOBAL_MANNING   !Node rugosity&lt;br /&gt;
   WATER_DEPTH             : real      INITIAL_WATER_DEPTH !Node initial water depth&lt;br /&gt;
   CROSS_SECTION_TYPE      : int               [1]         !1 - Trapezoidal, 2 - TrapezoidalFlood, 3 - Tabular&lt;br /&gt;
   1 - Trapezoidal, 2 - TrapezoidalFlood&lt;br /&gt;
       BOTTOM_WIDTH        : real              -           !Bottom width of cross section&lt;br /&gt;
       TOP_WIDTH           : real              -           !Top width of cross section&lt;br /&gt;
       HEIGHT              : real              -           !Max height of cross section&lt;br /&gt;
   2 - TrapezoidalFlood&lt;br /&gt;
       MIDDLE_WIDTH        : real              -           !Middle width of cross section&lt;br /&gt;
       MIDDLE_HEIGHT       : real              -           !Middle height of cross section&lt;br /&gt;
   3 - Tabular&lt;br /&gt;
       N_STATIONS          : integer           -           !number os stations that define the cross section&lt;br /&gt;
       STATION             : real real ...     -           !station values&lt;br /&gt;
       ELEVATION/LEVEL     : real real ...     -           !elevation values&lt;br /&gt;
 &amp;lt;EndNode&amp;gt;&lt;br /&gt;
 &amp;lt;BeginReach&amp;gt;&lt;br /&gt;
   ID                      : int               -           !Reach ID Number&lt;br /&gt;
   DOWNSTREAM_NODE         : int               -           !Downstream node ID&lt;br /&gt;
   UPSTREAM_NODE           : int               -           !Upstream node ID&lt;br /&gt;
 &amp;lt;EndReach&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Sample===&lt;br /&gt;
&lt;br /&gt;
 NETWORK_FILE              : ..\..\GeneralData\DrainageNetwork\DrainageNetworkAlcabrichel_100ha_terrain.dnt&lt;br /&gt;
 CHECK_NODES               : 1&lt;br /&gt;
 CHECK_REACHES             : 1&lt;br /&gt;
 HYDRODYNAMIC_APROX        : 1&lt;br /&gt;
 MASS_ERR                  : 0.001&lt;br /&gt;
 GLOBAL_MANNING            : 0.06&lt;br /&gt;
 MIN_WATER_DEPTH           : 0.01&lt;br /&gt;
 INITIAL_WATER_DEPTH       : 0.0&lt;br /&gt;
 XS_CALC                   : 1&lt;br /&gt;
 DOWNSTREAM_BOUNDARY       : 1&lt;br /&gt;
 TIME_SERIE_LOCATION       : ..\..\GeneralData\Timeseries\TimeSerieLocation_200_new.dat&lt;br /&gt;
 &lt;br /&gt;
 OUTPUT_TIME               : 0 864000&lt;br /&gt;
 &lt;br /&gt;
 DISCHARGES                : 1 (1-if have a discharge file; 0 if not discharging)&lt;br /&gt;
 CONTINUOUS                : 0&lt;br /&gt;
 &lt;br /&gt;
 MAX_DT_FLOOD              : 100&lt;br /&gt;
 STABILIZE                 : 1&lt;br /&gt;
 DT_FACTOR                 : 0.75&lt;br /&gt;
 STABILIZE_FACTOR          : 0.05&lt;br /&gt;
 &lt;br /&gt;
 MINIMUM_SLOPE             : 0.0001&lt;br /&gt;
&lt;br /&gt;
====If want to model Properties ====&lt;br /&gt;
&lt;br /&gt;
Than additionaly to the above options need to define properties to be modelled. One block for each property (see a list&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;beginproperty&amp;gt;&lt;br /&gt;
 NAME                    : salinity&lt;br /&gt;
 UNITS                   : psu&lt;br /&gt;
 DESCRIPTION             : salinity&lt;br /&gt;
 DEFAULT_VALUE           : 0.3&lt;br /&gt;
 MIN_VALUE               : 0.0&lt;br /&gt;
 ADVECTION_DIFUSION      : 1       !1-want to transport property; 0 - no transport&lt;br /&gt;
 DISCHARGES              : 0       !1-property is discharged;0 - no discharges&lt;br /&gt;
 TIME_SERIE              : 1&lt;br /&gt;
 WATER_QUALITY           : 0       !1-use water quality model for property transformation;0-no transformation&lt;br /&gt;
 &amp;lt;endproperty&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Creatig a drainage network file==&lt;br /&gt;
&lt;br /&gt;
*Obtain a drainage network with MOHID GIS in [[MOHID_GIS#Delineate_Basins|Delineate Basins]]&lt;br /&gt;
&lt;br /&gt;
*Alternatively can also obtain a drainage network with program BasinDelimiter (from SourceSafe) with a basin.dat with the keywords, adapted to the study watershed:&lt;br /&gt;
&lt;br /&gt;
 TOPOGRAPHIC_FILE              : ..\..\GeneralData\DTM\MDT200mSD.dat&lt;br /&gt;
 TRESHOLD_AREA                 : 100000&lt;br /&gt;
 DELINEATE_BASIN               : 1&lt;br /&gt;
 OUTLET_I                      : 1&lt;br /&gt;
 OUTLET_J                      : 44&lt;br /&gt;
 WRITE_REACHES                 : 1&lt;br /&gt;
 REACHES_FILE                  : ..\..\GeneralData\DrainageNetwork\DrainageNetwork.dnt&lt;br /&gt;
&lt;br /&gt;
*Define the cross sections for the drainage network file in [[Mohid_GIS#Auto_Cross_Sections|MOHID GIS]].&lt;br /&gt;
DO NOT FORGET TO SELECT SAVE ALL IN MOHID GIS TO UPDATE THE FILE!!!&lt;br /&gt;
&lt;br /&gt;
(Currently in this version of the cross sections program keyword TERRAIN_LEVEL is not written, instead is written BOTTOM_LEVEL (old version). TERRAIN LEVEL = BOTTOM_LEVEL + HEIGHT. Change it for example with excel, new program should be written)&lt;br /&gt;
&lt;br /&gt;
*Define the network file just created in the drainage network data file with:&lt;br /&gt;
&lt;br /&gt;
 NETWORK_FILE : ..\..\GeneralData\DrainageNetwork\DrainageNetwork.dnt&lt;/div&gt;</summary>
		<author><name>Anatrancoso</name></author>	</entry>

	</feed>