The Colormaps_info class offers information about each colormap.
Define a derived type named 'Colormaps_info' to store an array of 'table' type
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| type(table), | private | :: | colormaps(232) |
Array of 'table' type to store multiple colormaps |
| procedure, public :: finalize => deallocate_Colormaps_info | ../../ Procedure to finalize the derived type |
| procedure, public :: get_levels | ../../ Procedure to get the number of levels in a colormap |
| procedure, public :: get_name | ../../ Procedure to get the name of a colormap |
| procedure, public :: get_ncolormaps | ../../ Procedure to get the number of colormaps |
| procedure, public :: set_all | ../../ Procedure to set information for all colormaps in the array |
| procedure, public :: write | ../../ Procedure to filter and write information about the colormaps |
Define a derived type named 'table' to store information about a colormap
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| character(len=:), | private, | allocatable | :: | author |
Author of the colormap |
||
| character(len=:), | private, | allocatable | :: | colorbar |
Colorbar style associated with the colormap |
||
| character(len=:), | private, | allocatable | :: | family |
Family or category of the colormap |
||
| character(len=:), | private, | allocatable | :: | gradient |
Type of gradient used in the colormap |
||
| integer, | private | :: | levels |
Number of discrete levels in the colormap |
|||
| character(len=:), | private, | allocatable | :: | license |
License information for the colormap |
||
| character(len=:), | private, | allocatable | :: | name |
Name of the colormap |
||
| character(len=:), | private, | allocatable | :: | package |
Package or library associated with the colormap |
||
| character(len=:), | private, | allocatable | :: | palette |
Palette used in the colormap |
||
| character(len=:), | private, | allocatable | :: | url |
URL or web link to the colormap information |
| procedure, public :: finalize => deallocate_table | ../../ Procedure to finalize the derived type |
| procedure, public :: set_info | ../../ Procedure to set information for the colormap |
| procedure, public :: write_info | ../../ Procedure to print information about the colormap |
Finds intersections between elements of the first column and other columns in the input array.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | array(:,:) |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(Colormaps_info), | intent(in) | :: | this | |||
| integer, | intent(in) | :: | index |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(Colormaps_info), | intent(in) | :: | this | |||
| integer, | intent(in) | :: | index |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(Colormaps_info), | intent(in) | :: | this |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(Colormaps_info), | intent(inout) | :: | this |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(table), | intent(inout) | :: | this |
Set information for all colormaps.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(Colormaps_info), | intent(inout) | :: | this |
Set information about the colormap
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(table), | intent(inout) | :: | this | |||
| character(len=*), | intent(in) | :: | package | |||
| character(len=*), | intent(in) | :: | family | |||
| character(len=*), | intent(in) | :: | name | |||
| character(len=*), | intent(in) | :: | gradient | |||
| character(len=*), | intent(in) | :: | palette | |||
| character(len=*), | intent(in) | :: | author | |||
| character(len=*), | intent(in) | :: | license | |||
| character(len=*), | intent(in) | :: | url | |||
| character(len=*), | intent(in) | :: | colorbar | |||
| integer, | intent(in) | :: | levels |
Filter the array of colormaps based on the given criteria and write information about the filtered colormaps
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(Colormaps_info), | intent(inout) | :: | this | |||
| integer, | intent(in), | optional | :: | verbose | ||
| character(len=*), | intent(in), | optional | :: | name | ||
| character(len=*), | intent(in), | optional | :: | family | ||
| character(len=*), | intent(in), | optional | :: | gradient | ||
| character(len=*), | intent(in), | optional | :: | palette | ||
| character(len=*), | intent(in), | optional | :: | author | ||
| character(len=*), | intent(in), | optional | :: | license | ||
| integer, | intent(in), | optional | :: | levels | ||
| character(len=*), | intent(in), | optional | :: | file_name |
Print information about the colormap
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(table), | intent(inout) | :: | this | |||
| integer, | intent(in), | optional | :: | verbose | ||
| character(len=*), | intent(in), | optional | :: | file_name |