Derived types for report generation.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | public, | parameter | :: | REPORT_FORMAT_LEN | = | PLOT_TERMINAL_NAME_LEN |
Max. plot format name length. |
integer, | public, | parameter | :: | REPORT_META_LEN | = | 4096 |
Max. plot meta description length. |
integer, | public, | parameter | :: | REPORT_TITLE_LEN | = | 256 |
Max. plot title length. |
integer, | public, | parameter | :: | REPORT_FORMAT_NONE | = | 0 |
Invalid format. |
integer, | public, | parameter | :: | REPORT_FORMAT_HTML | = | 1 |
HTML5. |
integer, | public, | parameter | :: | REPORT_FORMAT_PDF | = | 2 |
PDF. |
integer, | public, | parameter | :: | REPORT_FORMAT_PS | = | 3 |
PostScript. |
integer, | public, | parameter | :: | REPORT_FORMAT_LAST | = | 3 |
Never use this. |
integer, | public, | parameter | :: | REPORT_FORMAT_NAME_LEN | = | 4 |
Max. report format name. |
character(len=*), | public, | parameter | :: | REPORT_FORMAT_NAMES(REPORT_FORMAT_NONE:REPORT_FORMAT_LAST) | = | [character(len=REPORT_FORMAT_NAME_LEN)::'none', 'html', 'pdf', 'ps'] |
Report format names. |
Single plot of observations.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
character(len=REPORT_FORMAT_LEN), | public | :: | format | = | PLOT_TERMINAL_NAMES(PLOT_TERMINAL_SVG) |
Plot format. |
|
character(len=SENSOR_ID_LEN), | public | :: | sensor | = | ' ' |
Sensor id. |
|
character(len=TARGET_ID_LEN), | public | :: | target | = | ' ' |
Target id. |
|
character(len=RESPONSE_NAME_LEN), | public | :: | response | = | ' ' |
Response name. |
|
character(len=RESPONSE_UNIT_LEN), | public | :: | unit | = | ' ' |
Response unit. |
|
character(len=REPORT_TITLE_LEN), | public | :: | title | = | ' ' |
Plot title. |
|
character(len=REPORT_TITLE_LEN), | public | :: | subtitle | = | ' ' |
Plot sub-title. |
|
character(len=REPORT_META_LEN), | public | :: | meta | = | ' ' |
Plot description. |
|
character(len=8), | public | :: | color | = | ' ' |
Foreground colour. |
|
integer, | public | :: | width | = | 1000 |
Plot width in pixels. |
|
integer, | public | :: | height | = | 400 |
Plot height in pixels. |
|
logical, | public | :: | pagebreak | = | .false. |
Add page break behind (for PDF output only). |
|
logical, | public | :: | disabled | = | .false. |
Disable plot. |
|
real(kind=r8), | public | :: | scale | = | 1.0_r8 |
Scale factor for respone value (optional). |
Section plots of report.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
character(len=FILE_PATH_LEN), | public | :: | database | = | ' ' |
Path to observation database (required). |
|
character(len=REPORT_TITLE_LEN), | public | :: | title | = | 'Plots' |
Section title. |
|
character(len=REPORT_META_LEN), | public | :: | meta | = | ' ' |
Description text. |
|
logical, | public | :: | disabled | = | .false. |
Generate plots. |
|
type(report_observ_type), | public, | allocatable | :: | observs(:) |
Plots to generate. |
Section logs of report.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
character(len=FILE_PATH_LEN), | public | :: | database | = | ' ' |
Path to observation database (required). |
|
character(len=REPORT_TITLE_LEN), | public | :: | title | = | 'Logs' |
Section title. |
|
character(len=REPORT_META_LEN), | public | :: | meta | = | ' ' |
Description text. |
|
integer, | public | :: | min_level | = | LL_WARNING |
Minimum log level. |
|
integer, | public | :: | max_level | = | LL_CRITICAL |
Maximum log level. |
|
logical, | public | :: | disabled | = | .false. |
Generate plots. |
Report type with plot and log settings.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
character(len=NODE_ID_LEN), | public | :: | node | = | ' ' |
Node id. |
|
character(len=TIME_LEN), | public | :: | from | = | ' ' |
Timestamp (ISO 8601). |
|
character(len=TIME_LEN), | public | :: | to | = | ' ' |
Timestamp (ISO 8601). |
|
character(len=FILE_PATH_LEN), | public | :: | output | = | ' ' |
Path of output file. |
|
character(len=FILE_PATH_LEN), | public | :: | style | = | ' ' |
Path to CSS file to inline (HTML only). |
|
character(len=REPORT_TITLE_LEN), | public | :: | title | = | 'Report' |
Report title. |
|
character(len=REPORT_TITLE_LEN), | public | :: | subtitle | = | ' ' |
Report sub-title. |
|
character(len=REPORT_META_LEN), | public | :: | meta | = | ' ' |
Report description text. |
|
integer, | public | :: | format | = | REPORT_FORMAT_NONE |
Format (HTML, PDF, PS). |
|
logical, | public | :: | verbose | = | .true. |
Include warnings, errors, and empty plot sections. |
|
type(report_plot_type), | public | :: | plot |
Plots section. |
|||
type(report_log_type), | public | :: | log |
Logs sections. |
Returns report format enumerator from name. On error, the result is
REPORT_FORMAT_NONE
.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | name |
Format name. |
Returns .true.
if format enumerator is valid. The format
REPORT_FORMAT_NONE
is invalid.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | format |
Report format type ( |
Returns .true.
if given report type is valid, else .false.
. The
attributes plot
and log
are only validated if enabled.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(report_type), | intent(inout) | :: | report |
Report type. |