GNS-Science / simple-toshi-ui

basic react UI for Toshi API - experimental using react-relay
GNU Affero General Public License v3.0
0 stars 1 forks source link

Preview MFD histogram view #19

Closed chrisbc closed 3 years ago

chrisbc commented 3 years ago

We want a Preview feature - showing MFDs drawn in the UI rather than pre-canned

like this https://nzshm22-rupset-diags-poc.s3-ap-southeast-2.amazonaws.com/2021-06-01-01/RmlsZTo1MjIuMDN2ZktR/named_fault_mfds/participation_incremental/Wairarapa_participation.png

Done when:

chrisbc commented 3 years ago

Wairarapa named fault data from file InversionSolution-RmlsZTo5-rnd0-t1380_RmlsZTo1MjIuMDN2ZktR.zip //LONG CFM 9

partMFD
     Name: Arb Mag Freq Dist
   Points: 41
     Info: Arbitrary Incremental Magnitude Frequency Dististribution

Data[x,y]:
5.05      0.0
5.15      0.0
5.25      0.0
5.35      0.0
5.45      0.0
5.55      0.0
5.65      0.0
5.75      0.0
5.85      0.0
5.95      0.0
6.05      0.0
6.15      0.0
6.25      2.1418539E-6
6.35      7.2610014E-8
6.45      9.059606E-7
6.55      0.0
6.65      4.5084775E-7
6.75      1.5538296E-7
6.85      1.319428E-6
6.95      1.5456251E-6
7.05      3.6339463E-7
7.15      3.9578545E-6
7.25      7.948189E-5
7.35      2.1438321E-4
7.45      3.147912E-4
7.55      2.2818036E-4
7.65      6.539962E-4
7.75      5.0817494E-4
7.85      1.1729178E-4
7.95      1.077012E-4
8.05      1.3105728E-5
8.15      8.235769E-7
8.25      0.0
8.35      0.0
8.45      0.0
8.55      0.0
8.65      0.0
8.75      0.0
8.85      0.0
8.95      0.0
9.05      0.0

subSeismoMFD 
     Name: Summed Dist
   Points: 90
     Info: Sum of these Incremental Mag-Freq Dists

Data[x,y]:
0.05      412.82632
0.15      327.9196
0.25      260.4758
0.35      206.90327
0.45      164.34912
0.55      130.54715
0.65      103.69728
0.75      82.36968
0.85      65.42856
0.95      51.971756
1.05      41.28263
1.15      32.79196
1.25      26.047579
1.35      20.690329
1.45      16.434912
1.55      13.054714
1.65      10.369728
1.75      8.236968
1.85      6.542856
1.95      5.1971755
2.05      4.128263
2.15      3.279196
2.25      2.604758
2.35      2.069033
2.45      1.6434911
2.55      1.3054714
2.65      1.0369729
2.75      0.8236968
2.85      0.6542856
2.95      0.5197175
3.05      0.41282633
3.15      0.3279196
3.25      0.26047578
3.35      0.20690328
3.45      0.16434912
3.55      0.13054715
3.65      0.103697285
3.75      0.08236968
3.85      0.06542856
3.95      0.051971756
4.05      0.04128263
4.15      0.03279196
4.25      0.02604758
4.35      0.020690328
4.45      0.016434912
4.55      0.013054715
4.65      0.010369728
4.75      0.008236968
4.85      0.0065428563
4.95      0.0051971753
5.05      0.0041282633
5.15      0.003279196
5.25      0.002604758
5.35      0.0020690328
5.45      0.0016434912
5.55      0.0013054714
5.65      0.0010369729
5.75      8.236968E-4
5.85      6.542856E-4
5.95      5.197175E-4
6.05      4.128263E-4
6.15      2.4214883E-4
6.25      9.530024E-5
6.35      0.0
6.45      0.0
6.55      0.0
6.65      0.0
6.75      0.0
6.85      0.0
6.95      0.0
7.05      0.0
7.15      0.0
7.25      0.0
7.35      0.0
7.45      0.0
7.55      0.0
7.65      0.0
7.75      0.0
7.85      0.0
7.95      0.0
8.05      0.0
8.15      0.0
8.25      0.0
8.35      0.0
8.45      0.0
8.55      0.0
8.65      0.0
8.75      0.0
8.85      0.0
8.95      0.0

subPlusSupraSeismoParticMFD 
     Name: Summed Dist
   Points: 90
     Info: Sum of these Incremental Mag-Freq Dists

Data[x,y]:
0.05      412.82632
0.15      327.9196
0.25      260.4758
0.35      206.90327
0.45      164.34912
0.55      130.54715
0.65      103.69728
0.75      82.36968
0.85      65.42856
0.95      51.971756
1.05      41.28263
1.15      32.79196
1.25      26.047579
1.35      20.690329
1.45      16.434912
1.55      13.054714
1.65      10.369728
1.75      8.236968
1.85      6.542856
1.95      5.1971755
2.05      4.128263
2.15      3.279196
2.25      2.604758
2.35      2.069033
2.45      1.6434911
2.55      1.3054714
2.65      1.0369729
2.75      0.8236968
2.85      0.6542856
2.95      0.5197175
3.05      0.41282633
3.15      0.3279196
3.25      0.26047578
3.35      0.20690328
3.45      0.16434912
3.55      0.13054715
3.65      0.103697285
3.75      0.08236968
3.85      0.06542856
3.95      0.051971756
4.05      0.04128263
4.15      0.03279196
4.25      0.02604758
4.35      0.020690328
4.45      0.016434912
4.55      0.013054715
4.65      0.010369728
4.75      0.008236968
4.85      0.0065428563
4.95      0.0051971753
5.05      0.0041282633
5.15      0.003279196
5.25      0.002604758
5.35      0.0020690328
5.45      0.0016434912
5.55      0.0013054714
5.65      0.0010369729
5.75      8.236968E-4
5.85      6.542856E-4
5.95      5.197175E-4
6.05      4.128263E-4
6.15      2.4214883E-4
6.25      9.74421E-5
6.35      7.2610014E-8
6.45      9.059606E-7
6.55      0.0
6.65      4.5084775E-7
6.75      1.5538296E-7
6.85      1.319428E-6
6.95      1.5456251E-6
7.05      3.6339463E-7
7.15      3.9578545E-6
7.25      7.948189E-5
7.35      2.1438321E-4
7.45      3.147912E-4
7.55      2.2818036E-4
7.65      6.539962E-4
7.75      5.0817494E-4
7.85      1.1729178E-4
7.95      1.077012E-4
8.05      1.3105728E-5
8.15      8.235769E-7
8.25      0.0
8.35      0.0
8.45      0.0
8.55      0.0
8.65      0.0
8.75      0.0
8.85      0.0
8.95      0.0