<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def generate_grid_coords(gx, gy):
 r"""Calculate x,y coordinates of each grid cell. Parameters gx: numeric x coordinates in meshgrid gy: numeric y coordinates in meshgrid Returns ------- (X, Y) ndarray List of coordinates in meshgrid """

    return np.vstack([gx.ravel(), gy.ravel()]).T