decipher.M3.date: Decipher Models3 date format (YYYYDDD) into R's Date class.

Description Usage Arguments Value Note Author(s) References See Also Examples

Description

Decipher Models3 date format (YYYYDDD) into R's Date class.

Usage

1

Arguments

M3.date

Date (numeric) in the format YYYYDDD, where DDD is a Julian day (since the beginning of year YYYY).

Value

Date specified by YYYYDDD in R's Date class.

Note

For more information about M3 date-time conventions, see
http://www.baronams.com/products/ioapi/DATETIME.html.
This function is called by function get.datetime.seq, but it will probably not be called by most users.

Author(s)

Jenise Swall

References

http://www.baronams.com/products/ioapi/DATETIME.html

See Also

DateTimeClasses,
get.datetime.seq,
decipher.M3.time

Examples

1
2
3
4
5
## Returns 2011-03-10, which is the 69th day of 2011.
decipher.M3.date(2011069)  

## Returns 2012-02-29.  This leap day is the 60th day of 2012.
decipher.M3.date(2012060)  

Example output

Loading required package: ncdf4
Loading required package: rgdal
Loading required package: sp
rgdal: version: 1.2-10, (SVN revision 673)
 Geospatial Data Abstraction Library extensions to R successfully loaded
 Loaded GDAL runtime: GDAL 1.10.1, released 2013/08/26
 Path to GDAL shared files: /usr/share/gdal/1.10
 Loaded PROJ.4 runtime: Rel. 4.8.0, 6 March 2012, [PJ_VERSION: 480]
 Path to PROJ.4 shared files: (autodetected)
WARNING: no proj_defs.dat in PROJ.4 shared files
 Linking to sp version: 1.2-3 
Loading required package: maps
Loading required package: mapdata
[1] "2011-03-10"
[1] "2012-02-29"

M3 documentation built on May 2, 2019, 11:04 a.m.