Difference between revisions of "DrawFluxesInHDF5"
From MohidWiki
m (1 revision) |
(→CreateHDF5Boxes.dat) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
==Source-safe whereabouts== | ==Source-safe whereabouts== | ||
− | The latest source code is in the '''Mohid_V4''' repository, inside the '''SmallTools\DrawFluxesInHDF5''' folder. | + | 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== | ||
Line 22: | Line 23: | ||
INDEXESLENGTH : 436 | INDEXESLENGTH : 436 | ||
− | # The first line contains the input boxes.hdf5 file. They represent the index map of the boxes created with the [[ | + | # The first line contains the input boxes.hdf5 file. They represent the index map of the boxes created with the [[Box2HDF5]] tool. |
# The second line tells the output filename. | # The second line tells the output filename. | ||
# The third line contains the salinity inside the boxes. | # The third line contains the salinity inside the boxes. | ||
Line 61: | Line 62: | ||
==See also== | ==See also== | ||
*[[Boxes]] | *[[Boxes]] | ||
+ | *[[Box2HDF5]] | ||
[[Category:Mohid]] | [[Category:Mohid]] | ||
[[Category:Tools]] | [[Category:Tools]] |
Latest revision as of 17:35, 12 April 2011
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.
Contents
Source-safe whereabouts
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
Nomfich.dat
The nomfich file contains a single line pointing to the configuration file.
IN_MODEL : CreateHDF5Boxes.dat
CreateHDF5Boxes.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 Box2HDF5 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
Troubleshoot
Q: Too many columns?
A: Add the following preprocessor directives in Module Mohid Base 1:
_BIG_MAX_COLUMNS,_EXTRA_LONG_LINE_LENGTH