{"id":24306610,"url":"https://github.com/a-s-russo/austemp","last_synced_at":"2025-06-11T20:12:11.197Z","repository":{"id":223616700,"uuid":"672124134","full_name":"a-s-russo/austemp","owner":"a-s-russo","description":"Graphs of temperatures in summer and winter for Australian weather stations","archived":false,"fork":false,"pushed_at":"2024-04-01T03:45:42.000Z","size":10011,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-17T03:38:21.700Z","etag":null,"topics":["australia","bureau-of-meteorology","summer","temperature","weather","winter"],"latest_commit_sha":null,"homepage":"","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/a-s-russo.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-29T02:21:06.000Z","updated_at":"2024-03-14T00:28:35.000Z","dependencies_parsed_at":"2024-03-04T23:27:15.092Z","dependency_job_id":"118e2f43-0a2b-4c19-9237-ad48267f0e11","html_url":"https://github.com/a-s-russo/austemp","commit_stats":null,"previous_names":["a-s-russo/adelaide-temperatures","a-s-russo/austemp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-s-russo%2Faustemp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-s-russo%2Faustemp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-s-russo%2Faustemp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-s-russo%2Faustemp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/a-s-russo","download_url":"https://codeload.github.com/a-s-russo/austemp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242259921,"owners_count":20098429,"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":["australia","bureau-of-meteorology","summer","temperature","weather","winter"],"created_at":"2025-01-17T03:37:54.056Z","updated_at":"2025-03-06T18:17:47.088Z","avatar_url":"https://github.com/a-s-russo.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, set-up, include=FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  fig.align = \"center\",\n  out.width = \"100%\"\n)\npkgload::load_all()\n```\n\n# Australian weather data\n\nThis package produces graphs of temperatures in summer and winter for Australian\nlocations using data downloaded from the\n[Australian Bureau of Meteorology](http://www.bom.gov.au/?ref=logo) (BoM).\n\nDaily maximum and minimum temperature measurements can be downloaded for weather\nstations in Australia from the\n[Climate Data Online section](http://www.bom.gov.au/climate/data/) of the BoM\nwebsite.\n\nThe package includes pre-downloaded datasets for the main airport location in\nthe capital city of each Australian state and territory:\n\n* Adelaide\n\n* Brisbane\n\n* Canberra\n\n* Darwin\n\n* Hobart\n\n* Melbourne\n\n* Perth\n\n* Sydney\n\nThese can be loaded via `data('Adelaide')`, for example. Otherwise, use\n`download_temperatures()` to download the most recent temperatures for these\ncities or for other locations.\n\n## Installation\n\nYou can install the development version of `austemp` from\n[GitHub](https://github.com/a-s-russo/austemp.git) with:\n\n``` r\n# install.packages(\"devtools\")\ndevtools::install_github(\"a-s-russo/austemp\")\n```\n\n## Example\n\nDownload summer and winter data for Adelaide:\n\n(The approximate download date \u0026 time of this example is\n`r format(Sys.time(), \"%d %b %Y @ %l%p %Z\")`.)\n\n```{r example-download, message=FALSE}\n# Load the package\nlibrary(austemp)\n\n# Download temperature data\nstation \u003c- '023034' # Station number for Adelaide Airport\nproduct_max \u003c- '122' # Product number for maximum temperatures\nproduct_min \u003c- '123' # Product number for minimum temperatures\nURLpart1 \u003c-\n  'http://www.bom.gov.au/jsp/ncc/cdio/weatherData/av?p_nccObsCode='\nURLpart2 \u003c-\n  '\u0026p_display_type=dailyDataFile\u0026p_startYear=\u0026p_c=\u0026p_stn_num='\nmax_temp_URL \u003c- paste0(URLpart1, product_max, URLpart2, station)\nmin_temp_URL \u003c- paste0(URLpart1, product_min, URLpart2, station)\nAdelaide \u003c-\n  download_temperatures(URLs = c(max_temp_URL, min_temp_URL))\n```\n\n(Alternatively, use the pre-downloaded dataset for Adelaide via\n`data('Adelaide')` as mentioned above.)\n\nThe downloaded data can then be graphed:\n\n```{r example-plot-summer, message=FALSE, out.height=\"100%\", out.width=\"100%\"}\n# Graph summer temperatures\nplot_temperatures(\n  data = Adelaide,\n  season = 'summer',\n  location = 'Adelaide Airport',\n  thresholds = c(30, 35, 40),\n  start_year = 2001,\n  end_year = 2024\n)\n```\n\n(Although the requested ending year is 2024, temperatures for 2025 appear since\nthe summer months span consecutive years, and likewise for the requested\nstarting year. There are some missing temperatures in 2024 given the download\ndate above. There are also no temperatures for 29 February in non-leap years\nobviously.)\n\n```{r example-plot-winter, message=FALSE, out.height=\"100%\", out.width=\"100%\"}\n# Graph winter temperatures\nplot_temperatures(\n  data = Adelaide,\n  season = 'winter',\n  location = 'Adelaide Airport',\n  thresholds = c(0, 3, 5),\n  start_year = 2000,\n  end_year = 2024\n)\n```\n\n(Temperatures for 2024 do not appear despite being requested since there are no\ntemperatures at all for 2024 yet given the download date above. That is, the\nwinter months do not span consecutive years, and so a winter season is contained\nentirely within a single year.)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa-s-russo%2Faustemp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fa-s-russo%2Faustemp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa-s-russo%2Faustemp/lists"}