Computes extra-terrestrial solar radiation
solarRad computes the solar radiation received at the top of the Earth's atmosphere on a horizontal surface. This radiation will change during the day and will be different at different latitudes and in different seasons.
object of class SpatialGridDataFrame that provided a projection class and a bbox attributes. The nature of the data.frame that contains the attribute data is not relevant. It must be in geographic coordinates.
The number of the day (from 1 to 365) to compute extra-terrestrial radiation.
A list of 12 file names to save the results.
Any unmatched parameter will be passed to the writeGDAL routine.
The output is expressed in cal/cm2*day.
This function runs unnoticed within petHgsm, but can be executed manually.
solarRad returns a single image corresponding to the specified day, as a SpatialGridDataFrame class. solarRad12M writes 12 images to disk in the format especified by the GDAL drivername parameter.
Gabriel del Barrio, Marieta SanJuan & Alberto Ruiz
Crop evapotranspiration - Guidelines for computing crop water requirements - FAO Irrigation and drainage paper 56
1 2 3 4 5 6 7 8
#not run #aux=readGDAL('iberia_mask') #calc the extraterrestial radiation the 15-agost #Rad=solarRad(aux,227) #writeGDAL(Rad,'solarrad_15ago') #or to calculate and write to disk, the radiation of the twelve months #RadFileNames=paste('rad',month.abb,sep='') #solarRad12M(img,RadFileNames)
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.