Inserting Data Table Data
/* gridData1 and gridData2 contained the packed data already! */
SE_UINT32 i, datasize, extent_size;
datasize = [(sizeof(SE_UINT16) + sizeof(SE_INT32)) * gridSizeX * gridSizeY;
extent_size = [(sizeof(SE_UINT16) + sizeof(SE_INT32)) * halfX * halfY;
SE_PutPackedDataTable(dtObj, 1, &SE_SAC_SPATIAL_ELEVATION, NULL, datasize, gridData1);
/* currExtents is a SE_DATA_TABLE_EXTENTS specifying half of the data table */
SE_PutPackedDataTableExtent(dtObj2, currExtents, 1, &SE_SAC_SPATIAL_ELEVATION, NULL,