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

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=ConvertToHDF5&amp;diff=6528</id>
		<title>ConvertToHDF5</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=ConvertToHDF5&amp;diff=6528"/>
				<updated>2013-05-21T10:43:11Z</updated>
		
		<summary type="html">&lt;p&gt;LigiaPinto: /* Glue files */&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. The use of the OPEN POINTS information is optional.&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. It also allows to produce a average in cell which returns one value based on all points inside cell. This method only works if there is at least one value per cell.&lt;br /&gt;
&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;
===Wave model data===&lt;br /&gt;
Mohid does not simulate explicitly the wave dynamics, but needs information about wave properties in time and space. This requires that wave properties are supplied to MOHID Water in supported formats. These formats can be derived from wave data in HDF5 format. Because the results of wave 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 table format of SWAN. This is succintly detailed in the next section.&lt;br /&gt;
&lt;br /&gt;
====''SWAN''====&lt;br /&gt;
SWAN data files are supplied in a ASCII format. The data is organized by time instant. For each time instant there is a table of data. Each column represents one property. &lt;br /&gt;
&lt;br /&gt;
The standard ConvertToHDF5 action is to convert to HDF5 the data referring to gradients of wave stresses X and Y, mean amplitude, mean period and mean direction.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain HDF5 SWAN data usable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
ASCII (table type) SWAN results data files and bathymetry in MOHID grid data foramt. &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 (wave stresses X and Y, mean amplitude, mean period and mean direction). &lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT TO AND FROM SWAN|CONVERT TO AND FROM SWAN]].&lt;br /&gt;
&lt;br /&gt;
&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;
===Generic NETCDF CF FILES===&lt;br /&gt;
&lt;br /&gt;
Converts any netcdf file following the CF convention into Mohid HDF5 files. Check the [[ConvertToHDF5#CONVERT_GENERIC_NETCDF_CF | Input File]] and [[ConvertToHDF5#Convert_generic_Netcdf_CF_to_MOHID.28.hdf5.29 | Sample File]].&lt;br /&gt;
&lt;br /&gt;
===Radar data===&lt;br /&gt;
====Seasonde RADAR Data====&lt;br /&gt;
Converts a list of ascii files from the Seasonde radar data, which measures currents over a given region of space, into an hdf5 file with the MOHID format. Useful to validate coastal and estuarine models where radars are located. ConvertToHDF5 tool must be compiled with the preprocessor variable definition _SCANLINE_UNSAFE set in the Mohid Base 1.&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;
 3D_OPEN                   : 0/1 (0 = default = open points are not used  , 1 = open points are used)&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, 4 = Average in Cell)&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;
&lt;br /&gt;
===CONVERT GENERIC NETCDF CF===&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 ACTION              : CONVERT NETCDF CF TO HDF5 MOHID       &lt;br /&gt;
 HDF5_OUT            : 0/1 (1 = convert to HDF5 file; 0 = default)&lt;br /&gt;
 OUTPUTFILENAME      : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 NETCDF_OUT          : 0/1 (1 = convert to netcdf file; 0 = default)&lt;br /&gt;
 OUTPUT_NETCDF_FILE  : ... (path/name of netcdf file to be created)&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_time&amp;gt;&amp;gt;&lt;br /&gt;
 NETCDF_NAME         : name of the netcdf property for time, generally &amp;quot;time&amp;quot;&lt;br /&gt;
 &amp;lt;&amp;lt;end_time&amp;gt;&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_grid&amp;gt;&amp;gt;&lt;br /&gt;
 NETCDF_NAME_LAT     : ... (name of the netcdf property for latitude, generally &amp;quot;latitude&amp;quot;)&lt;br /&gt;
 NETCDF_NAME_LONG    : ... (name of the netcdf property for longitude, generally &amp;quot;longitude&amp;quot;)&lt;br /&gt;
 NETCDF_NAME_MAPPING : ... (name of the netcdf field where is located the mapping 0 water 1 land)&lt;br /&gt;
                           (It can also be used any field, i.e. temperature)&lt;br /&gt;
 MAPPING_LIMIT       : real (limit for netcdf value mapping; default = 0.5, thus &amp;gt;0.5 water)&lt;br /&gt;
 &amp;lt;&amp;lt;end_grid&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 PROPERTIES_NUMBER   : real (number of netcdf properties) &lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_field&amp;gt;&amp;gt;&lt;br /&gt;
 NETCDF_NAME         : name of the netcdf property&lt;br /&gt;
 NAME                : name of the HDF5 Mohid property&lt;br /&gt;
 UNITS               : property units&lt;br /&gt;
 DESCRIPTION         : property description&lt;br /&gt;
 DIM                 : 2/3 Number of property dimensions &lt;br /&gt;
 VECTOR_INTENSITY    : 0/1 If property corresponds to a vector intensity&lt;br /&gt;
 VECTOR_X            : Decomposition of Vector Intensity X&lt;br /&gt;
 VECTOR_Y            : Decomposition of Vector Intensity Y&lt;br /&gt;
 BEAUFORT_SCALE      : 0/1 If property correspond to the beaufort scale&lt;br /&gt;
 ADD_FACTOR          : To add the property a fixed value&lt;br /&gt;
 &amp;lt;&amp;lt;end_field&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_field&amp;gt;&amp;gt;&lt;br /&gt;
 ...&lt;br /&gt;
 &amp;lt;&amp;lt;end_field&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 path to netcdf cf file&lt;br /&gt;
 ...&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 SEASONDE RADAR FORMAT ===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT IH RADAR FORMAT&lt;br /&gt;
 &lt;br /&gt;
 !HDF5 path and filename that will contain the results&lt;br /&gt;
 OUTPUTFILENAME            : IHRADAR_201205_1400.hdf5&lt;br /&gt;
 &lt;br /&gt;
 !griddata path and filename that will contain a griddata of the proxy bathymetry used in the hdf5 output file.&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : IHRADAR_griddata.dat&lt;br /&gt;
 &lt;br /&gt;
 !Path and filename to the grid that maps the radar data. This grid must be constructed with the [[GIS]]&lt;br /&gt;
 !or MOHID Studio and must &amp;quot;fit&amp;quot; well where the points stand.&lt;br /&gt;
 INPUT_GRID_FILENAME       : ../IH-Radar-GridVersion4.grd&lt;br /&gt;
 &lt;br /&gt;
 !This is the version of the grid used by the seasonde radar system.&lt;br /&gt;
 !If the grid version of the seasonde radar changes, then most likely a new input grid must be&lt;br /&gt;
 !constructed with the GIS or MOHID Studio.&lt;br /&gt;
 IH_GRID_VERSION           : 4&lt;br /&gt;
 &lt;br /&gt;
 !This is a list with the Seasonde radar ascii data files. One file per instant.&lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 ../RadarFiles/TOTL_IHOC_2012_05_01_1400.tuv.txt&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;
==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;
&lt;br /&gt;
&lt;br /&gt;
===Convert generic Netcdf CF to MOHID(.hdf5)  ===&lt;br /&gt;
&lt;br /&gt;
This sample is for converting a typical GFS file&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 ACTION : CONVERT NETCDF CF TO HDF5 MOHID&lt;br /&gt;
 HDF5_OUT : 1&lt;br /&gt;
 OUTPUTFILENAME : ..\..\data\hdf5\GFS.hdf5&lt;br /&gt;
 NETCDF_OUT : 1&lt;br /&gt;
 OUTPUT_NETCDF_FILE : ..\..\data\netcdf\GFS.nc&lt;br /&gt;
 &amp;lt;&amp;lt;begin_time&amp;gt;&amp;gt;&lt;br /&gt;
 NETCDF_NAME : time&lt;br /&gt;
 &amp;lt;&amp;lt;end_time&amp;gt;&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_grid&amp;gt;&amp;gt;&lt;br /&gt;
 NETCDF_NAME_LAT : latitude&lt;br /&gt;
 NETCDF_NAME_LONG : longitude&lt;br /&gt;
 NETCDF_NAME_MAPPING : TMP_10mb&lt;br /&gt;
 MAPPING_LIMIT : -10000&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;end_grid&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 PROPERTIES_NUMBER : 6 &lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_field&amp;gt;&amp;gt;&lt;br /&gt;
 NETCDF_NAME : PRMSL_meansealevel&lt;br /&gt;
 NAME : atmospheric pressure&lt;br /&gt;
 UNITS : Pa&lt;br /&gt;
 DESCRIPTION : GFS&lt;br /&gt;
 DIM : 2&lt;br /&gt;
 &amp;lt;&amp;lt;end_field&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_field&amp;gt;&amp;gt;&lt;br /&gt;
 NETCDF_NAME : UGRD_10mb&lt;br /&gt;
 NAME : wind velocity X&lt;br /&gt;
 UNITS : m/s&lt;br /&gt;
 DESCRIPTION : MOHID&lt;br /&gt;
 DIM : 2&lt;br /&gt;
 &amp;lt;&amp;lt;end_field&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_field&amp;gt;&amp;gt;&lt;br /&gt;
 NETCDF_NAME : VGRD_10mb&lt;br /&gt;
 NAME : wind velocity Y&lt;br /&gt;
 UNITS : m/s&lt;br /&gt;
 DESCRIPTION : MOHID&lt;br /&gt;
 DIM : 2&lt;br /&gt;
 &amp;lt;&amp;lt;end_field&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_field&amp;gt;&amp;gt;&lt;br /&gt;
 NETCDF_NAME              : wind_modulus&lt;br /&gt;
 NAME                     : wind modulus &lt;br /&gt;
 UNITS : m/s&lt;br /&gt;
 DESCRIPTION : MOHID&lt;br /&gt;
 DIM : 2&lt;br /&gt;
 VECTOR_INTENSITY         : 1&lt;br /&gt;
 VECTOR_X                 : wind velocity X&lt;br /&gt;
 VECTOR_Y                 : wind velocity Y&lt;br /&gt;
 &amp;lt;&amp;lt;end_field&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_field&amp;gt;&amp;gt;&lt;br /&gt;
 NETCDF_NAME              : wind_modulus_beaufort &lt;br /&gt;
 NAME                     : wind modulus beaufort &lt;br /&gt;
 UNITS : beaufort scale&lt;br /&gt;
 DESCRIPTION : MOHID&lt;br /&gt;
 DIM : 2&lt;br /&gt;
 BEAUFORT_SCALE           : 1&lt;br /&gt;
 VECTOR_X                 : wind modulus&lt;br /&gt;
 &amp;lt;&amp;lt;end_field&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_field&amp;gt;&amp;gt;&lt;br /&gt;
 NETCDF_NAME : TMP_2maboveground&lt;br /&gt;
 NAME : air temperature&lt;br /&gt;
 UNITS : oC&lt;br /&gt;
 DESCRIPTION : MOHID&lt;br /&gt;
 DIM : 2&lt;br /&gt;
 ADD_FACTOR  : -273&lt;br /&gt;
 &amp;lt;&amp;lt;end_field&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 ..\..\data\netcdf\gfs_4_20111115.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;
=== Convert Seasonde RADAR data sample configuration file===&lt;br /&gt;
The input grid file must be created to be the recipient of the data in the ascii files.&lt;br /&gt;
To create this grid, it is recommended to convert manually, resorting to a good text editor, such as Notepad++, a few radar ascii files into the [[xyz]] Mohid format, then load them in the [[GIS]] or [[Mohid Studio]], and from there create and save a regular grid that fits the points. Use that grid to convert the data into one hdf5 file.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT IH RADAR FORMAT&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : IHRADAR_201205_1400.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : IHRADAR_griddata.dat&lt;br /&gt;
 INPUT_GRID_FILENAME       : ../IH-Radar-GridVersion4.grd&lt;br /&gt;
 IH_GRID_VERSION           : 4&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 ../RadarFiles/TOTL_IHOC_2012_05_01_1400.tuv.txt&lt;br /&gt;
 ../RadarFiles/TOTL_IHOC_2012_05_30_1400.tuv.txt&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;
Compile the ConvertToHDF5 tool with the preprocessor variable _SCANLINE_UNSAFE defined in Mohid Base 1.&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>LigiaPinto</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=ConvertToHDF5&amp;diff=6527</id>
		<title>ConvertToHDF5</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=ConvertToHDF5&amp;diff=6527"/>
				<updated>2013-05-21T10:39:50Z</updated>
		
		<summary type="html">&lt;p&gt;LigiaPinto: /* GLUES HDF5 FILES */&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. It also allows to produce a average in cell which returns one value based on all points inside cell. This method only works if there is at least one value per cell.&lt;br /&gt;
&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;
===Wave model data===&lt;br /&gt;
Mohid does not simulate explicitly the wave dynamics, but needs information about wave properties in time and space. This requires that wave properties are supplied to MOHID Water in supported formats. These formats can be derived from wave data in HDF5 format. Because the results of wave 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 table format of SWAN. This is succintly detailed in the next section.&lt;br /&gt;
&lt;br /&gt;
====''SWAN''====&lt;br /&gt;
SWAN data files are supplied in a ASCII format. The data is organized by time instant. For each time instant there is a table of data. Each column represents one property. &lt;br /&gt;
&lt;br /&gt;
The standard ConvertToHDF5 action is to convert to HDF5 the data referring to gradients of wave stresses X and Y, mean amplitude, mean period and mean direction.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain HDF5 SWAN data usable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
ASCII (table type) SWAN results data files and bathymetry in MOHID grid data foramt. &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 (wave stresses X and Y, mean amplitude, mean period and mean direction). &lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT TO AND FROM SWAN|CONVERT TO AND FROM SWAN]].&lt;br /&gt;
&lt;br /&gt;
&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;
===Generic NETCDF CF FILES===&lt;br /&gt;
&lt;br /&gt;
Converts any netcdf file following the CF convention into Mohid HDF5 files. Check the [[ConvertToHDF5#CONVERT_GENERIC_NETCDF_CF | Input File]] and [[ConvertToHDF5#Convert_generic_Netcdf_CF_to_MOHID.28.hdf5.29 | Sample File]].&lt;br /&gt;
&lt;br /&gt;
===Radar data===&lt;br /&gt;
====Seasonde RADAR Data====&lt;br /&gt;
Converts a list of ascii files from the Seasonde radar data, which measures currents over a given region of space, into an hdf5 file with the MOHID format. Useful to validate coastal and estuarine models where radars are located. ConvertToHDF5 tool must be compiled with the preprocessor variable definition _SCANLINE_UNSAFE set in the Mohid Base 1.&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;
 3D_OPEN                   : 0/1 (0 = default = open points are not used  , 1 = open points are used)&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, 4 = Average in Cell)&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;
&lt;br /&gt;
===CONVERT GENERIC NETCDF CF===&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 ACTION              : CONVERT NETCDF CF TO HDF5 MOHID       &lt;br /&gt;
 HDF5_OUT            : 0/1 (1 = convert to HDF5 file; 0 = default)&lt;br /&gt;
 OUTPUTFILENAME      : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 NETCDF_OUT          : 0/1 (1 = convert to netcdf file; 0 = default)&lt;br /&gt;
 OUTPUT_NETCDF_FILE  : ... (path/name of netcdf file to be created)&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_time&amp;gt;&amp;gt;&lt;br /&gt;
 NETCDF_NAME         : name of the netcdf property for time, generally &amp;quot;time&amp;quot;&lt;br /&gt;
 &amp;lt;&amp;lt;end_time&amp;gt;&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_grid&amp;gt;&amp;gt;&lt;br /&gt;
 NETCDF_NAME_LAT     : ... (name of the netcdf property for latitude, generally &amp;quot;latitude&amp;quot;)&lt;br /&gt;
 NETCDF_NAME_LONG    : ... (name of the netcdf property for longitude, generally &amp;quot;longitude&amp;quot;)&lt;br /&gt;
 NETCDF_NAME_MAPPING : ... (name of the netcdf field where is located the mapping 0 water 1 land)&lt;br /&gt;
                           (It can also be used any field, i.e. temperature)&lt;br /&gt;
 MAPPING_LIMIT       : real (limit for netcdf value mapping; default = 0.5, thus &amp;gt;0.5 water)&lt;br /&gt;
 &amp;lt;&amp;lt;end_grid&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 PROPERTIES_NUMBER   : real (number of netcdf properties) &lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_field&amp;gt;&amp;gt;&lt;br /&gt;
 NETCDF_NAME         : name of the netcdf property&lt;br /&gt;
 NAME                : name of the HDF5 Mohid property&lt;br /&gt;
 UNITS               : property units&lt;br /&gt;
 DESCRIPTION         : property description&lt;br /&gt;
 DIM                 : 2/3 Number of property dimensions &lt;br /&gt;
 VECTOR_INTENSITY    : 0/1 If property corresponds to a vector intensity&lt;br /&gt;
 VECTOR_X            : Decomposition of Vector Intensity X&lt;br /&gt;
 VECTOR_Y            : Decomposition of Vector Intensity Y&lt;br /&gt;
 BEAUFORT_SCALE      : 0/1 If property correspond to the beaufort scale&lt;br /&gt;
 ADD_FACTOR          : To add the property a fixed value&lt;br /&gt;
 &amp;lt;&amp;lt;end_field&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_field&amp;gt;&amp;gt;&lt;br /&gt;
 ...&lt;br /&gt;
 &amp;lt;&amp;lt;end_field&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 path to netcdf cf file&lt;br /&gt;
 ...&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 SEASONDE RADAR FORMAT ===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT IH RADAR FORMAT&lt;br /&gt;
 &lt;br /&gt;
 !HDF5 path and filename that will contain the results&lt;br /&gt;
 OUTPUTFILENAME            : IHRADAR_201205_1400.hdf5&lt;br /&gt;
 &lt;br /&gt;
 !griddata path and filename that will contain a griddata of the proxy bathymetry used in the hdf5 output file.&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : IHRADAR_griddata.dat&lt;br /&gt;
 &lt;br /&gt;
 !Path and filename to the grid that maps the radar data. This grid must be constructed with the [[GIS]]&lt;br /&gt;
 !or MOHID Studio and must &amp;quot;fit&amp;quot; well where the points stand.&lt;br /&gt;
 INPUT_GRID_FILENAME       : ../IH-Radar-GridVersion4.grd&lt;br /&gt;
 &lt;br /&gt;
 !This is the version of the grid used by the seasonde radar system.&lt;br /&gt;
 !If the grid version of the seasonde radar changes, then most likely a new input grid must be&lt;br /&gt;
 !constructed with the GIS or MOHID Studio.&lt;br /&gt;
 IH_GRID_VERSION           : 4&lt;br /&gt;
 &lt;br /&gt;
 !This is a list with the Seasonde radar ascii data files. One file per instant.&lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 ../RadarFiles/TOTL_IHOC_2012_05_01_1400.tuv.txt&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;
==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;
&lt;br /&gt;
&lt;br /&gt;
===Convert generic Netcdf CF to MOHID(.hdf5)  ===&lt;br /&gt;
&lt;br /&gt;
This sample is for converting a typical GFS file&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 ACTION : CONVERT NETCDF CF TO HDF5 MOHID&lt;br /&gt;
 HDF5_OUT : 1&lt;br /&gt;
 OUTPUTFILENAME : ..\..\data\hdf5\GFS.hdf5&lt;br /&gt;
 NETCDF_OUT : 1&lt;br /&gt;
 OUTPUT_NETCDF_FILE : ..\..\data\netcdf\GFS.nc&lt;br /&gt;
 &amp;lt;&amp;lt;begin_time&amp;gt;&amp;gt;&lt;br /&gt;
 NETCDF_NAME : time&lt;br /&gt;
 &amp;lt;&amp;lt;end_time&amp;gt;&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_grid&amp;gt;&amp;gt;&lt;br /&gt;
 NETCDF_NAME_LAT : latitude&lt;br /&gt;
 NETCDF_NAME_LONG : longitude&lt;br /&gt;
 NETCDF_NAME_MAPPING : TMP_10mb&lt;br /&gt;
 MAPPING_LIMIT : -10000&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;end_grid&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 PROPERTIES_NUMBER : 6 &lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_field&amp;gt;&amp;gt;&lt;br /&gt;
 NETCDF_NAME : PRMSL_meansealevel&lt;br /&gt;
 NAME : atmospheric pressure&lt;br /&gt;
 UNITS : Pa&lt;br /&gt;
 DESCRIPTION : GFS&lt;br /&gt;
 DIM : 2&lt;br /&gt;
 &amp;lt;&amp;lt;end_field&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_field&amp;gt;&amp;gt;&lt;br /&gt;
 NETCDF_NAME : UGRD_10mb&lt;br /&gt;
 NAME : wind velocity X&lt;br /&gt;
 UNITS : m/s&lt;br /&gt;
 DESCRIPTION : MOHID&lt;br /&gt;
 DIM : 2&lt;br /&gt;
 &amp;lt;&amp;lt;end_field&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_field&amp;gt;&amp;gt;&lt;br /&gt;
 NETCDF_NAME : VGRD_10mb&lt;br /&gt;
 NAME : wind velocity Y&lt;br /&gt;
 UNITS : m/s&lt;br /&gt;
 DESCRIPTION : MOHID&lt;br /&gt;
 DIM : 2&lt;br /&gt;
 &amp;lt;&amp;lt;end_field&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_field&amp;gt;&amp;gt;&lt;br /&gt;
 NETCDF_NAME              : wind_modulus&lt;br /&gt;
 NAME                     : wind modulus &lt;br /&gt;
 UNITS : m/s&lt;br /&gt;
 DESCRIPTION : MOHID&lt;br /&gt;
 DIM : 2&lt;br /&gt;
 VECTOR_INTENSITY         : 1&lt;br /&gt;
 VECTOR_X                 : wind velocity X&lt;br /&gt;
 VECTOR_Y                 : wind velocity Y&lt;br /&gt;
 &amp;lt;&amp;lt;end_field&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_field&amp;gt;&amp;gt;&lt;br /&gt;
 NETCDF_NAME              : wind_modulus_beaufort &lt;br /&gt;
 NAME                     : wind modulus beaufort &lt;br /&gt;
 UNITS : beaufort scale&lt;br /&gt;
 DESCRIPTION : MOHID&lt;br /&gt;
 DIM : 2&lt;br /&gt;
 BEAUFORT_SCALE           : 1&lt;br /&gt;
 VECTOR_X                 : wind modulus&lt;br /&gt;
 &amp;lt;&amp;lt;end_field&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_field&amp;gt;&amp;gt;&lt;br /&gt;
 NETCDF_NAME : TMP_2maboveground&lt;br /&gt;
 NAME : air temperature&lt;br /&gt;
 UNITS : oC&lt;br /&gt;
 DESCRIPTION : MOHID&lt;br /&gt;
 DIM : 2&lt;br /&gt;
 ADD_FACTOR  : -273&lt;br /&gt;
 &amp;lt;&amp;lt;end_field&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 ..\..\data\netcdf\gfs_4_20111115.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;
=== Convert Seasonde RADAR data sample configuration file===&lt;br /&gt;
The input grid file must be created to be the recipient of the data in the ascii files.&lt;br /&gt;
To create this grid, it is recommended to convert manually, resorting to a good text editor, such as Notepad++, a few radar ascii files into the [[xyz]] Mohid format, then load them in the [[GIS]] or [[Mohid Studio]], and from there create and save a regular grid that fits the points. Use that grid to convert the data into one hdf5 file.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT IH RADAR FORMAT&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : IHRADAR_201205_1400.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : IHRADAR_griddata.dat&lt;br /&gt;
 INPUT_GRID_FILENAME       : ../IH-Radar-GridVersion4.grd&lt;br /&gt;
 IH_GRID_VERSION           : 4&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 ../RadarFiles/TOTL_IHOC_2012_05_01_1400.tuv.txt&lt;br /&gt;
 ../RadarFiles/TOTL_IHOC_2012_05_30_1400.tuv.txt&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;
Compile the ConvertToHDF5 tool with the preprocessor variable _SCANLINE_UNSAFE defined in Mohid Base 1.&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>LigiaPinto</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=ConvertToHDF5&amp;diff=6526</id>
		<title>ConvertToHDF5</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=ConvertToHDF5&amp;diff=6526"/>
				<updated>2013-05-21T10:38:53Z</updated>
		
		<summary type="html">&lt;p&gt;LigiaPinto: /* GLUES HDF5 FILES */&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. It also allows to produce a average in cell which returns one value based on all points inside cell. This method only works if there is at least one value per cell.&lt;br /&gt;
&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;
===Wave model data===&lt;br /&gt;
Mohid does not simulate explicitly the wave dynamics, but needs information about wave properties in time and space. This requires that wave properties are supplied to MOHID Water in supported formats. These formats can be derived from wave data in HDF5 format. Because the results of wave 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 table format of SWAN. This is succintly detailed in the next section.&lt;br /&gt;
&lt;br /&gt;
====''SWAN''====&lt;br /&gt;
SWAN data files are supplied in a ASCII format. The data is organized by time instant. For each time instant there is a table of data. Each column represents one property. &lt;br /&gt;
&lt;br /&gt;
The standard ConvertToHDF5 action is to convert to HDF5 the data referring to gradients of wave stresses X and Y, mean amplitude, mean period and mean direction.&lt;br /&gt;
&lt;br /&gt;
'''Typical use:'''&lt;br /&gt;
&lt;br /&gt;
Obtain HDF5 SWAN data usable for forcing MOHID Water models.&lt;br /&gt;
&lt;br /&gt;
'''Data input requirements:'''&lt;br /&gt;
&lt;br /&gt;
ASCII (table type) SWAN results data files and bathymetry in MOHID grid data foramt. &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 (wave stresses X and Y, mean amplitude, mean period and mean direction). &lt;br /&gt;
&lt;br /&gt;
'''ConvertToHDF5 action:''' [[#CONVERT TO AND FROM SWAN|CONVERT TO AND FROM SWAN]].&lt;br /&gt;
&lt;br /&gt;
&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;
===Generic NETCDF CF FILES===&lt;br /&gt;
&lt;br /&gt;
Converts any netcdf file following the CF convention into Mohid HDF5 files. Check the [[ConvertToHDF5#CONVERT_GENERIC_NETCDF_CF | Input File]] and [[ConvertToHDF5#Convert_generic_Netcdf_CF_to_MOHID.28.hdf5.29 | Sample File]].&lt;br /&gt;
&lt;br /&gt;
===Radar data===&lt;br /&gt;
====Seasonde RADAR Data====&lt;br /&gt;
Converts a list of ascii files from the Seasonde radar data, which measures currents over a given region of space, into an hdf5 file with the MOHID format. Useful to validate coastal and estuarine models where radars are located. ConvertToHDF5 tool must be compiled with the preprocessor variable definition _SCANLINE_UNSAFE set in the Mohid Base 1.&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;
 3D_OPEN                   : 0/1 (0 = default = open points are not used  , 1 = open points are used)&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, 4 = Average in Cell)&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;
&lt;br /&gt;
===CONVERT GENERIC NETCDF CF===&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 ACTION              : CONVERT NETCDF CF TO HDF5 MOHID       &lt;br /&gt;
 HDF5_OUT            : 0/1 (1 = convert to HDF5 file; 0 = default)&lt;br /&gt;
 OUTPUTFILENAME      : ... (path/name of HDF5 file to be created)&lt;br /&gt;
 NETCDF_OUT          : 0/1 (1 = convert to netcdf file; 0 = default)&lt;br /&gt;
 OUTPUT_NETCDF_FILE  : ... (path/name of netcdf file to be created)&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_time&amp;gt;&amp;gt;&lt;br /&gt;
 NETCDF_NAME         : name of the netcdf property for time, generally &amp;quot;time&amp;quot;&lt;br /&gt;
 &amp;lt;&amp;lt;end_time&amp;gt;&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_grid&amp;gt;&amp;gt;&lt;br /&gt;
 NETCDF_NAME_LAT     : ... (name of the netcdf property for latitude, generally &amp;quot;latitude&amp;quot;)&lt;br /&gt;
 NETCDF_NAME_LONG    : ... (name of the netcdf property for longitude, generally &amp;quot;longitude&amp;quot;)&lt;br /&gt;
 NETCDF_NAME_MAPPING : ... (name of the netcdf field where is located the mapping 0 water 1 land)&lt;br /&gt;
                           (It can also be used any field, i.e. temperature)&lt;br /&gt;
 MAPPING_LIMIT       : real (limit for netcdf value mapping; default = 0.5, thus &amp;gt;0.5 water)&lt;br /&gt;
 &amp;lt;&amp;lt;end_grid&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 PROPERTIES_NUMBER   : real (number of netcdf properties) &lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_field&amp;gt;&amp;gt;&lt;br /&gt;
 NETCDF_NAME         : name of the netcdf property&lt;br /&gt;
 NAME                : name of the HDF5 Mohid property&lt;br /&gt;
 UNITS               : property units&lt;br /&gt;
 DESCRIPTION         : property description&lt;br /&gt;
 DIM                 : 2/3 Number of property dimensions &lt;br /&gt;
 VECTOR_INTENSITY    : 0/1 If property corresponds to a vector intensity&lt;br /&gt;
 VECTOR_X            : Decomposition of Vector Intensity X&lt;br /&gt;
 VECTOR_Y            : Decomposition of Vector Intensity Y&lt;br /&gt;
 BEAUFORT_SCALE      : 0/1 If property correspond to the beaufort scale&lt;br /&gt;
 ADD_FACTOR          : To add the property a fixed value&lt;br /&gt;
 &amp;lt;&amp;lt;end_field&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_field&amp;gt;&amp;gt;&lt;br /&gt;
 ...&lt;br /&gt;
 &amp;lt;&amp;lt;end_field&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 path to netcdf cf file&lt;br /&gt;
 ...&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 SEASONDE RADAR FORMAT ===&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT IH RADAR FORMAT&lt;br /&gt;
 &lt;br /&gt;
 !HDF5 path and filename that will contain the results&lt;br /&gt;
 OUTPUTFILENAME            : IHRADAR_201205_1400.hdf5&lt;br /&gt;
 &lt;br /&gt;
 !griddata path and filename that will contain a griddata of the proxy bathymetry used in the hdf5 output file.&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : IHRADAR_griddata.dat&lt;br /&gt;
 &lt;br /&gt;
 !Path and filename to the grid that maps the radar data. This grid must be constructed with the [[GIS]]&lt;br /&gt;
 !or MOHID Studio and must &amp;quot;fit&amp;quot; well where the points stand.&lt;br /&gt;
 INPUT_GRID_FILENAME       : ../IH-Radar-GridVersion4.grd&lt;br /&gt;
 &lt;br /&gt;
 !This is the version of the grid used by the seasonde radar system.&lt;br /&gt;
 !If the grid version of the seasonde radar changes, then most likely a new input grid must be&lt;br /&gt;
 !constructed with the GIS or MOHID Studio.&lt;br /&gt;
 IH_GRID_VERSION           : 4&lt;br /&gt;
 &lt;br /&gt;
 !This is a list with the Seasonde radar ascii data files. One file per instant.&lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 ../RadarFiles/TOTL_IHOC_2012_05_01_1400.tuv.txt&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;
==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;
&lt;br /&gt;
&lt;br /&gt;
===Convert generic Netcdf CF to MOHID(.hdf5)  ===&lt;br /&gt;
&lt;br /&gt;
This sample is for converting a typical GFS file&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 ACTION : CONVERT NETCDF CF TO HDF5 MOHID&lt;br /&gt;
 HDF5_OUT : 1&lt;br /&gt;
 OUTPUTFILENAME : ..\..\data\hdf5\GFS.hdf5&lt;br /&gt;
 NETCDF_OUT : 1&lt;br /&gt;
 OUTPUT_NETCDF_FILE : ..\..\data\netcdf\GFS.nc&lt;br /&gt;
 &amp;lt;&amp;lt;begin_time&amp;gt;&amp;gt;&lt;br /&gt;
 NETCDF_NAME : time&lt;br /&gt;
 &amp;lt;&amp;lt;end_time&amp;gt;&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_grid&amp;gt;&amp;gt;&lt;br /&gt;
 NETCDF_NAME_LAT : latitude&lt;br /&gt;
 NETCDF_NAME_LONG : longitude&lt;br /&gt;
 NETCDF_NAME_MAPPING : TMP_10mb&lt;br /&gt;
 MAPPING_LIMIT : -10000&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;end_grid&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 PROPERTIES_NUMBER : 6 &lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_field&amp;gt;&amp;gt;&lt;br /&gt;
 NETCDF_NAME : PRMSL_meansealevel&lt;br /&gt;
 NAME : atmospheric pressure&lt;br /&gt;
 UNITS : Pa&lt;br /&gt;
 DESCRIPTION : GFS&lt;br /&gt;
 DIM : 2&lt;br /&gt;
 &amp;lt;&amp;lt;end_field&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_field&amp;gt;&amp;gt;&lt;br /&gt;
 NETCDF_NAME : UGRD_10mb&lt;br /&gt;
 NAME : wind velocity X&lt;br /&gt;
 UNITS : m/s&lt;br /&gt;
 DESCRIPTION : MOHID&lt;br /&gt;
 DIM : 2&lt;br /&gt;
 &amp;lt;&amp;lt;end_field&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_field&amp;gt;&amp;gt;&lt;br /&gt;
 NETCDF_NAME : VGRD_10mb&lt;br /&gt;
 NAME : wind velocity Y&lt;br /&gt;
 UNITS : m/s&lt;br /&gt;
 DESCRIPTION : MOHID&lt;br /&gt;
 DIM : 2&lt;br /&gt;
 &amp;lt;&amp;lt;end_field&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_field&amp;gt;&amp;gt;&lt;br /&gt;
 NETCDF_NAME              : wind_modulus&lt;br /&gt;
 NAME                     : wind modulus &lt;br /&gt;
 UNITS : m/s&lt;br /&gt;
 DESCRIPTION : MOHID&lt;br /&gt;
 DIM : 2&lt;br /&gt;
 VECTOR_INTENSITY         : 1&lt;br /&gt;
 VECTOR_X                 : wind velocity X&lt;br /&gt;
 VECTOR_Y                 : wind velocity Y&lt;br /&gt;
 &amp;lt;&amp;lt;end_field&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_field&amp;gt;&amp;gt;&lt;br /&gt;
 NETCDF_NAME              : wind_modulus_beaufort &lt;br /&gt;
 NAME                     : wind modulus beaufort &lt;br /&gt;
 UNITS : beaufort scale&lt;br /&gt;
 DESCRIPTION : MOHID&lt;br /&gt;
 DIM : 2&lt;br /&gt;
 BEAUFORT_SCALE           : 1&lt;br /&gt;
 VECTOR_X                 : wind modulus&lt;br /&gt;
 &amp;lt;&amp;lt;end_field&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_field&amp;gt;&amp;gt;&lt;br /&gt;
 NETCDF_NAME : TMP_2maboveground&lt;br /&gt;
 NAME : air temperature&lt;br /&gt;
 UNITS : oC&lt;br /&gt;
 DESCRIPTION : MOHID&lt;br /&gt;
 DIM : 2&lt;br /&gt;
 ADD_FACTOR  : -273&lt;br /&gt;
 &amp;lt;&amp;lt;end_field&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 ..\..\data\netcdf\gfs_4_20111115.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;
=== Convert Seasonde RADAR data sample configuration file===&lt;br /&gt;
The input grid file must be created to be the recipient of the data in the ascii files.&lt;br /&gt;
To create this grid, it is recommended to convert manually, resorting to a good text editor, such as Notepad++, a few radar ascii files into the [[xyz]] Mohid format, then load them in the [[GIS]] or [[Mohid Studio]], and from there create and save a regular grid that fits the points. Use that grid to convert the data into one hdf5 file.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;begin_file&amp;gt;&lt;br /&gt;
 ACTION                    : CONVERT IH RADAR FORMAT&lt;br /&gt;
 &lt;br /&gt;
 OUTPUTFILENAME            : IHRADAR_201205_1400.hdf5&lt;br /&gt;
 OUTPUT_GRID_FILENAME      : IHRADAR_griddata.dat&lt;br /&gt;
 INPUT_GRID_FILENAME       : ../IH-Radar-GridVersion4.grd&lt;br /&gt;
 IH_GRID_VERSION           : 4&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_input_files&amp;gt;&amp;gt;&lt;br /&gt;
 ../RadarFiles/TOTL_IHOC_2012_05_01_1400.tuv.txt&lt;br /&gt;
 ../RadarFiles/TOTL_IHOC_2012_05_30_1400.tuv.txt&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;
Compile the ConvertToHDF5 tool with the preprocessor variable _SCANLINE_UNSAFE defined in Mohid Base 1.&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>LigiaPinto</name></author>	</entry>

	</feed>