dm_report Module

Derived types for report generation.


Uses

  • module~~dm_report~~UsesGraph module~dm_report dm_report module~dm_file dm_file module~dm_report->module~dm_file module~dm_id dm_id module~dm_report->module~dm_id module~dm_kind dm_kind module~dm_report->module~dm_kind module~dm_log dm_log module~dm_report->module~dm_log module~dm_node dm_node module~dm_report->module~dm_node module~dm_plot dm_plot module~dm_report->module~dm_plot module~dm_response dm_response module~dm_report->module~dm_response module~dm_sensor dm_sensor module~dm_report->module~dm_sensor module~dm_target dm_target module~dm_report->module~dm_target module~dm_time dm_time module~dm_report->module~dm_time module~dm_file->module~dm_kind module~dm_error dm_error module~dm_file->module~dm_error iso_fortran_env iso_fortran_env module~dm_kind->iso_fortran_env module~dm_log->module~dm_id module~dm_log->module~dm_kind module~dm_log->module~dm_node module~dm_log->module~dm_sensor module~dm_log->module~dm_target module~dm_log->module~dm_time module~dm_log->module~dm_error module~dm_observ dm_observ module~dm_log->module~dm_observ module~dm_uuid dm_uuid module~dm_log->module~dm_uuid module~dm_node->module~dm_id module~dm_node->module~dm_kind module~dm_plot->module~dm_file module~dm_plot->module~dm_kind module~dm_plot->module~dm_time iso_c_binding iso_c_binding module~dm_plot->iso_c_binding module~dm_dp dm_dp module~dm_plot->module~dm_dp module~dm_plot->module~dm_error module~dm_pipe dm_pipe module~dm_plot->module~dm_pipe module~dm_string dm_string module~dm_plot->module~dm_string module~dm_response->module~dm_id module~dm_response->module~dm_kind module~dm_response->module~dm_error module~dm_util dm_util module~dm_response->module~dm_util module~dm_sensor->module~dm_id module~dm_sensor->module~dm_kind module~dm_sensor->module~dm_node module~dm_target->module~dm_id module~dm_target->module~dm_kind module~dm_target->module~dm_util module~dm_time->module~dm_kind module~dm_time->module~dm_error module~dm_time->module~dm_util module~dm_dp->module~dm_kind module~dm_dp->module~dm_time module~dm_dp->module~dm_error module~dm_error->module~dm_kind module~dm_ascii dm_ascii module~dm_error->module~dm_ascii module~dm_observ->module~dm_id module~dm_observ->module~dm_kind module~dm_observ->module~dm_node module~dm_observ->module~dm_response module~dm_observ->module~dm_sensor module~dm_observ->module~dm_target module~dm_observ->module~dm_time module~dm_observ->module~dm_error module~dm_observ->module~dm_util module~dm_observ->module~dm_uuid module~dm_request dm_request module~dm_observ->module~dm_request module~dm_pipe->module~dm_kind module~dm_pipe->module~dm_error unix unix module~dm_pipe->unix module~dm_string->module~dm_kind module~dm_string->module~dm_error module~dm_util->module~dm_kind module~dm_util->module~dm_error module~dm_request->module~dm_id module~dm_request->module~dm_kind module~dm_request->module~dm_response module~dm_request->module~dm_time module~dm_request->module~dm_error module~dm_request->module~dm_string module~dm_request->module~dm_util

Used by

  • module~~dm_report~~UsedByGraph module~dm_report dm_report module~dmpack dmpack module~dmpack->module~dm_report

Variables

Type Visibility Attributes Name Initial
integer, public, parameter :: REPORT_FORMAT_LEN = PLOT_TERMINAL_NAME_LEN

Plot format string length.

integer, public, parameter :: REPORT_META_LEN = 4096

Plot meta description string length.

integer, public, parameter :: REPORT_TITLE_LEN = 256

Plot title string length.


Derived Types

type, public ::  report_observ_type

Single plot of observations.

Components

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.

type, public ::  report_plot_type

Section plots of report.

Components

Type Visibility Attributes Name Initial
logical, public :: disabled = .false.

Generate plots.

character(len=FILE_PATH_LEN), public :: database = ' '

Path to observation database (required).

character(len=REPORT_META_LEN), public :: meta = ' '

Description text.

character(len=REPORT_TITLE_LEN), public :: title = 'Plots'

Section title.

type(report_observ_type), public, allocatable :: observs(:)

Plots to generate.

type, public ::  report_log_type

Section logs of report.

Components

Type Visibility Attributes Name Initial
logical, public :: disabled = .false.

Generate plots.

integer, public :: min_level = LL_WARNING

Minimum log level.

integer, public :: max_level = LL_CRITICAL

Maximum log level.

character(len=FILE_PATH_LEN), public :: database = ' '

Path to observation database (required).

character(len=REPORT_META_LEN), public :: meta = ' '

Description text.

character(len=REPORT_TITLE_LEN), public :: title = 'Logs'

Section title.

type, public ::  report_type

Report type with plot and log settings.

Components

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=REPORT_META_LEN), public :: meta = ' '

Report description text.

character(len=FILE_PATH_LEN), public :: output = ' '

Path of output file.

character(len=REPORT_TITLE_LEN), public :: title = 'Report'

Report title.

character(len=REPORT_TITLE_LEN), public :: subtitle = ' '

Report sub-title.

character(len=FILE_PATH_LEN), public :: style = ' '

Path to CSS file that will be included into the report.

type(report_plot_type), public :: plot

Plots section.

type(report_log_type), public :: log

Logs sections.


Functions

public function dm_report_is_valid(report) result(valid)

Returns .true. if given report type is valid, else .false..

Arguments

Type IntentOptional Attributes Name
type(report_type), intent(inout) :: report

Report type.

Return Value logical