Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-10033

qserv_areaspec_ellipse incorrectly uses semi-major/minor axis parameters

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: Qserv
    • Labels:

      Description

      qserv_areaspec_ellipse has semi-major and semi-minor axis parameters. These were documented to be in arcsec, but the code appears to instantiate a sphgeom::Ellipse assuming the values are in degrees. I have just changed the documentation to correspond to this, but I think that is actually wrong, because the scisql UDF that is added to the WHERE clause requires those parameters to be in arcsec.

      So I think the correct fix is to change the documentation back to arcsec and have the sphgeom::Ellipse constructed using arcsec rather than degrees.

        Attachments

          Issue Links

            Activity

            Hide
            npease Nate Pease [X] (Inactive) added a comment -

            Andy, can you take a look (next week)?

            Show
            npease Nate Pease [X] (Inactive) added a comment - Andy, can you take a look (next week)?
            Hide
            gpdf Gregory Dubois-Felsmann added a comment - - edited

            I'm not sure what "make consistent ... in all layers above" means: "make above layers consistent with the degree/arcsec split in the scisql_ functions", or "make the circle and ellipse size parameters consistent with each other at every layer except scisql_ "?  If it's the latter, then to make sure I've understood correctly, is the proposed answer w.r.t. size parameters:

            • scisql_* : circle: degrees, ellipse: arcseconds
            • qserv_* : circle: degrees, ellipse: degrees
            • ADQL: CIRCLE() function: degrees; REGION() function's quasi-STC-S (if/when supported): degrees for both circles and ellipses

            ?

            Show
            gpdf Gregory Dubois-Felsmann added a comment - - edited I'm not sure what "make consistent ... in all layers above" means: "make above layers consistent with the degree/arcsec split in the scisql_ functions", or "make the circle and ellipse size parameters consistent with each other at every layer except scisql_ "?  If it's the latter, then to make sure I've understood correctly, is the proposed answer w.r.t. size parameters: scisql_* : circle: degrees, ellipse: arcseconds qserv_* : circle: degrees, ellipse: degrees ADQL: CIRCLE() function: degrees;  REGION() function's quasi-STC-S (if/when supported): degrees for both circles and ellipses ?
            Hide
            fritzm Fritz Mueller added a comment - - edited

            Gregory Dubois-Felsmann not quite. The proposed solution is:

            • scisql_: circle radius: degrees, ellipse semi-axes: arcseconds (per published docs, and same as it ever was)
            • qserv_: exact same as scisql_, now in word and deed

            ADQL: degrees everywhere, per spec

            Show
            fritzm Fritz Mueller added a comment - - edited Gregory Dubois-Felsmann not quite. The proposed solution is: scisql_ : circle radius: degrees, ellipse semi-axes: arcseconds (per published docs, and same as it ever was) qserv_ : exact same as scisql_ , now in word and deed ADQL: degrees everywhere, per spec
            Hide
            fritzm Fritz Mueller added a comment -

            (The point of the change being to make scisql_ and qserv_ congruent, and remove some lies in the docs and bugs in the qserv code, while leaving scisql_ alone.)

            Show
            fritzm Fritz Mueller added a comment - (The point of the change being to make scisql_ and qserv_ congruent, and remove some lies in the docs and bugs in the qserv code, while leaving scisql_ alone.)
            Hide
            salnikov Andy Salnikov added a comment -

            Looks good, couple of minor comments on PR (assuming I found a correct PR on github, JIRA is still ignoring qserv PRs).

            Show
            salnikov Andy Salnikov added a comment - Looks good, couple of minor comments on PR (assuming I found a correct PR on github, JIRA is still ignoring qserv PRs).

              People

              Assignee:
              npease Nate Pease [X] (Inactive)
              Reporter:
              ktl Kian-Tat Lim
              Reviewers:
              Andy Salnikov
              Watchers:
              Andy Salnikov, Christine Banek, Colin Slater, David Shupe, Fritz Mueller, Gregory Dubois-Felsmann, Kenny Lo, Kian-Tat Lim, Nate Pease [X] (Inactive), Tatiana Goldina
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Jenkins

                  No builds found.