# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'LDMP/gui\DlgCalculateProd.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again.  Do not edit this file unless you know what you are doing.


from PyQt5 import QtCore, QtGui, QtWidgets


class Ui_DlgCalculateProd(object):
    def setupUi(self, DlgCalculateProd):
        DlgCalculateProd.setObjectName("DlgCalculateProd")
        DlgCalculateProd.resize(981, 817)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(DlgCalculateProd.sizePolicy().hasHeightForWidth())
        DlgCalculateProd.setSizePolicy(sizePolicy)
        DlgCalculateProd.setMinimumSize(QtCore.QSize(0, 400))
        self.verticalLayout = QtWidgets.QVBoxLayout(DlgCalculateProd)
        self.verticalLayout.setObjectName("verticalLayout")
        self.splitter = QtWidgets.QSplitter(DlgCalculateProd)
        self.splitter.setOrientation(QtCore.Qt.Horizontal)
        self.splitter.setHandleWidth(16)
        self.splitter.setObjectName("splitter")
        self.configurations = QtWidgets.QFrame(self.splitter)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(2)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.configurations.sizePolicy().hasHeightForWidth())
        self.configurations.setSizePolicy(sizePolicy)
        self.configurations.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.configurations.setFrameShadow(QtWidgets.QFrame.Raised)
        self.configurations.setObjectName("configurations")
        self.verticalLayout_10 = QtWidgets.QVBoxLayout(self.configurations)
        self.verticalLayout_10.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_10.setObjectName("verticalLayout_10")
        self.scrollArea = QtWidgets.QScrollArea(self.configurations)
        self.scrollArea.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.scrollArea.setWidgetResizable(True)
        self.scrollArea.setObjectName("scrollArea")
        self.scrollAreaWidgetContents = QtWidgets.QWidget()
        self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 675, 780))
        self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.scrollAreaWidgetContents)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.setup_frame = QtWidgets.QFrame(self.scrollAreaWidgetContents)
        self.setup_frame.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.setup_frame.setFrameShadow(QtWidgets.QFrame.Raised)
        self.setup_frame.setObjectName("setup_frame")
        self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.setup_frame)
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.groupBox_lpd_mode = QtWidgets.QGroupBox(self.setup_frame)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.groupBox_lpd_mode.sizePolicy().hasHeightForWidth())
        self.groupBox_lpd_mode.setSizePolicy(sizePolicy)
        self.groupBox_lpd_mode.setObjectName("groupBox_lpd_mode")
        self.gridLayout_6 = QtWidgets.QGridLayout(self.groupBox_lpd_mode)
        self.gridLayout_6.setObjectName("gridLayout_6")
        self.mode_lpd_jrc = QtWidgets.QRadioButton(self.groupBox_lpd_mode)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.mode_lpd_jrc.sizePolicy().hasHeightForWidth())
        self.mode_lpd_jrc.setSizePolicy(sizePolicy)
        self.mode_lpd_jrc.setText("")
        self.mode_lpd_jrc.setChecked(False)
        self.mode_lpd_jrc.setObjectName("mode_lpd_jrc")
        self.gridLayout_6.addWidget(self.mode_lpd_jrc, 1, 0, 1, 1)
        self.label = QtWidgets.QLabel(self.groupBox_lpd_mode)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
        self.label.setSizePolicy(sizePolicy)
        self.label.setWordWrap(True)
        self.label.setObjectName("label")
        self.gridLayout_6.addWidget(self.label, 1, 1, 1, 1)
        self.mode_te_prod = QtWidgets.QRadioButton(self.groupBox_lpd_mode)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.mode_te_prod.sizePolicy().hasHeightForWidth())
        self.mode_te_prod.setSizePolicy(sizePolicy)
        self.mode_te_prod.setChecked(True)
        self.mode_te_prod.setObjectName("mode_te_prod")
        self.gridLayout_6.addWidget(self.mode_te_prod, 0, 0, 1, 2)
        self.verticalLayout_5.addWidget(self.groupBox_lpd_mode)
        self.groupBox_ndvi_dataset = QtWidgets.QGroupBox(self.setup_frame)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.groupBox_ndvi_dataset.sizePolicy().hasHeightForWidth())
        self.groupBox_ndvi_dataset.setSizePolicy(sizePolicy)
        self.groupBox_ndvi_dataset.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.groupBox_ndvi_dataset.setFlat(True)
        self.groupBox_ndvi_dataset.setObjectName("groupBox_ndvi_dataset")
        self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.groupBox_ndvi_dataset)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.dataset_ndvi = QtWidgets.QComboBox(self.groupBox_ndvi_dataset)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.dataset_ndvi.sizePolicy().hasHeightForWidth())
        self.dataset_ndvi.setSizePolicy(sizePolicy)
        self.dataset_ndvi.setMinimumSize(QtCore.QSize(0, 40))
        self.dataset_ndvi.setObjectName("dataset_ndvi")
        self.verticalLayout_4.addWidget(self.dataset_ndvi)
        self.verticalLayout_5.addWidget(self.groupBox_ndvi_dataset)
        self.verticalLayout_3.addWidget(self.setup_frame)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setContentsMargins(5, -1, 9, 4)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.region_la = QtWidgets.QLabel(self.scrollAreaWidgetContents)
        self.region_la.setText("")
        self.region_la.setWordWrap(True)
        self.region_la.setObjectName("region_la")
        self.horizontalLayout.addWidget(self.region_la)
        self.region_button = QtWidgets.QPushButton(self.scrollAreaWidgetContents)
        self.region_button.setObjectName("region_button")
        self.horizontalLayout.addWidget(self.region_button)
        self.verticalLayout_3.addLayout(self.horizontalLayout)
        self.execution_name_la = QtWidgets.QLabel(self.scrollAreaWidgetContents)
        self.execution_name_la.setObjectName("execution_name_la")
        self.verticalLayout_3.addWidget(self.execution_name_la)
        self.execution_name_le = QtWidgets.QLineEdit(self.scrollAreaWidgetContents)
        self.execution_name_le.setObjectName("execution_name_le")
        self.verticalLayout_3.addWidget(self.execution_name_le)
        self.task_notes_la = QtWidgets.QLabel(self.scrollAreaWidgetContents)
        self.task_notes_la.setObjectName("task_notes_la")
        self.verticalLayout_3.addWidget(self.task_notes_la)
        self.task_notes = QtWidgets.QTextEdit(self.scrollAreaWidgetContents)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.task_notes.sizePolicy().hasHeightForWidth())
        self.task_notes.setSizePolicy(sizePolicy)
        self.task_notes.setMinimumSize(QtCore.QSize(0, 0))
        self.task_notes.setMaximumSize(QtCore.QSize(16777215, 100))
        self.task_notes.setObjectName("task_notes")
        self.verticalLayout_3.addWidget(self.task_notes)
        self.advance_configurations = QgsCollapsibleGroupBox(self.scrollAreaWidgetContents)
        self.advance_configurations.setCollapsed(True)
        self.advance_configurations.setObjectName("advance_configurations")
        self.verticalLayout_9 = QtWidgets.QVBoxLayout(self.advance_configurations)
        self.verticalLayout_9.setObjectName("verticalLayout_9")
        self.groupBox_traj = QtWidgets.QGroupBox(self.advance_configurations)
        self.groupBox_traj.setCheckable(True)
        self.groupBox_traj.setChecked(True)
        self.groupBox_traj.setObjectName("groupBox_traj")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.groupBox_traj)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.groupBox_4 = QtWidgets.QGroupBox(self.groupBox_traj)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.groupBox_4.sizePolicy().hasHeightForWidth())
        self.groupBox_4.setSizePolicy(sizePolicy)
        self.groupBox_4.setFlat(True)
        self.groupBox_4.setObjectName("groupBox_4")
        self.verticalLayout_6 = QtWidgets.QVBoxLayout(self.groupBox_4)
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        self.traj_indic = QtWidgets.QComboBox(self.groupBox_4)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.traj_indic.sizePolicy().hasHeightForWidth())
        self.traj_indic.setSizePolicy(sizePolicy)
        self.traj_indic.setMinimumSize(QtCore.QSize(0, 40))
        self.traj_indic.setObjectName("traj_indic")
        self.verticalLayout_6.addWidget(self.traj_indic)
        self.verticalLayout_2.addWidget(self.groupBox_4)
        self.groupBox_traj_period = QtWidgets.QGroupBox(self.groupBox_traj)
        self.groupBox_traj_period.setFlat(True)
        self.groupBox_traj_period.setObjectName("groupBox_traj_period")
        self.gridLayout_5 = QtWidgets.QGridLayout(self.groupBox_traj_period)
        self.gridLayout_5.setObjectName("gridLayout_5")
        self.traj_year_start = QtWidgets.QDateEdit(self.groupBox_traj_period)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.traj_year_start.sizePolicy().hasHeightForWidth())
        self.traj_year_start.setSizePolicy(sizePolicy)
        self.traj_year_start.setMinimumSize(QtCore.QSize(0, 40))
        self.traj_year_start.setMaximumSize(QtCore.QSize(120, 35))
        self.traj_year_start.setMaximumDate(QtCore.QDate(2030, 12, 31))
        self.traj_year_start.setMinimumDate(QtCore.QDate(1980, 1, 1))
        self.traj_year_start.setDisplayFormat("yyyy")
        self.traj_year_start.setDate(QtCore.QDate(2001, 1, 1))
        self.traj_year_start.setObjectName("traj_year_start")
        self.gridLayout_5.addWidget(self.traj_year_start, 1, 0, 1, 1)
        self.label_7 = QtWidgets.QLabel(self.groupBox_traj_period)
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.label_7.setFont(font)
        self.label_7.setObjectName("label_7")
        self.gridLayout_5.addWidget(self.label_7, 0, 0, 1, 1)
        self.label_6 = QtWidgets.QLabel(self.groupBox_traj_period)
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.label_6.setFont(font)
        self.label_6.setObjectName("label_6")
        self.gridLayout_5.addWidget(self.label_6, 0, 1, 1, 1)
        self.traj_year_end = QtWidgets.QDateEdit(self.groupBox_traj_period)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.traj_year_end.sizePolicy().hasHeightForWidth())
        self.traj_year_end.setSizePolicy(sizePolicy)
        self.traj_year_end.setMinimumSize(QtCore.QSize(0, 40))
        self.traj_year_end.setMaximumSize(QtCore.QSize(120, 35))
        self.traj_year_end.setMaximumDateTime(QtCore.QDateTime(QtCore.QDate(2030, 12, 31), QtCore.QTime(23, 59, 59)))
        self.traj_year_end.setMinimumDate(QtCore.QDate(1980, 1, 1))
        self.traj_year_end.setDisplayFormat("yyyy")
        self.traj_year_end.setDate(QtCore.QDate(2015, 12, 31))
        self.traj_year_end.setObjectName("traj_year_end")
        self.gridLayout_5.addWidget(self.traj_year_end, 1, 1, 1, 1)
        self.verticalLayout_2.addWidget(self.groupBox_traj_period)
        self.groupBox_traj_climate = QtWidgets.QGroupBox(self.groupBox_traj)
        self.groupBox_traj_climate.setFlat(True)
        self.groupBox_traj_climate.setObjectName("groupBox_traj_climate")
        self.verticalLayout_8 = QtWidgets.QVBoxLayout(self.groupBox_traj_climate)
        self.verticalLayout_8.setObjectName("verticalLayout_8")
        self.traj_climate = QtWidgets.QComboBox(self.groupBox_traj_climate)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.traj_climate.sizePolicy().hasHeightForWidth())
        self.traj_climate.setSizePolicy(sizePolicy)
        self.traj_climate.setMinimumSize(QtCore.QSize(0, 40))
        self.traj_climate.setObjectName("traj_climate")
        self.verticalLayout_8.addWidget(self.traj_climate)
        self.verticalLayout_2.addWidget(self.groupBox_traj_climate)
        self.verticalLayout_9.addWidget(self.groupBox_traj)
        self.groupBox_perf = QtWidgets.QGroupBox(self.advance_configurations)
        self.groupBox_perf.setCheckable(True)
        self.groupBox_perf.setObjectName("groupBox_perf")
        self.gridLayout_8 = QtWidgets.QGridLayout(self.groupBox_perf)
        self.gridLayout_8.setObjectName("gridLayout_8")
        self.perf_year_start = QtWidgets.QDateEdit(self.groupBox_perf)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.perf_year_start.sizePolicy().hasHeightForWidth())
        self.perf_year_start.setSizePolicy(sizePolicy)
        self.perf_year_start.setMinimumSize(QtCore.QSize(0, 40))
        self.perf_year_start.setMaximumSize(QtCore.QSize(120, 35))
        self.perf_year_start.setMaximumDate(QtCore.QDate(2030, 12, 31))
        self.perf_year_start.setMinimumDate(QtCore.QDate(1980, 1, 1))
        self.perf_year_start.setDisplayFormat("yyyy")
        self.perf_year_start.setDate(QtCore.QDate(2001, 1, 1))
        self.perf_year_start.setObjectName("perf_year_start")
        self.gridLayout_8.addWidget(self.perf_year_start, 1, 0, 1, 1)
        self.label_10 = QtWidgets.QLabel(self.groupBox_perf)
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.label_10.setFont(font)
        self.label_10.setObjectName("label_10")
        self.gridLayout_8.addWidget(self.label_10, 0, 0, 1, 1)
        self.label_14 = QtWidgets.QLabel(self.groupBox_perf)
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.label_14.setFont(font)
        self.label_14.setObjectName("label_14")
        self.gridLayout_8.addWidget(self.label_14, 0, 1, 1, 1)
        self.perf_year_end = QtWidgets.QDateEdit(self.groupBox_perf)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.perf_year_end.sizePolicy().hasHeightForWidth())
        self.perf_year_end.setSizePolicy(sizePolicy)
        self.perf_year_end.setMinimumSize(QtCore.QSize(0, 40))
        self.perf_year_end.setMaximumSize(QtCore.QSize(120, 35))
        self.perf_year_end.setMaximumDateTime(QtCore.QDateTime(QtCore.QDate(2030, 12, 31), QtCore.QTime(23, 59, 59)))
        self.perf_year_end.setMinimumDate(QtCore.QDate(1980, 1, 1))
        self.perf_year_end.setDisplayFormat("yyyy")
        self.perf_year_end.setDate(QtCore.QDate(2015, 12, 31))
        self.perf_year_end.setObjectName("perf_year_end")
        self.gridLayout_8.addWidget(self.perf_year_end, 1, 1, 1, 1)
        self.verticalLayout_9.addWidget(self.groupBox_perf)
        self.groupBox_state = QtWidgets.QGroupBox(self.advance_configurations)
        self.groupBox_state.setCheckable(True)
        self.groupBox_state.setObjectName("groupBox_state")
        self.verticalLayout_7 = QtWidgets.QVBoxLayout(self.groupBox_state)
        self.verticalLayout_7.setObjectName("verticalLayout_7")
        self.groupBox_state_baseline = QtWidgets.QGroupBox(self.groupBox_state)
        self.groupBox_state_baseline.setFlat(True)
        self.groupBox_state_baseline.setObjectName("groupBox_state_baseline")
        self.gridLayout_3 = QtWidgets.QGridLayout(self.groupBox_state_baseline)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.state_year_bl_start = QtWidgets.QDateEdit(self.groupBox_state_baseline)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.state_year_bl_start.sizePolicy().hasHeightForWidth())
        self.state_year_bl_start.setSizePolicy(sizePolicy)
        self.state_year_bl_start.setMinimumSize(QtCore.QSize(0, 40))
        self.state_year_bl_start.setMaximumSize(QtCore.QSize(120, 35))
        self.state_year_bl_start.setMaximumDate(QtCore.QDate(2030, 12, 31))
        self.state_year_bl_start.setMinimumDate(QtCore.QDate(1980, 1, 1))
        self.state_year_bl_start.setDisplayFormat("yyyy")
        self.state_year_bl_start.setDate(QtCore.QDate(2001, 1, 1))
        self.state_year_bl_start.setObjectName("state_year_bl_start")
        self.gridLayout_3.addWidget(self.state_year_bl_start, 1, 0, 1, 1)
        self.label_8 = QtWidgets.QLabel(self.groupBox_state_baseline)
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.label_8.setFont(font)
        self.label_8.setObjectName("label_8")
        self.gridLayout_3.addWidget(self.label_8, 0, 0, 1, 1)
        self.state_year_bl_end = QtWidgets.QDateEdit(self.groupBox_state_baseline)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.state_year_bl_end.sizePolicy().hasHeightForWidth())
        self.state_year_bl_end.setSizePolicy(sizePolicy)
        self.state_year_bl_end.setMinimumSize(QtCore.QSize(0, 40))
        self.state_year_bl_end.setMaximumSize(QtCore.QSize(120, 35))
        self.state_year_bl_end.setMaximumDateTime(QtCore.QDateTime(QtCore.QDate(2030, 12, 31), QtCore.QTime(23, 59, 59)))
        self.state_year_bl_end.setMinimumDateTime(QtCore.QDateTime(QtCore.QDate(1980, 1, 1), QtCore.QTime(0, 0, 0)))
        self.state_year_bl_end.setDisplayFormat("yyyy")
        self.state_year_bl_end.setDate(QtCore.QDate(2012, 12, 31))
        self.state_year_bl_end.setObjectName("state_year_bl_end")
        self.gridLayout_3.addWidget(self.state_year_bl_end, 1, 1, 1, 1)
        self.label_12 = QtWidgets.QLabel(self.groupBox_state_baseline)
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.label_12.setFont(font)
        self.label_12.setObjectName("label_12")
        self.gridLayout_3.addWidget(self.label_12, 0, 1, 1, 1)
        self.verticalLayout_7.addWidget(self.groupBox_state_baseline)
        self.groupBox_state_comparison = QtWidgets.QGroupBox(self.groupBox_state)
        self.groupBox_state_comparison.setFlat(True)
        self.groupBox_state_comparison.setObjectName("groupBox_state_comparison")
        self.gridLayout_4 = QtWidgets.QGridLayout(self.groupBox_state_comparison)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.label_16 = QtWidgets.QLabel(self.groupBox_state_comparison)
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.label_16.setFont(font)
        self.label_16.setObjectName("label_16")
        self.gridLayout_4.addWidget(self.label_16, 3, 1, 1, 1)
        self.state_year_tg_start = QtWidgets.QDateEdit(self.groupBox_state_comparison)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.state_year_tg_start.sizePolicy().hasHeightForWidth())
        self.state_year_tg_start.setSizePolicy(sizePolicy)
        self.state_year_tg_start.setMinimumSize(QtCore.QSize(0, 40))
        self.state_year_tg_start.setMaximumSize(QtCore.QSize(120, 35))
        self.state_year_tg_start.setMaximumDateTime(QtCore.QDateTime(QtCore.QDate(2015, 12, 31), QtCore.QTime(23, 59, 59)))
        self.state_year_tg_start.setMinimumDateTime(QtCore.QDateTime(QtCore.QDate(2011, 1, 1), QtCore.QTime(0, 0, 0)))
        self.state_year_tg_start.setMaximumDate(QtCore.QDate(2015, 12, 31))
        self.state_year_tg_start.setMinimumDate(QtCore.QDate(2011, 1, 1))
        self.state_year_tg_start.setDisplayFormat("yyyy")
        self.state_year_tg_start.setDate(QtCore.QDate(2013, 1, 1))
        self.state_year_tg_start.setObjectName("state_year_tg_start")
        self.gridLayout_4.addWidget(self.state_year_tg_start, 4, 0, 1, 1)
        self.state_year_tg_end = QtWidgets.QDateEdit(self.groupBox_state_comparison)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.state_year_tg_end.sizePolicy().hasHeightForWidth())
        self.state_year_tg_end.setSizePolicy(sizePolicy)
        self.state_year_tg_end.setMinimumSize(QtCore.QSize(0, 40))
        self.state_year_tg_end.setMaximumSize(QtCore.QSize(120, 35))
        self.state_year_tg_end.setMaximumDateTime(QtCore.QDateTime(QtCore.QDate(2030, 12, 31), QtCore.QTime(23, 59, 59)))
        self.state_year_tg_end.setMinimumDate(QtCore.QDate(1980, 1, 1))
        self.state_year_tg_end.setDisplayFormat("yyyy")
        self.state_year_tg_end.setDate(QtCore.QDate(2015, 12, 31))
        self.state_year_tg_end.setObjectName("state_year_tg_end")
        self.gridLayout_4.addWidget(self.state_year_tg_end, 4, 1, 1, 1)
        self.label_15 = QtWidgets.QLabel(self.groupBox_state_comparison)
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.label_15.setFont(font)
        self.label_15.setObjectName("label_15")
        self.gridLayout_4.addWidget(self.label_15, 3, 0, 1, 1)
        self.verticalLayout_7.addWidget(self.groupBox_state_comparison)
        spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_7.addItem(spacerItem)
        self.verticalLayout_9.addWidget(self.groupBox_state)
        self.verticalLayout_3.addWidget(self.advance_configurations)
        spacerItem1 = QtWidgets.QSpacerItem(20, 298, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_3.addItem(spacerItem1)
        self.scrollArea.setWidget(self.scrollAreaWidgetContents)
        self.verticalLayout_10.addWidget(self.scrollArea)
        self.alg_help = QtWidgets.QTextBrowser(self.splitter)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.alg_help.sizePolicy().hasHeightForWidth())
        self.alg_help.setSizePolicy(sizePolicy)
        self.alg_help.setAccessibleName("")
        self.alg_help.setOpenExternalLinks(True)
        self.alg_help.setOpenLinks(True)
        self.alg_help.setObjectName("alg_help")
        self.verticalLayout.addWidget(self.splitter)
        self.button_box = QtWidgets.QDialogButtonBox(DlgCalculateProd)
        self.button_box.setOrientation(QtCore.Qt.Horizontal)
        self.button_box.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Help|QtWidgets.QDialogButtonBox.Ok)
        self.button_box.setObjectName("button_box")
        self.verticalLayout.addWidget(self.button_box)

        self.retranslateUi(DlgCalculateProd)
        self.button_box.accepted.connect(DlgCalculateProd.accept)
        self.button_box.rejected.connect(DlgCalculateProd.reject)
        QtCore.QMetaObject.connectSlotsByName(DlgCalculateProd)

    def retranslateUi(self, DlgCalculateProd):
        _translate = QtCore.QCoreApplication.translate
        DlgCalculateProd.setWindowTitle(_translate("DlgCalculateProd", "Land Productivity | Land Degradation"))
        self.groupBox_lpd_mode.setTitle(_translate("DlgCalculateProd", "Indicators to calculate"))
        self.label.setText(_translate("DlgCalculateProd", "UNCCD default data (Land Productivity Dynamics (LPD) from Joint Research Commission)"))
        self.mode_te_prod.setText(_translate("DlgCalculateProd", "Trends.Earth land productivity"))
        self.groupBox_ndvi_dataset.setTitle(_translate("DlgCalculateProd", "NDVI dataset"))
        self.dataset_ndvi.setToolTip(_translate("DlgCalculateProd", "Select the type of the NDVI dataset."))
        self.region_la.setToolTip(_translate("DlgCalculateProd", "The current selected region of interest"))
        self.region_button.setToolTip(_translate("DlgCalculateProd", "<html><head/><body><p>Opens settings dialog in order to change region of interest.</p></body></html>"))
        self.region_button.setText(_translate("DlgCalculateProd", "Change region"))
        self.execution_name_la.setText(_translate("DlgCalculateProd", "Execution name:"))
        self.execution_name_le.setToolTip(_translate("DlgCalculateProd", "<html><head/><body><p>Input for the name that will be assigned to the execution task, if not filled the algorithm name will be used as the task name.</p></body></html>"))
        self.task_notes_la.setText(_translate("DlgCalculateProd", "Notes:"))
        self.task_notes.setToolTip(_translate("DlgCalculateProd", "User notes associated with the executed task."))
        self.advance_configurations.setTitle(_translate("DlgCalculateProd", "Advanced configuration"))
        self.groupBox_traj.setTitle(_translate("DlgCalculateProd", "Trajectory (related to rate of change of  productivity over time)"))
        self.groupBox_4.setTitle(_translate("DlgCalculateProd", "Trajectory indicator"))
        self.groupBox_traj_period.setTitle(_translate("DlgCalculateProd", "Period"))
        self.label_7.setText(_translate("DlgCalculateProd", "Starting year:"))
        self.label_6.setText(_translate("DlgCalculateProd", "Ending year:"))
        self.groupBox_traj_climate.setTitle(_translate("DlgCalculateProd", "Climate dataset"))
        self.groupBox_perf.setTitle(_translate("DlgCalculateProd", "Performance (a measure of how productivity in an area compares to that of similar areas)"))
        self.label_10.setText(_translate("DlgCalculateProd", "Starting year:"))
        self.label_14.setText(_translate("DlgCalculateProd", "Ending year:"))
        self.groupBox_state.setTitle(_translate("DlgCalculateProd", "State (compares current productivity in an area to past productivity in the same area)"))
        self.groupBox_state_baseline.setTitle(_translate("DlgCalculateProd", "Initial period"))
        self.label_8.setText(_translate("DlgCalculateProd", "Starting year:"))
        self.label_12.setText(_translate("DlgCalculateProd", "Ending year:"))
        self.groupBox_state_comparison.setTitle(_translate("DlgCalculateProd", "Comparison period"))
        self.label_16.setText(_translate("DlgCalculateProd", "Ending year:"))
        self.label_15.setText(_translate("DlgCalculateProd", "Starting year:"))
        self.alg_help.setHtml(_translate("DlgCalculateProd", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'Ubuntu\'; font-size:11pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:large; font-weight:600;\">Productivity</span></p>\n"
"<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Land productivity is the biological productive capacity of the land, the source of all the food, fiber and fuel that sustains humans (United Nations Statistical Commission 2016). Net primary productivity (NPP) is the net amount of carbon assimilated after photosynthesis and autotrophic respiration over a given period of time (Clark et al. 2001) and is typically represented in units such as kg/ha/yr. NPP is a variable time consuming and costly to estimate, for that reason, we rely on remotely sensed information to derive indicators of NPP.</p>\n"
"<p style=\"-qt-paragraph-type:empty; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p>\n"
"<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">One of the most commonly used surrogates of NPP is the Normalized Difference Vegetation Index (NDVI), computed using information from the red and near infrared portions of the electromagnetic spectrum. In Trends.Earth we make use of bi-weekly products from MODIS and AVHRR to compute annual integrals of NDVI (computed as the mean annual NDVI for simplicity of interpretation of results). These annual integrals of NDVI are then used to compute each of the productivity indicators explained below.</p>\n"
"<p style=\"-qt-paragraph-type:empty; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p>\n"
"<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><a href=\"http://trends.earth/docs/en/background/understanding_indicators15.html#productivity\"><span style=\" text-decoration: underline; color:#0000ff;\">More information on the Productivity SDG 15.3.1 sub-indicator</span></a></p>\n"
"<p style=\"-qt-paragraph-type:empty; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p>\n"
"<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Land productivity is assessed in Trends.Earth using three measures of change derived from NDVI time series data: </p>\n"
"<ul style=\"margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;\"><li style=\" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Trajectory</li>\n"
"<li style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Performance</li>\n"
"<li style=\" margin-top:0px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">State</li></ul>\n"
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p>\n"
"<p style=\" margin-top:0px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:medium; font-weight:600;\">Productivity Trajectory</span></p>\n"
"<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Trajectory measures the rate of change in primary productivity over time. Trends.Earth computes a linear regression at the pixel level to identify areas experiencing changes in primary productivity for the period under analysis. A Mann-Kendall non-paremetric significance test is then applied, considering only significant changes those that show a p-value ≤ 0.05. Positive significant trends in NDVI would indicate potential improvement in land condition, and negative significant trends potential degradation.</p>\n"
"<p style=\"-qt-paragraph-type:empty; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p>\n"
"<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><a href=\"http://trends.earth/docs/en/background/understanding_indicators15.html#productivity-trajectory\"><span style=\" text-decoration: underline; color:#0000ff;\">More information on Productivity Trajectory</span></a></p>\n"
"<p style=\"-qt-paragraph-type:empty; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p>\n"
"<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:medium; font-weight:600;\">Productivity State</span></p>\n"
"<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">The Productivity State indicator allows for the detection of recent changes in primary productivity as compared to a baseline period. The indicator is computed as follows:</p>\n"
"<ol style=\"margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;\"><li style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Define the baseline period (historical period to which to compare recent primary productivity).</li>\n"
"<li style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Define the comparison period (recent years used to compute comparison). It is recommended to use a 3-year to avoid annual fluctuations related to climate.</li>\n"
"<li style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">For each pixel, use the annual integrals of NDVI for the baseline period to compute a frequency distribution. In case the baseline period missed some extreme values in NDVI, add 5% on both extremes of the distribution. That expanded frequency distribution curve is then used to define the cut-off values of the 10 percentile classes.</li>\n"
"<li style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Compute the mean NDVI for the baseline period, and determine the percentile class it belongs to. Assign to the mean NDVI for the baseline period the number corresponding to that percentile class. Possible values range from 1 (lowest class) to 10 (highest class).</li>\n"
"<li style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Compute the mean NDVI for the comparison period, and determine the percentile class it belongs to. Assign to the mean NDVI for the comparison period the number corresponding to that percentile class. Possible values range from 1 (lowest class) to 10 (highest class).</li>\n"
"<li style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Determine the difference in class number between the comparison and the baseline period (comparison minus baseline).</li>\n"
"<li style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">If the difference in class between the baseline and the comparison period is ≤ 2, then that pixel could potentially be degraded. If the difference is ≥ 2, that pixel would indicate a recent improvement in terms of primary productivity. Pixels with small changes are considered stable.</li></ol>\n"
"<p style=\"-qt-paragraph-type:empty; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p>\n"
"<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><a href=\"http://trends.earth/docs/en/background/understanding_indicators15.html#productivity-state\"><span style=\" text-decoration: underline; color:#0000ff;\">More information on Productivity State</span></a></p>\n"
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; text-decoration: underline; color:#0000ff;\"><br /></p>\n"
"<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:medium; font-weight:600;\">Productivity Performance</span></p>\n"
"<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">The Productivity Performance indicator measures local productivity relative to other similar vegetation types in similar land cover types or bioclimatic regions throughout the study area. Trends.Earth uses the unique combination of soil units (soil taxonomy units using USDA system provided by SoilGrids at 250m resolution) and land cover (full 37 land cover classes provided by ESA CCI at 300m resolution) to define this areas of analysis. The indicator is computed as follows:</p>\n"
"<ol style=\"margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;\"><li style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Define the analysis period, and use the time series of NDVI to compute mean the NDVI for each pixel.</li>\n"
"<li style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Define similar ecologically similar units as the unique intersection of land cover and soil type.</li>\n"
"<li style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">For each unit, extract all the mean NDVI values computed in step 1, and create a frequency distribution. From this distribution determine the value which represents the 90th percentile (we don’t recommend using the absolute maximum NDVI value to avoid possible errors due to the presence of outliers). The value representing the 90th percentile will be considered the maximum productivity for that unit.</li>\n"
"<li style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Compute the ratio of mean NDVI and maximum productivity (in each case compare the mean observed value to the maximum for its corresponding unit).</li>\n"
"<li style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">If observed mean NDVI is lower than 50% than the maximum productivity, that pixel is considered potentially degraded for this indicator.</li></ol>\n"
"<p style=\"-qt-paragraph-type:empty; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p>\n"
"<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><a href=\"http://trends.earth/docs/en/background/understanding_indicators15.html#productivity-performance\"><span style=\" text-decoration: underline; color:#0000ff;\">More information on Productivity Performance</span></a></p></body></html>"))
from qgis.gui import QgsCollapsibleGroupBox


if __name__ == "__main__":
    import sys
    app = QtWidgets.QApplication(sys.argv)
    DlgCalculateProd = QtWidgets.QDialog()
    ui = Ui_DlgCalculateProd()
    ui.setupUi(DlgCalculateProd)
    DlgCalculateProd.show()
    sys.exit(app.exec_())
