Skip to content

Commit

Permalink
fixing phenology
Browse files Browse the repository at this point in the history
  • Loading branch information
rqthomas committed Nov 1, 2023
1 parent 99d7aa7 commit 8d5c7c3
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/targets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
name: target-generation

jobs:
targets:
phenology:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -24,4 +24,21 @@ jobs:
- name: Generate targets
shell: Rscript {0}
run: |
source("targets/generate_daily_targets.R")
source("targets/phenology_targets")
beetles:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_SUBMISSIONS }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY_SUBMISSIONS }}
OSN_KEY: ${{ secrets.OSN_KEY }}
OSN_SECRET: ${{ secrets.OSN_SECRET }}
container: rocker/geospatial:latest
steps:
- uses: actions/checkout@v3

- name: Generate targets
shell: Rscript {0}
run: |
source("targets/beetles_targets")
6 changes: 0 additions & 6 deletions targets/phenology_targets.R
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,6 @@ allData2 <- allData2 |>
select("time", "site_id", "variable", "observation") |>
rename(datetime = time)

readr::write_csv(allData2, "phenology-targets.csv.gz")

aws.s3::put_object(file = "phenology-targets.csv.gz",
object = "phenology/phenology-targets.csv.gz",
bucket = "neon4cast-targets")

s3 <- arrow::s3_bucket("neon4cast-targets/phenology",
endpoint_override = "data.ecoforecast.org",
access_key = Sys.getenv("AWS_ACCESS_KEY_SUBMISSIONS"),
Expand Down

0 comments on commit 8d5c7c3

Please sign in to comment.