mapc2p.py.html CLAWPACK  
 Source file:   mapc2p.py
 Directory:   /Users/rjl/git/rjleveque/clawpack-4.6.3/book/chap23/acoustics
 Converted:   Mon Jan 21 2013 at 20:15:42   using clawcode2html
 This documentation file will not reflect any later changes in the source file.

 
def mapc2p(xc,yc):
    """
    specifies the mapping to curvilinear coordinates -- should be consistent
    with mapc2p.f
    """
    from numpy import abs
    xp = xc + (abs(yc+.2)+ .8)/2
    yp = yc
    return xp,yp