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

Implement MOC overlay

    XMLWordPrintable

    Details

    • Story Points:
      20
    • Sprint:
      SUIT Sprint 2018-06, SUIT Sprint 2018-07, SUIT Sprint 2018-08
    • Team:
      Science User Interface

      Description

      Implement the visual display of MOC data in Firefly

      Initially, display the HEALPixels actually identified in the MOC (which is just a list of HEALPixel IDs in NUNIQ format) as polygons overlaid on a sky display in Firefly. Include this in the usual Firefly layer control behavior.

      • We would like multiple MOCs to be able to be displayed at once, with selectable colors used.
      • It may be useful to enable the control of both polygon boundary colors, transparency, etc. as well as polygon fill with adjustable transparency.
      • Be able to switch between outline (wireframe) and transparent color fill
      • MOC show as a HiPS layer with checkbox off, should lazy load with any HiPS

       

      Implementation technical Notes:

      • We should read the table using our normal fits table reading and put all the rows (only one column) into the store.
      • Each number (NUNIQ) can be translated to a HealPix level and number and then to 4 WorldPt corners using functions in HipsUtil and HealpixIndex
      • We need to make new DrawObject will need to be created that can draw a filled polygon, fill with a transparent color for overlaying. Possibly we could modify FootprintObj or MarkerFootprintObj. 
      • If the points reduce to a single point (based on zoom level) it should draw a single point.
      • The drawing layer should be able to change the color in our standard way.

       

        Attachments

          Issue Links

            Activity

            Hide
            xiuqin Xiuqin Wu [X] (Inactive) added a comment -

            The work load was under estimated. Also we need to refactor some code to improve the performance. I changed the story point to 20. 

             

            Show
            xiuqin Xiuqin Wu [X] (Inactive) added a comment - The work load was under estimated. Also we need to refactor some code to improve the performance. I changed the story point to 20.   
            Hide
            cwang Cindy Wang [X] (Inactive) added a comment -

            In order to improve the performance (display speed and quality) on MOC display, the implementation was mainly updated by,

            • MOC tiles are drawn as a polygon object. The location and the number of the points representing each polygon are computed in order to show the tiles smoothly on HiPS plot shown at different pixel resolution.  
            • When the amount of MOC tiles becomes like hundreds of thousands, the computation of MOC tiles blocks the interaction with the UI.  This issue was resolved mainly by:
              • Based on the display resolution, the bigger tile at lower order is found to cover the tiles at higher order. 
              • Refactor the code to do the MOC computation in async style in order not to prevent the interaction with the UI. 
              • Using some optimization method to improve the canvas drawing speed. 
            Show
            cwang Cindy Wang [X] (Inactive) added a comment - In order to improve the performance (display speed and quality) on MOC display, the implementation was mainly updated by, MOC tiles are drawn as a polygon object. The location and the number of the points representing each polygon are computed in order to show the tiles smoothly on HiPS plot shown at different pixel resolution.   When the amount of MOC tiles becomes like hundreds of thousands, the computation of MOC tiles blocks the interaction with the UI.  This issue was resolved mainly by: Based on the display resolution, the bigger tile at lower order is found to cover the tiles at higher order.  Refactor the code to do the MOC computation in async style in order not to prevent the interaction with the UI.  Using some optimization method to improve the canvas drawing speed. 

              People

              Assignee:
              cwang Cindy Wang [X] (Inactive)
              Reporter:
              roby Trey Roby
              Reviewers:
              Trey Roby
              Watchers:
              Cindy Wang [X] (Inactive), Emmanuel Joliet, Gregory Dubois-Felsmann, Trey Roby, Xiuqin Wu [X] (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: