pyfrp_simulation.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:PyFRAP 作者: alexblaessle 项目源码 文件源码
def computeInterpolatedICImg(self,roi=None):

        """Interpolates ICs back onto 2D image.

        Uses ``scipy.interpolate.griddata``, see also http://docs.scipy.org/doc/scipy-0.14.0/reference/generated/scipy.interpolate.griddata.html

        If ``roi`` is specified, will only interpolate nodes of this ROI. 

        Keyword Args:
            roi (pyfrp.subclasses.pyfrp_ROI.ROI): A PyFRAP ROI.

        Returns:
            tuple: Tuple containing:

                * X (numpy.ndarray): Meshgrid x-coordinates.
                * Y (numpy.ndarray): Meshgrid y-coordinates.
                * interpIC (numpy.ndarray): Interpolated ICs.

        """

        X,Y,interpIC=self.computeInterpolatedSolutionToImg(self.IC,roi=roi)

        return X,Y,interpIC
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号