I am working on hyperspectral satellite imagery and I am trying to implement SAM algorithm on my dataset.I am trying to use spectral_angle and msam functions which are available in spectral python library. I am using following commands. Dataset after preprocessing has dimensions (2000,2000,20)
signature=image_cube[300,500,:] mmn=spectral_angles(image_cube,signature.reshape(1,20))
I am getting an numpy array containing all values 'Nan'.