def copyaxes(inp, out):
    """
    copy axes values from NPKDAta in to out.
   
    internal use
    """
    for ii in range(inp.dim):
        i = ii + 1
        setattr(out, 'axis%1d' % i, inp.axes(i).copy())
