Commit 1126cae0 authored by thomas.forbriger's avatar thomas.forbriger
Browse files

croposp [WP]: add debug output

parent a7e5bb3a
...@@ -203,7 +203,7 @@ int main(int iargc, char* argv[]) ...@@ -203,7 +203,7 @@ int main(int iargc, char* argv[])
{ {
CROPOSP_VERSION "\n" CROPOSP_VERSION "\n"
"usage: croposp [-verbose] [-itype f] [-trim] [-datetolerance t]" "\n" "usage: croposp [-verbose] [-itype f] [-trim] [-datetolerance t]" "\n"
" [-label p] [-overwrite]" "\n" " [-label p] [-overwrite] [-DEBUG]" "\n"
" [-psd f] [-npsd f] [-transfer f] [-coherency f]" "\n" " [-psd f] [-npsd f] [-transfer f] [-coherency f]" "\n"
" file [t:sel] [f:format] [n:label] [file [t:s] [f:f] [n:l]] [...]\n" " file [t:sel] [f:format] [n:label] [file [t:s] [f:f] [n:l]] [...]\n"
" or: croposp --help|-h" "\n" " or: croposp --help|-h" "\n"
...@@ -463,6 +463,8 @@ int main(int iargc, char* argv[]) ...@@ -463,6 +463,8 @@ int main(int iargc, char* argv[])
opt.compute_coherency) opt.compute_coherency)
{ {
psd::DPSDComputer psd_computer; psd::DPSDComputer psd_computer;
psd_computer.set_debug(opt.debug);
psd_computer.set_verbose(opt.verbose);
TCollection::const_iterator i_series=collection_of_series.begin(); TCollection::const_iterator i_series=collection_of_series.begin();
TMetaVector::const_iterator i_meta=vector_of_metadata.begin(); TMetaVector::const_iterator i_meta=vector_of_metadata.begin();
while (i_series != collection_of_series.end() && while (i_series != collection_of_series.end() &&
...@@ -471,6 +473,10 @@ int main(int iargc, char* argv[]) ...@@ -471,6 +473,10 @@ int main(int iargc, char* argv[])
psd::TDISeries interval_series; psd::TDISeries interval_series;
interval_series.data=*i_series; interval_series.data=*i_series;
interval_series.interval=i_series->header.dt; interval_series.interval=i_series->header.dt;
TFXX_debug(opt.debug, "croposp (compute PSD)",
TFXX_value(i_series->header.dt)
<< " "
<< TFXX_value(interval_series.interval));
psd::TDISeries psd=psd_computer.psd(interval_series); psd::TDISeries psd=psd_computer.psd(interval_series);
if (i_series==collection_of_series.begin()) if (i_series==collection_of_series.begin())
......
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