CTD processing & reporting for the SEUS MBON research cruise data
data/01_raw/raw_ctd_data
quarto render --no-cache
data/cleaned/*.csv
filesquarto preview
quarto publish
Running quarto render
will complete several pre-render steps to create the following directory structure:
└── cruise_report/
├── cruise_report_template.qmd
├── ctd_report_template.qmd
└── cruise_reports/
├── {cruise_id}/
│ ├── {cruise_id}.qmd <- generate_cruise_reports -- cruise_report_template
│ └── ctd_reports/
│ ├── {ctd_id}.qmd <- generate_ctd_reports -- ctd_report_template
│ └── ...
└── ...
The pre-render steps used to generate the above directory structure are summarized by the mermaid chart below.
graph TD
get_cruise_list{{get_cruise_list.R}}
--> cruise_list[[cruise_list.csv]]
cruise_list -.->
prerender_cruise_reports[/prerender_cruise_reports.R\]
=== foreach_cruise
%% rendering is implied for every .qmd
%% cruise_report -.->
%% render{{render}}
%% --> cruise_report_html[["cruise_(cruise_id)_report.html"]]
subgraph foreach_cruise
cruise_report{{"cruise_(cruise_id)_report.qmd"}}
prerender_cast_reports[/prerender_cast_reports.R\]
=== foreach_cast
end
subgraph foreach_cast
cast_report{{"ctd_(cruise_id)_(cast_id)_report.qmd"}}
end
%% subgraph legend
%% script{{script.R}}
%% -- creates --> file[[file.txt]]
%% file -. depends .->
%% report{{report.qmd}}
%% map[/map\]
%% reduce[\reduce/]
%%db[(database.sqlite)]
%% end