Skip to content

Script for extracting and merging ISU weather data with IRRI's

Notifications You must be signed in to change notification settings

ciatph/ciat-isuirriweather

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ciat-isuirriweather

Script for extracting, merging and comparing ISU weather data with IRRI's

Dependencies

  1. R (version 3.5.0 was used for this project)
  2. R packages (please install the following using install.packages() if they are not yet installed):
    • readxl
    • stringr

Files

  1. weatherfile.R
    A utility object for managing IRRI's individual weather data files

  2. isuirriweather.R
    A utility object for managing ISU's individual weather data files

  3. main.R
    Main script for processing ISU's and IRRI's weather data files

  4. main.bat
    Windows batch script for running main.R without opening in RStudio. (see Usage #4)

Usage

  1. Clone this repository into your local PC.
  2. ISU's and IRRI's weather files are confidential— please contact us for further details if you need to use it. Put the files in their respective directories in /data/irri/* or /data/isu/* and read the README's for each data set regarding cleaning and preparing data.
  3. In RStudio,
    • Set the working directory to the cloned repository, i.e.:
      setwd(setwd("D:/LAB/R/ciat-isuirriweather")
    • Run source("main.R").
    • Alternatively, you can do #4 instead.
  4. Open main.bat in a text editor and set pathtorexe to your R's \bin installation directory. For example,
    set pathtorexe="C:\Program Files\R\R-3.5.0\bin\"
    • Click main.bat to run
  5. Wait for (5) csv files to be generated in the /extracted directory:
    • export_irri_014.csv
    • export_irri_015.csv
    • export_irri_016.csv
    • export_isu_2014.csv
    • export_isu_2015.csv

External Links

  1. Trello project board (private)

Date Created: 20180911
Date Modified: 20180913

About

Script for extracting and merging ISU weather data with IRRI's

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published