I'm using the
LANDSAT/LC08/C01/T1_RT_TOA dataset. Using this I want to calculate the RVI of a region. This is done by dividing the Near Infrared band (B5 in the dataset) by the Red band (B4 in the dataset). I do this by firstly defining both bands as separate variables namely
red. Using this I do the following:
var rvi = nir.divide(red)
When doing this is keeps giving me the error:
nir.divide is not a function
Is there any other way to do this bandmath?