Пример #1
0
from tradssat.tmpl.var import FloatVar, CharacterVar

cul_vars_PIALO = {
    CharacterVar('VAR#', 6, spc=0, info=''),
    CharacterVar('VAR-NAME', 16, header_fill='.', info=''),
    CharacterVar('EXPNO', 5, miss='', info=''),
    CharacterVar('ECO#', 6, info=''),

    FloatVar('P1', 5, 1, info='Growing degree days from first leaf emerged to end of stem growth'),
    FloatVar('P2', 5, 0, info='Growing degree days from forcing to sepals closed on youngest flower'),
    FloatVar('P3', 5, 0, info='Growing degree days from SCY to early flowering'),
    FloatVar('P4', 5, 0, info='Cumulative growing degree days from early flowering to maturity'),
    FloatVar('P5', 5, 0, info='Growing degree days from fruit harvest to physiological maturity'),
    FloatVar('P6', 5, 1, info='Growing degree days from root initiation to first leaf emerged'),
    FloatVar('G2', 5, 0, info='Potential eye number'),
    FloatVar('G3', 5, 1, info='Potential eye growth rate'),
    FloatVar('PHINT', 5, 1, info='')
}
Пример #2
0
     info='Identification code or number for the specific cultivar.'),
 CharacterVar('VAR-NAME', 16, header_fill='.', info='Name of cultivar.'),
 CharacterVar('EXPNO',
              5,
              miss='.',
              info='Number of experiments used for calibration.'),
 CharacterVar(
     'ECO#',
     6,
     info=
     'Code for the ecotype to which this cultivar belongs (currently not used)'
 ),
 FloatVar(
     'P1 ',
     5,
     1,
     info=
     'Time period (expressed as growing degree days [GDD] in øC above a base temperature of 9øC) from seedling '
     'emergence during which the rice plant is not responsive to changes in photoperiod. This period is also '
     'referred to as the basic vegetative phase of the plant.'),
 FloatVar(
     'P2O',
     5,
     1,
     info=
     'Critical photoperiod or the longest day length (in hours) at which the development occurs at a maximum '
     'rate. At values higher than P2O developmental rate is slowed, hence there is delay due to longer day '
     'lengths.'),
 FloatVar(
     'P2R',
     5,
     1,
Пример #3
0
     info='Identification code or number for the specific cultivar.'),
 CharacterVar('VAR-NAME', 16, header_fill='.', info='Name of cultivar.'),
 CharacterVar('EXPNO',
              5,
              miss='.',
              info='Number of experiments used for calibration.'),
 CharacterVar(
     'ECO#',
     6,
     info=
     'Code for the ecotype to which this cultivar belongs (see *.eco file)'
 ),
 FloatVar(
     'P1',
     5,
     1,
     info=
     'Thermal time from seedling emergence to the end of the juvenile phase (expressed in degree days above a'
     ' base temperature of 10øC) during which the plant is not responsive to changes in photoperiod.'
 ),
 FloatVar(
     'P20',
     5,
     2,
     info=
     'Critical photoperiod or the longest day length (in hours) at which development occurs at a maximum rate. '
     'At values greater than P2O, the rate of development is reduced.'),
 FloatVar(
     'P2R',
     5,
     1,
     info=
Пример #4
0
from tradssat.tmpl.var import CharacterVar, FloatVar

header_vars = [
    CharacterVar('SLSOURCE', 11, spc=2, info='Source'),
    CharacterVar('SLTX', 5, info='Texture, code'),
    FloatVar('SLDP', 5, 0, info='Depth, cm'),
    CharacterVar('SLDESCRIP', 50, info='Description or local classification')
]

main_vars = {
    CharacterVar('SITE', 11, info='Site name'),
    CharacterVar('COUNTRY', 12, info='Country name'),
    FloatVar('LAT', 8, 3, info='Latitude'),
    FloatVar('LONG', 7, 3, info='Longitude'),
    CharacterVar('SCS FAMILY', 50, info='Family, SCS system'),
    CharacterVar('SCOM', 5, info='Color, moist, Munsell hue'),
    FloatVar('SALB', 5, 2, info='Albedo, fraction '),
    FloatVar('SLU1', 5, 1, info='Evaporation limit, cm'),
    FloatVar('SLDR', 5, 2, info='Drainage rate, fraction day-1'),
    FloatVar('SLRO',
             5,
             1,
             info='Runoff curve number (Soil Conservation Service)'),
    FloatVar('SLNF', 5, 2, info='Mineralization factor, 0 to 1 scale'),
    FloatVar('SLPF', 5, 2, info='Photosynthesis factor, 0 to 1 scale'),
    CharacterVar('SMHB', 5, info='pH in buffer determination method, code'),
    CharacterVar('SMPX', 5,
                 info='Phosphorus, extractable, determination code'),
    CharacterVar('SMKE', 5, info='Potassium determination method, code'),
    FloatVar('SLB', 5, 0, info='Depth, base of layer, cm'),
    CharacterVar('SLMH', 5, info='Master horizon'),
Пример #5
0
from tradssat.tmpl.output import OutFile
from tradssat.tmpl.var import FloatVar, IntegerVar


class SoilTempOut(OutFile):
    """
    Reader for DSSAT soil temperature (SOILTEMP.OUT) output files.
    """
    filename = 'SoilTemp.Out'

    def _get_var_info(self):
        return vars_


vars_ = {
    IntegerVar('YEAR', 4, info='Year'),
    IntegerVar('DOY', 3, info='Day of year starting on Jan 1.'),
    IntegerVar('DAS', 3, info='Day after start'),
    FloatVar('TS0D', 4, 1, info='temperature at the surface, oC'),
    FloatVar('TS1D', 4, 1, info='Temperature at soil depth 0-5 cm, oC'),
    FloatVar('TS2D', 4, 1, info='Temperature at soil depth 5-15 cm, oC'),
    FloatVar('TS3D', 4, 1, info='Temperature at soil depth 15-30 cm, oC'),
    FloatVar('TS4D', 4, 1, info='Temperature at soil depth 30-45 cm, oC'),
    FloatVar('TS5D', 4, 1, info='Temperature at soil depth 45-60 cm, oC'),
    FloatVar('TS6D', 4, 1, info='Temperature at soil depth 60-90 cm, oC'),
    FloatVar('TS7D', 4, 1, info='Temperature at soil depth 90-110 cm, oC'),
}
Пример #6
0
from tradssat.tmpl.var import CharacterVar, FloatVar

header_vars = [
    CharacterVar('SLSOURCE', 11, spc=2, info='Source'),
    CharacterVar('SLTX', 5, info='Texture, code'),
    FloatVar('SLDP', 5, 0, info='Depth, cm'),
    CharacterVar('SLDESCRIP', 50, info='Description or local classification')
]

main_vars = {
    CharacterVar('SITE', 11, info='Site name'),
    CharacterVar('COUNTRY', 12, info='Country name'),
    FloatVar('LAT', 8, 3, info='Latitude'),
    FloatVar('LONG', 7, 3, info='Longitude'),
    CharacterVar('SCS FAMILY', 50, info='Family, SCS system'),
    CharacterVar('SCOM', 5, info='Color, moist, Munsell hue'),
    FloatVar('SALB', 5, 2, info='Albedo, fraction '),
    FloatVar('SLU1', 5, 1, info='Evaporation limit, cm'),
    FloatVar('SLDR', 5, 2, info='Drainage rate, fraction day-1'),
    FloatVar('SLRO',
             5,
             1,
             info='Runoff curve number (Soil Conservation Service)'),
    FloatVar('SLNF', 5, 2, info='Mineralization factor, 0 to 1 scale'),
    FloatVar('SLPF', 5, 2, info='Photosynthesis factor, 0 to 1 scale'),
    CharacterVar('SMHB', 5, info='pH in buffer determination method, code'),
    CharacterVar('SMPX', 5,
                 info='Phosphorus, extractable, determination code'),
    CharacterVar('SMKE', 5, info='Potassium determination method, code'),
    FloatVar('SLB', 5, 0, info='Depth, base of layer, cm'),
    CharacterVar('SLMH', 5, info='Master horizon'),
Пример #7
0
TRT_HEAD = re.compile(r'TREATMENTS(\W+[-]+FACTOR LEVELS[-]+)?')
GENERAL = 'GENERAL'

header_vars = [
    CharacterVar('EXPCODE', 10, info='Experiment identifier'),
    CharacterVar('ENAME', 60, info='Experiment name')
]

main_vars = {

    # General
    CharacterVar('PEOPLE', 75, sect=GENERAL, info='Names of scientists'),
    CharacterVar('ADDRESS', 75, sect=GENERAL, info='Contact address of principal scientist'),
    CharacterVar('SITE', 75, sect=GENERAL, info='Name and location of experimental site(s)'),

    FloatVar('PAREA', 6, 1, sect=GENERAL, spc=3, info='Gross plot area per rep, m-2'),
    IntegerVar('PRNO', 5, sect=GENERAL, info='Rows per plot'),
    FloatVar('PLEN', 5, 1, sect=GENERAL, info='Plot length, m'),
    IntegerVar('PLDR', 5, sect=GENERAL, info='Plots relative to drains, degrees'),
    IntegerVar('PLSP', 5, sect=GENERAL, info='Plot spacing, cm'),
    CharacterVar('PLAY', 5, sect=GENERAL, info='Plot layout'),
    FloatVar('HAREA', 5, 1, sect=GENERAL, info='Harvest area, m-2'),
    IntegerVar('HRNO', 5, sect=GENERAL, info='Harvest row number'),
    FloatVar('HLEN', 5, 1, sect=GENERAL, info='Harvest row length, m'),
    CharacterVar('HARM', 15, sect=GENERAL, info='Harvest method'),

    CharacterVar('NOTES', 500, sect=GENERAL, info='Notes'),

    # Treatments
    IntegerVar('N', 2, spc=0, sect=TRT_HEAD, info='Treatment number'),
    IntegerVar('R', 1, sect=TRT_HEAD, info='Rotation component: number (default=1)'),
Пример #8
0
from tradssat.tmpl.var import FloatVar, IntegerVar

vars_ = {
    IntegerVar('StYr', 5, info='Start year'),
    IntegerVar('StMn', 5, info='Start month'),
    IntegerVar('SpYr', 5, info='Stop year'),
    IntegerVar('SpMn', 5, info='Stop month'),
    IntegerVar('yr', 4, spc=0, info='Year'),
    IntegerVar('mo', 2, info='Month'),
    FloatVar('srmn', 5, 2, info='Solar radiation mean, MJ m-2 day-1'),
    FloatVar('srsd',
             5,
             2,
             info='Solar radiation standard deviation, MJ m-2 day-1'),
    FloatVar('txmn', 5, 2, info='Temperature maximum mean, °C'),
    FloatVar('txsd', 5, 2, info='Temperature maximum standard deviation, °C'),
    FloatVar('tnmn', 5, 2, info='Temperature minimum mean, °C'),
    FloatVar('tnsd', 5, 2, info='Temperature minimum standard deviation, °C'),
    FloatVar('ramn', 5, 2, info='Rainfall mean, mm'),
    FloatVar('rasd', 5, 2, info='Rainfall standard deviation, mm'),
}
Пример #9
0
from tradssat.tmpl.output import OutFile
from tradssat.tmpl.var import FloatVar, IntegerVar


class ETOut(OutFile):
    filename = 'ET.OUT'

    def _get_var_info(self):
        return vars_


vars_ = {
    IntegerVar('YEAR', 4, info='Year'),
    IntegerVar('DOY', 3, info='Day of year starting on Jan 1.'),
    IntegerVar('DAS', 5, info='Day after start'),
    FloatVar('SRAA', 6, 2, info='Average solar radiation (MJ/(m2.day'),
    FloatVar('TMAXA', 6, 2, info='Average maximum air temperature (°C)'),
    FloatVar('TMINA', 6, 2, info='Average minimum air temperature (°C)'),
    FloatVar('EOAA', 6, 3, info='Average potential evapotranspiration (mm/d)'),
    FloatVar('EOPA', 6, 3, info=' Average potential transpiration (mm/d)'),
    FloatVar('EOSA',
             6,
             3,
             info='Average potential soil evaporation per day (mm/day)'),
    FloatVar('ETAA', 6, 3, info='Average evapotranspiration (mm/d)'),
    FloatVar('EPAA', 6, 0, info=' Average plant transpiration (mm/d)'),
    FloatVar('ESAA', 6, 3, info='Average soil evaporation (mm/d)'),
    FloatVar('EFAA', 6, 0, info='Average flood evaporation (mm/d)'),
    FloatVar('EMAA', 6, 3, info='Average mulch evaporation (mm/d)'),
    FloatVar('EOAC', 7, 2,
             info='Cumulative potential evapotranspiration (mm)'),
Пример #10
0
     'VAR#',
     6,
     spc=0,
     info='Identification code or number for the specific cultivar.'),
 CharacterVar('VAR-NAME', 16, header_fill='.', info='Name of cultivar.'),
 CharacterVar('EXP#',
              5,
              miss='.',
              info='Number of experiments used to generate parameters'),
 CharacterVar(
     'ECO#',
     6,
     info='Ecotype code for this cultivar,points to entry in ECO file'),
 FloatVar(
     'P1V',
     5,
     0,
     info='Days,optimum vernalizing temperature,required for vernalization'
 ),
 FloatVar(
     'P1D',
     5,
     0,
     info='Photoperiod response (% reduction in rate/10 h drop in pp)'),
 FloatVar('P5',
          5,
          0,
          info='Grain filling (excluding lag) phase duration (oC.d)'),
 FloatVar('G1',
          5,
          0,
          info='Kernel number per unit canopy weight at anthesis (#/g)'),
Пример #11
0
from tradssat.tmpl.var import CharacterVar, FloatVar

cul_vars_TRARO = {
    CharacterVar(
        'VAR#',
        6,
        spc=0,
        info='Identification code or number for the specific cultivar.'),
    CharacterVar('VAR-NAME', 16, header_fill='.', info='Name of cultivar.'),
    CharacterVar('EXPNO',
                 5,
                 miss='.',
                 info='Number of experiments used for calibration.'),
    CharacterVar(
        'ECO#',
        6,
        info=
        'Code for the ecotype to which this cultivar belongs (see *.eco file)'
    ),
    FloatVar('P1', 5, 0),
    FloatVar('P3', 5, 0),
    FloatVar('P4', 5, 0),
    FloatVar('P5', 5, 0),
    FloatVar('G2', 5, 2),
    FloatVar('G3', 5, 2),
    FloatVar('G4', 5, 2),
    FloatVar('PHINT', 5, 1),
    FloatVar('PCINT', 5, 1),
    FloatVar('PCGRD', 5, 2)
}
Пример #12
0
     info='Identification code or number for the specific cultivar.'),
 CharacterVar('VRNAME', 16, header_fill='.', info='Name of cultivar.'),
 CharacterVar('EXPNO',
              5,
              miss='.',
              info='Number of experiments used for calibration.'),
 CharacterVar(
     'ECO#',
     6,
     info=
     'Code for the ecotype to which this cultivar belongs (see *.eco file)'
 ),
 FloatVar(
     'P1',
     5,
     1,
     info=
     'Thermal time from seedling emergence to the end of the juvenile phase (expressed in degree days above a '
     'base temperature of 8 deg.C) during which the plant is not responsive to changes in photoperiod.'
 ),
 FloatVar(
     'P2',
     5,
     3,
     info=
     'Extent to which development (expressed as days) is delayed for each hour increase in photoperiod above '
     'the longest photoperiod at which development proceeds at a maximum rate (which is considered to be 12.5 '
     'hours).'),
 FloatVar(
     'P5',
     5,
     1,
Пример #13
0
    """
    File reader for DSSAT plant growth (PLANTGRO.OUT) output files.
    """
    filename = 'PlantGro.OUT'

    def _get_var_info(self):
        return vars_


vars_ = {
    IntegerVar('TREATMENT', 2, info='Treatment number'),
    IntegerVar('YEAR', 4, info='Year'),
    IntegerVar('DOY', 3, info='Day of year starting on Jan 1.'),
    IntegerVar('DAS', 5, info='Day after start'),
    IntegerVar('DAP', 5, info='Days after planting'),
    FloatVar('L#SD', 6, 0, info='Leaf number'),
    IntegerVar('GSTD', 6, info='Growth stage'),
    FloatVar('LAID', 6, 2, info='Leaf Area Index'),
    IntegerVar('CWAD', 6, info='Tops dry weight, kg/Ha'),
    IntegerVar('VWAD', 6, info='Veg dry weight, kg/Ha'),
    IntegerVar('LWAD', 6, info='Leaf dry weight, kg/Ha'),
    IntegerVar('SWAD', 6, info='Stem dry weight, kg/Ha'),
    IntegerVar('FLWAD', 6, info='Flower dry weight, kg/Ha'),
    IntegerVar('FWAD', 6, info='Fruit dry weight, kg/Ha'),
    IntegerVar('CRAD', 6, info='Crown dry weight, kg/Ha'),
    IntegerVar('BWAD', 6, info='Basal dry weight, kg/Ha'),
    IntegerVar('SUGD', 6, info='Suck dry weight, kg/Ha'),
    IntegerVar('RWAD', 6, info='Root dry weight, kg/Ha'),
    FloatVar('HIAD', 6, 3, info='Harvest index'),
    IntegerVar('EYWAD', 6, info='Eye Weight, kg/Ha'),
    IntegerVar('EY#AD', 6, info='Eye number'),
Пример #14
0
    """
    File reader for DSSAT plant growth (PLANTGRO.OUT) output files.
    """
    filename = 'PlantGro.OUT'

    def _get_var_info(self):
        return vars_

vars_ = {
    IntegerVar('TREATMENT', 2, info='Treatment number'),

    IntegerVar('YEAR', 4, info='Year'),
    IntegerVar('DOY', 3, info='Day of year starting on Jan 1.'),
    IntegerVar('DAS', 3, info='Day after start'),
    IntegerVar('DAP', 3, info='Days after planting'),
    FloatVar('L#SD', 4, 0, info='Leaf number'),
    FloatVar('GSTD', 4, 4, info='Growth stage'),
    FloatVar('LAID', 4, 2, info='Leaf Area Index'),
    IntegerVar('CWAD', 4, info='Tops dry weight, kg/Ha'),
    IntegerVar('VWAD', 4, info='Veg dry weight, kg/Ha'),
    IntegerVar('LWAD', 4, info='Leaf dry weight, kg/Ha'),
    IntegerVar('SWAD', 4, info='Stem dry weight, kg/Ha'),
    IntegerVar('FLWAD', 5, info='Flower dry weight, kg/Ha'),
    IntegerVar('FWAD', 4, info='Fruit dry weight, kg/Ha'),
    IntegerVar('CRAD', 4, info='Crown dry weight, kg/Ha'),
    IntegerVar('BWAD', 4, info='Basal dry weight, kg/Ha'),
    IntegerVar('SUGD', 4, info='Suck dry weight, kg/Ha'),
    IntegerVar('RWAD', 4, info='Root dry weight, kg/Ha'),
    FloatVar('HIAD', 4, 3, info='Harvest index'),
    IntegerVar('EYWAD', 5, info='Eye Weight, kg/Ha'),
    IntegerVar('EY#AD', 5, info='Eye number'),
Пример #15
0
from tradssat.tmpl.var import CharacterVar, FloatVar, IntegerVar

cul_vars_SCCSP = {  # Todo: add info for all vars
    CharacterVar(
        'VAR#', 6, spc=0, info='Identification code or number for a specific cultivar used by  DSSAT program.'
    ),
    CharacterVar(
        'VAR-NAME', 16, header_fill='.', info='Name of cultivar as recognized commercially or within industry.'
    ),
    CharacterVar('EXPNO', 5, miss='.', info='Number of experiments used to estimate cultivar parameters.'),
    CharacterVar('ECO#', 6, info='Ecotype code of this cultivar in the ECO input file'),

    FloatVar(
        'LFMAX', 5, 3,
        info='Maximum leaf photosynthesis rate, 30 C, 350 ppm CO2 and high '
             'light (used in leaf-level ET routine - Not yet in CASUPRO). mg CO2/m2-s'),
    FloatVar(
        'PHTMX', 5, 1, info='Maximum amount of CH20 which can be produced if PAR is very high, g[CH2O]/m2-d'
    ),
    FloatVar('Stalk', 5, 3),
    FloatVar('Sucro', 5, 3),
    IntegerVar('Null1', 5),
    FloatVar('PLF1', 5, 3),
    FloatVar('PLF2', 5, 3),
    FloatVar('Gamma', 5, 3),
    FloatVar('StkB', 5, 3),
    FloatVar('StkM', 5, 3),
    IntegerVar('Null3', 5),
    FloatVar('SIZLF', 5, 2),
    FloatVar('PLF2', 5, 3),
    FloatVar('LIsun', 5, 3),
Пример #16
0
 CharacterVar('FNAM', 8, header_fill='.', info='Field name'),
 CharacterVar('WSTA', 8, header_fill='.', info='Weather station name'),
 CharacterVar('SOIL_ID', 10, header_fill='.', info='Soil name'),
 IntegerVar('SDAT', 7, info='Start date, YYYYDDD'),
 IntegerVar('PDAT', 7, info='Planting date, YYYYDDD'),
 IntegerVar('EDAT', 7, info='Emergence date, YYYYDDD'),
 IntegerVar('ADAT', 7, info='Anthesis date, start, YYYYDDD'),
 IntegerVar('MDAT', 7, info='Maturity (physiological) date, YYYYDDD'),
 IntegerVar('HDAT', 7, info='Harvest date, YYYYDDD'),
 IntegerVar('DWAP', 5, info='Planting material dry weight, kg ha-1'),
 IntegerVar('CWAM', 7, info='Canopy dry weight at maturity, kg ha-1'),
 IntegerVar('HWAM', 7, info='Yield at maturity, kg ha-1'),
 IntegerVar('HWAH', 7, info='Yield at harvest, kg ha-1'),
 IntegerVar('BWAH', 7, info='Harvested byproduct dry weight, kg ha-1'),
 IntegerVar('PWAM', 5, info=''),
 FloatVar('HWUM', 7, 3,
          info='Harvest product individual dry wt., mg or g '),
 IntegerVar('H#AM', 7, info='Harvest product number per m2 at maturity'),
 FloatVar('H#UM', 7, 1, info='Harvest product number per unit at maturity'),
 FloatVar('HIAM', 5, 3, info=''),
 FloatVar('LAIX', 5, 1, info=''),
 IntegerVar('IR#M', 5, info='Irrigation applications, number'),
 IntegerVar('IRCM', 5, info='Irrigation applied, cumulative, mm'),
 IntegerVar('PRCM', 5, info='Precipitation cumulative, mm'),
 IntegerVar('ETCM', 5, info='Evapotranspiration in season, cumulative, mm'),
 IntegerVar('EPCM', 5, info=''),
 IntegerVar('ESCM', 5, info=''),
 IntegerVar('ROCM', 5, info='Runoff, cumulative, mm'),
 IntegerVar('DRCM', 5, info='Cumulative drainage from profile, mm'),
 IntegerVar('SWXM', 5, info='Water remaining in soil, available, mm'),
 IntegerVar('NI#M', 5, info='Nitrogen applications, number'),
 IntegerVar('NICM', 5, info='Nitrogen applied, cumulative, kg ha-1'),
Пример #17
0
from tradssat.tmpl.var import CharacterVar, FloatVar, IntegerVar

vars_ = {
    CharacterVar('INSI', 4, spc=2, info='Institute + Site code'),
    FloatVar('LAT', 8, 3, info='Latitude, degrees (decimals)'),
    FloatVar('LONG', 8, 3, info='Longitude, degrees (decimals)'),
    FloatVar('ELEV', 5, 0, info='Elevation, m'),
    FloatVar('TAV', 5, 1, info='Air temperature average, °C'),
    FloatVar('AMP', 5, 1, info='Air temperature amplitude, monthly averages, °C'),
    FloatVar('SRAY', 5, 1, info=''),
    FloatVar('TMXY', 5, 1, info=''),
    FloatVar('TMNY', 5, 1, info=''),
    IntegerVar('RAIY', 5, info=''),

    IntegerVar('START', 5, spc=0, info=''),
    IntegerVar('DURN', 5, info=''),
    FloatVar('ANGA', 5, 2, info=''),
    FloatVar('ANGB', 5, 2, info=''),
    FloatVar('REFHT', 5, 1, info=''),
    FloatVar('WNDHT', 5, 1, info=''),
    CharacterVar('SOURCE', 50, info=''),
    IntegerVar('GSST', 5, info=''),
    IntegerVar('GSDU', 5),

}
Пример #18
0
     info='Identification code or number for the specific cultivar.'),
 CharacterVar('VAR-NAME', 16, header_fill='.', info='Name of cultivar.'),
 CharacterVar('EXPNO',
              5,
              miss='.',
              info='Number of experiments used for calibration.'),
 CharacterVar(
     'ECO#',
     6,
     info=
     'Code for the ecotype to which this cultivar belongs (see *.eco file)'
 ),
 FloatVar(
     'P1',
     5,
     1,
     info=
     'Thermal time from seedling emergence to the end of the juvenile phase (expressed in degree days above '
     'TBASE during which the plant is not responsive to changes in photoperiod'
 ),
 FloatVar(
     'P2',
     5,
     1,
     info=
     'Thermal time from the end of the juvenile stage to tassel initiation under short days (degree days above '
     'TBASE)'),
 FloatVar(
     'P2O',
     5,
     2,
     info=
Пример #19
0
    """
    Reader for DSSAT soil nitrogen (SOILNI.OUT) files.
    """
    filename = 'SoilNi.Out'

    def _get_var_info(self):
        return vars_


vars_ = {
    IntegerVar('YEAR', 4, info='Year'),
    IntegerVar('DOY', 3, info='Day of year starting on Jan 1.'),
    IntegerVar('DAS', 3, info='Day after start'),
    IntegerVar('NAPC', 4, info='Cumulative inorganic N applied, kg/ha'),
    IntegerVar('NI#M', 4, info='N application numbers'),
    FloatVar('NIAD', 4, 1, info='Inorganic N in soil, kg/ha'),
    FloatVar('NITD', 4, 1, info='Amount of total NO3, kg/ha'),
    FloatVar('NHTD', 4, 1, info='Amount of total NH4, kg/ha'),
    FloatVar('NI1D', 4, 2, info='NO3 at 0-5 cm soil depth, ppm'),
    FloatVar('NI2D', 4, 2, info='NO3 at 5-15 cm soil depth, ppm'),
    FloatVar('NI3D', 4, 2, info='NO3 at 15-30 cm soil depth, ppm'),
    FloatVar('NI4D', 4, 2, info='NO3 at 30-45 cm soil depth, ppm'),
    FloatVar('NI5D', 4, 2, info='NO3 at 45-60 cm soil depth, ppm'),
    FloatVar('NI6D', 4, 2, info='NO3 at 60-90 cm soil depth, ppm'),
    FloatVar('NI7D', 4, 2, info='NO3 at 90-110 cm soil depth, ppm'),
    FloatVar('NH1D', 4, 2, info='NH4 at 0-5 cm soil depth, ppm'),
    FloatVar('NH2D', 4, 2, info='NH4 at 5-15 cm soil depth, ppm'),
    FloatVar('NH3D', 4, 2, info='NH4 at 15-30 cm soil depth, ppm'),
    FloatVar('NH4D', 4, 2, info='NH4 at 30-45 cm soil depth, ppm'),
    FloatVar('NH5D', 4, 2, info='NH4 at 45-60 cm soil depth, ppm'),
    FloatVar('NH6D', 4, 2, info='NH4 at 60-90 cm soil depth, ppm'),
Пример #20
0
     'VAR#',
     6,
     spc=0,
     info='Identification code or number for the specific cultivar.'),
 CharacterVar('VAR-NAME', 16, header_fill='.', info='Name of cultivar.'),
 CharacterVar('EXP#',
              5,
              miss='.',
              info='Number of experiments used for calibration.'),
 CharacterVar(
     'ECO#',
     6,
     info='Ecotype code for this cultivar,points to entry in the ECO file'),
 FloatVar(
     'PPS1',
     5,
     0,
     info='Photoperiod sensitivity for phase n. (% drop for 10h pp.change)'
 ),
 FloatVar(
     'B01ND',
     5,
     2,
     info='Duration from branch 0 to branch 1 (ie.tier x,node number)'),
 FloatVar(
     'B12ND',
     5,
     2,
     info='Duration from branch 1 to branch 2 (ie.tier x,node number)'),
 FloatVar(
     'B23ND',
     5,
Пример #21
0
from tradssat.tmpl.var import CharacterVar, FloatVar, IntegerVar

vars_ = {
    CharacterVar('INSI', 4, spc=2, info='Institute + Site code'),
    FloatVar('LAT', 8, 3, info='Latitude, degrees (decimals)'),
    FloatVar('LONG', 8, 3, info='Longitude, degrees (decimals)'),
    FloatVar('ELEV', 5, 0, info='Elevation, m'),
    FloatVar('TAV', 5, 1, info='Air temperature average, °C'),
    FloatVar('AMP', 5, 1, info='Air temperature amplitude, monthly averages, °C'),
    FloatVar('REFHT', 5, 1, info='Height of temperature measurements, m'),
    FloatVar('WNDHT', 5, 1, info='Height of wind measurements, m'),

    CharacterVar('DATE', 5, spc=0, info='Year + days from Jan. 1'),
    FloatVar('SRAD', 5, 1, info='Solar radiation, MJ m-2 day-1'),
    FloatVar('TMAX', 5, 1, info='Air temperature maximum, °C'),
    FloatVar('TMIN', 5, 1, info='Air temperature minimum, °C'),
    FloatVar('RAIN', 5, 1, info='Precipitation, mm'),
    FloatVar('DEWP', 5, 1, info='Dewpoint temperature5, °C'),
    FloatVar('WIND', 5, 1, info='Wind run5, km day-1'),
    FloatVar('PAR', 5, 1, info='Photosynthetic active radiation (PAR)5, moles m-2 day-1'),
    FloatVar('EVAP', 5, 1),
    FloatVar('RHUM', 5, 1)

}
Пример #22
0
from tradssat.tmpl.output import OutFile
from tradssat.tmpl.var import FloatVar, IntegerVar


class MulchOut(OutFile):
    filename = 'Mulch.Out'

    def _get_var_info(self):
        return vars_


vars_ = {
    IntegerVar('YEAR', 4, info='Year'),
    IntegerVar('DOY', 3, info='Day of year starting on Jan 1.'),
    IntegerVar('DAS', 5, info='Day after start'),
    FloatVar('MCFD', 7, 3, info='fraction of soil covered by mulch'),
    FloatVar('MDEPD', 7, 2, info='thickness of mulch layer, cm'),
    IntegerVar('MWAD', 7, info='mass of mulch layer, kg/ha'),
    FloatVar('MWTD', 7, 2, info='water stored in mulch layer, mm'),
}
Пример #23
0
     spc=0,
     info='Identification code or number for the specific cultivar.'),
 CharacterVar('VAR-NAME', 16, header_fill='.', info='Name of cultivar.'),
 CharacterVar('EXP#',
              5,
              miss='.',
              info='Number of experiments used for calibration.'),
 CharacterVar(
     'ECO#',
     6,
     info=
     'Code for the ecotype to which this cultivar belongs (see *.eco file)'
 ),
 FloatVar(
     'PPS1',
     5,
     0,
     info='Photoperiod sensitivity for phase 1. (% drop for 10h pp.change)'
 ),
 FloatVar(
     'B01ND',
     5,
     0,
     info='Duration from branch 0 to branch 1 (ie.tier x,node number)'),
 FloatVar(
     'B12ND',
     5,
     0,
     info='Duration from branch 1 to branch 2 (ie.tier x,node number)'),
 FloatVar(
     'HMPC',
     5,
Пример #24
0
from tradssat.genotype.vars_._cropgro import cropgro_cul_vars, cropgro_eco_vars
from tradssat.tmpl.var import FloatVar

cul_vars_G0GRO = cropgro_cul_vars(
    exclude=['EXPNO', 'THRESH', 'SDPRO', 'SDLIP'])

eco_vars_G0GRO = cropgro_eco_vars()
eco_vars_G0GRO.update({
    FloatVar('THRSH',
             5,
             1,
             info='The maximum ratio of (seed/(seed+shell)) at maturity. '
             'Causes seed to stop growing as their dry weights '
             'increase until shells are filled in a cohort. '
             '(Threshing percentage).'),
    FloatVar('SDPRO',
             5,
             3,
             info='Fraction protein in seeds (g(protein)/g(seed))'),
    FloatVar('SDLIP', 5, 3, info='Fraction oil in seeds (g(oil)/g(seed))'),
})
Пример #25
0
        return vars_


vars_ = {
    IntegerVar('YEAR', 4, info='Year'),
    IntegerVar('DOY', 3, info='Day of year starting on Jan 1.'),
    IntegerVar('DAS', 3, info='Day after start'),
    IntegerVar('SWTD', 4, info='total soil water in profile, mm'),
    IntegerVar('SWXD', 4, info='potentially extractable water, cm'),
    IntegerVar('ROFC', 4, info='cumulative runoff'),
    IntegerVar('DRNC', 4, info='cumulative drainage'),
    IntegerVar('PREC', 4, info='cumulative precipitation'),
    IntegerVar('IR#C', 4, info='irrigation'),
    IntegerVar('IRRC', 4, info='cumulative irrigation'),
    IntegerVar('DTWT', 4, info='water table depth, cm'),
    FloatVar('MWTD', 4, 2, info='water stored in mulch layer, mm'),
    FloatVar('TDFD', 4, 0, info='water lost to tile drainage, mm/d'),
    FloatVar('TDFC', 4, 0, info='cumulative water lost to tile drainage, mm'),
    FloatVar('ROFD', 4, 0, info='total daily surface runoff, mm/d'),
    FloatVar('SW1D', 4, 3, info='soil water content at 0-5 cm depth, mm3/mm3'),
    FloatVar('SW2D', 4, 3, info='soil water content at 5-15 cm depth, mm3/mm3'),
    FloatVar('SW3D', 4, 3, info='soil water content at 15-30 cm depth, mm3/mm3'),
    FloatVar('SW4D', 4, 3, info='soil water content at 30-45 cm depth, mm3/mm3'),
    FloatVar('SW5D', 4, 3, info='soil water content at 45-60 cm depth, mm3/mm3'),
    FloatVar('SW6D', 4, 3, info='soil water content at 60-90 cm depth, mm3/mm3'),
    FloatVar('SW7D', 4, 3, info='soil water content at 90-110 cm depth, mm3/mm3'),

    # Recently added (#19)
    FloatVar('SW8D', 4, 3, info='soil water content at 120-150 cm depth, mm3/mm3'),

}
Пример #26
0
     info='Identification code or number for the specific cultivar.'),
 CharacterVar('VRNAME', 16, header_fill='.', info='Name of cultivar.'),
 CharacterVar('EXPNO',
              5,
              miss='.',
              info='Number of experiments used for calibration.'),
 CharacterVar(
     'ECO#',
     6,
     info=
     'Ecotype code or this cultivar, points to the Ecotype in the ECO file (currently not used).'
 ),
 FloatVar(
     'P1',
     5,
     1,
     info='Thermal time from seedling emergence to the end of the juvenile '
     'phase (expressed in degree days above a base temperature of 8øC) '
     'during which the plant is not responsive to changes in photoperiod.'),
 FloatVar(
     'P2',
     5,
     3,
     info='Extent to which development (expressed as days) is delayed for '
     'each hour increase in photoperiod above the longest photoperiod '
     'at which development proceeds at a maximum rate (which is '
     'considered to be 12.5 hours).'),
 FloatVar(
     'P5',
     5,
     1,
Пример #27
0
     spc=0,
     info='Identification code or number for the specific cultivar.'),
 CharacterVar('VAR-NAME', 16, header_fill='.', info='Name of cultivar.'),
 CharacterVar('EXPNO',
              5,
              miss='.',
              info='Number of experiments used for calibration.'),
 CharacterVar(
     'ECO#',
     6,
     info=
     'Ecotype code or this cultivar, points to the Ecotype in the ECO file (currently not used).'
 ),
 FloatVar(
     'G2',
     5,
     0,
     info='Leaf area expansion rate after tuber initiation (cm2/m2 d)'),
 FloatVar('G3', 5, 1, info='Potential tuber growth rate (g/m2 d)'),
 FloatVar(
     'PD',
     5,
     1,
     info=
     'Index that supresses tuber growth during the period that immediately follows tuber induction'
 ),
 FloatVar('P2',
          5,
          1,
          info='Tuber initiation sensitivity to long photoperiods'),
 FloatVar('TC',
Пример #28
0
from tradssat.genotype.vars_._cropgro import cropgro_cul_vars, cropgro_eco_vars
from tradssat.tmpl.var import FloatVar

cul_vars_BMGRO = cropgro_cul_vars()

eco_vars_BMGRO = cropgro_eco_vars()
eco_vars_BMGRO.update({
    FloatVar(
        'RDRMT',
        5,
        dec=3,
        info=
        'Relative dormancy sensitivity of this cultivar to daylength - partitioning (0-1)'
    ),
    FloatVar(
        'RDRMG',
        5,
        dec=3,
        info=
        'Relative dormancy sensitivity of this cultivar to daylength - photosynthesis (0-1)'
    ),
    FloatVar(
        'RDRMM',
        5,
        dec=3,
        info=
        'Relative dormancy sensitivity of this cultivar to daylength - mobilization (0-1)'
    ),
    FloatVar('RCHDP', 5, dec=3, info='Relative cold hardening potential (0-1)')
})
Пример #29
0
from tradssat.tmpl.output import OutFile
from tradssat.tmpl.var import FloatVar, IntegerVar


class ETOut(OutFile):
    filename = 'ET.OUT'

    def _get_var_info(self):
        return vars_


vars_ = {
    IntegerVar('YEAR', 4, info='Year'),
    IntegerVar('DOY', 3, info='Day of year starting on Jan 1.'),
    IntegerVar('DAS', 3, info='Day after start'),
    FloatVar('SRAA', 4, 2, info='Average solar radiation (MJ/(m2.day'),
    FloatVar('TMAXA', 5, 2, info='Average maximum air temperature (°C)'),
    FloatVar('TMINA', 5, 2, info='Average minimum air temperature (°C)'),
    FloatVar('EOAA', 4, 3, info='Average potential evapotranspiration (mm/d)'),
    FloatVar('EOPA', 4, 3, info=' Average potential transpiration (mm/d)'),
    FloatVar('EOSA', 4, 3, info='Average potential soil evaporation per day (mm/day)'),
    FloatVar('ETAA', 4, 3, info='Average evapotranspiration (mm/d)'),
    FloatVar('EPAA', 4, 0, info=' Average plant transpiration (mm/d)'),
    FloatVar('ESAA', 4, 3, info='Average soil evaporation (mm/d)'),
    FloatVar('EFAA', 4, 0, info='Average flood evaporation (mm/d)'),
    FloatVar('EMAA', 4, 3, info='Average mulch evaporation (mm/d)'),
    FloatVar('EOAC', 4, 2, info='Cumulative potential evapotranspiration (mm)'),
    FloatVar('ETAC', 4, 2, info='Cumulative evapotranspiration (mm)'),
    FloatVar('EPAC', 4, 0, info=' Cumulative transpiration (mm)'),
    FloatVar('ESAC', 4, 2, info='Cumulative soil evaporation (mm)'),
    FloatVar('EFAC', 4, 0, info='Cumulative floodwater evaporation (mm)'),
Пример #30
0
     info='Identification code or number for the specific cultivar.'),
 CharacterVar('VAR-NAME', 16, header_fill='.', info='Name of cultivar.'),
 CharacterVar('EXPNO',
              5,
              miss='.',
              info='Number of experiments used for calibration.'),
 CharacterVar(
     'ECO#',
     6,
     info=
     'Code for the ecotype to which this cultivar belongs (see *.eco file)'
 ),
 FloatVar(
     'MaxPARCE',
     14,
     2,
     info=
     'Maximum (no stress) radiation conversion efficiency expressed as assimilate produced before respiration, '
     'per unit PAR. (g/MJ).'),
 FloatVar(
     'APFMX',
     14,
     2,
     info=
     'Maximum fraction of dry mass increments that can be allocated to aerial dry mass (t/t)'
 ),
 FloatVar(
     'PCB',
     14,
     2,
     info=