Personal tools

Difference between revisions of "Box2HDF5"

From MohidWiki

Jump to: navigation, search
(New page: DrawFluxesInHDF5 is a little tool that reads the boxes fluxes time series (.BXF and .BXM) and returns an HDF5 file with vector fields representing the fluxes between the boxes. ==Sou...)
 
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[DrawFluxesInHDF5]] is a little tool that reads the boxes fluxes time series (.BXF and .BXM) and returns an HDF5 file with vector fields representing the fluxes between the boxes.
+
Box2HDF5 is a little tool that creates a HDF5 file from a [[Boxes]] definition file, a geometry file and a bathymetry file. This hdf5 file serve for checking that the desired boxes definition is correct in a visual way and also serves as input file for the tool [[DrawFluxesInHDF5]] that returns an HDF5 file with vector fields representing the fluxes between the boxes.
  
 +
==Source-safe whereabouts==
  
==Source-safe whereabouts==
+
At the moment is not found neither in the sourcesafe nor in the Codeplex
The latest source code is in the [[codeplex]] inside the "SmallTools\DrawFluxesInHDF5" folder.
 
An older source code is in the '''Mohid_V4''' repository, inside the '''SmallTools\DrawFluxesInHDF5''' folder.
 
  
 
==Configuration==
 
==Configuration==
  
 
===Nomfich.dat===
 
===Nomfich.dat===
The nomfich file contains a single line pointing to the configuration file.
+
The nomfich file contains three lines pointing to the bathymetry, geometry and boxes files.
  IN_MODEL : CreateHDF5Boxes.dat
+
  IN_BATIM        : TagusRibeiras.dat
 
+
  IN_GEOM          : Geometry_1.dat
===CreateHDF5Boxes.dat===
+
  IN_BOXES        : WQBoxesTagusRibeira3D.dat
Here's a sample configuration file (CreateHDF5Boxes.dat):
 
 
 
  HDF5BOXES_INFILE : Boxes.hdf5
 
  HDF5BOXES_OUFILE : OutBoxes.hdf5
 
BOXESSALINITYFILE : salinity.bxm
 
BOXESWATERFILE : water.bxm
 
BOXESWATERFLUXFILE : water.bxf
 
INDEXESFILE : BoxesFluxesIndexes.txt
 
INDEXESLENGTH : 436
 
 
 
# The first line contains the input boxes.hdf5 file. They represent the index map of the boxes created with the [[BoxHDF5]] tool.
 
# The second line tells the output filename.
 
# The third line contains the salinity inside the boxes.
 
# The fourth line contains the boxes water volumes timeseries.
 
# The fifth line contains the fluxes between boxes timeseries.
 
# The sixth line contains three columns displaying the column number, the source box index and the destination box index. Each row represents a flux of the water fluxes timeseries.
 
# The seventh and last line contains the total number of fluxes available in the water fluxes timeseries.
 
 
 
==BoxesFluxesIndexes.txt==
 
Here's a sample of the indexes file:
 
9 1 2
 
10 2 3
 
11 5 6
 
12 6 7
 
13 6 38
 
14 7 1
 
15 7 8
 
16 7 39
 
17 8 2
 
18 8 9
 
19 8 40
 
20 9 3
 
# First column: column index number.
 
# Second column: source box index.
 
# Third column: target box index.
 
 
 
==Example output==
 
<htm>
 
<a href="http://content.screencast.com/users/GRiflet/folders/Jing/media/9a4a7e12-6de7-4ca9-b5e2-5537f9679bd2/2008-07-25_1746.png"><img src="http://content.screencast.com/users/GRiflet/folders/Jing/media/9a4a7e12-6de7-4ca9-b5e2-5537f9679bd2/2008-07-25_1746.png" width="500" height="400" border="0" /></a>
 
</htm>
 
 
 
==Troubleshoot==
 
'''Q: Too many columns?'''
 
 
 
A: Add the following preprocessor directives in Module [[Mohid Base 1]]:
 
_BIG_MAX_COLUMNS,_EXTRA_LONG_LINE_LENGTH
 
  
 
==See also==
 
==See also==
 
*[[Boxes]]
 
*[[Boxes]]
 +
*[[DrawFluxesInHDF5]]
  
 
[[Category:Mohid]]
 
[[Category:Mohid]]
 
[[Category:Tools]]
 
[[Category:Tools]]

Latest revision as of 17:32, 12 April 2011

Box2HDF5 is a little tool that creates a HDF5 file from a Boxes definition file, a geometry file and a bathymetry file. This hdf5 file serve for checking that the desired boxes definition is correct in a visual way and also serves as input file for the tool DrawFluxesInHDF5 that returns an HDF5 file with vector fields representing the fluxes between the boxes.

Source-safe whereabouts

At the moment is not found neither in the sourcesafe nor in the Codeplex

Configuration

Nomfich.dat

The nomfich file contains three lines pointing to the bathymetry, geometry and boxes files.

IN_BATIM         : TagusRibeiras.dat
IN_GEOM          : Geometry_1.dat
IN_BOXES         : WQBoxesTagusRibeira3D.dat

See also