| mapc2p.py.html | |
| Source file: mapc2p.py | |
| Directory: /Users/rjl/git/rjleveque/clawpack-4.6.2/book/chap23/acoustics | |
| Converted: Wed May 30 2012 at 13:02:14 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