Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
R
 
 
 
 
man
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

CRAN_Status_Badge Travis-CI Build Status

Overview

The solartime package provides utilities to work with solar time, i.e. where noon is exactly when sun culminates. It provides functions to compute

  • difference between local time zone and solar time
  • sun position
  • sunrise, sunset, daylength, and daytime flags

Installation

# From CRAN 
install.packages("solartime")

# Or the the development version from GitHub:
# install.packages("devtools")
devtools::install_github("bgctw/solartime")

Usage

The city of Jena is located west of the timezone's meridian. Hence, the sun culminates around 13 minutes later.

The time difference shifts during the year because of earth orbit's eccentricity.

require(solartime, quietly = TRUE)
latDeg <- 50.93; longDeg <- 11.57
doy <- 1:366
locaDiffMin <- 60 * computeSolarToLocalTimeDifference(
  longDeg, timeZone = 1L, doy = doy)
plot(locaDiffMin  ~ doi, ylab = "time difference solar - local time (min)")
abline(h = localDiff); abline(h = 0, lty = "dotted")

See the package vignettes (*.md) for further examples.

About

Utilities to work with solar time, i.e. where noon is exactly when sun culminates.

Resources

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.