How to use FieldSpec to detect field spectral?