def sfr(t, p): "SFR vs logage on the grid 't', calculated from 'params'" return bezier.interpolate( bezier.curve((bezier.point((8, p.s0y), p2c(p.s0cr, p.s0cphi)), bezier.point((p.s1x, p.s1y), p2c(p.s1cr, p.s1cphi)), bezier.point((10.25, p.s2y), p2c(p.s2cr, p.s2cphi))), 8), t)
def sfr(t,p): "SFR vs logage on the grid 't', calculated from 'params'" return bezier.interpolate(bezier.curve(( bezier.point((8,p.s0y),p2c(p.s0cr,p.s0cphi)), bezier.point((p.s1x,p.s1y),p2c(p.s1cr,p.s1cphi)), bezier.point((10.25,p.s2y),p2c(p.s2cr,p.s2cphi)) ),8),t)
def metallicity(t, p): "Fe/H vs logage on the grid 't', calculated from 'params'" return bezier.interpolate( bezier.curve((bezier.point((8, p.m0y), p2c(p.m0cr, p.m0cphi)), bezier.point((10.25, p.m1y), p2c(p.m1cr, p.m1cphi))), 8), t)
def metallicity(t,p): "Fe/H vs logage on the grid 't', calculated from 'params'" return bezier.interpolate(bezier.curve(( bezier.point((8,p.m0y), p2c(p.m0cr,p.m0cphi)), bezier.point((10.25,p.m1y),p2c(p.m1cr,p.m1cphi)) ),8),t)