9f = pt.vlsvfile.VlsvReader(infile)
11coords = f.get_ionosphere_node_coords()
12print(np.shape(coords))
13lat = np.arctan2(coords[:,2], np.sqrt(coords[:,1]*coords[:,1] + coords[:,0]*coords[:,0]))
14lon = np.arctan2(coords[:,1], coords[:,0])
15phi = f.read_ionosphere_variable(
"ig_potential");
17for i
in range(len(lat)):
18 if np.cos(lon[i]) > 0.02:
19 print(str(lat[i]) +
" " + str(lon[i]) +
" " + str(phi[i]) +
" " + str(phi[i] / np.cos(lon[i])))