solar.long: Vectorized calculation of solar longitude

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

View source: R/solar.long.R

Description

Calculates solar longitudes with respect to the equinox of 2000.0 for given dates.

Usage

1
solar.long(date,prec=4)

Arguments

date

character vector or factor specifying dates, given in "%Y-%m-%d %H:%M:%S" format (UTC timezone).

prec

numeric vector specifying number of decimals of calculated solar longitude (between 2 and 5 decimals). By default it is equal to 4.

Details

The function solar.long represents vectorized version of function sollong. It calculates solar longitudes corresponding to multiple dates.

Value

solar.long returns solar longitude(s), numeric vector with specified number of decimal places.

Author(s)

Kristina Veljkovic

See Also

date_sollong,filter.sol

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## calculate solar longitudes corresponding to the middle of time intervals 
## of 2015 Orionids rate data
## first select Orionids from 2015 rate data
rateOri<-filter.shw(rate2015,shw="ORI")

## calculate middle of observing time intervals of 2015 Orionids rate data
midintOri<-midint(rateOri)

## calculate solar longitudes corresponding to the middle of time intervals
solar.long(midintOri)

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