This module contains miscellaneous procedures and functions.
Interface to the scale_real_real() and scale_real_int() functions.
Normalize the input real array to the range [0, 1]
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(in), | dimension(:) | :: | real_array | ||
| real(kind=wp), | intent(in) | :: | a | |||
| real(kind=wp), | intent(in) | :: | b |
Scale the input real array to the integer RGB range [a, b]
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(in), | dimension(:) | :: | real_array | ||
| integer, | intent(in) | :: | a | |||
| integer, | intent(in) | :: | b |
Create a colormap from continuous Bezier interpolation of control colors
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | colors(:,:) | |||
| integer, | intent(in), | optional | :: | levels |
Factorial function used for Bezier interpolation
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | n |
Create colormap from Lagrange interpolation of control colors
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | colors(:,:) | |||
| integer, | intent(in), | optional | :: | levels |
Interpolates a Lagrange polynomial defined by n equidistant points between 0 and 1
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(in) | :: | t | |||
| integer, | intent(in) | :: | n |
Scale the input real array to the integer RGB range [a, b]
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(in), | dimension(:) | :: | real_array | ||
| integer, | intent(in) | :: | a | |||
| integer, | intent(in) | :: | b |
Normalize the input real array to the range [0, 1]
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(in), | dimension(:) | :: | real_array | ||
| real(kind=wp), | intent(in) | :: | a | |||
| real(kind=wp), | intent(in) | :: | b |