<img src='https://github.com/FilgueirasR/cropZoning/blob/master/man/figures/logo_cropZoning.png' height='300' width='auto' align='right'>
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).
To install the last version of cropZoning package follow this steps:
::install_github("FilgueirasR/cropZoning") devtools
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()
<-loadROI(variable = "tmin", region = "brazil", sub_region = 19) # sub_region = Rio Grande do Norte
image_tmin<-loadROI(variable = "tmax", region = "brazil", sub_region = 19) # sub_region = Rio Grande do Norte
image_tmax
<-c('2000-01-01')
start_date<-c('2017-12-01')
end_date
<- tmean(tmax_stack = image_tmax , tmin_stack = image_tmin)
image_tmean
<- cropZoning::tmean_monthly_stack(tmean_stack = image_tmean, start_date = start_date, end_date = end_date)
monthly_tmean plot(monthly_tmean)
<-ccrop_zoning(monthly_tmean, temp1= 10, temp2= 20, temp3 = 30, temp4 = 40)
czplot(cz)
plot_ccrop_zoning(cz)