Closed marcinglowacki closed 4 months ago
Just digging into the analysis code. We calculate the spectrum when we update the stats, but we don't pass it back to Unity. That would be a trivial fix, and then @fvitello would need to plot it.
Thirded/fourthed by other people who tried out the system at UWA last week.
Linked with #276.
@marcinglowacki would this be based on the currently cropped region?
So if we are cropped to a 10x10x10 subcube of a 100x100x100 cube, we would display a spectrum over a range of 10 channels with each value being the sum of the 10x10 slices?
@CosmicElysium Yes, that would be right. Better yet would be ensuring the units are in Jy (or Jy/beam I suppose) for the spectrum.
@CosmicElysium Yes, that would be right. Better yet would be ensuring the units are in Jy (or Jy/beam I suppose) for the spectrum.
Great. Is there a preferred format to export? CSV, votable, etc?
Also, would this only be useful if any cropped subcube displays the spectral profile? Or could it be just the calculated masked sources?
The latter is trivial to implement as the mask stats calculation is already including the spectral profile. However, if we wanted to do this for any cropped region (similar to the moment map) it would be a bit more work.
CSV would be fine for format.
I wager it could be useful for cropped subcubes, e.g. if someone has an existing mask from e.g SoFiA that is actually two galaxies merging or the like, so one wants to view the spectrum for part of that 'source', and while one could paint in a new mask that does make it more tedious. Spectra for masked sources is a good first step though!
Alex,
I mentioned this on Slack (in part), but you need to make sure you clearly document how you are forming the spectrum. Summing it is fine (same as an average), but usually I want to see an integrated spectrum (accounting for the area to convert from Jy/beam to Jy) which would be the same calculation that CARTA does to get "flux density". Of course, cubes can use Jy/bm as a unit, but may use K instead. Just be sure to take the BUNIT value when working with the spectrum.
--D.J.
On Sun, May 26, 2024 at 5:35 AM Marcin Glowacki @.***> wrote:
CSV would be fine for format.
I wager it could be useful for cropped subcubes, e.g. if someone has an existing mask from e.g SoFiA that is actually two galaxies merging or the like, so one wants to view the spectrum for part of that 'source', and while one could paint in a new mask that does make it more tedious. Spectra for masked sources is a good first step though!
— Reply to this email directly, view it on GitHub https://github.com/idia-astro/idia_unity_vr/issues/247#issuecomment-2132049556, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEAKGLRAX5O6DBIAQB7CAYDZEFKBBAVCNFSM5JBGMVKKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMJTGIYDIOJVGU3A . You are receiving this because you are subscribed to this thread.Message ID: @.***>
In the same window as where the moment 0 and 1 images are displayed for the cube/subcube, a spectrum would be very useful to display and be able to save for any subregion made and plotted (ala CARTA-style spectral profile, for instance).
Seconded by Karen LW (had a VR session last week).