Commit c461ce09 authored by thomas.forbriger's avatar thomas.forbriger Committed by thomas.forbriger
Browse files

added further comments to the source code

This is a legacy commit from before 2015-03-01.
It may be incomplete as well as inconsistent.
See COPYING.legacy and README.history for details.


SVN Path:     http://gpitrsvn.gpi.uni-karlsruhe.de/repos/TFSoftware/trunk
SVN Revision: 4676
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent 152ef8fb
......@@ -1473,7 +1473,7 @@ int main(int iargc, char* argv[])
}
/* Conditional
*
* -----------
* distinguish between gap analysis and data extraction
*/
if (doGAPanalysis)
......@@ -1483,6 +1483,21 @@ int main(int iargc, char* argv[])
*
* This block contains several tasks to analyse the completeness of the
* data as being represented by the index entries previously read.
*
* a) Cycle through all traces defined for data output. These traces
* actually reflect all chunks of contiguous data being present in the
* input.
* The result of this analysis is stored in contiguouslist. Input data
* is reported immediately in verbose mode.
* b) If analyzecompleteness is true, a vector of gaps (vecofgaps) is
* prepared by function gaps as the base for testing data completeness.
* The vector is reported immediately if requested (opt.printgaps).
*
* After that:
* - for presenting a completeness or gaps series, a series of gaps is
* produced from the vecofgaps
* - a completeness series is just a transformation of the gap series
* - is a gnuplot control file is required this is prepared first
*/
if (opt.verbose || opt.findgapsonly)
{
......@@ -1497,7 +1512,11 @@ int main(int iargc, char* argv[])
cout << filefree;
} // if (opt.verbose)
// prepare collection of statistics
/*----------------------------------------------------------------------*/
/* a) prepare collection of statistics
* -----------------------------------
*/
libtime::TAbsoluteTime earliesttime=opt.first;
libtime::TAbsoluteTime latesttime=opt.last;
TContiguouslist contiguouslist;
......@@ -1530,7 +1549,7 @@ int main(int iargc, char* argv[])
tracewid2.nsamples=totalsamples;
tracewid2.date=sff::wid2isample(tracewid2,thetrace[0].ifirst);
tracefree.append("read data from:");
tracefree.append("data from:");
for (unsigned int iblock=0; iblock<thetrace.size(); ++iblock)
{
DataBlock &theblock(thetrace[iblock]);
......@@ -1586,6 +1605,9 @@ int main(int iargc, char* argv[])
} // for (unsigned int itrace=0; itrace<trace.size(); ++itrace)
// A collection of all chunks of contiguous data is now present in
// contiguouslist. This is the base of all further analyses.
/*----------------------------------------------------------------------*/
// any further gap analysis?
......@@ -1593,8 +1615,12 @@ int main(int iargc, char* argv[])
{
TFXX_debug(opt.debug, "main",
"analyze contiguouslist and create vector of gaps");
/* b) create vector of gaps
*/
Tvecofgaps vecofgaps=gaps(earliesttime, latesttime,
contiguouslist, opt.debug);
if (opt.printgaps)
{
if (opt.gapoutputfile!="-")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment