Skip to content
Snippets Groups Projects
Commit 1650709f authored by Jeremy M Fee's avatar Jeremy M Fee
Browse files

Merge pull request #31 from jmfee-usgs/iaga-sampling-rate

Iaga sampling rate
parents 8e82491c b9609a8a
No related branches found
No related tags found
No related merge requests found
......@@ -224,9 +224,6 @@ def parse_args():
help='Write to stdout.')
output_group.add_argument('--output-pcdcp-url',
help='Example: file://./%%(obs)s%%(Y)s%%(j)s.%%(i)s')
output_group.add_argument('--output-edge', nargs=2,
metavar=('HOST', 'PORT'),
help='Requires Host IP # and Port #')
output_group.add_argument('--output-edge', nargs=3,
metavar=('HOST', 'PORT', 'TAG'),
help='Requires Host IP #, Port # and ID TAG')
......
......@@ -99,7 +99,10 @@ class IAGA2002Parser(object):
key = 'sensor_orientation'
elif key_upper == 'DIGITAL SAMPLING':
key = 'sensor_sampling_rate'
value = 1 / float(value.replace('second', '').strip())
if value.find('second') != -1:
value = 1 / float(value.replace('second', '').strip())
elif value.find('Hz') != -1:
value = float(value.replace('Hz', '').strip())
elif key_upper == 'DATA INTERVAL TYPE':
key = 'data_interval_type'
elif key_upper == 'DATA TYPE':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment