Skip to content

Commit

Permalink
Add usage
Browse files Browse the repository at this point in the history
  • Loading branch information
figi44 committed Sep 18, 2024
1 parent d51fec9 commit f18d3d7
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 8 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,21 @@
# eoap

EO Application package example

## Usage

Create virtual environment

```
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
```

Create `.env` file containing ADES secrets containing `ADES_USER` and `ADES_TOKEN` variables.

Deploy the workflow to your workspace

```
python ades.py deploy
```
3 changes: 1 addition & 2 deletions ades.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@

username = os.getenv("ADES_USER")
token = os.getenv("ADES_TOKEN")
s3_token = os.getenv("ADES_S3_TOKEN")

client = pyeodh.Client(username=username, token=token, s3_token=s3_token)
client = pyeodh.Client(username=username, token=token, s3_token=token)
ades = client.get_ades()

CWL_FILE = "resize-collection.cwl"
Expand Down
7 changes: 1 addition & 6 deletions eoap-gen-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,7 @@ inputs:
doc: collection id
type: string
default: sentinel2_ard
outputs:
[]
# - id: stac_output
# type: Directory
# source:
# - step3/stac_catalog
outputs: []
steps:
- id: get_urls
script: cli/get_urls/get_urls.py
Expand Down

0 comments on commit f18d3d7

Please sign in to comment.