Loads the EE credentials and initializes the EE client.
(self)
| 125 | return self.project |
| 126 | |
| 127 | def ee_init(self) -> None: |
| 128 | """Loads the EE credentials and initializes the EE client.""" |
| 129 | ee.Initialize( |
| 130 | credentials=self._get_credentials(), |
| 131 | url=self.url, |
| 132 | cloud_api_key=self.cloud_api_key, |
| 133 | project=self._get_project(), |
| 134 | ) |
| 135 | ee.data.setUserAgent('eecli') |
| 136 | |
| 137 | def save(self) -> None: |
| 138 | config = {} |