def calc_G_options(self):
'''Widgets for method for computing soil heat flux'''
self.w_G_form = widgets.ToggleButtons(
description='Select method for soil heat flux',
options={
'Ratio of soil net radiation': 1,
'Constant or measured value': 0,
'Time dependent (Santanelo & Friedl)': 2},
value=self.G_form,
width=300)
self.w_Gratio = widgets.BoundedFloatText(
value=self.Gratio, min=0, max=1, description='G ratio (G/Rn)', width=80)
self.w_Gconstant = widgets.FloatText(
value=self.Gconstant, description='Value (W m-2)', width=80)
self.w_Gconstant.visible = False
self.w_Gconstanttext = widgets.HTML(
value="Set G value (W m-2), ignored if G is present in the input file")
self.w_Gconstanttext.visible = False
self.w_Gconstant.visible = False
self.w_G_amp = widgets.BoundedFloatText(
value=self.G_amp, min=0, max=1, description='Amplitude (G/Rn)', width=80)
self.w_G_amp.visible = False
self.w_G_phase = widgets.BoundedFloatText(
value=self.G_phase, min=-24, max=24, description='Time Phase (h)', width=80)
self.w_G_phase.visible = False
self.w_G_shape = widgets.BoundedFloatText(
value=self.G_shape, min=0, max=24, description='Time shape (h)', width=80)
self.w_G_shape.visible = False
评论列表
文章目录