Iceberg calving during transition from grounded to floating ice