-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added cron-jobs for ATL03 and LEVEL3A related to #14
- Loading branch information
Showing
2 changed files
with
58 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
|
||
#............................................... | ||
# check every day if the "LEVEL3A" is functional [ once it becomes functional remove this cron-job ] | ||
#............................................... | ||
|
||
on: | ||
schedule: | ||
- cron: "0 6 * * *" | ||
push: | ||
branches: master | ||
|
||
jobs: | ||
container: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 30 | ||
container: | ||
image: mlampros/icesat2r:rstudiodev | ||
credentials: | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
steps: | ||
- name: Check Out Repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: Run the LEVEL3A httr-get | ||
working-directory: ${{ github.workspace }} | ||
run: | | ||
Rscript -e 'if (httr::GET(url = "https://openaltimetry.earthdatacloud.nasa.gov/data/api/icesat2/level3a?product=atl06&minx=140&miny=-6.641235&maxx=145&maxy=-1.641235&trackId=619&outputFormat=csv&startDate=2021-02-02&endDate=2021-02-02&client=portal")$status_code != 200) stop("level3a_data is not functional!")' | ||
shell: bash |
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
|
||
#............................................. | ||
# check every day if the "ATL03" is functional [ once it becomes functional remove this cron-job ] | ||
#............................................. | ||
|
||
on: | ||
schedule: | ||
- cron: "0 6 * * *" | ||
push: | ||
branches: master | ||
|
||
jobs: | ||
container: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 30 | ||
container: | ||
image: mlampros/icesat2r:rstudiodev | ||
credentials: | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
steps: | ||
- name: Check Out Repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: Run the ATL03 httr-get | ||
working-directory: ${{ github.workspace }} | ||
run: | | ||
Rscript -e 'if (httr::GET(url = "https://openaltimetry.earthdatacloud.nasa.gov/data/api/icesat2/atl03?minx=140&miny=-6.641235&maxx=145&maxy=-1.641235&trackId=619&beamName=gt1l&outputFormat=csv&date=2021-02-02&client=portal&sampling=false")$status_code != 200) stop("ATL03 is not functional!")' | ||
shell: bash |