11/19 added helper fxn for 2D->1D - John Marinelli