def read_hdr_file(path):
    """
    reads the hdr hyperpsectral image file 
    Parameter:
    -----------------
    str: path of hdr file
    return:
    ---------------
    numpy array : hyperspectral; cube
    """
    import spectral.io.envi as envi
    img = envi.open(path)
    return img
