basefunctions
common function definitions.
- basefunctions.calc_angle_from_vecs(v1, v2)
returns the inner angle between two vectors
- basefunctions.close_connection_to_dem_server(ws_dem_server)
closes websocket connection to dem server
- basefunctions.close_connection_to_geoplot_server(ws_geoplot_server)
closes websocket connection to geoplot server
- basefunctions.cross_prod(v1, v2)
returns cross product between vector v1 and v2 (3D)
- basefunctions.dot_prod(v1, v2)
returns dot/scalar product between vector v1 and v2 (3D)
- basefunctions.ensure_utf(s)
ensures the given string in unicode
- Parameters:
s (string)
- Returns:
unicode string
- Return type:
s
- basefunctions.get_myip()
! returns the ip of the current machine
- basefunctions.get_openburst_logging_dir()
returns openburst logging dir
- basefunctions.get_openburst_root_dir()
returns openburst root dir
- basefunctions.get_pcl_rx_attributes(rxx)
returns pcl rx attributes
- basefunctions.get_proxy_server_ws(ip_str, port_str)
! returns a string like ‘ws://10.42.0.100:9978/proxy’ o that the client can communicate with this proxy server to get other server ips
- basefunctions.get_rad_attributes(rad)
returns rad attributes
- basefunctions.get_replay_data_folder()
returns the folder where the target replay files are stored
- basefunctions.get_target_attributes(target)
returns target attributes
- basefunctions.get_time()
! get the current time in milliseconds since the UNIX epoch (January 1, 1970 00:00:00 UTC) see: https://currentmillis.com/
- basefunctions.get_tx_folder()
returns the folder where the tx (ToO) for PCL are stored
- basefunctions.norm(v1)
returns Euclidean-norm / 2-norm (3D) of vector
- basefunctions.open_connection_to_dem_server()
opens and returns websocket connection to DEM server
- basefunctions.open_connection_to_geoplot_server()
opens and returns websocket connection to geoplot server
- basefunctions.project_vector_u_on_v(u, v)
returns projection of vector u on vector v, u and v given as numpy arrays
- basefunctions.py_ang(v1, v2)
Returns the angle in radians between vectors ‘v1’ and ‘v2’
- basefunctions.send_all_pet_lists(queue)
! used by PET coverage in demServer.py when large area coverages are to be computed
- basefunctions.send_pet_list(queue, i)
! used by PET coverage in demServer.py when large area coverages are to be computed
- basefunctions.set_openburst_linked_lib_path()
sets the LD_LIBRARY_PATH so that the linked splat! libraries are found
- basefunctions.set_openburst_system_path()
sets system path so that libsplathd can be imported
- basefunctions.setup_logging(path, loggerName)
returns logger
- basefunctions.to_degrees(theta)
converts the given angle in radians to degrees
- Parameters:
theta (angle in radians)
- Returns:
float in degrees
- basefunctions.to_radians(theta)
converts the given angle in degrees to radians
- Parameters:
theta (angle in degrees)
- Returns:
float in radians
- basefunctions.totuple(a)
converts array to tuple
- Parameters:
a (array)
- Returns:
tuple
- Return type:
a
- basefunctions.write_pet_send_list_to_file(send_list, int_name)
used by PET coverage in radterrain.py when large area coverages are to be computed