The sx, sy, mask and area data must all have the same shape. Therefore, will align when flattened.

It's true that there could be the (0, 1) and (1, 0) scenario. I've never seen that before particularly with paired aux coords.

That's a easy criterion to check for and transpose appropriately. The logic still holds true though ...