bugfix: error when nan given as spectral type
bugfix: missing magnitude could cause exception when calculating distance