Learn R Programming

MetFns (version 2.2.0)

sollong_date: Calculation of date and time corresponding to given solar longitude

Description

Calculates calendar date and time corresponding to specified values of solar longitude and year.

Usage

sollong_date(year,value,month.beg=1,month.end=12,day.beg=1,day.end=31,
time.beg=0,time.end=2359)

Arguments

year

numeric vector of length 4 specifying year.

value

numeric vector specifying solar longitude.

month.beg

numeric vector specifying the beginning month. By default, month.beg is set to be equal to 1.

month.end

numeric vector specifying the ending month. By default, month.end is set to be equal to 12.

day.beg

numeric vector specifying the beginning day. By default, day.beg is set to be equal to 1.

day.end

numeric vector specifying the ending day. By default, day.end is set to be equal to 31.

time.beg

numeric vector (0-2359) specifying lower boundary of time in hours and minutes, corresponding to day.beg. By default, time.beg is set to be equal to 0.

time.end

numeric vector (0-2359) specifying upper boundary of time in hours and minutes, corresponding to day.end. By default, time.end is set to be equal to 2359.

Value

solar.long returns object of POSIXct class - calendar date plus time in hours, minutes and seconds, in UTC.

See Also

solar.long

Examples

Run this code
# NOT RUN {
## calculate date and time corresponding to 0.9 solar longitude for year 2000, 
## search between 1 and 31 March
sollong_date(year=2000,value=0.9,month.beg=3,month.end=3,day.beg=1,day.end=31)
# }

Run the code above in your browser using DataLab