CARTAvis / carta-backend

Source code repository for the backend component of CARTA, a new visualization tool designed for the ALMA, the VLA and the SKA pathfinders.
https://cartavis.github.io/
GNU General Public License v3.0
22 stars 11 forks source link

[enhancement] support setting a new RESTFRQ for moment image generation #1385

Closed kswang1029 closed 2 months ago

kswang1029 commented 4 months ago

This is a feature request from multiple users.

Currently we can set a new RESTFRQ in the image list widget so that the spectral axis in the spectral profiler widget can be recalculated to match spectral features in the velocity space. However, when this is applied and user selected a range of velocity to make a moment image (esp. moment 1), the resulting velocity values in the moment 1 image are not calculated using the newly defined RESTFRQ. This is currently a design defect.

The proposed changes are:

(FROTNEND) add a new input field as "Rest frequency" in the moment generator dialog. Its value is sync'ed with the value in the settings dialog of the image list widget. (FRONTEND, BACKEND, PROTOBUF) modify protobuf message to include "rest frequency" (BACKEND) using the new "rest frequency" to compute moment images.