/
ReliefAxis17Geoisostasy.cs
75 lines (63 loc) · 1.86 KB
/
ReliefAxis17Geoisostasy.cs
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
#if DEBUG
using Logy.Maps.Exchange;
using NUnit.Framework;
namespace Logy.Maps.ReliefMaps.World.Ocean
{
/// <summary>
/// http://hist.tk/ory/Ñäâèã_ïîëþñà_ñ_ó÷¸òîì_ãåîèçîñòàçèè
///
/// for performance better to run AxisChange() at k6 till 4000, then MoreAccurate(),
/// and afterwards Smoothing() with k7-9 and finally MoreAccurate()
/// </summary>
public class ReliefAxis17Geoisostasy : ReliefMap
{
public ReliefAxis17Geoisostasy() : this(7) // till 9
{
}
public ReliefAxis17Geoisostasy(int k) : base(k)
{
// YResolution = 4;
}
public void SetAlgorithm()
{
var algorithm = new ShiftAxis(new OceanData(HealpixManager)
{
WithRelief = true,
})
{ Geoisostasy = true };
InitData(algorithm, true);
}
[Test]
public void AxisChange()
{
SetAlgorithm();
ShiftAxisBalanced(100);
}
[Test]
public void SmoothingTest()
{
SetAlgorithm();
Smoothing();
// todo problem with CorrectionBundle workarounded by fast shift and later MoreAccurate()
ShiftAxis(10060);
}
[Test]
public void MoreAccurate()
{
InitDataWithJson();
//HighFluidity();
ShiftAxis(300);
DrawPoliticalMap();
}
[Test]
public void AndPoliticalMap()
{
InitDataWithJson();
/// Bundle = Bundle<Basin3>.DeserializeFile(StatsFileName(4000)); // 3681 - k7, 3730 - k8, 4000 - k9
Data.MinDefault = -1100;
Data.MaxDefault = 1100;
DrawPoliticalMap();
}
}
}
#endif