def getGridTransitTimeInterval(mesh, transitFileName):
    print('getGridTransit Started : ', transitFileName, time.ctime())
    GRIDNUMBER = (mesh.lonNum * mesh.latNum)
    TIMENUMBER = (24 * 12)
    R = []
    for i in range(TIMENUMBER):
        R.append([])
        for j in range(GRIDNUMBER):
            R[i].append([])
    with open(transitFileName, 'r') as rf:
        tansistReader = csv.reader(rf)
        for line in tansistReader:
            timestamp = int(line[0])
            grid = int(line[1])
            R[timestamp][grid] = line[2:]
    R = np.array(R, dtype='int32')
    R = R.reshape(R.shape[0], mesh.lonNum, mesh.latNum, R.shape[2])
    R = np.swapaxes(R, 2, 1)
    R = R[:, ::(- 1), :, :]
    return R
def getGridTransitTimeInterval(mesh, transitFileName):
    print('getGridTransit Started : ', transitFileName, time.ctime())
    GRIDNUMBER = (mesh.lonNum * mesh.latNum)
    TIMENUMBER = (24 * 12)
    R = []
    for i in range(TIMENUMBER):
        R.append([])
        for j in range(GRIDNUMBER):
            R[i].append([])
    with open(transitFileName, 'r') as rf:
        tansistReader = csv.reader(rf)
        for line in tansistReader:
            timestamp = int(line[0])
            grid = int(line[1])
            R[timestamp][grid] = line[2:]
    R = np.array(R, dtype='int32')
    R = R.reshape(R.shape[0], mesh.lonNum, mesh.latNum, R.shape[2])
    R = np.swapaxes(R, 2, 1)
    R = R[:, ::(- 1), :, :]
    return R