Volume (invoked from 2d context menu)

Gives the sum of counts of a marked region. Y-axis. There are 3 possibilities,
(a) No boundary was marked: The volume is of the entire 2d spectrum.
(b) A rectangular boundary was drawn: The volume is of the rectangular box.
(c) A banana gate (ploygonal shape) was drawn (see BGate): The volume is of the banana gate.

If a box is visible on the spectrum window, LAMPS computes the box volume. If a banana gate is visible on the spectrum window, the volume is that of the banana gata. If both are visible, the volume is of the banana gate. However, this is made clear in the output appearing at the bottom of the window. For a box volume the output will be something like:

X: 160, 348 Y: 202, 338
Box Vol=94158
Here the box coordinates are shown as X: XMin, XMax and Y: YMin, YMax.

A sample output for a banana volume:

X: 188, 307 Y: 122, 329
Banana Vol=116783
Here the XMin, XMax, YMin, YMax values are those of a hypothetical box which would just contain the banana polygon.

If you get a banana volume when the intention is a box volume, you need to "Hide Banana" from the BGate function.