doy_noy {bioRad} | R Documentation |
Look up day of year (doy) or night of year (noy)
Description
Returns the day of year (doy
) or night of year (noy
) number for datetimes
and various bioRad objects. The first night of the year is the night with
datetime Jan 01 00:00:00 in the local time zone, so sunset on Jan 1 occurs
on the second night of the year and New Years Eve on Dec 31 occurs on the
first night of the new year.
Usage
doy(x, ..., method = "fast")
noy(x, ..., method = "fast")
## Default S3 method:
doy(x, lon, lat, ..., method = "fast")
## Default S3 method:
noy(x, lon, lat, ..., method = "fast")
## S3 method for class 'vp'
doy(x, ..., method = "fast")
## S3 method for class 'vp'
noy(x, ..., method = "fast")
## S3 method for class 'vpts'
doy(x, ..., method = "fast")
## S3 method for class 'vpts'
noy(x, ..., method = "fast")
## S3 method for class 'vpi'
doy(x, ..., method = "fast")
## S3 method for class 'vpi'
noy(x, ..., method = "fast")
## S3 method for class 'pvol'
doy(x, ..., method = "fast")
## S3 method for class 'pvol'
noy(x, ..., method = "fast")
Arguments
x |
A |
... |
Optional lat, lon arguments. |
method |
Method by which to do the time zone lookup. Either |
lon |
Numeric. Longitude in decimal degrees. |
lat |
Numeric. Latitude in decimal degrees. |
Value
integer representing the ordinal day of year or night of year.
Examples
# Get day of year of a vp object
noy(example_vp)
# Get night of year of a vp object
noy(example_vp)
# Get night of year of a vpts object
noy(example_vpts)
[Package bioRad version 0.8.1 Index]