Personal tools

HDF5Exporter

From MohidWiki

Revision as of 15:09, 28 February 2008 by 192.168.20.171 (talk) (Sample)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The application HDF5Exporter produces time series from data contained in HDF5 files in MOHID format .

Running options for this application are specified in an input file whose path is indicated in a nomfich.dat file.

Introduction

HDF5Exporter extracts data contained in one or more HDF5 files subject to the parameter list, time window and locations specified by the user.

The time window specified by the user indicates the intended time series period. The actual time series period results from the intended period subjected to the data availability of the supplied HDF5 files.

Each time series location consists in a grid cell, defined by the cell indentification indexes, and originates by HDF5Exporter an individual time series file. All the time series produced in a HDF5Exporter will have data for the same parameters and time window.

Typical use:

Extract time series from MOHID Water result files from several runs produced in continuous running of the model.

Data input requirements:

One or more HDF5 files, in MOHID format, containing data to create time series.

Ouput:

A time series file, in MOHID format, for each time series location defined by the user in the input file.

Input file

The name of the input file must be provided in the nomfich.dat file in use.

(block for each HDF5 file to extract time series from; may be several, block order is
irrelevant)
<BeginHDF5File>                                                                 
NAME                    : ... (path/name of HDF5 file with data to extract time series) 
<EndHDF5File>                                              

START_TIME              : ... (start time for time series: yyyy mm dd hh mm ss)
END_TIME                : ... (end time for time series: yyyy mm dd hh mm ss)

COMPUTE_RESIDUAL        : 0/1 (residual appearance in time series: 0 = appears not, 1 = 
                               appears; 1 = default; residual is meanless in time series
                               produced, should always be 0)

VARIABLE_GRID           : 0/1 (use time variable grid: 0 = normal grid, 1 = variable grid;
                               0 = default)

WATERPOINTS_NAME        : ... (time independent map item name in HDF5 file)

(block for each parameter that is requested a time series; may be several)
<BeginParameter>                                            
PROPERTY                : ... (parameter/property name)
HDF_GROUP               : ... (complete path in HDF5 file to parameter data)   
<EndParameter>                                              

(block for each time series location; may be several, one per output time series file) 
<BeginTimeSerie>
NAME                    : ... (path/name of output time series file)

LOCALIZATION_I          : ... (time series location latitude cell indentification index, i)
LOCALIZATION_J          : ... (time series location longitude cell indentification index, j)
LOCALIZATION_K          : ... (time series location vertical cell indentification index, k; 
                               should be 1 in 2D data)

(if VARIABLE_GRID : 1:)
LATITUDE                : ... (time series location geographic decimated latitude)
LONGITUDE               : ... (time series location geographic decimated longitude)
<EndTimeSerie>
Remarks:

- option VARIABLE_GRID : 1 is usually useful when input HDF5 files contain satellite images
  data;

- the parameter/property name indicated in PROPERTY keyword should be the one used in MOHID
  framework, otherwise a warning message is issued;

- all the time series locations introduced through <BeginTimeSerie>...<EndTimeSerie> blocks
  must have valid data in the input HDF5 files for any output files to be produced: if one  
  input location does not have valid data the application will produce an error and end  
  without producing output files.

- The time-span of the data files must be included (but not necessarily equal) 
  in the interval defined by START_TIME and END_TIME.

- The properties MUST be present in the data files, otherwise an error is returned.

Sample

<BeginHDF5File>
NAME                    : K:\Simula\Nivel1CostaPort\Nivel2Tagus\res\WaterProperties_15.hdf5
<EndHDF5File>

<BeginHDF5File>
NAME                    : K:\Simula\Nivel1CostaPort\Nivel2Tagus\res\WaterProperties_16.hdf5
<EndHDF5File>

<BeginHDF5File>
NAME                    : K:\Simula\Nivel1CostaPort\Nivel2Tagus\res\WaterProperties_17.hdf5
<EndHDF5File>

START_TIME              : 2005 1 31 0 0 0
END_TIME                : 2005 3 1 0 0 0

WATERPOINTS_NAME        : WaterPoints3D

COMPUTE_RESIDUAL        : 0

VARIABLE_GRID           : 0

<BeginParameter>
PROPERTY                : salinity
HDF_GROUP               : /Results/salinity
<EndParameter>

<BeginParameter>
PROPERTY                : temperature
HDF_GROUP               : /Results/temperature
<EndParameter>

<BeginTimeSerie>
NAME                    : P1 
LOCALIZATION_I          : 60
LOCALIZATION_J          : 82
LOCALIZATION_K          : 33
<EndTimeSerie>

<BeginTimeSerie>
NAME                    : P2
LOCALIZATION_I          : 60
LOCALIZATION_J          : 108
LOCALIZATION_K          : 33
<EndTimeSerie>