def printStats(self):
        """ Print the requested statistics values for those fields specified on input. """
        print("--- Imagestats Results ---")

        if (self.fields.find('npix') != -1 ):
            print("Number of pixels  :  ",self.npix)
        if (self.fields.find('min') != -1 ):
            print("Minimum value     :  ",self.min)
        if (self.fields.find('max') != -1 ):
            print("Maximum value     :  ",self.max)
        if (self.fields.find('stddev') != -1 ):
            print("Standard Deviation:  ",self.stddev)
        if (self.fields.find('mean') != -1 ):
            print("Mean              :  ",self.mean)
        if (self.fields.find('mode') != -1 ):
            print("Mode              :  ",self.mode)
        if (self.fields.find('median') != -1 ):
            print("Median            :  ",self.median)
        if (self.fields.find('midpt') != -1 ):
            print("Midpt            :  ",self.midpt)
Print the requested statistics values for those fields specified on input.