Software used to study stars is helping protect the rarest and most endangered animals on Earth