Gridfields: Model-Driven Data Transformation in the Physical Sciences