<div dir="ltr">Hi Stuart,<div><br></div><div>I think if the vex file is wrong (it says Mark5B for a couple of stations when they were actually VDIF) you might need to actually update the vex file.  Can you do that, or is that a bit beyond your vex hacking skills?</div><div><br></div><div>Cheers,</div><div>Adam</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 28 Feb 2020 at 10:26, Stuart Weston via Difx-users <<a href="mailto:difx-users@listmgr.nrao.edu">difx-users@listmgr.nrao.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div bgcolor="white" lang="EN-NZ">
<div class="gmail-m_-6735067503608907487WordSection1">
<p class="MsoNormal"><span style="color:windowtext">>> </span>Which in v2d would translate to "format=VDIFL/8016/2"<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">So the vex file has MARK5B, but two stations recorded VDIF. Drudg knowing the station setup has put the appropriate commands in the prc file to record VDIF.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Anyway I ran through the setup and tried to run it and “errmon” tells me for these files:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal" style="margin-left:36pt"><span style="color:windowtext">This does not look like a valid Mark5B data.<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:36pt"><span style="color:windowtext"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:windowtext">Fair enough, I see its trying to use “format=Mark8-128-2-2” and it should be “format=VDIF_8000-128-2-2” (if I use m5spec on the vdif files).
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:windowtext"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:windowtext">So I try the above line in the v2d files
</span>"format=VDIFL/8016/2" for the appropriate stations<span style="color:windowtext">, and now when I run vex2difx I get :<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:windowtext"><u></u> <u></u></span></p>
<p class="MsoNormal" style="margin-left:36pt"><span style="color:windowtext">Error: cannot change format to VDIF from any other non-VDIF format (antenna WA) with the .v2d file.  You need to change the .vex file.<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:36pt"><span style="color:windowtext"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:windowtext">Hummm, a bit of a catch 22 here ?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:windowtext"><u></u> <u></u></span></p>
<div>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Tahoma,sans-serif;color:windowtext">Stuart Weston<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Tahoma,sans-serif;color:windowtext"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Tahoma,sans-serif;color:windowtext">Mobile: 021 713062<br>
<br>
Skype: stuart.d.weston<br>
Email:  <a href="mailto:stuart.weston@aut.ac.nz" target="_blank">stuart.weston@aut.ac.nz</a><br>
<br>
<a href="http://www.atnf.csiro.au/people/Stuart.Weston/index.html" target="_blank">http://www.atnf.csiro.au/people/Stuart.Weston/index.html</a><br>
<br>
Software Engineer<br>
Institute for Radio Astronomy & Space Research (IRASR)<br>
School of Engineering, Computer and Mathematical Sciences<br>
Faculty of Design and Creative Technologies<br>
Auckland University of Technology, New Zealand.<br>
<br>
<a href="http://www.irasr.aut.ac.nz/" target="_blank">http://www.irasr.aut.ac.nz/</a><u></u><u></u></span></p>
</div>
<p class="MsoNormal"><span style="color:windowtext"><u></u> <u></u></span></p>
<div>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="color:windowtext">From:</span></b><span lang="EN-US" style="color:windowtext"> Jan Wagner <<a href="mailto:jwagner105@googlemail.com" target="_blank">jwagner105@googlemail.com</a>>
<br>
<b>Sent:</b> Thursday, 27 February 2020 11:58 PM<br>
<b>To:</b> Stuart Weston <<a href="mailto:stuart.weston@aut.ac.nz" target="_blank">stuart.weston@aut.ac.nz</a>><br>
<b>Subject:</b> Re: [Difx-users] Question - correlate near field sources ie Spacecraft<u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">Hi Stuart,<span><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">due to the strange VDIF format error you could use DiFX utility "printVDIFheader" to verify what the headers of vygr2_wa_no0108 actually say.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Maybe the "legacy" flag is set ('L' column in printVDIFheader output would be all '1').
<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">In that case the frame header size would then be 16 instead of 32 bytes, and format VDIFL instead of VDIF, with a format string *possibly* of "VDIFL_8000-128-2-2". Which in v2d would translate to "format=VDIFL/8016/2".<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">And as Simone already pointed out, "vsum -s <vdif files>" could be a more convenient way of generating a file list for a set of VDIF files. Vsum autodetects the nasty details of the VDIF format.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Good luck!<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Jan<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Am 27.02.2020 um 04:05 schrieb Stuart Weston via Difx-users:<u></u><u></u></p>
</div>
<blockquote style="margin-top:5pt;margin-bottom:5pt">
<p class="MsoNormal">Well two of you asked for updates <span style="font-family:"Segoe UI Emoji",sans-serif">
😊</span> Progress so far …<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"><b><span style="font-size:12pt">directory2filelist:</span></b><u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">First issue, directory2filelist doesn’t like VDIF files (Which I have for Wa and Ti) :<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt">oper@ww-flexbuf-01 DiFX-2.5.2 vygr2> directory2filelist /raid0/etransfer/wa/vygr2_wa_no0108 VDIF_8000-128-2-2<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt">VDIF Warning: Changing frameheadersize from 32 to 16<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt">VDIF Warning: Changing databytesperpacket from 8000 to 124473216<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt">Segmentation fault<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">It is even more unhappy with “vbs_fs” for merging jive5ab vdif chunks into one logical file at the fuse mount point (PS: I now use “vbs_fs” for DSPSR with Williem for VDIF Single Dish pulsar data).<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"><b><span style="font-size:12pt">v2d :</span></b><u></u><u></u></p>
<p class="MsoNormal"><b><span style="font-size:12pt"> </span></b><u></u><u></u></p>
<p class="MsoNormal">Also for v2d ephemFile has to be either tle (Two-Line elements) or bsp (which I assume means BaryCenter on 399 Earth, our observing platform). Now NASA HORIZONS doesn’t seem to produce a valid file acceptable to SPICE. So goto NASA NAIF
 which has some “old” archived bsp files but nothing current.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">I was trying to use the HORIZONS ID “Voyager_2” , that didn’t work :<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt">================================================================================<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt"> <u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt">Toolkit version: N0066<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt"> <u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt">SPICE(IDCODENOTFOUND) --<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt"> <u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt">The target, 'Voyager_2', is not a recognized name for an ephemeris object. The<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt">cause of this problem may be that you need an updated version of the SPICE<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt">Toolkit. Alternatively you may call SPKEZ directly if you know the SPICE ID<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt">codes for both 'Voyager_2' and '399'<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt"> <u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt">A traceback follows.  The name of the highest level module is first.<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt">spkezr_c --> SPKEZR<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt"> <u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt">Oh, by the way:  The SPICELIB error handling actions are USER-TAILORABLE.  You<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt">can choose whether the Toolkit aborts or continues when errors occur, which<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt">error messages to output, and where to send the output.  Please read the ERROR<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt">"Required Reading" file, or see the routines ERRACT, ERRDEV, and ERRPRT.<u></u><u></u></p>
<div style="border-top:none;border-right:none;border-left:none;border-bottom:2.25pt double windowtext;padding:0cm 0cm 1pt">
<p class="MsoNormal" style="margin-left:36pt"> <u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-left:36pt"> <u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Anyway under the NAIF archive there is a “voyager_2.ST+1992_m05208u.merged.bsp” which goes to “2021 JAN05”. Now you need NAIF ID 3 for the Earth Barycenter (our observation platform) and NAIF ID -32 for Voyager 2<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt">SOURCE VGR2 {<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt">ephemObject = -32<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt">ephemFile   = voyager_2.ST+1992_m05208u.merged.bsp<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt">}<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Now v2d works, there are some warnings about stop/start times for the vdif files.
<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt">oper@ww-flexbuf-01 DiFX-2.5.2 vygr2> vex2difx --force vygr2.v2d<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt">Warning: Filelist file vygr_atca.filelist was a listing with no start/stop times.<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt">Note: Future versions of vex2difx may stop allowing file lists without start/stop times.  Filelists for VDIF and Mark5B files with start/stop times can be generated with "vsum -s" and "m5bsum -s" respectively. 
 These times allow vex2difx to properly assign data to jobs and is especially important in cases where multiple jobs are generated per project.<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt">Warning: Filelist file vygr_dss.filelist was a listing with no start/stop times.<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt">Warning: Filelist file vygr_wa.filelist was a listing with no start/stop times.<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt">start date: 2020y015d08h00m00s<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt">stop date: 2020y015d12h00m00s<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt">Warning: no clock values for antenna AT .<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt">Warning: no clock values for antenna WA .<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt">Warning: no clock values for antenna TI .<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt">Note: Proceeding even though there were 3 warnings.<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt">Warning: Job vygr2 1: no clock offsets being applied to antenna AT<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt">          Unless this is intentional, your results will suffer!<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt">Warning: Job vygr2 1: no clock offsets being applied to antenna TI<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt">          Unless this is intentional, your results will suffer!<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt">Warning: Job vygr2 1: no clock offsets being applied to antenna WA<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt">          Unless this is intentional, your results will suffer!<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt">Warning: Job vygr2 2: no clock offsets being applied to antenna AT<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt">          Unless this is intentional, your results will suffer!<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt">Warning: Job vygr2 2: no clock offsets being applied to antenna TI<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt">          Unless this is intentional, your results will suffer!<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt">Warning: Job vygr2 2: no clock offsets being applied to antenna WA<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt">          Unless this is intentional, your results will suffer!<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt"> <u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt">2 job(s) created.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">I’ll come back to the <b>clock offsets</b> next as I do have those to add, I’ll append a $CLOCK section shortly.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">I am just working my way through step by step, where each step will have several iterations to sort things out.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Tahoma,sans-serif">Stuart Weston</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Tahoma,sans-serif"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Tahoma,sans-serif">Mobile: 021 713062<br>
<br>
Skype: stuart.d.weston<br>
Email:  <a href="mailto:stuart.weston@aut.ac.nz" target="_blank">stuart.weston@aut.ac.nz</a><br>
<br>
<a href="http://www.atnf.csiro.au/people/Stuart.Weston/index.html" target="_blank">http://www.atnf.csiro.au/people/Stuart.Weston/index.html</a><br>
<br>
Software Engineer<br>
Institute for Radio Astronomy & Space Research (IRASR)<br>
School of Engineering, Computer and Mathematical Sciences<br>
Faculty of Design and Creative Technologies<br>
Auckland University of Technology, New Zealand.<br>
<br>
<a href="http://www.irasr.aut.ac.nz/" target="_blank">http://www.irasr.aut.ac.nz/</a></span><u></u><u></u></p>
</div>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> Stuart Weston
<br>
<b>Sent:</b> Thursday, 27 February 2020 1:51 PM<br>
<b>To:</b> <a href="mailto:difx-users@listmgr.nrao.edu" target="_blank">difx-users@listmgr.nrao.edu</a><br>
<b>Cc:</b> Oleg Titov <a href="mailto:Oleg.Titov@ga.gov.au" target="_blank"><Oleg.Titov@ga.gov.au></a><br>
<b>Subject:</b> Question - correlate near field sources ie Spacecraft</span><u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">I have some VLBI on Voyager to correlate.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">So had a read of : <u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"><a href="https://www.atnf.csiro.au/vlbi/dokuwiki/doku.php/difx/spacecraft" target="_blank">https://www.atnf.csiro.au/vlbi/dokuwiki/doku.php/difx/spacecraft</a><u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">I have setup SPICE <u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Anyone done this before and any tip’s, help or suggestions ?<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">The ephemFile as that as obtained say from <a href="https://ssd.jpl.nasa.gov/horizons.cgi" target="_blank">
https://ssd.jpl.nasa.gov/horizons.cgi</a> ?<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Tahoma,sans-serif">Stuart Weston</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Tahoma,sans-serif"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Tahoma,sans-serif">Mobile: 021 713062<br>
<br>
Skype: stuart.d.weston<br>
Email:  <a href="mailto:stuart.weston@aut.ac.nz" target="_blank">stuart.weston@aut.ac.nz</a><br>
<br>
<a href="http://www.atnf.csiro.au/people/Stuart.Weston/index.html" target="_blank">http://www.atnf.csiro.au/people/Stuart.Weston/index.html</a><br>
<br>
Software Engineer<br>
Institute for Radio Astronomy & Space Research (IRASR)<br>
School of Engineering, Computer and Mathematical Sciences<br>
Faculty of Design and Creative Technologies<br>
Auckland University of Technology, New Zealand.<br>
<br>
<a href="http://www.irasr.aut.ac.nz/" target="_blank">http://www.irasr.aut.ac.nz/</a></span><u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"><span><br>
<br>
<u></u><u></u></span></p>
<pre>_______________________________________________<u></u><u></u></pre>
<pre>Difx-users mailing list<u></u><u></u></pre>
<pre><a href="mailto:Difx-users@listmgr.nrao.edu" target="_blank">Difx-users@listmgr.nrao.edu</a><u></u><u></u></pre>
<pre><a href="https://listmgr.nrao.edu/mailman/listinfo/difx-users" target="_blank">https://listmgr.nrao.edu/mailman/listinfo/difx-users</a><u></u><u></u></pre>
</blockquote>
<p><u></u> <u></u></p>
</div>
</div>

_______________________________________________<br>
Difx-users mailing list<br>
<a href="mailto:Difx-users@listmgr.nrao.edu" target="_blank">Difx-users@listmgr.nrao.edu</a><br>
<a href="https://listmgr.nrao.edu/mailman/listinfo/difx-users" rel="noreferrer" target="_blank">https://listmgr.nrao.edu/mailman/listinfo/difx-users</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr" style="font-size:12.8px"><div dir="ltr" style="font-size:12.8px"><div dir="ltr" style="font-size:12.8px"><div dir="ltr" style="font-size:12.8px"><div dir="ltr" style="font-size:12.8px">!=============================================================!<br><div dir="ltr" style="font-size:12.8px">A/Prof. Adam Deller         </div><div dir="ltr" style="font-size:12.8px">ARC Future Fellow</div></div><div style="font-size:12.8px">Centre for Astrophysics & Supercomputing </div><div dir="ltr" style="font-size:12.8px">Swinburne University of Technology    <br>John St, Hawthorn VIC 3122 Australia</div><div style="font-size:12.8px">phone: +61 3 9214 5307</div><div style="font-size:12.8px">fax: +61 3 9214 8797</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">office days (usually): Mon-Thu<br>!=============================================================!</div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>