Learn R Programming

MetFns (version 3.2.2)

solar.long: Vectorized calculation of solar longitude

Description

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

Usage

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.

Value

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

Details

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

See Also

date_sollong,filter.sol

Examples

Run this code
# NOT RUN {
## 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)

# }

Run the code above in your browser using DataLab