Repository: GitHub
Project with many tools to use ORYZA crop model. It Includes functions to create input files (weather *.WTH, soil *.SOL, experimental *.EXP), estimate parameters (crop, weather and soil), import and visualize outputs. It will conect with ORYZA_AUTO_PARAM tool to compute diferent parameters required in the crop model parametrization and calibration.
-
Official ORYZA Model website
-
Book about ORYZA2000: modeling lowland rice.
-
Research paper about ORYZA V3.0
Function to create ORYZA-model weather files.
require(tidyverse)
require(lubridate)
Make_WTH_ORYZA(data, path, local, lat, lon, alt, stn=1)
data:csv file name or data.frame of daily values. View Weather Template
| Var_Name | Description | Class | Unit |
|---|---|---|---|
| DATE | Date in "mm/dd/yyyy" | Date | MM/DD/YYYY |
| TMAX | Maximum temperature | num | (oC) |
| TMIN | Minimun temperature | num | (oC) |
| RAIN | Rain or Precipitation | num | (mm) |
| SRAD | Solar Radiation | num | (MJ) |
| RHUM | Relative humidity (opcional) | num | (%) |
path:path folder or working directorylocal:4 letters string of locality name. "AIHU"--> Aipe, Huilalat:latitud (decimal degrees)lon:longitud (decimal degrees)alt:altitude (meters above sea level)stn:Station number. default=1
Function to create ORYZA-model soil files. Default PADDY model
require(tidyverse)
Make_SOIL_ORYZA(data, path, ZRTMS = 0.50, WL0I = 0, WCLI='FC' , RIWCLI = 'NO', SATAV=20)
data:csv file name or data.frame. View Soil Template
| Var_Name | Description | Class | Unit |
|---|---|---|---|
| ID | Trial ID | character | XXXX |
| SAMPLING_DATE | Sampling date | date | MM/DD/YYYY |
| DEPTH | Soil depth (Thickness) | numeric | cm |
| PH | pH in water | numeric | units |
| SCARBON | Total soil carbon | numeric | g/kg |
| SCEC | Cation exchange capacity | numeric | cmol/kg |
| SNH4 | Ammonium, KCl, g elemental N | numeric | mg/kg |
| SNO3 | Nitrate, KCl, g elemental N | numeric | mg/kg |
| SLNI | Total nitrogen | numeric | mg/kg |
| SLON | Organic nitrogen | numeric | mg/kg |
| SBDM | Bulk density, moist | numeric | g/cm³ |
| SRD | Real density | numeric | g/cm³ |
| SPOR | Total soil porosity | numeric | % |
| WCF | Water content at field | numeric | % |
| SSKS | Saturated hydraulic conductivity | numeric | cm/day |
| WCST | Saturated volumetric water content | numeric | % |
| WCFC | Volumetric water content at field capacity | numeric | % |
| WC1B | Volumetric water content at 1 bar | numeric | % |
| WCWP | Volumetric water content at wilting point | numeric | % |
| SAND | Soil sand content | numeric | % |
| SILT | Soil silt content | numeric | % |
| CLAY | Soil clay content | numeric | % |
| STC | Soil texture class (USDA) | character | name |
path:path folder or working directoryZRTMS:Maximum rooting depth in the soil (m),WL0I:Initial ponded water depth at start of simulation (mm)"WCLI:can take 3 values: Field Capacity ('FC'), 50% of Soil Saturation ('ST50'), Fraction of water content ('0.0'- '1.0')RIWCLI:Re-initialize switch RIWCLI is YES or NOSATAV:Soil annual average temperature of the first layers