Climate Crop Zoning Based in Air Temperature for Brazil

Climate crop zoning based in minimum and maximum air temperature. The data used in the package are from 'TerraClimate' dataset (< https://www.climatologylab.org/terraclimate.html>), but, it have been calibrated with automatic weather stations of National Meteorological Institute of Brazil. The climate crop zoning of this package can be run for all the Brazilian territory.


cropZoning

The goal of cropZoning is to make climate zoning of different crops (air temperature based) for any region of Brazil. For this, cropZoning uses minimum and maximum air temperature from Terraclimate dataset (http://www.climatologylab.org/terraclimate.html) calibrated with the automatic weather stations of National Meteorological Institute of Brazil (INMET).

Installation

To install the last version of cropZoning package follow this steps:

devtools::install_github("FilgueirasR/cropZoning")

Example

This is a basic example which shows you how to run the cropZoning package:

## basic example code

#devtools::install_github("FilgueirasR/cropZoning")
library(cropZoning)
library(raster)


see_brazil_states()

image_tmin<-loadROI(variable = "tmin", region = "brazil", sub_region = 19) # sub_region = Rio Grande do Norte
image_tmax<-loadROI(variable = "tmax", region = "brazil", sub_region = 19) # sub_region = Rio Grande do Norte

start_date<-c('2000-01-01')
end_date<-c('2017-12-01')

image_tmean<- tmean(tmax_stack = image_tmax , tmin_stack = image_tmin)

monthly_tmean <- cropZoning::tmean_monthly_stack(tmean_stack = image_tmean, start_date = start_date, end_date = end_date)
plot(monthly_tmean)

cz<-ccrop_zoning(monthly_tmean, temp1= 10, temp2= 20, temp3 = 30, temp4 = 40)
plot(cz)

plot_ccrop_zoning(cz)



Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("cropZoning")

1.0.3 by Roberto Filgueiras, 3 years ago


Report a bug at https://github.com/FilgueirasR/cropZoning/issues


Browse source code at https://github.com/cran/cropZoning


Authors: Roberto Filgueiras [aut, cre] , Luan P. Venancio [aut] , Catariny C. Aleman [aut] , Fernando F. da Cunha [aut]


Documentation:   PDF Manual  


CC BY 4.0 license


Imports terra, tidyr, sf, ncdf4, ggplot2


See at CRAN