예제 #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
	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
	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
	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
	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
    def __init__(self, layerParams, datasourceParams):
        Datasource.__init__(self, layerParams)

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