def threshold(): """Generator for the default threshold parameter. :return: List of InputListParameter :rtype: list[InputListParameter] """ field = InputListParameter() field.name = 'Thresholds [m]' field.is_required = True field.element_type = float field.expected_type = list field.ordering = InputListParameter.AscendingOrder field.minimum_item_count = 1 # Rizky: no reason for the number below. It can be any values to describe # maximum item count. Feel free to change it when necessary. # PS: it was my birthdate field.maximum_item_count = 19 field.value = [1.0] # default value field.help_text = tr( 'Thresholds value to categorize inundated area.') field.description = tr( 'Up to three thresholds (in meters) can be set in an increasing ' 'order. The impact function will report the number of people per ' 'threshold you define here. Specify the upper bound for each ' 'threshold. The lower bound of the first threshold shall be zero. ' 'People in water depths above the maximum threshold will be ' 'classified as needing evacuation.') return field
def threshold(): """Generator for the default threshold parameter. :return: List of InputListParameter :rtype: list[InputListParameter] """ field = InputListParameter() field.name = 'Thresholds [m]' field.is_required = True field.element_type = float field.expected_type = list field.ordering = InputListParameter.AscendingOrder field.minimum_item_count = 1 # Rizky: no reason for the number below. It can be any values to describe # maximum item count. Feel free to change it when necessary. # PS: it was my birthdate field.maximum_item_count = 19 field.value = [1.0] # default value field.help_text = tr('Thresholds value to categorize inundated area.') field.description = tr( 'Up to three thresholds (in meters) can be set in an increasing ' 'order. The impact function will report the number of people per ' 'threshold you define here. Specify the upper bound for each ' 'threshold. The lower bound of the first threshold shall be zero. ' 'People in water depths above the maximum threshold will be ' 'classified as needing evacuation.') return field
def distance(): field = InputListParameter() field.name = "Distances [km]" field.is_required = True field.minimum_item_count = 1 # Rizky: no reason for the number below. It can be any values to describe # maximum item count. Feel free to change it when necessary. # PS: it was my birthdate field.maximum_item_count = 19 field.element_type = float field.ordering = InputListParameter.AscendingOrder field.value = [3.0, 5.0, 10.0] field.help_text = tr("The list of radii for volcano buffer.") field.description = tr("This list contains radii of volcano buffer in increasing order.") return field
def distance(): field = InputListParameter() field.name = 'Distances [km]' field.is_required = True field.minimum_item_count = 1 # Ismail: I choose 8 since in the IF, we only provide 8 colors in the # style. More than 8 item, will create IndexError field.maximum_item_count = 8 field.element_type = float field.ordering = InputListParameter.AscendingOrder field.value = [3.0, 5.0, 10.0] field.help_text = tr('The list of radii for volcano buffer.') field.description = tr( 'This list contains radii of volcano buffer in increasing order.') return field
def distance(): field = InputListParameter() field.name = 'Distances [km]' field.is_required = True field.minimum_item_count = 1 # Rizky: no reason for the number below. It can be any values to describe # maximum item count. Feel free to change it when necessary. # PS: it was my birthdate field.maximum_item_count = 19 field.element_type = float field.ordering = InputListParameter.AscendingOrder field.value = [3.0, 5.0, 10.0] field.help_text = tr('The list of radii for volcano buffer.') field.description = tr( 'This list contains radii of volcano buffer in increasing order.') return field