analyzeBits {phenex} | R Documentation |
Analyses bits of a 16-bit integer
analyzeBits(value, mode=1, bitpos=0)
value |
A 16-bit integer value |
mode |
If mode is 0, the algorithm returns the bit on position ‘bitpos’. If mode is 1 (default), the algorithm returns the most significant bit, if mode is 2 it returns the second significant bit and if mode is 3 the return value is the integer value of the last four bits |
bitpos |
An integer value between 0 and 15 determining the position of the bit to read when mode is 0. |
This routine analyses 16-bit integer values to get the indicators of MEDOKADS data
An integer value respective to parameter ‘mode’.
Daniel Doktor, Maximilian Lange
Koslowsky, D., Billing, H. and Friedrich, K. (2005): MEDOKADS: A long-term data set for detection and monitoring for desertification risks in the mediterranean. In RGLDD Conference.
value <- -32768 res <- analyzeBits(value, mode=3) res