netcdf mesh { // demonstrates netCDF representation of data on a // triangular mesh dimensions: nv = 1000; // number of vertices in the mesh order = 3; // order of mesh polygons (3 -> triangles) nt = 400; // number of triangles ndim = 2; // points defining vertices are in plane variables: float pxpy ( nv, ndim ); // vertex coordinates short plist ( nt, order ); // connectivity list float tmp ( nv ) ; // temperatures at each vertex int pres ( nv ) ; // pressure at each vertex short mylist; mylist:members = "pxpy,plist,tmp"; short yourlist; yourlist:members = "pxpy,plist,pres"; data: pxpy = 2.3, -1.5, // (x, y) coordinates of vertices 3.4, -5.7, // ... 2.7, -0.9 ; plist = 1, 2, 7, // vertex list for each polygon 2, 7, 8, // ... 3, 4, 6 ; tmp1 = 23.55, // temperatures at vertices 3.77, // ... -3.23 ; pres = 32, // pressures at vertices 4, // ... -4; }