()
| 116 | |
| 117 | |
| 118 | def example_data(): |
| 119 | # The following data is from the Denver Aerosol Sources and Health study. |
| 120 | # See doi:10.1016/j.atmosenv.2008.12.017 |
| 121 | # |
| 122 | # The data are pollution source profile estimates for five modeled |
| 123 | # pollution sources (e.g., cars, wood-burning, etc) that emit 7-9 chemical |
| 124 | # species. The radar charts are experimented with here to see if we can |
| 125 | # nicely visualize how the modeled source profiles change across four |
| 126 | # scenarios: |
| 127 | # 1) No gas-phase species present, just seven particulate counts on |
| 128 | # Sulfate |
| 129 | # Nitrate |
| 130 | # Elemental Carbon (EC) |
| 131 | # Organic Carbon fraction 1 (OC) |
| 132 | # Organic Carbon fraction 2 (OC2) |
| 133 | # Organic Carbon fraction 3 (OC3) |
| 134 | # Pyrolyzed Organic Carbon (OP) |
| 135 | # 2)Inclusion of gas-phase specie carbon monoxide (CO) |
| 136 | # 3)Inclusion of gas-phase specie ozone (O3). |
| 137 | # 4)Inclusion of both gas-phase species is present... |
| 138 | data = [ |
| 139 | ['Sulfate', 'Nitrate', 'EC', 'OC1', 'OC2', 'OC3', 'OP', 'CO', 'O3'], |
| 140 | ('Basecase', [ |
| 141 | [0.88, 0.01, 0.03, 0.03, 0.00, 0.06, 0.01, 0.00, 0.00], |
| 142 | [0.07, 0.95, 0.04, 0.05, 0.00, 0.02, 0.01, 0.00, 0.00], |
| 143 | [0.01, 0.02, 0.85, 0.19, 0.05, 0.10, 0.00, 0.00, 0.00], |
| 144 | [0.02, 0.01, 0.07, 0.01, 0.21, 0.12, 0.98, 0.00, 0.00], |
| 145 | [0.01, 0.01, 0.02, 0.71, 0.74, 0.70, 0.00, 0.00, 0.00]]), |
| 146 | ('With CO', [ |
| 147 | [0.88, 0.02, 0.02, 0.02, 0.00, 0.05, 0.00, 0.05, 0.00], |
| 148 | [0.08, 0.94, 0.04, 0.02, 0.00, 0.01, 0.12, 0.04, 0.00], |
| 149 | [0.01, 0.01, 0.79, 0.10, 0.00, 0.05, 0.00, 0.31, 0.00], |
| 150 | [0.00, 0.02, 0.03, 0.38, 0.31, 0.31, 0.00, 0.59, 0.00], |
| 151 | [0.02, 0.02, 0.11, 0.47, 0.69, 0.58, 0.88, 0.00, 0.00]]), |
| 152 | ('With O3', [ |
| 153 | [0.89, 0.01, 0.07, 0.00, 0.00, 0.05, 0.00, 0.00, 0.03], |
| 154 | [0.07, 0.95, 0.05, 0.04, 0.00, 0.02, 0.12, 0.00, 0.00], |
| 155 | [0.01, 0.02, 0.86, 0.27, 0.16, 0.19, 0.00, 0.00, 0.00], |
| 156 | [0.01, 0.03, 0.00, 0.32, 0.29, 0.27, 0.00, 0.00, 0.95], |
| 157 | [0.02, 0.00, 0.03, 0.37, 0.56, 0.47, 0.87, 0.00, 0.00]]), |
| 158 | ('CO & O3', [ |
| 159 | [0.87, 0.01, 0.08, 0.00, 0.00, 0.04, 0.00, 0.00, 0.01], |
| 160 | [0.09, 0.95, 0.02, 0.03, 0.00, 0.01, 0.13, 0.06, 0.00], |
| 161 | [0.01, 0.02, 0.71, 0.24, 0.13, 0.16, 0.00, 0.50, 0.00], |
| 162 | [0.01, 0.03, 0.00, 0.28, 0.24, 0.23, 0.00, 0.44, 0.88], |
| 163 | [0.02, 0.00, 0.18, 0.45, 0.64, 0.55, 0.86, 0.00, 0.16]]) |
| 164 | ] |
| 165 | return data |
| 166 | |
| 167 | |
| 168 | if __name__ == '__main__': |
no outgoing calls
no test coverage detected
searching dependent graphs…