OEGetBytesFromGrid

OEGetBytesFromGrid(grid: OEScalarGrid, gtype: int) - > bytes
OEGetBytesFromGrid(grid: OESkewGrid, gtype: int) - > bytes

Converts a grid (OEScalarGrid, OESkewGrid) with the file type, gtype (OEGridFileType), to bytes.