Grant funding announced this week by Gov. Charlie Baker will send money to two Island towns to promote coastal resilience in the face of climate change.

A total of $2.4 million in grants will go to some 20 towns and organizations to help plan for the effects of storm surges, flooding, coastal erosion and sea level rise, the Executive Office of Energy and Environmental Affairs announced.

Oak Bluffs will receive $138,396 to study the effects of tides, waves and sediment movement around its harbor, and develop strategies to stabilize barrier beaches.

Tisbury will receive $129,951 to study flooding and sediment movement around the Vineyard Haven Harbor and develop an array of resiliency strategies.