JSON channel, scale, domain, and axis parsing.
Handles encoding channels (x, y, color, etc.), scale configuration, axis properties, and supported domain parsing.
Parse a single encoding channel object
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | json | |||
| integer, | intent(inout) | :: | pos | |||
| type(channel_t), | intent(out) | :: | ch | |||
| integer, | intent(out) | :: | status |
Parse scale object
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | json | |||
| integer, | intent(inout) | :: | pos | |||
| type(scale_t), | intent(out) | :: | sc | |||
| integer, | intent(out) | :: | status |
Parse only numeric domains and skip categorical domains.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | json | |||
| integer, | intent(inout) | :: | pos | |||
| type(scale_t), | intent(inout) | :: | sc | |||
| integer, | intent(out) | :: | status |
Parse domain array [min, max]
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | json | |||
| integer, | intent(inout) | :: | pos | |||
| type(scale_t), | intent(inout) | :: | sc | |||
| integer, | intent(out) | :: | status |
Parse axis object
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | json | |||
| integer, | intent(inout) | :: | pos | |||
| type(axis_t), | intent(out) | :: | ax | |||
| integer, | intent(out) | :: | status |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | json | |||
| integer, | intent(inout) | :: | pos | |||
| real(kind=wp), | intent(out), | allocatable | :: | values(:) | ||
| integer, | intent(out) | :: | status |
Parse mark: either a string or an object
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | json | |||
| integer, | intent(inout) | :: | pos | |||
| type(mark_t), | intent(out) | :: | m | |||
| integer, | intent(out) | :: | status |
Parse encoding object with named channels
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | json | |||
| integer, | intent(inout) | :: | pos | |||
| type(encoding_t), | intent(out) | :: | enc | |||
| integer, | intent(out) | :: | status |