solazi: Calculates the solar azimuth

View source: R/solar.R

solaziR Documentation

Calculates the solar azimuth

Description

solazi is used to calculate the solar azimuth at any given location from the local time.

Usage

solazi(localtime, lat, long, jd, 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 azimuth is required (decimal degrees, -ve south of the equator).

long

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

jd

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

merid

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

dst

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

Value

a numeric value or vector of values representing the solar azimuth (decimal degrees).

Examples

# solar azimuth at noon on 21 June 2010, Porthleven, Cornwall, UK
jd <- jday (2010, 6, 21) # Julian day
solazi(12, 50.08, -5.31, jd)

ilyamaclean/microctools documentation built on Jan. 25, 2023, 5:29 a.m.