doy_noy | R Documentation |
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.
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")
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. |
integer representing the ordinal day of year or night of year.
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.