| 153 | === MFD Binary File === |
| 154 | Some mean (across multiple logic tree branches) solutions may contain Magnitude Frequency Distributions for each rupture. In this case, the rates.bin file will contain total rates and mags.bin will contain weighted average magnitudes. These MFDs can be used to more accurately represent the mean of multiple solutions instead of using the mean magnitude. They are written as a series of double arrays, with x values and y values separated into individual arrays. For example, consider these two functions: |
| 155 | |
| 156 | function 1: |
| 157 | ||= x =||= y =|| |
| 158 | ||5.5||0.1|| |
| 159 | ||5.75||0.3|| |
| 160 | ||5.9||0.2|| |
| 161 | |
| 162 | function 2: |
| 163 | ||= x =||= y =|| |
| 164 | ||5.5||0.05|| |
| 165 | ||5.75||0.33|| |
| 166 | ||5.9||0.24|| |
| 167 | ||6.21||0.1|| |
| 168 | |
| 169 | These would be written to the file as: |
| 170 | |
| 171 | '''[[span(style=color: #FF0000, 4)]] [[span(style=color: #0000FF, 3)]] [[span(style=color: #00FFFF, 5.5 5.75 5.9)]] [[span(style=color: #0000FF, 3)]] [[span(style=color: #FFBF00, 0.1 0.3 0.2)]] [[span(style=color: #0000FF, 4)]] [[span(style=color: #00FFFF, 5.5 5.75 5.9 6.21)]] [[span(style=color: #0000FF, 4)]] [[span(style=color: #FFBF00, 0.05 0.33 0.24 0.1)]]''' |
| 172 | |
| 173 | In this example, '''[[span(style=color: #FF0000, the number of arrays (2 * the number of functions, interger) is in red)]]''', '''[[span(style=color: #0000FF, each array's size (integer) in blue)]]''', '''[[span(style=color: #00FFFF, x value array data (double values) are in cyan)]]''', and '''[[span(style=color: #FFBF00, y value array data (double values) are in orange)]]'''. |
| 174 | |