[Difx-users] RULE and SETUP section name issue

Adam Deller adeller at astro.swin.edu.au
Wed May 16 10:19:30 EDT 2018


Hi Jan,

Indeed, the reason why the setup produced by sched in the tv2d files is
called default is so it is applied to every scan.  sched assumes you will
want to correlate everything.

This is probably a biased sampling, but I find calling the default setup
"default" fairly reasonable.  The situation where it doesn't produce your
expected result is the one where:
1) you have a setup called default
2) you have one or more RULE sections that point at the default setup, and
3) collectively, the RULEs do not cover all the scans (and so some scans
will get defaulted even though you might have thought you were being
explicit in your selection)

The logic to determine if this was the case might be a little convoluted.
Perhaps a simple warning print statement in the case that a rule with
non-zero selection criteria references the default setup would suffice.
Something along the lines of "Note: RULE xxx references the default setup
explicitly, but remember that any scans not matching other RULEs will also
be correlated with the default setup."

Cheers,
Adam

On 16 May 2018 at 21:49, Jan Wagner <jwagner105 at googlemail.com> wrote:

> Thanks Walter, Mike!
>
> Lol so you too Mike! Yeah the logic is confusing indeed. A blank
> name for SETUP, if it doesn't break the parser, would I think be
> more intuitive for a setup that should be applied to everything not
> covered by any RULE.
>
> Anyway, well, I can see how a special 'default' SETUP might be a
> useful feature. And looks like it is actually documented so I
> should've just RTFM earlier   (vex2difx wiki: "A setup with the
> special name default will be applied to any scans not otherwise
> assigned to setups by rule sections")
>
> Btw, I didn't choose the unfortunate name of 'default' myself.
>
> It comes from the Template v2d (*.tv2d) generated by sked(?) and
> distributed with VLBA log files etc on the archive server.
>
> Probably there is some good reason for the 'default' in the *.tv2d
> as well.
>
> cheers,
> Jan
>
> Am 16.05.2018 um 12:54 schrieb Mike Titus:
>
> > Jan,
> >
> > Just to say that misery loves company - I ran into the same
> > problem a couple weeks ago, and it took me a while to figure out
> > how to get around it.  I eventually solved it exactly the same way
> > you did i.e. re-naming the "SETUP" section to something other than
> > "default" and pointing to it in the RULE section.  In the end I
> > decided not to report it because I figured it was just me
> > mis-interpreting the rules of the RULE section, and it seems
> > that's the case given Walter's response.
> >
> > Given that we both ran into it however, I think the logic is
> > confusing and probably should be changed.
> >
> > Mike
> >
> >
>
> _______________________________________________
> Difx-users mailing list
> Difx-users at listmgr.nrao.edu
> https://listmgr.nrao.edu/mailman/listinfo/difx-users
>



-- 
!=============================================================!
Dr. Adam Deller
ARC Future Fellow, Senior Lecturer
Centre for Astrophysics & Supercomputing
Swinburne University of Technology
John St, Hawthorn VIC 3122 Australia
phone: +61 3 9214 5307
fax: +61 3 9214 8797

office days (usually): Mon-Thu
!=============================================================!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listmgr.nrao.edu/pipermail/difx-users/attachments/20180517/788036b6/attachment.html>


More information about the Difx-users mailing list