Index: trunk/tools/editor_trends/utils/data_converter.py |
— | — | @@ -54,7 +54,12 @@ |
55 | 55 | |
56 | 56 | for obs in var['obs'][date]['data']: |
57 | 57 | if ds.format == 'long': |
58 | | - o.append([datum, obs, var['obs'][date]['data'][obs]]) |
| 58 | + if isinstance(var['obs'][date]['data'], dict): |
| 59 | + for subdata in var['obs'][date]['data']: |
| 60 | + for k,v in var['obs'][date]['data'][subdata]['data'].iteritems(): |
| 61 | + o.append([datum, obs, k, v]) |
| 62 | + else: |
| 63 | + o.append([datum, obs, var['obs'][date]['data'][obs]]) |
59 | 64 | data.extend(o) |
60 | 65 | o = [] |
61 | 66 | else: |