Ejemplo n.º 1
0
    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']
Ejemplo n.º 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);
Ejemplo n.º 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()
Ejemplo n.º 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()
Ejemplo n.º 5
0
	def __init__(self, layerParams, datasourceParams):
		Datasource.__init__(self, layerParams)

		self.imageDbPath = os.path.join(datasourceParams['run_path'],datasourceParams['image_db'])
Ejemplo n.º 6
0
    def __init__(self, layerParams, datasourceParams):
        Datasource.__init__(self, layerParams)

        self.imageDbPath = os.path.join(datasourceParams['run_path'],
                                        datasourceParams['image_db'])
Ejemplo n.º 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()
Ejemplo n.º 8
0
    def __init__(self, layerParams, datasourceParams):
        Datasource.__init__(self, layerParams)

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