Example #1
0
crop = 'corn'
plant = datetime.datetime(2000, 4, 15)
emergence = 30
growth = 50
full = 60
late = 40

# crop coefficients (bare soil, full growth, harvest date)

Ki = 0.30
Km = 1.15
Kl = 0.40

# add the information to the etcalculator

calculator.add_crop(crop, plant, emergence, growth, full, late, Ki, Km, Kl)

# calculate the daily crop coefficient time series from the start to the end

calculator.calculate_daily_crop(crop, start, end)

# the calculator stores all daily crop coefficient time series in a dictionary
# structure with keys by crop name and values as start datetime and data

start, Kc = calculator.dailyKcs[crop]

# the calculator can extend the reference ET timeseries and the crop coefficient
# to estimate crop-specific PET time series

calculator.daily_PET(crop, start, end)
Example #2
0
crop = "corn"
plant = datetime.datetime(2000, 4, 15)
emergence = 30
growth = 50
full = 60
late = 40

# crop coefficients (bare soil, full growth, harvest date)

Ki = 0.30
Km = 1.15
Kl = 0.40

# add the information to the etcalculator

calculator.add_crop(crop, plant, emergence, growth, full, late, Ki, Km, Kl)

# calculate the daily crop coefficient time series from the start to the end

calculator.calculate_daily_crop(crop, start, end)

# the calculator stores all daily crop coefficient time series in a dictionary
# structure with keys by crop name and values as start datetime and data

start, Kc = calculator.dailyKcs[crop]

# the calculator can extend the reference ET timeseries and the crop coefficient
# to estimate crop-specific PET time series

calculator.hourly_PET(crop, start, end)