hsmm code to test NASA data