Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/347.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 如何将scipy.griddata的输出存储在文件中以备将来使用_Python_Python 2.7_Grid_Scipy_Ipython - Fatal编程技术网

Python 如何将scipy.griddata的输出存储在文件中以备将来使用

Python 如何将scipy.griddata的输出存储在文件中以备将来使用,python,python-2.7,grid,scipy,ipython,Python,Python 2.7,Grid,Scipy,Ipython,我有4个坐标a、b、c、d(在阵列中)和相应的数据。我使用scipy.griddata在这4个坐标的一系列值上插值网格上的数据。现在我想以这样的方式存储整个网格和插值数据值,我可以稍后使用某个函数调用它,该函数将坐标作为函数参数,并返回对应于坐标的数据值。最简单的方法是什么

我有4个坐标a、b、c、d(在阵列中)和相应的数据。我使用scipy.griddata在这4个坐标的一系列值上插值网格上的数据。现在我想以这样的方式存储整个网格和插值数据值,我可以稍后使用某个函数调用它,该函数将坐标作为函数参数,并返回对应于坐标的数据值。最简单的方法是什么