countChannels {PamBinaries} | R Documentation |
Counts the number of active channels given a channel mapping
countChannels(channelMap)
channelMap |
Mapping of channels as a binary number |
The number of active channels (number of ones)
Altered from original script to loop through 30 instead 32 because R stores only 32 bit integers. Should not ever have enough channels for this to matter.
Taiki Sakai taiki.sakai@noaa.gov