Skip to content
Snippets Groups Projects
Commit ea21c865 authored by Ruud Overeem's avatar Ruud Overeem
Browse files

TAsk #11475: Adding rotation value to comment of iHBADeltas file

parent 834cc479
No related branches found
No related tags found
No related merge requests found
......@@ -38,11 +38,13 @@ def print_help():
def writeHBADeltas(station,deltas):
cursor.execute("select * from get_field_rotation(%s, %s)", (station, 'HBA'))
record = cursor.fetchone()
if record != None:
rotation = degrees(float(record[2]))
else:
print "Could not find field rotation for station",station
exit(1)
if record == None:
cursor.execute("select * from get_field_rotation(%s, %s)", (station, 'HBA0'))
record = cursor.fetchone()
if record == None:
print "Could not find field rotation for station",station
exit(1)
rotation=degrees(record[2])
filename = '../StaticMetaData/iHBADeltas/%s-iHBADeltas.conf' %(str(station).upper())
f = open(filename,'w')
f.write('#\n')
......
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