Skip to content

Automates CLEANED-based GHG assessment for livestock farms using Venture37 survey data. Processes multiple Excel files, computes emissions and CH₄ intensity per kg FPCM, and outputs standardized Excel/JSON results. Enables partners to evaluate feed improvement impacts across farms at scale.

License

Notifications You must be signed in to change notification settings

CIAT/cleaned_batch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CLEANED Batch Emissions Calculator (Venture37)

This repository provides an automated workflow to estimate livestock greenhouse gas (GHG) emissions using the CLEANED (Comprehensive Livestock Environmental Assessment) framework. It was developed for Venture37 Kenya data and is designed to scale cleaned to batch process datasets from multiple farms.


🧩 Overview

The script automates the CLEANED modeling workflow to:

  • Import and harmonize farm-level Excel data collected through interviews.
  • Construct standardized CLEANED input objects per farm and livestock type.
  • Run core CLEANED modules for feed quality, energy, land, soil, nitrogen, and emissions.
  • Generate results as both Excel workbooks and JSON outputs.
  • Compute enteric methane (CH₄) intensity per kilogram of Fat- and Protein-Corrected Milk (FPCM).

This allows comparison of baseline versus improved feed basket scenarios and quantifies changes in emissions efficiency across multiple farms.


⚙️ Key Features

  • Automated Processing: Loops through multiple Excel input files.
  • Standardized Outputs: Writes full CLEANED result tables (Excel + JSON).
  • FPCM Normalization: Calculates CH₄ intensity (kg CH₄ · kg⁻¹ FPCM).
  • Integrated Parameters: Pulls reference data and emission factors from the CLEANED package.
  • Scalable Design: Reusable for national or program-level livestock mitigation assessments.

📁 File Structure

File Description
R/cleaned_batch_emissions_fpcm.R Main script to execute full workflow.
data/v37/ Input Excel data (baseline and improved feed scenarios) you will need to add this manually.

🧮 Dependencies

  • R ≥ 4.2
  • Packages: cleaned, readxl, jsonlite, tidyr, dplyr, miceadds, data.table, openxlsx, s3fs, pacman

Install dependencies:

pacman::p_load(readxl, cleaned, jsonlite, tidyr, dplyr, miceadds, data.table, openxlsx, s3fs)

About

Automates CLEANED-based GHG assessment for livestock farms using Venture37 survey data. Processes multiple Excel files, computes emissions and CH₄ intensity per kg FPCM, and outputs standardized Excel/JSON results. Enables partners to evaluate feed improvement impacts across farms at scale.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages