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

added debug 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: 4479
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent 2f447127
......@@ -363,6 +363,11 @@ namespace datrw {
DATRW_assert(info.cs == ::sff::CS_cartesian,
"ERROR (SUheader::set INFO): "
"can only handle cartesian cooridnates");
DATRW_debug(Mdebug, "SUheader::set(const ::sff::INFO &info)",
"values upon entry:"
<< DATRW_value(Mheader.gx) << ", "
<< DATRW_value(Mheader.gy) << ", "
<< DATRW_value(Mheader.scalco));
::datrw::su::Coordinates coo(Mheadercontrol.spatialsampling);
coo.getvaluesfrom(Mheader);
coo.gx.set(info.cx);
......@@ -370,6 +375,11 @@ namespace datrw {
coo.gelev.set(info.cz);
coo.setvaluesin(Mheader);
Mheader.nvs=static_cast<short>(info.nstacks);
DATRW_debug(Mdebug, "SUheader::set(const ::sff::INFO &info)",
"values upon exit:"
<< DATRW_value(Mheader.gx) << ", "
<< DATRW_value(Mheader.gy) << ", "
<< DATRW_value(Mheader.scalco));
} // void SUheader::set(const ::sff::INFO &info)
/*----------------------------------------------------------------------*/
......
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