{"id":22413712,"url":"https://github.com/jsta/twilight","last_synced_at":"2025-03-27T03:29:04.800Z","repository":{"id":88675733,"uuid":"83798422","full_name":"jsta/twilight","owner":"jsta","description":"R interface to the USNO Sun or Moon Rise/Set Data :full_moon: :waning_gibbous_moon: :last_quarter_moon: :waning_crescent_moon:","archived":false,"fork":false,"pushed_at":"2017-03-07T15:50:54.000Z","size":23,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-01T08:48:59.433Z","etag":null,"topics":["phenology","sunrise","sunset"],"latest_commit_sha":null,"homepage":"http://aa.usno.navy.mil/data/docs/RS_OneYear.php","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jsta.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-03-03T13:00:30.000Z","updated_at":"2017-03-03T14:30:14.000Z","dependencies_parsed_at":"2023-03-13T18:19:31.169Z","dependency_job_id":null,"html_url":"https://github.com/jsta/twilight","commit_stats":{"total_commits":14,"total_committers":1,"mean_commits":14.0,"dds":0.0,"last_synced_commit":"c05fdad3bbf7560814dfe2f8255a791f14c47b87"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsta%2Ftwilight","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsta%2Ftwilight/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsta%2Ftwilight/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsta%2Ftwilight/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jsta","download_url":"https://codeload.github.com/jsta/twilight/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245777349,"owners_count":20670526,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["phenology","sunrise","sunset"],"created_at":"2024-12-05T14:14:23.382Z","updated_at":"2025-03-27T03:29:04.781Z","avatar_url":"https://github.com/jsta.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput:\n  md_document:\n    variant: markdown_github\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, echo = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"README-\"\n)\n```\n\n# twilight\n\n[![Project Status: Active - The project has reached a stable, usable state and is being actively developed.](http://www.repostatus.org/badges/latest/active.svg)](http://www.repostatus.org/#active)\n[![CRAN\\_Status\\_Badge](http://www.r-pkg.org/badges/version/twilight)](https://cran.r-project.org/package=twilight) \n[![CRAN RStudio mirror downloads](http://cranlogs.r-pkg.org/badges/twilight)](https://cran.r-project.org/package=twilight)\n[![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/github/jsta/twilight?branch=master\u0026svg=true)](https://ci.appveyor.com/project/jsta/twilight)\n[![Travis-CI Build Status](https://travis-ci.org/jsta/twilight.svg?branch=master)](https://travis-ci.org/jsta/twilight)\n\nThe goal of twilight is to provide an R wrapper for the sun/moon rise/set data at [http://aa.usno.navy.mil/data/docs/RS_OneYear.php](http://aa.usno.navy.mil/data/docs/RS_OneYear.php)\n\n## Installation\n\n```{r installation, eval=FALSE}\n# install.packages(\"devtools\")\ndevtools::install_github(\"jsta/twilight\")\n```\n\n## Usage\n\n### Load package\n\n```{r load package}\nlibrary(twilight)\n```\n\n### Geographic Coordinates\n\n#### Raw Sunrise/set\n\n```{r geo coordinates raw}\nhead(\n  sunsetrise_yr(year = 2015,\n              lon_deg = 80,\n              lon_min = 26,\n              lat_deg = 25,\n              lat_min = 5,\n              tz = 5)\n)\n\n```\n\n#### Day Length\n```{r geo day length}\nhead(\n  tw_daylength(year = 2015,\n              lon_deg = 80,\n              lon_min = 26,\n              lat_deg = 25,\n              lat_min = 5,\n              tz = 5)\n)\n```\n\n### United State Place Names\n#### Raw Sunrise/set\n\n```{r place coordinates raw}\nhead(\n  sunsetrise_yr(year = 2015,\n                state = \"FL\",\n                city = \"Key Largo\")\n)\n\n```\n\n#### Day Length\n```{r place day length}\nhead(\n  tw_daylength(year = 2015,\n                state = \"FL\",\n                city = \"Key Largo\")\n)\n```\n\n\n## Contributors\n\nContributions welcome in the form of pull requests and issues!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsta%2Ftwilight","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsta%2Ftwilight","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsta%2Ftwilight/lists"}