surveysettingswindow module

class surveysettingswindow.TSurveySettingsWindow(master, TApp)

Bases: tkinter.simpledialog.Dialog

Class represents popup window used for introducing survey parameters.

Parameters:
  • master (tkinter.Tk) – master window object.
  • app (TApp) – main app object.
apply()

Return requested inputs.

body(master)

Initialise widgets.

Parameters:master (tkinter.Tk) – master window object.
calculate_cfl_dt(*, v=299792458, dx, dy, dz)

Calculate time time window from CFL criterion.

Parameters:
  • v (float) – em wave velocity in m/s.
  • dx (float) – discretisation step in x direction in metres.
  • dy (float) – discretisation step in y direction in metres.
  • dz (float) – discretisation step in z direction in metres.
calculate_frequency(dl, v=299792458.0)

Calculate optimal antenna frequency.

Parameters:
  • dl (float) – em wavelength in metres.
  • v (float) – em wave velocity in m/s.
Returns:

optimal antenna frequency.

Return type:

float

calculate_two_way_time(*, c=299792458.0, maxy)

Calculate em wave travel time from the top to the bottom of the model and back.

Parameters:
  • c (float) – light speed in m/s.
  • maxy (float) – model maximal y coordinate.
Returns:

em wave two way time.

Return type:

float

change_survey_type()

Activate and deactivate Entry boxes accordingly to the selected survey type.