/[escript]/trunk/downunder/py_src/datasources.py
ViewVC logotype

Diff of /trunk/downunder/py_src/datasources.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3981 by jfenwick, Fri Sep 21 02:47:54 2012 UTC revision 3983 by caltinay, Fri Sep 21 06:41:03 2012 UTC
# Line 680  class ERSDataSource(DataSource): Line 680  class ERSDataSource(DataSource):
680      def getGravityAndStdDev(self):      def getGravityAndStdDev(self):
681          nValues=self.__nPts[:2]+[1]          nValues=self.__nPts[:2]+[1]
682          first=self._dom_NE_pad[:2]+[self._dom_NE_pad[2]+int((self.__altOfData-self.__origin[2])/self.__delta[2])]          first=self._dom_NE_pad[:2]+[self._dom_NE_pad[2]+int((self.__altOfData-self.__origin[2])/self.__delta[2])]
683          g=ripleycpp._readBinaryGrid(self.__datafile, Function(self.getDomain()),          g=ripleycpp._readBinaryGrid(self.__datafile,
684                    ReducedFunction(self.getDomain()),
685                  first, nValues, (), self.__maskval)                  first, nValues, (), self.__maskval)
686          sigma=whereNonZero(g-self.__maskval)          sigma=whereNonZero(g-self.__maskval)
687          g=g*1e-6          g=g*1e-6

Legend:
Removed from v.3981  
changed lines
  Added in v.3983

  ViewVC Help
Powered by ViewVC 1.1.26