NADCON5-ng
0.0.1
NADCON5 Next Generation
Home
Project Documentation
Code Documentation
Index
File List
File Members
cpt2.f
Go to the documentation of this file.
1
c> \ingroup core
2
c> This subroutine generates the color pallette variables
3
c> for a GMT color plot.
4
c>
5
c> This particular routine is best
6
c> for data that are all positive, but cluster near a small
7
c> value while having a lot of outliers to the high-side.
8
c> The color plot uses the MEDIAN (and a multiplier)
9
c> to set the upper limit, while forcing the lower limit
10
c> to be ZERO.
11
c>
12
c> \param[in] med Median of the gridded data
13
c> \param[in] csm Color Sigma Multiplier (The maximum color range will
14
c> be based on csm*med. The minimum color range will be zero)
15
c> \param[out] xlo Low value
16
c> \param[out] xhi High value
17
c> \param[out] xin Interval
18
c>
19
c>
20
subroutine
cpt2
(med,csm,xlo,xhi,xin)
21
implicit none
22
real*8
med,csm,xlo,xhi,xin
23
real*8
qv,qq,spread,std
24
integer*4
iv,iq
25
c - This subroutine generates the color pallette variables
26
c - for a GMT color plot. This particular routine is best
27
c - for data that are all positive, but cluster near a small
28
c - value while having a lot of outliers to the high-side.
29
c - The color plot uses the MEDIAN (and a multiplier)
30
c - to set the upper limit, while forcing the lower limit
31
c - to be ZERO.
32
c
33
c - Input:
34
c med = Median of the gridded data
35
c csm = Color Sigma Multiplier (The maximum color range will
36
c be based on csm*med. The minimum color range will
37
c be zero)
38
c - Output:
39
c xlo = Low value
40
c xhi = High value
41
c xin = Interval
42
43
spread = csm*med
44
std = spread/8.d0
45
46
iv = floor(dlog10(std))
47
qv = 10.d0**iv
48
qq = std / qv
49
iq = nint(qq)
50
51
xin = iq * qv
52
53
xlo = 0.d0
54
xhi = 8 * xin
55
return
56
end
cpt2
subroutine cpt2(med, csm, xlo, xhi, xin)
This subroutine generates the color pallette variables for a GMT color plot.
Definition:
cpt2.f:21
src
Subs
cpt2.f
Generated on Mon Nov 20 2017 16:14:46 for NADCON5-ng by
1.8.11