From 91b7d73f803e92fcd1538909bed9ed2de3a0cf86 Mon Sep 17 00:00:00 2001 From: Ernest Guevarra Date: Mon, 2 Sep 2024 00:00:10 +0100 Subject: [PATCH] update README --- README.Rmd | 3 +-- README.md | 22 +++++++++++++++------- _targets_climate.R | 12 ++++++------ _targets_cyclones.R | 14 +++++++------- _targets_dam.R | 12 ++++++------ _targets_heat.R | 12 ++++++------ 6 files changed, 41 insertions(+), 34 deletions(-) diff --git a/README.Rmd b/README.Rmd index 22fe20c..c829030 100644 --- a/README.Rmd +++ b/README.Rmd @@ -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) @@ -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 ), "```", diff --git a/README.md b/README.md index f20f731..43820f1 100644 --- a/README.md +++ b/README.md @@ -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) @@ -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 ``` diff --git a/_targets_climate.R b/_targets_climate.R index 3e22d42..f2eae53 100644 --- a/_targets_climate.R +++ b/_targets_climate.R @@ -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, @@ -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) @@ -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( ) diff --git a/_targets_cyclones.R b/_targets_cyclones.R index a69444f..923746b 100644 --- a/_targets_cyclones.R +++ b/_targets_cyclones.R @@ -6,7 +6,7 @@ ## Download targets ------------------------------------------------------------ -download_targets <- tar_plan( +cyclones_download_targets <- tar_plan( ### Get download links ---- tar_target( name = cyclone_reports_links, @@ -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, @@ -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( ) diff --git a/_targets_dam.R b/_targets_dam.R index a795262..c71853b 100644 --- a/_targets_dam.R +++ b/_targets_dam.R @@ -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, @@ -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, @@ -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, @@ -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( ) diff --git a/_targets_heat.R b/_targets_heat.R index ba7854d..e65f9ac 100644 --- a/_targets_heat.R +++ b/_targets_heat.R @@ -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, @@ -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( )