Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-13989: FOV and cube issues #576

Merged
merged 2 commits into from Apr 4, 2018
Merged

DM-13989: FOV and cube issues #576

merged 2 commits into from Apr 4, 2018

Conversation

robyww
Copy link
Contributor

@robyww robyww commented Apr 3, 2018

Do the following:

  • Cube: fixed the bugs related to moving between HiPS cubes and regular hips
  • Cube: honor the data_cube_* properties and show information about the 3rd dimension
  • Use: value = crval3 + (cubeIdx - crpix3 ) * cdelt3
  • Make field of view and target optional
  • Use the HiPS properties if they are not specified.
  • If neither are specified show 180 degrees at 0,0

To Test:

  • bring up a cube and switch to a regular images, there should be no issues
  • bring up a cube, by the controller should be information about the 3rd dimension
  • bring a up HiPS without enter fov or target, (DSS is a good example). It the properties are specified it will set the FOV and the target

 - Cubes: fixed the bugs related to moving between HiPS cubes and regular hips
 - Cubes: honor the data_cube_* properties and show information about the 3rd dimension
 - Use: value = crval3 + (cubeIdx - crpix3 ) * cdelt3
 - Make field of view and target optional
 - Use the HiPS properties if they are not specified.
 - If neither are specified show 180 degrees at 0,0
@robyww robyww self-assigned this Apr 3, 2018
@robyww robyww requested a review from cwang2016 April 3, 2018 23:07
const cdelt3= Number(data_cube_cdelt3);
if (isNaN(crpix3) || isNaN(crval3) || isNaN(cdelt3)) return '';
const value = crval3 + ( plot.cubeIdx - crpix3 ) * cdelt3;
return `${numeral(value).format('0.00000')} ${data_cube_bunit3}`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for cube case like 'CALIFA DR2 V500...', 'data_cube_bunit3' is undefined, and the display shows nothing.
for cube case like 'HI4PI HI Survey (individual cubes)', 'data_cube_bunit3' is defined as 'null', and the display shows 'null'. Does 'null' mean some unit in default? or could the display also show nothing instead of 'null'?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is because data_cube_bunit3 is the string "null". I think we are doing the right think by the standard. However, I think I will just look for the string 'null' and ignore it.

@cwang2016
Copy link
Contributor

Works well except the minor concern added in previous comment.

@robyww robyww merged commit 180048f into dev Apr 4, 2018
@robyww robyww deleted the dm-13989-cube-and-fov branch April 4, 2018 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants