Learn R Programming

EcoHydRology (version 0.3.7)

Solar: Solar Radiation

Description

Solar radiation at the ground surface [kJ m-2 d-1]

Usage

Solar(lat, Jday, Tx, Tn, albedo, forest, slope, aspect)

Arguments

lat
latitdue [rad]
Jday
Julian date or day of the year [day]
Tx
maximum daily temperature [C]
Tn
minimum daily temperature [C]
albedo
surface albedo or reflectivity [-]
forest
forest or vegeation cover [-]
slope
slope of the ground [rad]
aspect
ground aspect [rad from north]

Value

    Examples

    Run this code
    ##---- Should be DIRECTLY executable !! ----
    ##-- ==>  Define data, use random,
    ##--	or do  help(data=index)  for the standard data sets.
    
    ## The function is currently defined as
    function(lat,Jday,Tx,Tn,albedo,forest,slope,aspect){
    # solar radiation at the ground surface [kJ m-2 d-1]
    
    #lat: latitdue [rad]
    #Jday: Julian date or day of the year [day]
    #Tx: maximum daily temperature [C]
    #Tn: minimum daily temperature [C]
    #albedo: surface albedo or reflectivity [-]
    #forest: forest or vegeation cover [-]
    #slope: slope of the ground [rad]
    #aspect: ground aspect [rad from north]
    
    return((1-albedo)*(1-forest)*transmissivity(lat,Jday,Tx,Tn)*PotentialSolar(lat,Jday)*slopefactor(lat,Jday,slope,aspect))
      }

    Run the code above in your browser using DataLab