VisIVOLab / ViaLacteaVisualAnalytics

ViaLactea Visual Analytics combines different types of visualization to analyze correlations between different kinds of data, such as 2D intensity images with 3D molecular spectral cubes.
Apache License 2.0
6 stars 1 forks source link

Save Moment Maps to file #127

Closed gtudisco closed 6 months ago

gtudisco commented 7 months ago

Currently moment maps are generated and visualized on-the-fly. The user may also want to export them to file (in FITS format).

milebene commented 6 months ago

The header of the fits file of the moment map must be produced. The header must be a copy of the header of the cube with the following modification:

  1. New line(S) in the HISTORY must be added telling that is a moment # map
  2. keyword NAXIS must be change to '2'
  3. all the keywords related to the third axis must be deleted
  4. BTYPE and BUNIT must be changed depending on the order of the moment, in particular Moment 0 – the integrated value of the spectrum BUNIT will be BUNIT of the original cube * CUNIT3 of the original cube Moment 1 – the intensity weighted coordinate. BUNIT will be CUNIT3 of the cube Moment 2 - the intensity weighted dispersion of the coordinate . BUNIT will be CUNIT3 of the original cube Moment 6 – the root mean square of the spectrum. BUNIT will be the same BUNIT of the original cube Moment 8 - the maximum value of the spectrum. BUNIT will be the same BUNIT of the original cube Moment 10 – the minimum value of the spectrum. BUNIT will be the same BUNIT of the original cube