sollong_date: Calculation of date corresponding to given value of solar...

Description Usage Arguments Details Value Note Author(s) See Also Examples

View source: R/sollong_date.R

Description

Calculates calendar date and time corresponding to specified value of solar longitude (J2000.0) and specified year.

Usage

1
sollong_date(solval,year,date1=NULL,date2=NULL)

Arguments

solval

numeric vector of length one specifying solar longitude.

year

numeric vector of length one specifying year.

date1

character vector of length one specifying start date, given in "%Y-%m-%d %H:%M:%S" format (UTC timezone).

date2

character vector of length one specifying end date, given in "%Y-%m-%d %H:%M:%S" format (UTC timezone).

Details

The function sollong_date calculates date corresponding to the given value of solar longitude, for specified year between 1984 and 2030. It searches for a solution in a interval bounded by date1 and date2. If user does not specify date1 and date2, they are, by default, equal to the 1st od January and the 31st of December, respectively.

Value

sollong_date returns object of POSIXct class, calendar date in "%Y-%m-%d %H:%M:%S" format (UTC timezone).

Note

Arguments date1 and date2 should belong to the same year.

Author(s)

Kristina Veljkovic

See Also

date_sollong

Examples

1
2
3
## calculate date corresponding to 1 degree of solar longitude 
## search between dates 1 and 31 March 2017
sollong_date(1,year=2017,"2017-03-01","2017-03-31")

Example output

Loading required package: astroFns
Loading required package: lubridate

Attaching package: 'lubridate'

The following object is masked from 'package:base':

    date

Loading required package: plotrix
Loading required package: pracma

Attaching package: 'MetFns'

The following object is masked from 'package:stats':

    filter

[1] "2017-03-21 16:15:33 UTC"

MetFns documentation built on May 1, 2019, 6:28 p.m.