original_docstring: 
       Takes a grid produces by one of the other functions and "inverts" it
       to give an array of the shot numbers at each position. This is useful
       if you are going to average over reps before saving full data (e.g.
       vsweep langmuir probe raw to full processing)
       
docstring: Takes a grid produces by one of the other functions and "inverts" it
  to give an array of the shot numbers at each position. This is useful
  if you are going to average over reps before saving full data
docstring_tokens: Takes a grid produces by one of the other functions and " inverts " it to give an array of the shot numbers at each position . This is useful if you are going to average over reps before saving full data
code: def invertShotGrid(shotgridind, xaxis, yaxis, zaxis):
       """
       Takes a grid produces by one of the other functions and "inverts" it
       to give an array of the shot numbers at each position. This is useful
       if you are going to average over reps before saving full data (e.g.
       vsweep langmuir probe raw to full processing)
       """
       
       nx, ny, nz = len(xaxis), len(yaxis), len(zaxis)
       nshots = shotgridind.shape[0]
       npos = nx*ny*nz
       nreps = int(np.floor(nshots/npos))
       shots = np.zeros([nx, ny, nz, nreps], dtype=np.int32)
       
       for i in range(nshots):
            xi = shotgridind[i,0]
            yi = shotgridind[i,1]
            zi = shotgridind[i,2]
            ri = shotgridind[i,3]
            shots[xi,yi,zi,ri] = i
       return shots
code_tokens: def invertShotGrid ( shotgridind , xaxis , yaxis , zaxis ) : nx , ny , nz = len ( xaxis ) , len ( yaxis ) , len ( zaxis ) nshots = shotgridind . shape [ 0 ] npos = nx * ny * nz nreps = int ( np . floor ( nshots / npos ) ) shots = np . zeros ( [ nx , ny , nz , nreps ] , dtype = np . int32 ) for i in range ( nshots ) : xi = shotgridind [ i , 0 ] yi = shotgridind [ i , 1 ] zi = shotgridind [ i , 2 ] ri = shotgridind [ i , 3 ] shots [ xi , yi , zi , ri ] = i return shots
short_docstring: Takes a grid produces by one of the other functions and "inverts" it
  to give an array of the shot numbers at each position.
short_docstring_tokens: Takes a grid produces by one of the other functions and " inverts " it to give an array of the shot numbers at each position .
comment: """
       Takes a grid produces by one of the other functions and "inverts" it
       to give an array of the shot numbers at each position. This is useful
       if you are going to average over reps before saving full data (e.g.
       vsweep langmuir probe raw to full processing)
       """