Related Experiment Video
Updated: Nov 4, 2025

A Precise and Autonomous System for the Detection of Insect Emergence Patterns
Published on: January 9, 2019
Retrieving and processing agro-meteorological data from API-client sources using R software
Adrian A Correndo1, Luiz H Moro Rosso2, Ignacio A Ciampitti3
1Department of Agronomy, Kansas State University, Manhattan, KS, 66506, USA. correndo@ksu.edu.
Objectives:
The main purpose of this publication is to help users (students, researchers, farmers, advisors, etc.) of weather data with agronomic purposes (e.g. crop yield forecast) to retrieve and process gridded weather data from different Application Programming Interfaces (API client) sources using R software.
Data Description:
This publication consists of a code-tutorial developed in R that is part of the data-curation process from numerous research projects carried out by the Ciampitti's Lab, Department of Agronomy, Kansas State University. We make use of three weather databases for which specific libraries were developed in R language: (i) DAYMET (Thornton et al. in https://daymet.ornl.gov/ , 2019; https://github.com/bluegreen-labs/daymetr ), (ii) NASA-POWER (Sparks in J Open Source Softw 3:1035, 2018; https://github.com/ropensci/nasapower ), and (iii) Climate Hazards Group InfraRed Precipitation with Station Data (CHIRPS) (Funk et al. in Sci Data 2:150066, 2015; https://github.com/ropensci/chirps ). The databases offer different weather variables, and vary in terms of spatio-temporal coverage and resolution. The tutorial shows and explain how to retrieve weather data from multiple locations at once using latitude and longitude coordinates. Additionally, it offers the possibility to create relevant variables and summaries that are of agronomic interest such as Shannon Diversity Index (SDI) of precipitation, abundant and well distributed rainfall (AWDR), growing degree days (GDD), crop heat units (CHU), extreme precipitation (EPE) and temperature events (ETE), reference evapotranspiration (ET0), among others.
Related Concept Videos
Introduction to R
Interpreting R Charts
An R chart plots the range of subsets of measurements collected from a process. Each point on the chart represents the range—defined as the difference between the maximum and minimum...
GIS Software, Hardware, and Sources of GIS Data
Statistical Software for Data Analysis and Clinical Trials
Precipitation and Co-precipitation
Precipitation Processes

