{"id":880,"name":"CliFlo","description":"Easily download and visualise climate data from New Zealand's National Climate Database.","url":"https://github.com/ropensci-archive/clifro","last_synced_at":"2026-04-12T00:30:15.992Z","repository":{"id":16800874,"uuid":"19559638","full_name":"ropensci-archive/clifro","owner":"ropensci-archive","description":":warning: ARCHIVED :warning: Easily download and visualise climate data from CliFlo","archived":true,"fork":false,"pushed_at":"2025-02-07T09:29:16.000Z","size":68424,"stargazers_count":26,"open_issues_count":0,"forks_count":11,"subscribers_count":6,"default_branch":"master","last_synced_at":"2026-03-27T23:48:33.289Z","etag":null,"topics":["climate-data","climate-stations","kml","national-climate-database","r","r-package","rstats","weather","windrose","zealand"],"latest_commit_sha":null,"homepage":"","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"btbroot/exmo2010","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ropensci-archive.png","metadata":{"files":{"readme":"README-not.md","changelog":"NEWS.md","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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":"codemeta.json"}},"created_at":"2014-05-08T03:43:50.000Z","updated_at":"2025-03-22T08:14:05.000Z","dependencies_parsed_at":"2023-09-21T19:12:49.015Z","dependency_job_id":"80597506-dbae-47b9-b2f4-5a17c9ede1f4","html_url":"https://github.com/ropensci-archive/clifro","commit_stats":{"total_commits":251,"total_committers":11,"mean_commits":"22.818181818181817","dds":0.3227091633466136,"last_synced_commit":"46c72d399ee3d6069cfffa87a4452f85794bdef9"},"previous_names":["ropensci-archive/clifro","ropensci/clifro"],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/ropensci-archive/clifro","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci-archive%2Fclifro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci-archive%2Fclifro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci-archive%2Fclifro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci-archive%2Fclifro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ropensci-archive","download_url":"https://codeload.github.com/ropensci-archive/clifro/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci-archive%2Fclifro/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31383636,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-03T23:20:52.058Z","status":"ssl_error","status_checked_at":"2026-04-03T23:20:51.675Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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"}},"owner":{"login":"ropensci-archive","name":"rOpenSci Archive","uuid":"68704009","kind":"organization","description":"Abandoned rOpenSci projects -- email info@ropensci.org if you have questions!","email":"info@ropensci.org","website":"ropensci.org","location":null,"twitter":null,"company":null,"icon_url":"https://avatars.githubusercontent.com/u/68704009?v=4","repositories_count":259,"last_synced_at":"2024-04-16T23:32:51.329Z","metadata":{"has_sponsors_listing":false},"html_url":"https://github.com/ropensci-archive","funding_links":[],"total_stars":4569,"followers":8,"following":0,"created_at":"2022-11-03T03:11:52.455Z","updated_at":"2024-04-16T23:33:50.821Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ropensci-archive","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ropensci-archive/repositories"},"packages":[],"commits":{"id":8652909,"full_name":"ropensci-archive/clifro","default_branch":"master","total_commits":253,"total_committers":12,"total_bot_commits":0,"total_bot_committers":0,"mean_commits":21.083333333333332,"dds":0.32806324110671936,"past_year_total_commits":0,"past_year_total_committers":0,"past_year_total_bot_commits":0,"past_year_total_bot_committers":0,"past_year_mean_commits":0.0,"past_year_dds":0.0,"last_synced_at":"2026-04-04T01:01:49.429Z","last_synced_commit":"1059d23400581e82adb723e2ebebd9929429bc0a","created_at":"2025-02-07T22:35:59.067Z","updated_at":"2026-04-04T01:00:47.491Z","committers":[{"name":"blasee","email":"blake.seers@gmail.com","login":"blasee","count":170},{"name":"Seers","email":"see044@csiro.au","login":null,"count":29},{"name":"steven2249","email":"stevenysw@berkeley.edu","login":"stevenysw","count":26},{"name":"Blake Seers","email":"Blake.Seers@Csiro.au","login":null,"count":12},{"name":"Simon Potter","email":"simon@sjp.co.nz","login":"sjp","count":6},{"name":"Maëlle Salmon","email":"maelle.salmon@yahoo.se","login":"maelle","count":2},{"name":"Chris Fan","email":"chris.fan@berkeley.edu","login":"chrisfan24","count":2},{"name":"Seers, Blake (Environment, Aspendale)","email":"Blake.Seers@csiro.au","login":null,"count":2},{"name":"katieroserice","email":"katieroserice@berkeley.edu","login":"katieroserice","count":1},{"name":"Scott Chamberlain","email":"myrmecocystus@gmail.com","login":"sckott","count":1},{"name":"ropenscibot","email":"myrmecocystus+ropenscibot@gmail.com","login":null,"count":1},{"name":"Blake Seers","email":"see044@sc-55-cdc.it.csiro.au","login":null,"count":1}],"past_year_committers":[],"commits_url":"https://commits.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci-archive%2Fclifro/commits","host":{"name":"GitHub","url":"https://github.com","kind":"github","last_synced_at":"2026-04-06T00:00:08.903Z","repositories_count":6211370,"commits_count":923313496,"contributors_count":35716567,"owners_count":1144005,"icon_url":"https://github.com/github.png","host_url":"https://commits.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://commits.ecosyste.ms/api/v1/hosts/GitHub/repositories"}},"issues_stats":{"full_name":"ropensci-archive/clifro","html_url":"https://github.com/ropensci-archive/clifro","last_synced_at":"2025-09-01T00:35:14.867Z","status":"error","issues_count":24,"pull_requests_count":9,"avg_time_to_close_issue":4392376.541666667,"avg_time_to_close_pull_request":190518.44444444444,"issues_closed_count":24,"pull_requests_closed_count":9,"pull_request_authors_count":6,"issue_authors_count":19,"avg_comments_per_issue":3.625,"avg_comments_per_pull_request":2.3333333333333335,"merged_pull_requests_count":8,"bot_issues_count":0,"bot_pull_requests_count":0,"past_year_issues_count":0,"past_year_pull_requests_count":0,"past_year_avg_time_to_close_issue":null,"past_year_avg_time_to_close_pull_request":null,"past_year_issues_closed_count":0,"past_year_pull_requests_closed_count":0,"past_year_pull_request_authors_count":0,"past_year_issue_authors_count":0,"past_year_avg_comments_per_issue":null,"past_year_avg_comments_per_pull_request":null,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":0,"created_at":"2025-02-07T22:35:59.673Z","updated_at":"2025-09-01T00:35:14.867Z","repository_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci-archive%2Fclifro","issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci-archive%2Fclifro/issues","issue_labels_count":{"bug":1,"enhancement":1},"pull_request_labels_count":{},"issue_author_associations_count":{"NONE":16,"CONTRIBUTOR":8},"pull_request_author_associations_count":{"CONTRIBUTOR":9},"issue_authors":{"blasee":4,"sckott":3,"moreron":1,"linleyj":1,"rgommers":1,"James-Hogan":1,"adamhsparks":1,"nevermana-landcare":1,"gis-maker":1,"swmpkim":1,"ldatamine":1,"HaizhenWu":1,"bonopo":1,"markbneal":1,"frank0434":1,"johnForne":1,"Lahi-H":1,"mguillaudeux":1,"chrisfan24":1},"pull_request_authors":{"blasee":2,"katieroserice":2,"stevenysw":2,"sckott":1,"chrisfan24":1,"sjp":1},"host":{"name":"GitHub","url":"https://github.com","kind":"github","last_synced_at":"2026-04-04T00:00:10.542Z","repositories_count":14070646,"issues_count":34454738,"pull_requests_count":112586990,"authors_count":11221189,"icon_url":"https://github.com/github.png","host_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories","owners_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/owners","authors_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors"},"past_year_issue_labels_count":{},"past_year_pull_request_labels_count":{},"past_year_issue_author_associations_count":{},"past_year_pull_request_author_associations_count":{},"past_year_issue_authors":{},"past_year_pull_request_authors":{},"maintainers":[],"active_maintainers":[]},"events":{"total":{},"last_year":{}},"keywords":["climate-data","climate-stations","kml","national-climate-database","r","r-package","rstats","weather","windrose","zealand"],"dependencies":[{"ecosystem":"cran","filepath":"DESCRIPTION","sha":null,"kind":"manifest","created_at":"2023-09-21T19:12:46.954Z","updated_at":"2023-09-21T19:12:46.954Z","repository_link":"https://github.com/ropensci-archive/clifro/blob/master/DESCRIPTION","dependencies":[{"id":13856549261,"package_name":"methods","ecosystem":"cran","requirements":"*","direct":true,"kind":"imports","optional":false},{"id":13856549262,"package_name":"stats","ecosystem":"cran","requirements":"*","direct":true,"kind":"imports","optional":false},{"id":13856549263,"package_name":"graphics","ecosystem":"cran","requirements":"*","direct":true,"kind":"imports","optional":false},{"id":13856549264,"package_name":"lubridate","ecosystem":"cran","requirements":"*","direct":true,"kind":"imports","optional":false},{"id":13856549265,"package_name":"xml2","ecosystem":"cran","requirements":"*","direct":true,"kind":"imports","optional":false},{"id":13856549266,"package_name":"magrittr","ecosystem":"cran","requirements":"*","direct":true,"kind":"imports","optional":false},{"id":13856549267,"package_name":"utils","ecosystem":"cran","requirements":"*","direct":true,"kind":"imports","optional":false},{"id":13856549268,"package_name":"ggplot2","ecosystem":"cran","requirements":"\u003e= 2.0.0","direct":true,"kind":"imports","optional":false},{"id":13856549269,"package_name":"scales","ecosystem":"cran","requirements":"*","direct":true,"kind":"imports","optional":false},{"id":13856549270,"package_name":"RColorBrewer","ecosystem":"cran","requirements":"*","direct":true,"kind":"imports","optional":false},{"id":13856549271,"package_name":"reshape2","ecosystem":"cran","requirements":"*","direct":true,"kind":"imports","optional":false},{"id":13856549272,"package_name":"rvest","ecosystem":"cran","requirements":"*","direct":true,"kind":"imports","optional":false},{"id":13856549273,"package_name":"httr","ecosystem":"cran","requirements":"*","direct":true,"kind":"imports","optional":false},{"id":13856549274,"package_name":"stringr","ecosystem":"cran","requirements":"*","direct":true,"kind":"imports","optional":false},{"id":13856549275,"package_name":"spelling","ecosystem":"cran","requirements":"*","direct":true,"kind":"suggests","optional":false},{"id":13856549276,"package_name":"knitr","ecosystem":"cran","requirements":"*","direct":true,"kind":"suggests","optional":false},{"id":13856549277,"package_name":"rmarkdown","ecosystem":"cran","requirements":"*","direct":true,"kind":"suggests","optional":false},{"id":13856549278,"package_name":"pander","ecosystem":"cran","requirements":"*","direct":true,"kind":"suggests","optional":false},{"id":13856549279,"package_name":"testthat","ecosystem":"cran","requirements":"*","direct":true,"kind":"suggests","optional":false}]}],"score":5.7430031878094825,"created_at":"2023-09-11T11:54:36.226Z","updated_at":"2026-04-12T00:30:15.994Z","avatar_url":"https://github.com/ropensci-archive.png","language":"R","category":"Climate Change","sub_category":"Climate Data Access and Visualization","monthly_downloads":0,"total_dependent_repos":0,"total_dependent_packages":0,"readme":"\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\nEnhancing the National Climate Database with *clifro*\n=====================================================\n\n[![Build\nStatus](https://travis-ci.org/ropensci/clifro.svg)](https://travis-ci.org/ropensci/clifro)\n[![CRAN\\_Status\\_Badge](https://www.r-pkg.org/badges/version/clifro)](https://cran.r-project.org/package=clifro)\n[![](https://cranlogs.r-pkg.org/badges/clifro)](https://cran.r-project.org/package=clifro)\n[![codecov.io](https://codecov.io/github/ropensci/clifro/coverage.svg?branch=master)](https://codecov.io/github/ropensci/clifro?branch=master)\n[![Project Status: Active – The project has reached a stable, usable\nstate and is being actively\ndeveloped.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)\n\nNew Zealand’s National Climate Database,\n[CliFlo](https://cliflo.niwa.co.nz/) holds data from about 6500 climate\nstations, with observations dating back to 1850. CliFlo returns raw data\nat ten minute, hourly, and daily frequencies. CliFlo also returns\nstatistical summaries, inclusive of about eighty different types of\nmonthly and annual statistics and six types of thirty−year normals.\n\nThe *clifro* package is designed to minimise the hassle in downloading\ndata from CliFlo. It does this by providing functions for the user to\nlog in, easily choose the appropriate datatypes and stations, and then\nquery the database. Once the data have been downloaded, they are stored\nas specific objects in **R** with the primary aim to ensure data\nvisualisation and exploration is done with minimal effort and maximum\nefficiency.\n\nThis package extends the functionality of\n[CliFlo](https://cliflo.niwa.co.nz/) by returning stations resulting\nfrom simultaneous searches, the ability to visualise where these climate\nstations are by exporting to KML files, and elegant plotting of the\nclimate data. The vignettes and help files are written with the\nintention that even inexperienced R users can use *clifro* easily.\nExporting the climate data from **R** is fairly easy and for more\nexperienced useRs, automated updating of spreadsheets or databases can\nbe made much easier.\n\nFree CliFlo Subscription\n------------------------\n\nA current [CliFlo\nsubscription](https://cliflo.niwa.co.nz/pls/niwp/wsubform.intro) is\nrecommended for *clifro*, otherwise data from only one station is\navailable. The subscription is free and lasts for 2 years or 2,000,000\nrows without renewal, which enables access to around 6,500 climate\nstations around New Zealand and the Pacific.\n\nNote this package requires internet access for connecting to the\nNational Climate Database web portal.\n\nInstallation in R\n=================\n\n``` r\n# Install the latest CRAN release\ninstall.packages(\"clifro\")\n\n# Or the latest development version\nif(!require(devtools))\n  install.packages(\"devtools\")\ndevtools::install_github(\"ropensci/clifro\")\n\n# Then load the package\nlibrary(clifro)\n```\n\nGetting Started\n===============\n\nThe following small example shows some of the core functionality in\n*clifro*.\n\nWhere are the climate stations?\n-------------------------------\n\nWe can search for climate stations anywhere in New Zealand and return\nthe station information in the form of a KML file. For example, we can\nreturn all the climate stations (current and historic) in the greater\nAuckland region.\n\n``` r\nall.auckland.st = cf_find_station(\"Auckland\", search = \"region\", status = \"all\")\ncf_save_kml(all.auckland.st, \"all_auckland_stations\")\n```\n\n![All Auckland Climate Stations](tools/README-map.png)\n\nNote the open stations have green markers and the closed stations have\nred markers.\n\nDownload and visualise public climate data\n------------------------------------------\n\nThe only station available for unlimited public access to climate data\nis the Reefton electronic weather station (EWS). We can download the\n2014 wind and rain data and easily visualise the results very easily.\n\n``` r\npublic.cfuser = cf_user()\n\n# Choose the datatypes\ndaily.wind.rain.dt = cf_datatype(c(2, 3), c(1, 1), list(4, 1), c(1, NA))\n\n# Choose the Reefton EWS station\nreefton.st = cf_station()\n\n# Send the query to CliFlo and retrieve the data\ndaily.datalist = cf_query(user = public.cfuser, \n                          datatype = daily.wind.rain.dt, \n                          station = reefton.st,\n                          start_date = \"2012-01-01 00\",\n                          end_date = \"2013-01-01 00\")\n#\u003e connecting to CliFlo...\n#\u003e reading data...\n#\u003e UserName is = public\n#\u003e Number of charged rows output = 0\n#\u003e Number of free rows output = 732\n#\u003e Total number of rows output = 732\n#\u003e Copyright NIWA 2020 Subject to NIWA's Terms and Conditions\n#\u003e See: http://clifloecd1.niwa.co.nz/pls/niwp/doc/terms.html\n#\u003e Comments to: cliflo@niwa.co.nz\n\n# Have a look at what data is now available\ndaily.datalist\n#\u003e List containing clifro data frames:\n#\u003e               data      type              start                end rows\n#\u003e df 1) Surface Wind  9am only (2012-01-01  9:00) (2012-12-31  9:00)  366\n#\u003e df 2)         Rain     Daily (2012-01-01  9:00) (2012-12-31  9:00)  366\n\n# Plot the data using default plotting methods\nplot(daily.datalist)     # For the first dataframe  (Surface Wind)\n```\n\n![](tools/README-rain-wind-example-1.png)\n\n``` r\nplot(daily.datalist, 2)  # For the second dataframe (Rain)\n```\n\n![](tools/README-rain-wind-example-2.png)\n\nFor more details and reproducible examples, see the [technical\nreport](https://stattech.wordpress.fos.auckland.ac.nz/2015/03/25/2015-02-new-zealands-climate-data-in-r-an-introduction-to-clifro/)\nfor how to use *clifro*, including choosing datatypes, stations, saving\nlocations as KML files and easy, elegant plotting for various different\nclimate and weather data.\n\n``` r\n# View the clifro demo\ndemo(clifro)\n\n# Read the 'Introduction to clifro' vignette\nvignette(\"clifro\")\n```\n\nContributor Code of Conduct\n===========================\n\nThe *clifro* package is released with a [contributor code of\nconduct](https://github.com/ropensci/clifro/blob/master/CONDUCT.md). By\nparticipating in this project you agree to abide by its terms.\n\nCitation\n========\n\n``` bibtex\n\nTo cite package ‘clifro’ in publications use:\n\nSeers B and Shears N (2015). “New Zealand's Climate Data in R - An Introduction to clifro.” The University of Auckland, Auckland, New\nZealand. \u003cURL: https://stattech.wordpress.fos.auckland.ac.nz/2015/03/25/2015-02-new-zealands-climate-data-in-r-an-introduction-to-clifro/\u003e.\n\nA BibTeX entry for LaTeX users is\n\n  @TechReport{,\n    title = {New Zealand's Climate Data in R --- An Introduction to clifro},\n    author = {Blake Seers and Nick Shears},\n    institution = {The University of Auckland},\n    address = {Auckland, New Zealand},\n    year = {2015},\n    url = {https://stattech.wordpress.fos.auckland.ac.nz/2015/03/25/2015-02-new-zealands-climate-data-in-r-an-introduction-to-clifro/},\n  }\n```\n\n[![](https://ropensci.org/public_images/github_footer.png)](https://ropensci.org/)\n","funding_links":[],"readme_doi_urls":[],"works":{},"citation_counts":{},"total_citations":0,"keywords_from_contributors":["cycle","routes","climate","biodiversity","biology","occurrences","spocc","noaa","taxize","gbif"],"project_url":"https://ost.ecosyste.ms/api/v1/projects/880","html_url":"https://ost.ecosyste.ms/projects/880"}