@@ -136,7 +136,7 @@ def main():
136136 root = tk .Tk ()
137137 root .wm_title ("cBLUE" )
138138 root .iconbitmap (root , "cBLUE_icon.ico" )
139- root .geometry ("270x740 " )
139+ root .geometry ("270x730 " )
140140 norm_font_bold = ("Verdanna" , 10 , "bold" )
141141 padx = (30 , 30 )
142142 pady = (10 , 0 )
@@ -201,7 +201,6 @@ def main():
201201 dir_frame .pack (padx = padx , pady = pady , fill = "x" )
202202
203203 # Environmental parameters
204-
205204 def add_tab (options , tab_name , label_text = None ):
206205 """Add tab to Notebook and return Radiobutton variable"""
207206 tab = ttk .Frame (subaqueous_method_tabs )
@@ -219,10 +218,20 @@ def add_tab(options, tab_name, label_text=None):
219218 tk .Label (env_frame , text = "Environmental Parameters" , font = norm_font_bold ).pack ()
220219 subaqueous_method_tabs = ttk .Notebook (env_frame )
221220 wind_var = add_tab (WIND_OPTIONS , tab_name = "Water Surface" )
222- turbidity_var = add_tab (TURBIDITY_OPTIONS , tab_name = "Turbidity" , label_text = "Turbidity (kd_490)" )
221+ turbidity_var = add_tab (TURBIDITY_OPTIONS , tab_name = "Turbidity" )
223222 subaqueous_method_tabs .pack (fill = "x" )
224223 env_frame .pack (padx = padx , pady = pady , fill = "x" )
225224
225+ # Water Height
226+ water_height_frame = tk .Frame (root )
227+ tk .Label (water_height_frame , text = "Water Height" , font = norm_font_bold ).pack ()
228+ water_height_var = tk .StringVar ()
229+ water_height_var .set (f'{ config_dict ["water_surface_ellipsoid_height" ]:.2f} ' )
230+ water_height_msg = "Nominal water surface ellipsoid height \n (in meters):"
231+ tk .Label (water_height_frame , text = water_height_msg ).pack ()
232+ tk .Entry (water_height_frame , textvariable = water_height_var , justify = "center" ).pack ()
233+ water_height_frame .pack (padx = padx , pady = pady , fill = "x" )
234+
226235 # VDatum Region
227236 vdatum_frame = tk .Frame (root )
228237 tk .Label (vdatum_frame , text = "VDatum Region" , font = norm_font_bold ).pack ()
@@ -256,16 +265,6 @@ def add_tab(options, tab_name, label_text=None):
256265 ttk .Radiobutton (csv_frame , text = "ExtraBytes + CSV" , value = True , variable = csv_var ).pack (fill = "x" , padx = padx [- 1 ])
257266 csv_frame .pack (padx = padx , pady = pady , fill = "x" )
258267
259- # Water Height
260- water_height_frame = tk .Frame (root )
261- tk .Label (water_height_frame , text = "Water Height" , font = norm_font_bold ).pack ()
262- water_height_var = tk .StringVar ()
263- water_height_var .set (f'{ config_dict ["water_surface_ellipsoid_height" ]:.2f} ' )
264- water_height_msg = "Nominal water-surface ellipsoid height \n (in meters):"
265- tk .Label (water_height_frame , text = water_height_msg ).pack ()
266- tk .Entry (water_height_frame , textvariable = water_height_var , justify = "center" ).pack ()
267- water_height_frame .pack (padx = padx , pady = pady , fill = "x" )
268-
269268 def start_process (just_save_config = False ):
270269 """Generate command for CBlueApp.py command line interface. Run the command."""
271270 # Don't allow saving config if process button is disabled
0 commit comments