Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
module colormaps
contains
function red_jet(ic,nc)
implicit none
integer ic,nc
double precision a,red_jet
a=4.d0/dble(nc)
if (ic<=3*nc/8) then
red_jet=0.d0
elseif (ic<=5*nc/8) then
red_jet=ic*a -1.5
elseif (ic<=7*nc/8) then
red_jet=1.d0
else
red_jet=-a*ic+4.5
end if
return
end function
function green_jet(ic,nc)
implicit none
integer ic,nc
double precision a,green_jet
a=4.d0/dble(nc)
if (ic<=nc/8) then
green_jet= 0.d0
elseif (ic<=3*nc/8) then
green_jet= ic*a -0.5
elseif (ic<=5*nc/8) then
green_jet= 1.d0
elseif (ic<=7*nc/8) then
green_jet=-a*ic+3.5
else
green_jet=0.d0
end if
return
end function
function blue_jet(ic,nc)
implicit none
integer ic,nc
double precision a,blue_jet
a=4.d0/dble(nc)
if (ic<=nc/8) then
blue_jet=a*ic+0.5
elseif (ic<=3*nc/8) then
blue_jet=1.d0
elseif (ic<=5*nc/8) then
blue_jet= -a*ic+2.5
else
blue_jet=0.d0
end if
return
end function
!===========================
!====hot===================
!===========================
function red_hot(ic,nc)
implicit none
integer ic,nc
double precision a,red_hot
a=8.d0/dble(nc)/3.d0
if (ic<=3*nc/8) then
red_hot=ic*a
else
red_hot=1.d0
end if
return
end function
function green_hot(ic,nc)
implicit none
integer ic,nc
double precision a,green_hot
a=8.d0/dble(nc)/3.d0
if (ic<=3*nc/8) then
green_hot= 0.d0
elseif (ic<=3*nc/4) then
green_hot=ic*a-1.
else
green_hot= 1.
end if
return
end function
function blue_hot(ic,nc)
implicit none
integer ic,nc
double precision a,blue_hot
a=4.d0/dble(nc)
if (ic<=3*nc/4) then
blue_hot= 0.
else
blue_hot= ic*a-3.
end if
return
end function
end module