Example #1
0
def band_Info(infile):

    sd = SD(infile, SDC.READ)

    bands = np.array(sd.datasets().keys())

    orderIdxs = np.argsort([sd.nametoindex(bandName) for bandName in bands])

    sd = None

    return bands[orderIdxs]