BANGOR, Maine — A wintry mix of rain and snow that greeted parts of the state Tuesday was expected to change over to mostly snow at night with accumulations of up to 7 inches in the higher elevations of western Maine.

Bangor saw some mixed precipitation in the afternoon without any accumulation, with “the bigger risk for [snow being] later tonight,” said meteorologist Mal Walker of the National Weather Service in Caribou. The city, however, could see between 1 and 3 inches of snow on the ground before the precipitation transitions back to rain early Wednesday afternoon.

Little to no accumulation was forecast in coastal and southern Maine, including Portland where forecasters warned that rainfall and melting snow runoff could cause flooding later in the week.

Aroostook and Washington counties could see total snowfall between an inch or two by Wednesday afternoon.

Sunshine and warmer weather is just around the corner, though, according to Walker.

“When you get by this, and some rain on Friday and Saturday, a long span of springlike weather is expected here Sunday into Tuesday,” he said.