Ryan, The -c option does what it was designed to do: "-c write .c2 file at the end of the first pass". It writes a .c2 file after signals decoded in the first pass have been subtracted. This .c2 file is useful for studying the effectiveness of signal subtraction, i.e. to study the residuals left after subtracting signals. It can also be re-analyzed by wsprd to study the effectiveness of a 2nd pass over the data and then again to do a 3rd pass, etc.
If you need a .wav to .c2 converter, you might consider using the routines provided with wsjtx to create one. WSJT-X does the conversion from 12000 samples/sec to 375 samples/sec in src/widgets/mainwindow.cpp by calling the fortran routines in these files: /src/lib/wspr_downsample.f90:q /src/lib/savec2.f90 Subroutine wspr_downsample() downsamples from 12000 integer samples/sec to 1500 complex samples/sec and function savec2() downsamples from 1500 to 375 complex samples/s and writes out the .c2 file. Steve k9an > On Jul 18, 2023, at 4:07 PM, Tolboom, Ryan via wsjt-devel > <wsjt-devel@lists.sourceforge.net> wrote: > > Good Evening, > > When using wsprd in multi-pass mode (no '-s' option) and passing it > the '-c' option to write a c2 file, it > writes the c2 file at the end of the main loop on the first pass AFTER > it subtracts out the decoded > candidates. This means if you're using the c2 file to do analysis of > the IQ data that was decoded you > don't have the actual signals available (at least the ones decoded on > the first pass). > > Is there any particular reason the c2 file is written after the first > pass? The only real changes I noted > to idat and qdat within the main loop were signals being subtracted. > Could it be written before the > main loop after idat and qdat are created from a wav or c2 file? If > so, I've attached a patch for > wsprd.c that moves the logic that calls writec2file to right before > the main loop. > > Thanks for your time, > > Ryan Tolboom N2BP > <c2_before_subtract.patch>_______________________________________________ > wsjt-devel mailing list > wsjt-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wsjt-devel
_______________________________________________ wsjt-devel mailing list wsjt-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wsjt-devel