Newer
Older
"""Factory that loads metadata for an observatory"""
# default metadata for the 14 USGS observatories.
DEFAULT_METADATA = {
'BDT': {
'metadata': {
'station_name': 'Boulder Test',
'agency_name': 'United States Geological Survey (USGS)',
'geodetic_latitude': '40.137',
'geodetic_longitude': '254.763',
'elevation': '1682',
'sensor_orientation': 'HDZF',
'sensor_sampling_rate': 100.0,
'declination_base': 5527,
'is_gin': False,
'is_intermagnet': False,
'conditions_of_use': 'The Conditions of Use for data provided' +
' through INTERMAGNET and acknowledgement templates' +
' can be found at www.intermagnet.org'
},
'interval_specific': {
'minute': {
'data_interval_type': 'filtered 1-minute (00:15-01:45) ',
'filter_comments': ['Vector 1-minute values are computed' +
' from 1-second values using the INTERMAGNET gaussian' +
' filter centered on the minute. Scalar 1-minute values' +
' are computed from 1-second values using the' +
' INTERMAGNET gaussian filter centered on the minute. ']
},
'second': {
'data_interval_type': 'Average 1-Second'
}
}
},
'BOU': {
'metadata': {
'station_name': 'Boulder',
'agency_name': 'United States Geological Survey (USGS)',
'geodetic_latitude': '40.137',
'geodetic_longitude': '254.763',
'elevation': '1682',
'sensor_orientation': 'HDZF',
'sensor_sampling_rate': 100.0,
'declination_base': 5527,
'is_gin': False,
'is_intermagnet': False,
'conditions_of_use': 'The Conditions of Use for data provided' +
' through INTERMAGNET and acknowledgement templates' +
' can be found at www.intermagnet.org'
},
'interval_specific': {
'minute': {
'data_interval_type': 'filtered 1-minute (00:15-01:45) ',
'filter_comments': ['Vector 1-minute values are computed' +
' from 1-second values using the INTERMAGNET gaussian' +
' filter centered on the minute. Scalar 1-minute values' +
' are computed from 1-second values using the' +
' INTERMAGNET gaussian filter centered on the minute. ']
},
'second': {
'data_interval_type': 'Average 1-Second'
}
}
},
'TST': {
'metadata': {
'station_name': 'Boulder Test',
'agency_name': 'United States Geological Survey (USGS)',
'geodetic_latitude': '40.137',
'geodetic_longitude': '254.763',
'elevation': '1682',
'sensor_orientation': 'HDZF',
'sensor_sampling_rate': 1000.0,
'declination_base': 5527,
'is_gin': False,
'is_intermagnet': False,
'conditions_of_use': 'The Conditions of Use for data provided' +
' through INTERMAGNET and acknowledgement templates' +
' can be found at www.intermagnet.org'
},
'interval_specific': {
'minute': {
'data_interval_type': 'filtered 1-minute (00:15-01:45) ',
'filter_comments': ['Vector 1-minute values are computed' +
' from 1-second values using the INTERMAGNET gaussian' +
' filter centered on the minute. Scalar 1-minute values' +
' are computed from 1-second values using the' +
' INTERMAGNET gaussian filter centered on the minute. ']
},
'second': {
'data_interval_type': 'Average 1-Second'
}
}
},
'BRW': {
'metadata': {
'station_name': 'Barrow',
'agency_name': 'United States Geological Survey (USGS)',
'geodetic_latitude': '71.322',
'geodetic_longitude': '203.378',
'sensor_sampling_rate': 100.0,
'is_gin': False,
'is_intermagnet': False,
'conditions_of_use': 'The Conditions of Use for data provided' +
' through INTERMAGNET and acknowledgement templates' +
' can be found at www.intermagnet.org'
},
'data_interval_type': {
'minute': {
'data_interval_type': 'filtered 1-minute (00:15-01:45) ',
'filter_comments': ['Vector 1-minute values are computed' +
' from 1-second values using the INTERMAGNET gaussian' +
' filter centered on the minute. Scalar 1-minute values' +
' are computed from 1-second values using the' +
' INTERMAGNET gaussian filter centered on the minute. ']
},
'second': {
'data_interval_type': 'Average 1-Second'
}
}
},
'BRT': {
'metadata': {
'station_name': 'Barrow Test',
'agency_name': 'United States Geological Survey (USGS)',
'geodetic_latitude': '71.322',
'geodetic_longitude': '203.378',
'sensor_sampling_rate': 1000.0,
'is_gin': False,
'is_intermagnet': False,
'conditions_of_use': 'The Conditions of Use for data provided' +
' through INTERMAGNET and acknowledgement templates' +
' can be found at www.intermagnet.org'
},
'data_interval_type': {
'minute': {
'data_interval_type': 'filtered 1-minute (00:15-01:45) ',
'filter_comments': ['Vector 1-minute values are computed' +
' from 1-second values using the INTERMAGNET gaussian' +
' filter centered on the minute. Scalar 1-minute values' +
' are computed from 1-second values using the' +
' INTERMAGNET gaussian filter centered on the minute. ']
},
'second': {
'data_interval_type': 'Average 1-Second'
}
}
},
'BSL': {
'metadata': {
'station_name': 'Stennis Space Center',
'agency_name': 'United States Geological Survey (USGS)',
'geodetic_latitude': '30.350',
'geodetic_longitude': '270.365',
'elevation': '8',
'sensor_orientation': 'HDZF',
'sensor_sampling_rate': 100.0,
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
'is_gin': False,
'is_intermagnet': False,
'conditions_of_use': 'The Conditions of Use for data provided' +
' through INTERMAGNET and acknowledgement templates' +
' can be found at www.intermagnet.org'
},
'interval_specific': {
'minute': {
'data_interval_type': 'filtered 1-minute (00:15-01:45) ',
'filter_comments': ['Vector 1-minute values are computed' +
' from 1-second values using the INTERMAGNET gaussian' +
' filter centered on the minute. Scalar 1-minute values' +
' are computed from 1-second values using the' +
' INTERMAGNET gaussian filter centered on the minute. ']
},
'second': {
'data_interval_type': 'Average 1-Second'
}
}
},
'CMO': {
'metadata': {
'station_name': 'College',
'agency_name': 'United States Geological Survey (USGS)',
'geodetic_latitude': '64.874',
'geodetic_longitude': '212.140',
'elevation': '197',
'sensor_orientation': 'HDZF',
'sensor_sampling_rate': 100.0,
'is_gin': False,
'is_intermagnet': False,
'conditions_of_use': 'The Conditions of Use for data provided' +
' through INTERMAGNET and acknowledgement templates' +
' can be found at www.intermagnet.org'
}
},
'CMT': {
'metadata': {
'station_name': 'College',
'agency_name': 'United States Geological Survey (USGS)',
'geodetic_latitude': '64.874',
'geodetic_longitude': '212.140',
'elevation': '197',
'sensor_orientation': 'HDZF',
'sensor_sampling_rate': 1000.0,
'is_gin': False,
'is_intermagnet': False,
'conditions_of_use': 'The Conditions of Use for data provided' +
' through INTERMAGNET and acknowledgement templates' +
' can be found at www.intermagnet.org'
}
},
'metadata': {
'station_name': 'Deadhorse',
'agency_name': 'United States Geological Survey (USGS)',
'geodetic_latitude': '70.355',
'geodetic_longitude': '211.207',
'elevation': '10',
'sensor_orientation': 'HDZF',
'sensor_sampling_rate': 100.0,
'is_gin': False,
'is_intermagnet': False,
'conditions_of_use': 'The Conditions of Use for data provided' +
' through INTERMAGNET and acknowledgement templates' +
' can be found at www.intermagnet.org'
},
'interval_specific': {
'minute': {
'data_interval_type': 'filtered 1-minute (00:15-01:45) ',
'filter_comments': ['Vector 1-minute values are computed' +
' from 1-second values using the INTERMAGNET gaussian' +
' filter centered on the minute. Scalar 1-minute values' +
' are computed from 1-second values using the' +
' INTERMAGNET gaussian filter centered on the minute. ']
},
'second': {
'data_interval_type': 'Average 1-Second'
}
}
},
'DHT': {
'agency_name': 'United States Geological Survey (USGS)',
'geodetic_latitude': '70.355',
'geodetic_longitude': '211.207',
'elevation': '10',
'sensor_orientation': 'HDZF',
'sensor_sampling_rate': 1000.0,
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
'is_gin': False,
'is_intermagnet': False,
'conditions_of_use': 'The Conditions of Use for data provided' +
' through INTERMAGNET and acknowledgement templates' +
' can be found at www.intermagnet.org'
},
'interval_specific': {
'minute': {
'data_interval_type': 'filtered 1-minute (00:15-01:45) ',
'filter_comments': ['Vector 1-minute values are computed' +
' from 1-second values using the INTERMAGNET gaussian' +
' filter centered on the minute. Scalar 1-minute values' +
' are computed from 1-second values using the' +
' INTERMAGNET gaussian filter centered on the minute. ']
},
'second': {
'data_interval_type': 'Average 1-Second'
}
}
},
'FRD': {
'metadata': {
'station_name': 'Fredericksburg',
'agency_name': 'United States Geological Survey (USGS)',
'geodetic_latitude': '38.205',
'geodetic_longitude': '282.627',
'elevation': '69',
'sensor_orientation': 'HDZF',
'sensor_sampling_rate': 100.0,
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
'is_gin': False,
'is_intermagnet': False,
'conditions_of_use': 'The Conditions of Use for data provided' +
' through INTERMAGNET and acknowledgement templates' +
' can be found at www.intermagnet.org'
},
'interval_specific': {
'minute': {
'data_interval_type': 'filtered 1-minute (00:15-01:45) ',
'filter_comments': ['Vector 1-minute values are computed' +
' from 1-second values using the INTERMAGNET gaussian' +
' filter centered on the minute. Scalar 1-minute values' +
' are computed from 1-second values using the' +
' INTERMAGNET gaussian filter centered on the minute. ']
},
'second': {
'data_interval_type': 'Average 1-Second'
}
}
},
'FRN': {
'metadata': {
'station_name': 'Fresno',
'agency_name': 'United States Geological Survey (USGS)',
'geodetic_latitude': '37.091',
'geodetic_longitude': '240.282',
'elevation': '331',
'sensor_orientation': 'HDZF',
'sensor_sampling_rate': 100.0,
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
'is_gin': False,
'is_intermagnet': False,
'conditions_of_use': 'The Conditions of Use for data provided' +
' through INTERMAGNET and acknowledgement templates' +
' can be found at www.intermagnet.org'
},
'interval_specific': {
'minute': {
'data_interval_type': 'filtered 1-minute (00:15-01:45) ',
'filter_comments': ['Vector 1-minute values are computed' +
' from 1-second values using the INTERMAGNET gaussian' +
' filter centered on the minute. Scalar 1-minute values' +
' are computed from 1-second values using the' +
' INTERMAGNET gaussian filter centered on the minute. ']
},
'second': {
'data_interval_type': 'Average 1-Second'
}
}
},
'GUA': {
'metadata': {
'station_name': 'Guam',
'agency_name': 'United States Geological Survey (USGS)',
'geodetic_latitude': '13.588',
'geodetic_longitude': '144.867',
'elevation': '140',
'sensor_orientation': 'HDZF',
'sensor_sampling_rate': 100.0,
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
'is_gin': False,
'is_intermagnet': False,
'conditions_of_use': 'The Conditions of Use for data provided' +
' through INTERMAGNET and acknowledgement templates' +
' can be found at www.intermagnet.org'
},
'interval_specific': {
'minute': {
'data_interval_type': 'filtered 1-minute (00:15-01:45) ',
'filter_comments': ['Vector 1-minute values are computed' +
' from 1-second values using the INTERMAGNET gaussian' +
' filter centered on the minute. Scalar 1-minute values' +
' are computed from 1-second values using the' +
' INTERMAGNET gaussian filter centered on the minute. ']
},
'second': {
'data_interval_type': 'Average 1-Second'
}
}
},
'HON': {
'metadata': {
'station_name': 'Honolulu',
'agency_name': 'United States Geological Survey (USGS)',
'geodetic_latitude': '21.316',
'geodetic_longitude': '202.000',
'elevation': '4',
'sensor_orientation': 'HDZF',
'sensor_sampling_rate': 100.0,
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
'is_gin': False,
'is_intermagnet': False,
'conditions_of_use': 'The Conditions of Use for data provided' +
' through INTERMAGNET and acknowledgement templates' +
' can be found at www.intermagnet.org'
},
'interval_specific': {
'minute': {
'data_interval_type': 'filtered 1-minute (00:15-01:45) ',
'filter_comments': ['Vector 1-minute values are computed' +
' from 1-second values using the INTERMAGNET gaussian' +
' filter centered on the minute. Scalar 1-minute values' +
' are computed from 1-second values using the' +
' INTERMAGNET gaussian filter centered on the minute. ']
},
'second': {
'data_interval_type': 'Average 1-Second'
}
}
},
'NEW': {
'metadata': {
'station_name': 'Newport',
'agency_name': 'United States Geological Survey (USGS)',
'geodetic_latitude': '48.265',
'geodetic_longitude': '242.878',
'elevation': '770',
'sensor_orientation': 'HDZF',
'sensor_sampling_rate': 100.0,
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
'is_gin': False,
'is_intermagnet': False,
'conditions_of_use': 'The Conditions of Use for data provided' +
' through INTERMAGNET and acknowledgement templates' +
' can be found at www.intermagnet.org'
},
'interval_specific': {
'minute': {
'data_interval_type': 'filtered 1-minute (00:15-01:45) ',
'filter_comments': ['Vector 1-minute values are computed' +
' from 1-second values using the INTERMAGNET gaussian' +
' filter centered on the minute. Scalar 1-minute values' +
' are computed from 1-second values using the' +
' INTERMAGNET gaussian filter centered on the minute. ']
},
'second': {
'data_interval_type': 'Average 1-Second'
}
}
},
'SHU': {
'metadata': {
'station_name': 'Shumagin',
'agency_name': 'United States Geological Survey (USGS)',
'geodetic_latitude': '55.348',
'geodetic_longitude': '199.538',
'elevation': '80',
'sensor_orientation': 'HDZF',
'sensor_sampling_rate': 100.0,
'is_gin': False,
'is_intermagnet': False,
'conditions_of_use': 'The Conditions of Use for data provided' +
' through INTERMAGNET and acknowledgement templates' +
' can be found at www.intermagnet.org'
},
'interval_specific': {
'minute': {
'data_interval_type': 'filtered 1-minute (00:15-01:45) ',
'filter_comments': ['Vector 1-minute values are computed' +
' from 1-second values using the INTERMAGNET gaussian' +
' filter centered on the minute. Scalar 1-minute values' +
' are computed from 1-second values using the' +
' INTERMAGNET gaussian filter centered on the minute. ']
},
'second': {
'data_interval_type': 'Average 1-Second'
}
}
},
'SIT': {
'metadata': {
'station_name': 'Sitka',
'agency_name': 'United States Geological Survey (USGS)',
'geodetic_latitude': '57.058',
'geodetic_longitude': '224.675',
'elevation': '24',
'sensor_orientation': 'HDZF',
'sensor_sampling_rate': 100.0,
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
'is_gin': False,
'is_intermagnet': False,
'conditions_of_use': 'The Conditions of Use for data provided' +
' through INTERMAGNET and acknowledgement templates' +
' can be found at www.intermagnet.org'
},
'interval_specific': {
'minute': {
'data_interval_type': 'filtered 1-minute (00:15-01:45) ',
'filter_comments': ['Vector 1-minute values are computed' +
' from 1-second values using the INTERMAGNET gaussian' +
' filter centered on the minute. Scalar 1-minute values' +
' are computed from 1-second values using the' +
' INTERMAGNET gaussian filter centered on the minute. ']
},
'second': {
'data_interval_type': 'Average 1-Second'
}
}
},
'SJG': {
'metadata': {
'station_name': 'San Juan',
'agency_name': 'United States Geological Survey (USGS)',
'geodetic_latitude': '18.113',
'geodetic_longitude': '293.849',
'elevation': '424',
'sensor_orientation': 'HDZF',
'sensor_sampling_rate': 100.0,
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
'is_gin': False,
'is_intermagnet': False,
'conditions_of_use': 'The Conditions of Use for data provided' +
' through INTERMAGNET and acknowledgement templates' +
' can be found at www.intermagnet.org'
},
'interval_specific': {
'minute': {
'data_interval_type': 'filtered 1-minute (00:15-01:45) ',
'filter_comments': ['Vector 1-minute values are computed' +
' from 1-second values using the INTERMAGNET gaussian' +
' filter centered on the minute. Scalar 1-minute values' +
' are computed from 1-second values using the' +
' INTERMAGNET gaussian filter centered on the minute. ']
},
'second': {
'data_interval_type': 'Average 1-Second'
}
}
},
'TUC': {
'metadata': {
'station_name': 'Tucson',
'agency_name': 'United States Geological Survey (USGS)',
'geodetic_latitude': '32.174',
'geodetic_longitude': '249.267',
'elevation': '946',
'sensor_orientation': 'HDZF',
'sensor_sampling_rate': 100.0,
'is_gin': False,
'is_intermagnet': False,
'conditions_of_use': 'The Conditions of Use for data provided' +
' through INTERMAGNET and acknowledgement templates' +
' can be found at www.intermagnet.org'
},
'interval_specific': {
'minute': {
'data_interval_type': 'filtered 1-minute (00:15-01:45) ',
'filter_comments': ['Vector 1-minute values are computed' +
' from 1-second values using the INTERMAGNET gaussian' +
' filter centered on the minute. Scalar 1-minute values' +
' are computed from 1-second values using the' +
' INTERMAGNET gaussian filter centered on the minute. ']
},
'second': {
'data_interval_type': 'Average 1-Second'
}
}
},
'USGS': {
'metadata': {
'station_name': 'USGS',
'agency_name': 'United States Geological Survey (USGS)',
'geodetic_latitude': '40.137',
'geodetic_longitude': '254.764',
'elevation': '1682',
'sensor_orientation': 'HDZF',
'sensor_sampling_rate': 100.0,
'declination_base': 0,
'is_gin': False,
'is_intermagnet': False,
'conditions_of_use': 'The Conditions of Use for data provided' +
' through INTERMAGNET and acknowledgement templates' +
' can be found at www.intermagnet.org'
},
'interval_specific': {
'minute': {
'data_interval_type': '1-minute calculated',
'filter_comments': []
},
'data_interval_type': '1-hour calculated'
}
}
},
'agency_name': 'Geological Survey of Canada (GSC)',
'geodetic_latitude': '64.300',
'geodetic_longitude': '264.000',
'elevation': '0',
'sensor_orientation': 'XYZF',
'reported': 'XYZF',
'sensor_sampling_rate': 100.0,
'is_gin': False,
'is_intermagnet': False,
'conditions_of_use': 'The Conditions of Use for data provided' +
' through INTERMAGNET and acknowledgement templates' +
' can be found at www.intermagnet.org'
},
'interval_specific': {
'minute': {
'data_interval_type': 'filtered 1-minute (00:15-01:45)'
},
'second': {
'data_interval_type': ''
}
}
},
'BRD': {
'metadata': {
'station_name': 'Brandon',
'agency_name': 'Geological Survey of Canada (GSC)',
'geodetic_latitude': '49.600',
'geodetic_longitude': '262.900',
'elevation': '0',
'sensor_orientation': 'XYZF',
'reported': 'XYZF',
'sensor_sampling_rate': 100.0,
'is_gin': False,
'is_intermagnet': False,
'conditions_of_use': 'The Conditions of Use for data provided' +
' through INTERMAGNET and acknowledgement templates' +
' can be found at www.intermagnet.org'
},
'interval_specific': {
'minute': {
'data_interval_type': 'filtered 1-minute (00:15-01:45)'
},
'second': {
'data_interval_type': ''
}
}
},
'CBB': {
'metadata': {
'station_name': 'Cambridge Bay',
'agency_name': 'Geological Survey of Canada (GSC)',
'geodetic_latitude': '69.200',
'geodetic_longitude': '255.000',
'elevation': '0',
'sensor_orientation': 'XYZF',
'reported': 'XYZF',
'sensor_sampling_rate': 100.0,
'is_gin': False,
'is_intermagnet': False,
'conditions_of_use': 'The Conditions of Use for data provided' +
' through INTERMAGNET and acknowledgement templates' +
' can be found at www.intermagnet.org'
},
'interval_specific': {
'minute': {
'data_interval_type': 'filtered 1-minute (00:15-01:45)'
},
'second': {
'data_interval_type': ''
}
}
},
'EUA': {
'metadata': {
'station_name': 'Eureka',
'agency_name': 'Geological Survey of Canada (GSC)',
'geodetic_latitude': '55.300',
'geodetic_longitude': '282.300',
'elevation': '0',
'sensor_orientation': 'XYZF',
'reported': 'XYZF',
'sensor_sampling_rate': 100.0,
'is_gin': False,
'is_intermagnet': False,
'conditions_of_use': 'The Conditions of Use for data provided' +
' through INTERMAGNET and acknowledgement templates' +
' can be found at www.intermagnet.org'
},
'interval_specific': {
'minute': {
'data_interval_type': 'filtered 1-minute (00:15-01:45)'
},
'second': {
'data_interval_type': ''
}
}
},
'FCC': {
'metadata': {
'station_name': 'Fort Churchill',
'agency_name': 'Geological Survey of Canada (GSC)',
'geodetic_latitude': '58.800',
'geodetic_longitude': '265.900',
'elevation': '0',
'sensor_orientation': 'XYZF',
'reported': 'XYZF',
'sensor_sampling_rate': 100.0,
'is_gin': False,
'is_intermagnet': False,
'conditions_of_use': 'The Conditions of Use for data provided' +
' through INTERMAGNET and acknowledgement templates' +
' can be found at www.intermagnet.org'
},
'interval_specific': {
'minute': {
'data_interval_type': 'filtered 1-minute (00:15-01:45)'
},
'second': {
'data_interval_type': ''
}
}
},
'HAD': {
'metadata': {
'station_name': 'Hartland',
'agency_name': 'British Geological Survey (BGS)',
'geodetic_latitude': '51.000',
'geodetic_longitude': '355.500',
'elevation': '0',
'sensor_orientation': 'HDZF',
'reported': 'HDZF',
'sensor_sampling_rate': 100.0,
'is_gin': False,
'is_intermagnet': False,
'conditions_of_use': 'The Conditions of Use for data provided' +
' through INTERMAGNET and acknowledgement templates' +
' can be found at www.intermagnet.org'
},
'interval_specific': {
'minute': {
'data_interval_type': 'filtered 1-minute (00:15-01:45)'
},
'second': {
'data_interval_type': ''
}
}
},
'HER': {
'metadata': {
'station_name': 'Hermanus',
'agency_name': 'National Research Foundation',
'geodetic_latitude': '-34.400',
'geodetic_longitude': '19.200',
'elevation': '0',
'sensor_orientation': 'HDZF',
'reported': 'HDZF',
'sensor_sampling_rate': 100.0,
'is_gin': False,
'is_intermagnet': False,
'conditions_of_use': 'The Conditions of Use for data provided' +
' through INTERMAGNET and acknowledgement templates' +
' can be found at www.intermagnet.org'
},
'interval_specific': {
'minute': {
'data_interval_type': 'filtered 1-minute (00:15-01:45)'
},
'second': {
'data_interval_type': ''
}
}
},
'IQA': {
'metadata': {
'station_name': 'Iqaluit',
'agency_name': 'Geological Survey of Canada (GSC)',
'geodetic_latitude': '63.800',
'geodetic_longitude': '291.500',
'elevation': '0',
'sensor_orientation': 'XYZF',
'reported': 'XYZF',
'sensor_sampling_rate': 100.0,
'is_gin': False,
'is_intermagnet': False,
'conditions_of_use': 'The Conditions of Use for data provided' +
' through INTERMAGNET and acknowledgement templates' +
' can be found at www.intermagnet.org'
},
'interval_specific': {
'minute': {
'data_interval_type': 'filtered 1-minute (00:15-01:45)'
},
'second': {
'data_interval_type': ''
}
}
},
'MEA': {
'metadata': {
'station_name': 'Meanook',
'agency_name': 'Geological Survey of Canada (GSC)',
'geodetic_latitude': '54.600',
'geodetic_longitude': '246.700',
'elevation': '0',
'sensor_orientation': 'XYZF',
'reported': 'XYZF',
'sensor_sampling_rate': 100.0,
'is_gin': False,
'is_intermagnet': False,
'conditions_of_use': 'The Conditions of Use for data provided' +
' through INTERMAGNET and acknowledgement templates' +
' can be found at www.intermagnet.org'
},
'interval_specific': {
'minute': {
'data_interval_type': 'filtered 1-minute (00:15-01:45)'
},
'second': {
'data_interval_type': ''
}
}
},
'OTT': {
'metadata': {
'station_name': 'Ottowa',
'agency_name': 'Geological Survey of Canada (GSC)',
'geodetic_latitude': '45.400',
'geodetic_longitude': '284.500',
'elevation': '0',
'sensor_orientation': 'XYZF',
'reported': 'XYZF',
'sensor_sampling_rate': 100.0,
'is_gin': False,
'is_intermagnet': False,
'conditions_of_use': 'The Conditions of Use for data provided' +
' through INTERMAGNET and acknowledgement templates' +
' can be found at www.intermagnet.org'
},
'interval_specific': {
'minute': {
'data_interval_type': 'filtered 1-minute (00:15-01:45)'
},
'second': {
'data_interval_type': ''
}
}
},
'RES': {
'metadata': {
'station_name': 'Resolute Bay',
'agency_name': 'Geological Survey of Canada (GSC)',
'geodetic_latitude': '74.700',
'geodetic_longitude': '265.100',
'elevation': '0',
'sensor_orientation': 'XYZF',
'reported': 'XYZF',
'sensor_sampling_rate': 100.0,
'is_gin': False,
'is_intermagnet': False,
'conditions_of_use': 'The Conditions of Use for data provided' +
' through INTERMAGNET and acknowledgement templates' +
' can be found at www.intermagnet.org'
},
'interval_specific': {
'minute': {
'data_interval_type': 'filtered 1-minute (00:15-01:45)'
},
'second': {
'data_interval_type': ''
}
}
},
'SNK': {
'metadata': {
'station_name': 'Sanikiluaq',
'agency_name': 'Geological Survey of Canada (GSC)',
'geodetic_latitude': '62.400',
'geodetic_longitude': '245.500',
'elevation': '0',
'sensor_orientation': 'XYZF',
'reported': 'XYZF',
'sensor_sampling_rate': 100.0,
'is_gin': False,
'is_intermagnet': False,
'conditions_of_use': 'The Conditions of Use for data provided' +
' through INTERMAGNET and acknowledgement templates' +
' can be found at www.intermagnet.org'
},
'interval_specific': {
'minute': {
'data_interval_type': 'filtered 1-minute (00:15-01:45)'
},
'second': {
'data_interval_type': ''
}
}
},
'STJ': {
'metadata': {
'agency_name': 'Geological Survey of Canada (GSC)',
'geodetic_latitude': '47.600',
'geodetic_longitude': '307.300',
'elevation': '0',
'sensor_orientation': 'XYZF',
'reported': 'XYZF',
'sensor_sampling_rate': 100.0,
'is_gin': False,
'is_intermagnet': False,
'conditions_of_use': 'The Conditions of Use for data provided' +
' through INTERMAGNET and acknowledgement templates' +
' can be found at www.intermagnet.org'
},
'interval_specific': {
'minute': {
'data_interval_type': 'filtered 1-minute (00:15-01:45)'
},
'second': {
'data_interval_type': ''
}
}
},
'VIC': {
'metadata': {
'station_name': 'Victoria',
'agency_name': 'Geological Survey of Canada (GSC)',
'geodetic_latitude': '48.600',
'geodetic_longitude': '236.600',
'elevation': '0',
'sensor_orientation': 'XYZF',
'reported': 'XYZF',
'sensor_sampling_rate': 100.0,
'is_gin': False,
'is_intermagnet': False,
'conditions_of_use': 'The Conditions of Use for data provided' +
' through INTERMAGNET and acknowledgement templates' +
' can be found at www.intermagnet.org'
},
'interval_specific': {
'minute': {
'data_interval_type': 'filtered 1-minute (00:15-01:45)'
},
'second': {
'data_interval_type': ''
}
}
},
'YKC': {
'metadata': {
'agency_name': 'Geological Survey of Canada (GSC)',
'geodetic_latitude': '62.400',
'geodetic_longitude': '245.500',
'elevation': '0',
'sensor_orientation': 'XYZF',
'reported': 'XYZF',
'sensor_sampling_rate': 100.0,
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
'is_gin': False,
'is_intermagnet': False,
'conditions_of_use': 'The Conditions of Use for data provided' +
' through INTERMAGNET and acknowledgement templates' +
' can be found at www.intermagnet.org'
},
'interval_specific': {
'minute': {
'data_interval_type': 'filtered 1-minute (00:15-01:45)'
},
'second': {
'data_interval_type': ''
}
}
}
}
DEFAULT_INTERVAL_SPECIFIC = {
'minute': {'data_interval_type': 'filtered 1-minute (00:15-01:45) '},
'second': {'data_interval_type': 'Average 1-Second'}
}
class ObservatoryMetadata(object):
"""Helper class for providing all the metadata needed for a geomag
timeseries.
Notes
-----
Currently the only method is set_metadata. Eventually this will probably
pull from a database, or maybe a config file.
"""
def __init__(self, metadata=None, interval_specific=None):
self.metadata = metadata or DEFAULT_METADATA
self.interval_specific = interval_specific or \
DEFAULT_INTERVAL_SPECIFIC
def set_metadata(self, stats, observatory, channel, type, interval):
"""Set timeseries metadata (aka a traces stats)
Parameters
----------
stats : obspy.core.trace.stats
the class associated with a given obspy trace, which contains
it's metadata
observatory : string
the observatory code to look up.
channel : str
single character channel {H, E, D, Z, F}
type : {'variation', 'quasi-definitive'}
data type.
interval : {'minute', 'second'}
data interval.
Returns
-------
obspy.core.trace.stats
the combined stats and the default metadata.
"""
stats['channel'] = channel
stats['data_interval'] = interval
stats['data_type'] = type