コード例 #1
0
ファイル: modis.py プロジェクト: marceloperini/mdc
    def __init__(self, config):
      Datasource.__init__(self, config)

      jsonProducts = json.load(open(self.path_products))
      self.product = jsonProducts[self.productName]
      
      self.temporalResolution = self.product['temporalResolution']
      self.productStart = self.product['start']
      self.productEnd = self.product['end']
      self.math = self.product['math']
コード例 #2
0
ファイル: earthengine.py プロジェクト: hemeligur/lapig-maps
	def __init__(self, layerParams, datasourceParams):
		Datasource.__init__(self, layerParams)

		self.expression = self.expression
		self.fill_value = utils.num(self.fill_value)
		self.collection_id = self.collection_id.upper();
		self.pixel_resolution = utils.num(self.pixel_resolution)
		self.fn_parsedate = getattr(self, self.fn_parsedate + "Date");		
		self.nThreads = int(datasourceParams['threads'])
		
		privateKeyFilepath = os.path.join(datasourceParams['run_path'],datasourceParams['private_key'])

		self.credentials = ee.ServiceAccountCredentials(datasourceParams['account'], privateKeyFilepath);

		self.credentials = ee.ServiceAccountCredentials(datasourceParams['account'], privateKeyFilepath);
コード例 #3
0
ファイル: earthengine.py プロジェクト: lapig-ufg/lapig-maps
	def __init__(self, layerParams, datasourceParams):
		Datasource.__init__(self, layerParams)

		self.expression = self.expression
		self.fill_value = utils.num(self.fill_value)
		self.collection_id = self.collection_id.upper();
		self.pixel_resolution = utils.num(self.pixel_resolution)
		self.fn_parsedate = getattr(self, self.fn_parsedate + "Date");
		self.nThreads = int(datasourceParams['threads'])
		self.ignore_filter = ast.literal_eval(self.ignore_filter.capitalize()) if hasattr(self, "ignore_filter") else None;
		
		privateKeyFilepath = os.path.join(datasourceParams['run_path'],datasourceParams['private_key'])

		self.credentials = ee.ServiceAccountCredentials(datasourceParams['account'], privateKeyFilepath);

		self.cache = Cache()
コード例 #4
0
    def __init__(self, layerParams, datasourceParams):
        Datasource.__init__(self, layerParams)

        self.start_date = layerParams['start_date'].split()
        self.end_date = layerParams['end_date'].split()
        self.layers = layerParams['layers'].split()
コード例 #5
0
ファイル: gdal.py プロジェクト: hemeligur/lapig-maps
	def __init__(self, layerParams, datasourceParams):
		Datasource.__init__(self, layerParams)

		self.imageDbPath = os.path.join(datasourceParams['run_path'],datasourceParams['image_db'])
コード例 #6
0
ファイル: gdalds.py プロジェクト: lapig-ufg/d-pat
    def __init__(self, layerParams, datasourceParams):
        Datasource.__init__(self, layerParams)

        self.imageDbPath = os.path.join(datasourceParams['run_path'],
                                        datasourceParams['image_db'])
コード例 #7
0
ファイル: composite.py プロジェクト: lapig-ufg/lapig-maps
	def __init__(self, layerParams, datasourceParams):
		Datasource.__init__(self, layerParams)

		self.start_date = layerParams['start_date'].split()
		self.end_date = layerParams['end_date'].split()
		self.layers = layerParams['layers'].split()
コード例 #8
0
ファイル: gdalds.py プロジェクト: lapig-ufg/lapig-maps
    def __init__(self, layerParams, datasourceParams):
        Datasource.__init__(self, layerParams)

        self.imageDbPath = os.path.join(datasourceParams["run_path"], datasourceParams["image_db"])