-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:ivargr/climate_health
- Loading branch information
Showing
11 changed files
with
46 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
__author__ = """Sandvelab""" | ||
__email__ = "[email protected]" | ||
__version__ = "0.0.5" | ||
__version__ = "0.0.7" | ||
|
||
from . import fetch | ||
from . import data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,41 @@ | ||
Running on JSON data downloaded from the CHAP-app | ||
Running on JSON data downloaded from the CHAP-app (when CHAP Core is not installed on your DHIS2-instance) | ||
================================================= | ||
For this example you will need to have the CHAP-app installed on DHIS2 and Chap Core installed on your local computer, in addition to Docker installed and credentials for Google Earth Engine. | ||
Chap Core can be installed by running the following command: | ||
|
||
Requriments: | ||
- Docker is installed on your computer (Installation instructions can be found at https://docs.docker.com/get-started/get-docker/). | ||
- CHAP-app is installed on your DHIS2-instance (Instruction for CHAP-app installation could be found at https://github.com/dhis2/chap-app) | ||
- Access to credentials for Google Earth Engine. (Private Key and Service Account Email) | ||
|
||
Install CHAP Core | ||
----------------- | ||
We recommend you run CHAP Core with Conda. If you don't have Conda, you could install Miniconda, | ||
(a minimal installer for Conda) from https://docs.anaconda.com/miniconda/#latest-miniconda-installer-links | ||
|
||
Windows: After installation open Anaconda Prompt, search for "Anaconda Prompt" in the Windows Start menu. | ||
Linux: Conda should work in your default terminal after installation. | ||
|
||
We recommend you to create a new conda environment by running the following commands: | ||
|
||
$ conda create -n chap-core python=3.11 | ||
$ conda activate chap-core | ||
|
||
In the same shell, install CHAP Core, by runing the following commands (this take 5-20 minutes): | ||
|
||
$ pip install git+https://github.com/dhis2/chap-core.git | ||
|
||
After installation, chap command line interface (CLI) should be available in your terminal. | ||
|
||
Credentials for Google Earth Engine | ||
------------------------------------------ | ||
Credentials for Google Earth Engine needs to be put as environment variables on your local computer. | ||
The easiest way to do this is to create a file called ".env" in the root of the chap-core repository with the two environment variables: | ||
"GOOGLE_SERVICE_ACCOUNT_EMAIL" and "GOOGLE_SERVICE_ACCOUNT_PRIVATE_KEY". The file should look similar to the following content: | ||
Credentials for Google Earth Engine need to be set as environment variables on your local computer. We recommend you create a new folder where you will later run CHAP Core. Inside | ||
this folder, create a new file named ".env" with the two environment variables: "GOOGLE_SERVICE_ACCOUNT_EMAIL" and "GOOGLE_SERVICE_ACCOUNT_PRIVATE_KEY". | ||
The file should look similar to the following content: | ||
|
||
.. code-block:: bash | ||
GOOGLE_SERVICE_ACCOUNT_EMAIL="[email protected]" | ||
GOOGLE_SERVICE_ACCOUNT_PRIVATE_KEY="-----BEGIN PRIVATE KEY----- <your-private-key> -----END PRIVATE KEY-----" | ||
Convert the JSON data into a CHAP-DataSet | ||
------------------------------------------ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[bumpversion] | ||
current_version = 0.0.5 | ||
current_version = 0.0.7 | ||
commit = True | ||
tag = True | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters