siflat: Calculates the solar index for a flat surface

View source: R/datatools.R

siflatR Documentation

Calculates the solar index for a flat surface

Description

Calculates the solar index for a flat surface

Usage

siflat(localtime, lat, long, julian, merid = round(long/15, 0) * 15, dst = 0)

Arguments

localtime

local time (decimal hour, 24 hour clock).

lat

latitude of the location for which the solar altitude is required (decimal degrees, -ve south of the equator).

long

longitude of the location for which the solar altitude is required (decimal degrees, -ve west of Greenwich meridian).

julian

Julian day expressed as an integer as returned by julday().

merid

an optional numeric value representing the longitude (decimal degrees) of the local time zone meridian (0 for GMT). Default is round(long / 15, 0) * 15

dst

an optional numeric value representing the time difference from the timezone meridian (hours, e.g. +1 for BST if merid = 0).

Value

a numeric value representing the solar altitude (º).

Examples

# solar index at noon GMT on 21 June 2010, Porthleven, Cornwall
jd <- julday (2010, 6, 21) # Julian day
siflat(12, 50.08, -5.31, jd)


ilyamaclean/microclima documentation built on Oct. 31, 2023, 11:41 p.m.