How wintermind/bestpred works
BESTPRED is a Fortran 90 program for estimating lactation yields and persistency with best-prediction methodology. Its user workflow is to provide lactation/test-day records, run the estimator, and inspect calculated results or lactation-curve plots. The repository also contains breed- and region-specific adjustment routines and standard-curve plotting utilities. The README documents covariance methodology, but the main Fortran sources were not excerpted; their internal stages and connections are therefore shown only as unverified links rather than asserted calls.
Main entry points: bestpred_main.f90 Program entry · ageadjs.c Fortran adjustment bridge · bestpred.f90 Best prediction · aiplage.c AIPL age adjustment
Components 18
Prediction
- Program entry
bestpred_main.f90 - Run parameters
bestpred_parm.f90 - Best prediction
bestpred.f90 - Format 4 I/O
bestpred_fmt4.f90 - Run logging
bestpred_log.f90
Adjustments
- Age adjustment
ageadj.c - AIPL age adjustment
aiplage.c - Fortran adjustment bridge
ageadjs.c - Age factors
age.h - Adjustment factors
ageadj.h - SCS adjustment
adjscs.c - SCS factors
adjscs.h
Curve tools
- Output curve plots
bestpred_curves.py - Standard curves
standard_curves.py
Other components
- Analyst
- Test-day records
- Plot user
- Prediction results
Connections 15
- Analyst → Test-day records: provides
- Test-day records → Program entry: supplies input
- Program entry → Run parameters: uses settings
- Program entry → Format 4 I/O: dispatches format
- Program entry → Best prediction: runs prediction
- Program entry → Run logging: records run
- Best prediction → Prediction results: produces results
- Age adjustment → Age factors: uses factors
ageadj.c - AIPL age adjustment → AIPL age adjustment: computes factors
aiplage.c - Fortran adjustment bridge → Adjustment factors: uses factors
ageadjs.c - Fortran adjustment bridge → SCS adjustment: calls
ageadjs.c - SCS adjustment → SCS factors: uses factors
adjscs.c - Plot user → Output curve plots: selects output
- Prediction results → Output curve plots: reads results
- Plot user → Standard curves: selects parameters