def station_coordinates(self): station = station_geometry() coords = np.empty((4, 4, 3), dtype=float) for i in range(4): # loops through antennas for j in range(4): coords[i][j][0] = station.get_string_coordinates(2, i + 1, j)[0] coords[i][j][1] = station.get_string_coordinates(2, i + 1, j)[1] coords[i][j][2] = station.get_string_coordinates(2, i + 1, j)[2] return coords
from station_geometry import station_geometry from event import event from matplotlib import pyplot as plt import numpy as np import math from math import sin, cos import sys import subprocess #Pass arguement "save" to save figure save_file = False if len(sys.argv) > 1: if sys.argv[1] == 'save': save_file = True #Initialize station_geometry station = station_geometry(2) #Station information station2_x = np.empty((5,4), dtype = float) station2_y = np.empty((5,4), dtype = float) station2_z = np.empty((5,4), dtype = float) station3_strings = [] #Gets the location for every antenna #loops through strings for i in range(5): #loops through antennas for j in range(4): station2_x[i][j] = station.get_string_coordinates(2,i+1, j)[0] station2_y[i][j] = station.get_string_coordinates(2,i+1, j)[1] station2_z[i][j] = station.get_string_coordinates(2,i+1, j)[2]