IDL grid_contour routine improvements

Making routine more robust for SND and core-only cases