/[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 4173 by caltinay, Thu Jan 24 03:53:19 2013 UTC revision 4174 by caltinay, Wed Jan 30 03:21:27 2013 UTC
# Line 393  class NetCdfData(DataSource): Line 393  class NetCdfData(DataSource):
393              raise RuntimeError("Could not determine data variable")              raise RuntimeError("Could not determine data variable")
394    
395          # try to determine value for unused data          # try to determine value for unused data
396            # NaN is always filtered out in ripley
397          if hasattr(f.variables[data_name], 'missing_value'):          if hasattr(f.variables[data_name], 'missing_value'):
398              maskval = float(f.variables[data_name].missing_value)              maskval = float(f.variables[data_name].missing_value)
399          elif hasattr(f.variables[data_name], '_FillValue'):          elif hasattr(f.variables[data_name], '_FillValue'):
# Line 435  class NetCdfData(DataSource): Line 436  class NetCdfData(DataSource):
436          self.__origin=[lon_range[0],lat_range[0]]          self.__origin=[lon_range[0],lat_range[0]]
437          # we are rounding to avoid interpolation issues          # we are rounding to avoid interpolation issues
438          self.__delta=[np.round(lengths[i]/self.__nPts[i]) for i in range(2)]          self.__delta=[np.round(lengths[i]/self.__nPts[i]) for i in range(2)]
         #self.__wkt_string=wkt_string  
         #self.__lon_name=lon_name  
         #self.__lat_name=lat_name  
439          self.__data_name=data_name          self.__data_name=data_name
440          self.__maskval=maskval          self.__maskval=maskval
441    

Legend:
Removed from v.4173  
changed lines
  Added in v.4174

  ViewVC Help
Powered by ViewVC 1.1.26