Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update README #54

Merged
merged 1 commit into from
Sep 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ knitr::opts_chunk$set(
[![License for code](https://img.shields.io/badge/license (for code)-GPL3.0-blue.svg)](https://opensource.org/licenses/gpl-3.0.html)
[![License for data](https://img.shields.io/badge/license (for data)-CC0-blue.svg)](https://creativecommons.org/publicdomain/zero/1.0/)
[![Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public.](https://www.repostatus.org/badges/latest/wip.svg)](https://www.repostatus.org/#wip)
[![test targets workflow](https://github.com/panukatan/pagasa_db/actions/workflows/test-targets-workflow.yml/badge.svg)](https://github.com/panukatan/pagasa_db/actions/workflows/test-targets-workflow.yml)
[![test targets climate](https://github.com/panukatan/paglaom/actions/workflows/test-targets-climate.yml/badge.svg)](https://github.com/panukatan/paglaom/actions/workflows/test-targets-climate.yml)
[![test targets cyclones](https://github.com/panukatan/paglaom/actions/workflows/test-targets-cyclones.yml/badge.svg)](https://github.com/panukatan/paglaom/actions/workflows/test-targets-cyclones.yml)
[![test targets dam](https://github.com/panukatan/paglaom/actions/workflows/test-targets-dam.yml/badge.svg)](https://github.com/panukatan/paglaom/actions/workflows/test-targets-dam.yml)
Expand Down Expand Up @@ -125,7 +124,7 @@ cat(
"```mermaid",
targets::tar_mermaid(
targets_only = TRUE,
names = dplyr::starts_with(c("climate", "cyclone", "dam", "heat")),
names = dplyr::starts_with(c("climate_", "cyclone_", "cylones_", "dam_", "heat_")),
color = FALSE, legend = FALSE
),
"```",
Expand Down
22 changes: 15 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ data](https://img.shields.io/badge/license%20\(for%20data\)-CC0-blue.svg)](https
has not yet been a stable, usable release suitable for the
public.](https://www.repostatus.org/badges/latest/wip.svg)](https://www.repostatus.org/#wip)
[![test targets
workflow](https://github.com/panukatan/pagasa_db/actions/workflows/test-targets-workflow.yml/badge.svg)](https://github.com/panukatan/pagasa_db/actions/workflows/test-targets-workflow.yml)
[![test targets
climate](https://github.com/panukatan/paglaom/actions/workflows/test-targets-climate.yml/badge.svg)](https://github.com/panukatan/paglaom/actions/workflows/test-targets-climate.yml)
[![test targets
cyclones](https://github.com/panukatan/paglaom/actions/workflows/test-targets-cyclones.yml/badge.svg)](https://github.com/panukatan/paglaom/actions/workflows/test-targets-cyclones.yml)
Expand Down Expand Up @@ -193,14 +191,24 @@ graph LR
style Graph fill:#FFFFFF00,stroke:#000000;
subgraph Graph
direction LR
x56bd7c118ed46a38(["heat_index_links"]):::outdated --> x113a83dcec46090f(["heat_index_links_urls"]):::outdated
x567709ab5f0adc71(["heat_index_pubfiles_url"]):::uptodate --> x56bd7c118ed46a38(["heat_index_links"]):::outdated
xb48a3b157c96bffd(["climate_pubfiles_url"]):::uptodate --> xa37a01adfb45bd68(["climate_directory_urls"]):::uptodate
x26b861c7a0a21b52["climate_pdf_urls"]:::uptodate --> xc044beb81380bb4a["climate_download_files"]:::uptodate
xc432bd4e21a7b9fa(["heat_index_links_dates"]):::outdated --> x4f749438c4164b8e["heat_index_download_files"]:::outdated
x113a83dcec46090f(["heat_index_links_urls"]):::outdated --> x4f749438c4164b8e["heat_index_download_files"]:::outdated
x56bd7c118ed46a38(["heat_index_links"]):::outdated --> xc432bd4e21a7b9fa(["heat_index_links_dates"]):::outdated
xc044beb81380bb4a["climate_download_files"]:::uptodate --> x42da7c0722c063a6(["climate_data_normals_1991_2020"]):::outdated
x567709ab5f0adc71(["heat_index_pubfiles_url"]):::uptodate --> x56bd7c118ed46a38(["heat_index_links"]):::outdated
x56bd7c118ed46a38(["heat_index_links"]):::outdated --> x113a83dcec46090f(["heat_index_links_urls"]):::outdated
xc77bb431ac7c3081(["dam_level_url"]):::uptodate --> x0de96327cc07b160(["dam_level_data"]):::outdated
xa37a01adfb45bd68(["climate_directory_urls"]):::uptodate --> x26b861c7a0a21b52["climate_pdf_urls"]:::uptodate
x56bd7c118ed46a38(["heat_index_links"]):::outdated --> xc432bd4e21a7b9fa(["heat_index_links_dates"]):::outdated
xc044beb81380bb4a["climate_download_files"]:::uptodate --> xe06460aefd475ca2(["climate_data_extremes_2020"]):::outdated
xc044beb81380bb4a["climate_download_files"]:::uptodate --> xc83b489a1c433852(["climate_data_extremes_2021"]):::outdated
xc044beb81380bb4a["climate_download_files"]:::uptodate --> x9b64b30afbfc8ff9(["climate_data_extremes_2022"]):::outdated
xc044beb81380bb4a["climate_download_files"]:::uptodate --> xf620d5783ff15609(["climate_data_extremes_2023"]):::outdated
xb48a3b157c96bffd(["climate_pubfiles_url"]):::uptodate --> xa37a01adfb45bd68(["climate_directory_urls"]):::uptodate
x0de96327cc07b160(["dam_level_data"]):::outdated --> x202d34e7af3ea1c1(["dam_level_data_raw_csv"]):::outdated
xd2c3c65ab78d2c70(["dam_level_data_processed"]):::uptodate --> xfa0b497de91938bb(["dam_level_data_csv"]):::outdated
x7255575025352eb6(["dam_level_data_files"]):::uptodate --> xd2c3c65ab78d2c70(["dam_level_data_processed"]):::uptodate
x6f87cfcc96bb274d(["cyclone_reports_links"]):::outdated --> x1cf596d0c4f824b5["cyclone_reports_download_files"]:::outdated
x26b861c7a0a21b52["climate_pdf_urls"]:::uptodate --> xc044beb81380bb4a["climate_download_files"]:::uptodate
end
```

Expand Down
12 changes: 6 additions & 6 deletions _targets_climate.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

## Download targets ------------------------------------------------------------

download_targets <- tar_plan(
climate_download_targets <- tar_plan(
### Set PAGASA climate pubfiles URL ----
tar_target(
name = climate_pubfiles_url,
Expand Down Expand Up @@ -39,7 +39,7 @@ download_targets <- tar_plan(


## Processing targets ----------------------------------------------------------
processing_targets <- tar_plan(
climate_processing_targets <- tar_plan(
tar_target(
name = pagasa_weather_stations,
command = get_weather_station_info(climate_download_files)
Expand Down Expand Up @@ -68,23 +68,23 @@ processing_targets <- tar_plan(


## Analysis targets ------------------------------------------------------------
analysis_targets <- tar_plan(
climate_analysis_targets <- tar_plan(

)


## Output targets --------------------------------------------------------------
output_targets <- tar_plan(
climate_output_targets <- tar_plan(
)


## Reporting targets -----------------------------------------------------------
report_targets <- tar_plan(
climate_report_targets <- tar_plan(

)


## Deploy targets --------------------------------------------------------------
deploy_targets <- tar_plan(
climate_deploy_targets <- tar_plan(

)
14 changes: 7 additions & 7 deletions _targets_cyclones.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

## Download targets ------------------------------------------------------------

download_targets <- tar_plan(
cyclones_download_targets <- tar_plan(
### Get download links ----
tar_target(
name = cyclone_reports_links,
Expand All @@ -27,7 +27,7 @@ download_targets <- tar_plan(


## Data targets ----------------------------------------------------------------
data_targets <- tar_plan(
cyclones_data_targets <- tar_plan(
### Process cyclones peak data ----
tar_target(
name = cyclones_peak_data,
Expand All @@ -51,30 +51,30 @@ data_targets <- tar_plan(


## Processing targets ----------------------------------------------------------
processing_targets <- tar_plan(
cyclones_processing_targets <- tar_plan(

)


## Analysis targets ------------------------------------------------------------
analysis_targets <- tar_plan(
cyclones_analysis_targets <- tar_plan(

)


## Output targets --------------------------------------------------------------
output_targets <- tar_plan(
cyclones_output_targets <- tar_plan(

)


## Reporting targets -----------------------------------------------------------
report_targets <- tar_plan(
cycylones_report_targets <- tar_plan(

)


## Deploy targets --------------------------------------------------------------
deploy_targets <- tar_plan(
cyclones_deploy_targets <- tar_plan(

)
12 changes: 6 additions & 6 deletions _targets_dam.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
################################################################################

## Data targets ----------------------------------------------------------------
data_targets <- tar_plan(
dam_data_targets <- tar_plan(
### Set PAGASA dam level URL ----
tar_target(
name = dam_level_url,
Expand All @@ -26,7 +26,7 @@ data_targets <- tar_plan(


## Processing targets ----------------------------------------------------------
processing_targets <- tar_plan(
dam_processing_targets <- tar_plan(
### Processing daily dam level data ----
tar_target(
name = dam_level_data_processed,
Expand All @@ -36,13 +36,13 @@ processing_targets <- tar_plan(


## Analysis targets ------------------------------------------------------------
analysis_targets <- tar_plan(
dam_analysis_targets <- tar_plan(

)


## Output targets --------------------------------------------------------------
output_targets <- tar_plan(
dam_output_targets <- tar_plan(
### Output dam level data as CSV ----
tar_target(
name = dam_level_data_raw_csv,
Expand All @@ -59,12 +59,12 @@ output_targets <- tar_plan(


### Reporting targets
report_targets <- tar_plan(
dam_report_targets <- tar_plan(

)


### Deploy targets
deploy_targets <- tar_plan(
dam_deploy_targets <- tar_plan(

)
12 changes: 6 additions & 6 deletions _targets_heat.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
################################################################################

## Data targets ----------------------------------------------------------------
data_targets <- tar_plan(
heat_data_targets <- tar_plan(
### Set PAGASA heat index pubfiles URL ----
tar_target(
name = heat_index_pubfiles_url,
Expand Down Expand Up @@ -43,30 +43,30 @@ data_targets <- tar_plan(


## Processing targets ----------------------------------------------------------
processing_targets <- tar_plan(
heat_processing_targets <- tar_plan(

)


## Analysis targets ------------------------------------------------------------
analysis_targets <- tar_plan(
heat_analysis_targets <- tar_plan(

)


## Output targets --------------------------------------------------------------
output_targets <- tar_plan(
heat_output_targets <- tar_plan(

)


## Reporting targets -----------------------------------------------------------
report_targets <- tar_plan(
heat_report_targets <- tar_plan(

)


## Deploy targets --------------------------------------------------------------
deploy_targets <- tar_plan(
heat_deploy_targets <- tar_plan(

)