/[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 4044 by caltinay, Tue Oct 30 03:35:17 2012 UTC revision 4047 by gross, Tue Oct 30 09:10:07 2012 UTC
# Line 438  class NetCDFDataSource(DataSource): Line 438  class NetCDFDataSource(DataSource):
438      """      """
439      Data Source for gridded netCDF data that use CF/COARDS conventions.      Data Source for gridded netCDF data that use CF/COARDS conventions.
440      """      """
441      def __init__(self, gravfile=None, magfile=None, topofile=None, vertical_extents=(-40000,10000,25), alt_of_data=0.):      def __init__(self, gravfile=None, magfile=None, topofile=None,
442                           depth=40000.,
443                           air_layer=10000.,
444                           vertical_cells=25,
445                           alt_of_data=0.):
446          """          """
447          vertical_extents - (alt_min, alt_max, num_points)          :param gravfile: file with gravity data in netcdf format
448          alt_of_data - altitude of measurements          :type gravfile: ```str```
449            :param magfile: file with magnetic datafile in netcdf format
450            :type magfile: ```str```
451            :param topofile: file with topography data in netcdf format
452            :type topofile: ```str```
453            :param depth: depth below surface filled with rock
454            :type depth: ```float```
455            :param air_layer: height above surface filled with air. It is assumed that that density correction is zero
456                           in this region.
457            :type air_layer: ```float```
458            :param vertical_cells: number of vertical cells
459            type vertical_cells: ```int```
460            :param alt_of_data: altitude of measurements above ground in meter
461            :type alt_of_data: ```float```
462          """          """
463          super(NetCDFDataSource,self).__init__()          super(NetCDFDataSource,self).__init__()
464          self.__topofile=topofile          self.__topofile=topofile
465          self.__gravfile=gravfile          self.__gravfile=gravfile
466          self.__magfile=magfile          self.__magfile=magfile
467          self.__determineExtents(vertical_extents)          self.__determineExtents((-depth,air_layer,n))
468          self.__altOfData=alt_of_data          self.__altOfData=alt_of_data
469    
470      def __determineExtents(self, ve):      def __determineExtents(self, ve):

Legend:
Removed from v.4044  
changed lines
  Added in v.4047

  ViewVC Help
Powered by ViewVC 1.1.26