dayLength: calculation of the day length

Description Usage Arguments Value Author(s) Examples

View source: R/dayLength.R

Description

function that calculates the day length knowing the latitude and number of the day during the year

Usage

1
dayLength(nj = 1, phi = 0)

Arguments

nj

number of the day during the year (example: for 10 february, nj = 41)

phi

latitude of the considered site

Value

An object of class numeric(1) represents the day length.

Author(s)

Azeddine Frimane.
Laboratory of renewable Energies and Environment (LR2E),
Faculty of Science, IBN TOFAIL University, Morocco.
email: Azeddine.frimane@uit.ac.ma; Azeddine.frimane@yahoo.com

Examples

1
2
3
# calculate the day length by hours for a given site (latitude = 15, and day 45)
dlen <- dayLength(nj = 45, phi = 15)
dlen

frimane/SolMultinomClass documentation built on Jan. 18, 2021, 4:49 a.m.