[SCIDB-81] select objects in a circular/rectangular region Created: 26/Mar/20  Updated: 17/Aug/20  Resolved: 17/Aug/20

Status: Done
Project: Science Database
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Story Priority: Normal
Reporter: Masayuki Tanaka Assignee: michitaro
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: hscMap module
Reviewers: Masayuki Tanaka

 Description   

hscMap can give users IDs of clicked objects on hscMap.  Instead of clicking individual objects, let users select objects in a circular/rectangular region.



 Comments   
Comment by michitaro [ 18/May/20 ]

I think this issue should be in elip 'hscMap module'.

Comment by michitaro [ 19/May/20 ]

We can access fov and rectangular selection through `.fov` and `.`rect_selection` like so:

import hscmap

w = hscmap.Window()
print(w.fov.cone_sql())
print(w.rect_selection.sql())

https://drive.google.com/open?id=1HRivWzlHITTNntjUfBOAPoZyltG9wfhe&authuser=koike.michitaro.md@alumni.tsukuba.ac.jp&usp=drive_fs

Comment by michitaro [ 30/Jun/20 ]

Tanaka-san said at slack:

About one of your tasks to pick objects from a circular/rectangular region.  Let me explain step by step.
1 - select objects in, e.g., COSMOS from the database
2 - mark the selected objects in hscMap
3 - if you click an object on hscMap, you can get its object ID back in Compute
4 - Currently, there is no way to select multiple objects, and this is what we want to implement.  A simple way to select multiple objects wold be to define a circular/rectangular region on hscMap, and get all objects in that region.
Is this clear?

Comment by michitaro [ 01/Jul/20 ]

I think the requirements of this issue can be covered by this issue.
https://pfspipe.ipmu.jp/jira/browse/SCIDB-82

To select objects spatially is task of numpy or SQL rather than hscMap's one.

res = hscdata.sql.query('SELECT...')
where = (10 <= res.ra) & (11 < res.ra)
res = res[where]

https://pfspipe.ipmu.jp/jira/browse/SCIDB-82 provides more visual method to select objects.

Comment by michitaro [ 17/Aug/20 ]

This issue can be closed because it can be covered with "clickable object catalog", so we can close this ticket.

Generated at Sat Feb 10 16:46:20 JST 2024 using Jira 8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b.