# R/PELQ.R In spreval: Evaluation of Sprinkler Irrigation Uniformity and Efficiency

```#function to compute potential efficiency of low quarter
#of low-quarter. From Mirriam and Keller, 1978, p. 41. Note that rates (as suggested in Mirriam and Keller)
#are used in the calculation, not depths, asin AELQ , but the numberical result is identical if depths are used
# x is caught depth (catch cans), rate is sprinkler flow rate (lpm or gpm), ss is sprinkler spacing, sl is lateral spacing
"PELQ"=function(x,SI=TRUE,rate,ss,sl,dur)
{
#get subarray of low quarter
x<-sort(x)
end<-round(length(x)/4,digits=0)
#use applied rate rather than caught rate for denominator
#SI use mm for depth, meters for spacing, lpm for sprinkler flow rate, hr duration
#US Customary use in. for depth, feet for spacing, gpm for sprinkler flow rate, hr duration
if(SI){(mean(x[1:end])/dur)/((rate/1000/(ss*sl)*60*dur)*1000)*100}
else{(mean(x[1:end])/dur)/(96.3*rate/(ss*sl))*100}
}

## PELQ for traveling system
#use applied depth rather than caught depth for denominator}
#SI x=mm,rate=lps, ls=m, ts=m/s - note lps for rate not lpm as in stationary
#US x=in., rate=gpm,ls=ft, ts= ft/min
"PELQT"=function(x,SI=TRUE,rate,ls,ts)
{ x<-sort(x)
end<-round(length(x)/4,digits=0)
if(SI){mean(x[1:end])/(60*rate/(ls*ts))*100}
else{mean(x[1:end])/(1.604*rate/(ls*ts))*100}
}
```

## Try the spreval package in your browser

Any scripts or data that you put into this service are public.

spreval documentation built on March 24, 2022, 1:06 a.m.