scripts/download_sen12.py
def _add_ndvi_band(self,img):
        '''
        Helper function that calculates the NDVI values for a GEE Image and adds it
        to that image as a band.

        "img": The image you want the NDVI band added to
        '''
        ndvi = img.normalizedDifference(['B8', 'B4']).rename('NDVI')
        cloudFree = img.addBands(ndvi)
        cloudFree = cloudFree.float()

        return cloudFree

        Helper function that calculates the NDVI values for a GEE Image and adds it
        to that image as a band.

        "img": The image you want the NDVI band added to
        
Helper function that calculates the NDVI values for a GEE Image and adds it
to that image as a band.

"img": The image you want the NDVI band added to
Helper function that calculates the NDVI values for a GEE Image and adds it to that image as a band . " img " : The image you want the NDVI band added to
def _add_ndvi_band(self,img):
        ndvi = img.normalizedDifference(['B8', 'B4']).rename('NDVI')
        cloudFree = img.addBands(ndvi)
        cloudFree = cloudFree.float()
        return cloudFree
def _add_ndvi_band ( self , img ) : ndvi = img . normalizedDifference ( [ 'B8' , 'B4' ] ) . rename ( 'NDVI' ) cloudFree = img . addBands ( ndvi ) cloudFree = cloudFree . float ( ) return cloudFree
Helper function that calculates the NDVI values for a GEE Image and adds it
to that image as a band.
Helper function that calculates the NDVI values for a GEE Image and adds it to that image as a band .
'''
        Helper function that calculates the NDVI values for a GEE Image and adds it
        to that image as a band.

        "img": The image you want the NDVI band added to
        '''
self
img