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

report meaning of channel number

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: 3844
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent 756402a7
......@@ -154,8 +154,10 @@ namespace datrw {
"wid2.dt = header.dt*1.e-6\n"
"wid2.date = srce.date+header.delrt*1.e-3\n"
"wid2.channel = header.tracf\n"
" (tracf = Trace number within original field record)\n"
"wid2.station = header.tracf\n"
"wid2.auxid = header.fldr\n";
" (fldr = Original field record number)\n"
os <<
"info.cx = header.gx*scalcof\n"
"info.cy = header.gy*scalcof\n"
......@@ -167,7 +169,7 @@ namespace datrw {
"srce.cz = header.sdepth*scalelf\n"
"srce.date = date(year,day,hour,minute,sec)\n";
os <<
"header.scalco and header.scalel are take as defined for the SEG-Y "
"header.scalco and header.scalel are as defined for the SEG-Y "
"format:\n"
"http://www.seg.org/SEGportalWEBproject/prod/SEG-Publications/Pub-Technical-Standards/Documents/seg_y_rev1.pdf\n"
"except when their modulus is smaller than 10 and larger than 0.\n"
......
......@@ -278,10 +278,16 @@ namespace datrw {
retval.dt=static_cast<double>(Mheader.dt)*1.e-6;
retval.date=this->dateoffirstsample();
std::ostringstream oss;
/* set channel and station to tracf:
* Trace number within original field record
*/
oss.width(3); oss.fill('0'); oss << Mheader.tracf;
retval.channel=oss.str();
retval.station=oss.str();
oss.str("");
/* set auxid to fldr
* Original field record number
*/
oss.width(3); oss.fill('0'); oss << Mheader.fldr;
retval.auxid=oss.str();
return(retval);
......
Supports Markdown
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