introduced 'alias' for ip.x by first searching for 1_ip

This commit is contained in:
Martin Diehl 2015-03-09 11:32:16 +00:00
parent 6db53636c6
commit 4d587b1bf9
1 changed files with 6 additions and 3 deletions

View File

@ -75,10 +75,13 @@ for file in files:
# --------------- figure out size and grid ---------------------------------------------------------
try:
locationCol = table.labels.index('%s.x'%options.coords) # columns containing location data
locationCol = table.labels.index('1_%s'%options.coords) # columns containing location data
except ValueError:
file['croak'].write('no coordinate data (%s.x) found...\n'%options.coords)
continue
try:
locationCol = table.labels.index('1_%s'%options.coords) # columns containing location data
except ValueError:
file['croak'].write('no coordinate data (1_%s/%s.x) found...\n'%(options.coords,options.coords)
continue
coords = [{},{},{}]
while table.data_read(): # read next data line of ASCII table