Possibly related to the nautical sense of grain, an abnormal meteorological phenomenon.
avoir un grain