From 4f7e3ece652a79b1f2e559f9f4c7acaf8a21ace5 Mon Sep 17 00:00:00 2001
From: steffilazerte
Date: Tue, 12 Nov 2024 23:37:46 +0000
Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20ropensci?=
=?UTF-8?q?/weathercan@c537526bc5b9e7cdcc34bd20f294e6b53a36f41a=20?=
=?UTF-8?q?=F0=9F=9A=80?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pkgdown.yml | 2 +-
reference/stations_search.html | 9 +++++----
search.json | 2 +-
3 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/pkgdown.yml b/pkgdown.yml
index 90631aa..2e37524 100644
--- a/pkgdown.yml
+++ b/pkgdown.yml
@@ -10,7 +10,7 @@ articles:
reproducibility: reproducibility.html
articles/tidyhydat: tidyhydat.html
weathercan: weathercan.html
-last_built: 2024-11-12T23:20Z
+last_built: 2024-11-12T23:37Z
urls:
reference: https://docs.ropensci.org/weathercan/reference
article: https://docs.ropensci.org/weathercan/articles
diff --git a/reference/stations_search.html b/reference/stations_search.html
index 6685fb2..ebd0e35 100644
--- a/reference/stations_search.html
+++ b/reference/stations_search.html
@@ -99,10 +99,11 @@ Argumentsnormals_years
Character. One of NULL
(default), current
,
-1981-2010
, or 1971-2000
. current
returns only stations from most
-recent normals year range. Default NULL
does not filter by climate
-normals. Specific year ranges return stations with normals in that period.
-See Details for more specifics.
+1991-2020
, 1981-2010
, or 1971-2000
. current
returns only stations
+from the most recent complete normals year range (i.e. 1981-2010
).
+Default NULL
does not filter by climate normals. Specific year ranges
+return stations with normals in that period. See Details for more
+specifics.
normals_only
diff --git a/search.json b/search.json
index afdf998..0de5dec 100644
--- a/search.json
+++ b/search.json
@@ -1 +1 @@
-[{"path":"https://docs.ropensci.org/weathercan/CONTRIBUTING.html","id":null,"dir":"","previous_headings":"","what":"Contributing to weathercan","title":"Contributing to weathercan","text":"Thank contributions! Following guidelines help streamline process contributing make sure ’re page. ask read guide follow best abilities, welcome contributions , regardless level experience. participating project, agree abide code conduct.","code":""},{"path":"https://docs.ropensci.org/weathercan/CONTRIBUTING.html","id":"types-of-contributions","dir":"","previous_headings":"","what":"Types of contributions","title":"Contributing to weathercan","text":"Don’t feel must computer whiz make meaningful contributions. Feel free : Identify areas future development (open Issue) Identify issues/bugs (open Issue) Write tutorials/vignettes (open Pull Request contribute ones , make elsewhere send us link) Add functionality (open Pull Request) Fix bugs (open Pull Request)","code":""},{"path":"https://docs.ropensci.org/weathercan/CONTRIBUTING.html","id":"new-to-github","dir":"","previous_headings":"","what":"New to GitHub?","title":"Contributing to weathercan","text":"Getting ready make first contribution? couple tutorials may wish check : Tutorial first-timers contribute (-depth lessons) GitHub setup GitHub pull requests.)","code":""},{"path":"https://docs.ropensci.org/weathercan/CONTRIBUTING.html","id":"how-to-contribute-code","dir":"","previous_headings":"","what":"How to contribute code","title":"Contributing to weathercan","text":"Fork repository Clone repository GitHub computer e.g,. git clone https://github.com/ropensci/weathercan.git git remote add upstream https://github.com/ropensci/weathercan.git making changes make sure pull changes upstream git pull upstream changes beyond minor typos, add item NEWS.md describing changes add DESCRIPTION file contributor Push GitHub account Submit pull request home base (main branch) ropensci/weathercan","code":""},{"path":"https://docs.ropensci.org/weathercan/CONTRIBUTING.html","id":"code-formatting","dir":"","previous_headings":"","what":"Code formatting","title":"Contributing to weathercan","text":"general follow convention http://r-pkgs..co.nz/r.html#style (snake_case functions argument names, etc.) conflict, default style weathercan Use explicit package imports (.e. package_name::package_function) avoid @import possible","code":""},{"path":"https://docs.ropensci.org/weathercan/LICENSE.html","id":null,"dir":"","previous_headings":"","what":"GNU General Public License","title":"GNU General Public License","text":"Version 3, 29 June 2007Copyright © 2007 Free Software Foundation, Inc. Everyone permitted copy distribute verbatim copies license document, changing allowed.","code":""},{"path":"https://docs.ropensci.org/weathercan/LICENSE.html","id":"preamble","dir":"","previous_headings":"","what":"Preamble","title":"GNU General Public License","text":"GNU General Public License free, copyleft license software kinds works. licenses software practical works designed take away freedom share change works. contrast, GNU General Public License intended guarantee freedom share change versions program–make sure remains free software users. , Free Software Foundation, use GNU General Public License software; applies also work released way authors. can apply programs, . speak free software, referring freedom, price. General Public Licenses designed make sure freedom distribute copies free software (charge wish), receive source code can get want , can change software use pieces new free programs, know can things. protect rights, need prevent others denying rights asking surrender rights. Therefore, certain responsibilities distribute copies software, modify : responsibilities respect freedom others. example, distribute copies program, whether gratis fee, must pass recipients freedoms received. must make sure , , receive can get source code. must show terms know rights. Developers use GNU GPL protect rights two steps: (1) assert copyright software, (2) offer License giving legal permission copy, distribute /modify . developers’ authors’ protection, GPL clearly explains warranty free software. users’ authors’ sake, GPL requires modified versions marked changed, problems attributed erroneously authors previous versions. devices designed deny users access install run modified versions software inside , although manufacturer can . fundamentally incompatible aim protecting users’ freedom change software. systematic pattern abuse occurs area products individuals use, precisely unacceptable. Therefore, designed version GPL prohibit practice products. problems arise substantially domains, stand ready extend provision domains future versions GPL, needed protect freedom users. Finally, every program threatened constantly software patents. States allow patents restrict development use software general-purpose computers, , wish avoid special danger patents applied free program make effectively proprietary. prevent , GPL assures patents used render program non-free. precise terms conditions copying, distribution modification follow.","code":""},{"path":[]},{"path":"https://docs.ropensci.org/weathercan/LICENSE.html","id":"id_0-definitions","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"0. Definitions","title":"GNU General Public License","text":"“License” refers version 3 GNU General Public License. “Copyright” also means copyright-like laws apply kinds works, semiconductor masks. “Program” refers copyrightable work licensed License. licensee addressed “”. “Licensees” “recipients” may individuals organizations. “modify” work means copy adapt part work fashion requiring copyright permission, making exact copy. resulting work called “modified version” earlier work work “based ” earlier work. “covered work” means either unmodified Program work based Program. “propagate” work means anything , without permission, make directly secondarily liable infringement applicable copyright law, except executing computer modifying private copy. Propagation includes copying, distribution (without modification), making available public, countries activities well. “convey” work means kind propagation enables parties make receive copies. Mere interaction user computer network, transfer copy, conveying. interactive user interface displays “Appropriate Legal Notices” extent includes convenient prominently visible feature (1) displays appropriate copyright notice, (2) tells user warranty work (except extent warranties provided), licensees may convey work License, view copy License. interface presents list user commands options, menu, prominent item list meets criterion.","code":""},{"path":"https://docs.ropensci.org/weathercan/LICENSE.html","id":"id_1-source-code","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"1. Source Code","title":"GNU General Public License","text":"“source code” work means preferred form work making modifications . “Object code” means non-source form work. “Standard Interface” means interface either official standard defined recognized standards body, , case interfaces specified particular programming language, one widely used among developers working language. “System Libraries” executable work include anything, work whole, () included normal form packaging Major Component, part Major Component, (b) serves enable use work Major Component, implement Standard Interface implementation available public source code form. “Major Component”, context, means major essential component (kernel, window system, ) specific operating system () executable work runs, compiler used produce work, object code interpreter used run . “Corresponding Source” work object code form means source code needed generate, install, (executable work) run object code modify work, including scripts control activities. However, include work’s System Libraries, general-purpose tools generally available free programs used unmodified performing activities part work. example, Corresponding Source includes interface definition files associated source files work, source code shared libraries dynamically linked subprograms work specifically designed require, intimate data communication control flow subprograms parts work. Corresponding Source need include anything users can regenerate automatically parts Corresponding Source. Corresponding Source work source code form work.","code":""},{"path":"https://docs.ropensci.org/weathercan/LICENSE.html","id":"id_2-basic-permissions","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"2. Basic Permissions","title":"GNU General Public License","text":"rights granted License granted term copyright Program, irrevocable provided stated conditions met. License explicitly affirms unlimited permission run unmodified Program. output running covered work covered License output, given content, constitutes covered work. License acknowledges rights fair use equivalent, provided copyright law. may make, run propagate covered works convey, without conditions long license otherwise remains force. may convey covered works others sole purpose make modifications exclusively , provide facilities running works, provided comply terms License conveying material control copyright. thus making running covered works must exclusively behalf, direction control, terms prohibit making copies copyrighted material outside relationship . Conveying circumstances permitted solely conditions stated . Sublicensing allowed; section 10 makes unnecessary.","code":""},{"path":"https://docs.ropensci.org/weathercan/LICENSE.html","id":"id_3-protecting-users-legal-rights-from-anti-circumvention-law","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"3. Protecting Users’ Legal Rights From Anti-Circumvention Law","title":"GNU General Public License","text":"covered work shall deemed part effective technological measure applicable law fulfilling obligations article 11 WIPO copyright treaty adopted 20 December 1996, similar laws prohibiting restricting circumvention measures. convey covered work, waive legal power forbid circumvention technological measures extent circumvention effected exercising rights License respect covered work, disclaim intention limit operation modification work means enforcing, work’s users, third parties’ legal rights forbid circumvention technological measures.","code":""},{"path":"https://docs.ropensci.org/weathercan/LICENSE.html","id":"id_4-conveying-verbatim-copies","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"4. Conveying Verbatim Copies","title":"GNU General Public License","text":"may convey verbatim copies Program’s source code receive , medium, provided conspicuously appropriately publish copy appropriate copyright notice; keep intact notices stating License non-permissive terms added accord section 7 apply code; keep intact notices absence warranty; give recipients copy License along Program. may charge price price copy convey, may offer support warranty protection fee.","code":""},{"path":"https://docs.ropensci.org/weathercan/LICENSE.html","id":"id_5-conveying-modified-source-versions","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"5. Conveying Modified Source Versions","title":"GNU General Public License","text":"may convey work based Program, modifications produce Program, form source code terms section 4, provided also meet conditions: ) work must carry prominent notices stating modified , giving relevant date. b) work must carry prominent notices stating released License conditions added section 7. requirement modifies requirement section 4 “keep intact notices”. c) must license entire work, whole, License anyone comes possession copy. License therefore apply, along applicable section 7 additional terms, whole work, parts, regardless packaged. License gives permission license work way, invalidate permission separately received . d) work interactive user interfaces, must display Appropriate Legal Notices; however, Program interactive interfaces display Appropriate Legal Notices, work need make . compilation covered work separate independent works, nature extensions covered work, combined form larger program, volume storage distribution medium, called “aggregate” compilation resulting copyright used limit access legal rights compilation’s users beyond individual works permit. Inclusion covered work aggregate cause License apply parts aggregate.","code":""},{"path":"https://docs.ropensci.org/weathercan/LICENSE.html","id":"id_6-conveying-non-source-forms","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"6. Conveying Non-Source Forms","title":"GNU General Public License","text":"may convey covered work object code form terms sections 4 5, provided also convey machine-readable Corresponding Source terms License, one ways: ) Convey object code , embodied , physical product (including physical distribution medium), accompanied Corresponding Source fixed durable physical medium customarily used software interchange. b) Convey object code , embodied , physical product (including physical distribution medium), accompanied written offer, valid least three years valid long offer spare parts customer support product model, give anyone possesses object code either (1) copy Corresponding Source software product covered License, durable physical medium customarily used software interchange, price reasonable cost physically performing conveying source, (2) access copy Corresponding Source network server charge. c) Convey individual copies object code copy written offer provide Corresponding Source. alternative allowed occasionally noncommercially, received object code offer, accord subsection 6b. d) Convey object code offering access designated place (gratis charge), offer equivalent access Corresponding Source way place charge. need require recipients copy Corresponding Source along object code. place copy object code network server, Corresponding Source may different server (operated third party) supports equivalent copying facilities, provided maintain clear directions next object code saying find Corresponding Source. Regardless server hosts Corresponding Source, remain obligated ensure available long needed satisfy requirements. e) Convey object code using peer--peer transmission, provided inform peers object code Corresponding Source work offered general public charge subsection 6d. separable portion object code, whose source code excluded Corresponding Source System Library, need included conveying object code work. “User Product” either (1) “consumer product”, means tangible personal property normally used personal, family, household purposes, (2) anything designed sold incorporation dwelling. determining whether product consumer product, doubtful cases shall resolved favor coverage. particular product received particular user, “normally used” refers typical common use class product, regardless status particular user way particular user actually uses, expects expected use, product. product consumer product regardless whether product substantial commercial, industrial non-consumer uses, unless uses represent significant mode use product. “Installation Information” User Product means methods, procedures, authorization keys, information required install execute modified versions covered work User Product modified version Corresponding Source. information must suffice ensure continued functioning modified object code case prevented interfered solely modification made. convey object code work section , , specifically use , User Product, conveying occurs part transaction right possession use User Product transferred recipient perpetuity fixed term (regardless transaction characterized), Corresponding Source conveyed section must accompanied Installation Information. requirement apply neither third party retains ability install modified object code User Product (example, work installed ROM). requirement provide Installation Information include requirement continue provide support service, warranty, updates work modified installed recipient, User Product modified installed. Access network may denied modification materially adversely affects operation network violates rules protocols communication across network. Corresponding Source conveyed, Installation Information provided, accord section must format publicly documented (implementation available public source code form), must require special password key unpacking, reading copying.","code":""},{"path":"https://docs.ropensci.org/weathercan/LICENSE.html","id":"id_7-additional-terms","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"7. Additional Terms","title":"GNU General Public License","text":"“Additional permissions” terms supplement terms License making exceptions one conditions. Additional permissions applicable entire Program shall treated though included License, extent valid applicable law. additional permissions apply part Program, part may used separately permissions, entire Program remains governed License without regard additional permissions. convey copy covered work, may option remove additional permissions copy, part . (Additional permissions may written require removal certain cases modify work.) may place additional permissions material, added covered work, can give appropriate copyright permission. Notwithstanding provision License, material add covered work, may (authorized copyright holders material) supplement terms License terms: ) Disclaiming warranty limiting liability differently terms sections 15 16 License; b) Requiring preservation specified reasonable legal notices author attributions material Appropriate Legal Notices displayed works containing ; c) Prohibiting misrepresentation origin material, requiring modified versions material marked reasonable ways different original version; d) Limiting use publicity purposes names licensors authors material; e) Declining grant rights trademark law use trade names, trademarks, service marks; f) Requiring indemnification licensors authors material anyone conveys material (modified versions ) contractual assumptions liability recipient, liability contractual assumptions directly impose licensors authors. non-permissive additional terms considered “restrictions” within meaning section 10. Program received , part , contains notice stating governed License along term restriction, may remove term. license document contains restriction permits relicensing conveying License, may add covered work material governed terms license document, provided restriction survive relicensing conveying. add terms covered work accord section, must place, relevant source files, statement additional terms apply files, notice indicating find applicable terms. Additional terms, permissive non-permissive, may stated form separately written license, stated exceptions; requirements apply either way.","code":""},{"path":"https://docs.ropensci.org/weathercan/LICENSE.html","id":"id_8-termination","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"8. Termination","title":"GNU General Public License","text":"may propagate modify covered work except expressly provided License. attempt otherwise propagate modify void, automatically terminate rights License (including patent licenses granted third paragraph section 11). However, cease violation License, license particular copyright holder reinstated () provisionally, unless copyright holder explicitly finally terminates license, (b) permanently, copyright holder fails notify violation reasonable means prior 60 days cessation. Moreover, license particular copyright holder reinstated permanently copyright holder notifies violation reasonable means, first time received notice violation License (work) copyright holder, cure violation prior 30 days receipt notice. Termination rights section terminate licenses parties received copies rights License. rights terminated permanently reinstated, qualify receive new licenses material section 10.","code":""},{"path":"https://docs.ropensci.org/weathercan/LICENSE.html","id":"id_9-acceptance-not-required-for-having-copies","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"9. Acceptance Not Required for Having Copies","title":"GNU General Public License","text":"required accept License order receive run copy Program. Ancillary propagation covered work occurring solely consequence using peer--peer transmission receive copy likewise require acceptance. However, nothing License grants permission propagate modify covered work. actions infringe copyright accept License. Therefore, modifying propagating covered work, indicate acceptance License .","code":""},{"path":"https://docs.ropensci.org/weathercan/LICENSE.html","id":"id_10-automatic-licensing-of-downstream-recipients","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"10. Automatic Licensing of Downstream Recipients","title":"GNU General Public License","text":"time convey covered work, recipient automatically receives license original licensors, run, modify propagate work, subject License. responsible enforcing compliance third parties License. “entity transaction” transaction transferring control organization, substantially assets one, subdividing organization, merging organizations. propagation covered work results entity transaction, party transaction receives copy work also receives whatever licenses work party’s predecessor interest give previous paragraph, plus right possession Corresponding Source work predecessor interest, predecessor can get reasonable efforts. may impose restrictions exercise rights granted affirmed License. example, may impose license fee, royalty, charge exercise rights granted License, may initiate litigation (including cross-claim counterclaim lawsuit) alleging patent claim infringed making, using, selling, offering sale, importing Program portion .","code":""},{"path":"https://docs.ropensci.org/weathercan/LICENSE.html","id":"id_11-patents","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"11. Patents","title":"GNU General Public License","text":"“contributor” copyright holder authorizes use License Program work Program based. work thus licensed called contributor’s “contributor version”. contributor’s “essential patent claims” patent claims owned controlled contributor, whether already acquired hereafter acquired, infringed manner, permitted License, making, using, selling contributor version, include claims infringed consequence modification contributor version. purposes definition, “control” includes right grant patent sublicenses manner consistent requirements License. contributor grants non-exclusive, worldwide, royalty-free patent license contributor’s essential patent claims, make, use, sell, offer sale, import otherwise run, modify propagate contents contributor version. following three paragraphs, “patent license” express agreement commitment, however denominated, enforce patent (express permission practice patent covenant sue patent infringement). “grant” patent license party means make agreement commitment enforce patent party. convey covered work, knowingly relying patent license, Corresponding Source work available anyone copy, free charge terms License, publicly available network server readily accessible means, must either (1) cause Corresponding Source available, (2) arrange deprive benefit patent license particular work, (3) arrange, manner consistent requirements License, extend patent license downstream recipients. “Knowingly relying” means actual knowledge , patent license, conveying covered work country, recipient’s use covered work country, infringe one identifiable patents country reason believe valid. , pursuant connection single transaction arrangement, convey, propagate procuring conveyance , covered work, grant patent license parties receiving covered work authorizing use, propagate, modify convey specific copy covered work, patent license grant automatically extended recipients covered work works based . patent license “discriminatory” include within scope coverage, prohibits exercise , conditioned non-exercise one rights specifically granted License. may convey covered work party arrangement third party business distributing software, make payment third party based extent activity conveying work, third party grants, parties receive covered work , discriminatory patent license () connection copies covered work conveyed (copies made copies), (b) primarily connection specific products compilations contain covered work, unless entered arrangement, patent license granted, prior 28 March 2007. Nothing License shall construed excluding limiting implied license defenses infringement may otherwise available applicable patent law.","code":""},{"path":"https://docs.ropensci.org/weathercan/LICENSE.html","id":"id_12-no-surrender-of-others-freedom","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"12. No Surrender of Others’ Freedom","title":"GNU General Public License","text":"conditions imposed (whether court order, agreement otherwise) contradict conditions License, excuse conditions License. convey covered work satisfy simultaneously obligations License pertinent obligations, consequence may convey . example, agree terms obligate collect royalty conveying convey Program, way satisfy terms License refrain entirely conveying Program.","code":""},{"path":"https://docs.ropensci.org/weathercan/LICENSE.html","id":"id_13-use-with-the-gnu-affero-general-public-license","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"13. Use with the GNU Affero General Public License","title":"GNU General Public License","text":"Notwithstanding provision License, permission link combine covered work work licensed version 3 GNU Affero General Public License single combined work, convey resulting work. terms License continue apply part covered work, special requirements GNU Affero General Public License, section 13, concerning interaction network apply combination .","code":""},{"path":"https://docs.ropensci.org/weathercan/LICENSE.html","id":"id_14-revised-versions-of-this-license","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"14. Revised Versions of this License","title":"GNU General Public License","text":"Free Software Foundation may publish revised /new versions GNU General Public License time time. new versions similar spirit present version, may differ detail address new problems concerns. version given distinguishing version number. Program specifies certain numbered version GNU General Public License “later version” applies , option following terms conditions either numbered version later version published Free Software Foundation. Program specify version number GNU General Public License, may choose version ever published Free Software Foundation. Program specifies proxy can decide future versions GNU General Public License can used, proxy’s public statement acceptance version permanently authorizes choose version Program. Later license versions may give additional different permissions. However, additional obligations imposed author copyright holder result choosing follow later version.","code":""},{"path":"https://docs.ropensci.org/weathercan/LICENSE.html","id":"id_15-disclaimer-of-warranty","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"15. Disclaimer of Warranty","title":"GNU General Public License","text":"WARRANTY PROGRAM, EXTENT PERMITTED APPLICABLE LAW. EXCEPT OTHERWISE STATED WRITING COPYRIGHT HOLDERS /PARTIES PROVIDE PROGRAM “” WITHOUT WARRANTY KIND, EITHER EXPRESSED IMPLIED, INCLUDING, LIMITED , IMPLIED WARRANTIES MERCHANTABILITY FITNESS PARTICULAR PURPOSE. ENTIRE RISK QUALITY PERFORMANCE PROGRAM . PROGRAM PROVE DEFECTIVE, ASSUME COST NECESSARY SERVICING, REPAIR CORRECTION.","code":""},{"path":"https://docs.ropensci.org/weathercan/LICENSE.html","id":"id_16-limitation-of-liability","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"16. Limitation of Liability","title":"GNU General Public License","text":"EVENT UNLESS REQUIRED APPLICABLE LAW AGREED WRITING COPYRIGHT HOLDER, PARTY MODIFIES /CONVEYS PROGRAM PERMITTED , LIABLE DAMAGES, INCLUDING GENERAL, SPECIAL, INCIDENTAL CONSEQUENTIAL DAMAGES ARISING USE INABILITY USE PROGRAM (INCLUDING LIMITED LOSS DATA DATA RENDERED INACCURATE LOSSES SUSTAINED THIRD PARTIES FAILURE PROGRAM OPERATE PROGRAMS), EVEN HOLDER PARTY ADVISED POSSIBILITY DAMAGES.","code":""},{"path":"https://docs.ropensci.org/weathercan/LICENSE.html","id":"id_17-interpretation-of-sections-15-and-16","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"17. Interpretation of Sections 15 and 16","title":"GNU General Public License","text":"disclaimer warranty limitation liability provided given local legal effect according terms, reviewing courts shall apply local law closely approximates absolute waiver civil liability connection Program, unless warranty assumption liability accompanies copy Program return fee. END TERMS CONDITIONS","code":""},{"path":"https://docs.ropensci.org/weathercan/LICENSE.html","id":"how-to-apply-these-terms-to-your-new-programs","dir":"","previous_headings":"","what":"How to Apply These Terms to Your New Programs","title":"GNU General Public License","text":"develop new program, want greatest possible use public, best way achieve make free software everyone can redistribute change terms. , attach following notices program. safest attach start source file effectively state exclusion warranty; file least “copyright” line pointer full notice found. Also add information contact electronic paper mail. program terminal interaction, make output short notice like starts interactive mode: hypothetical commands show w show c show appropriate parts General Public License. course, program’s commands might different; GUI interface, use “box”. also get employer (work programmer) school, , sign “copyright disclaimer” program, necessary. information , apply follow GNU GPL, see . GNU General Public License permit incorporating program proprietary programs. program subroutine library, may consider useful permit linking proprietary applications library. want , use GNU Lesser General Public License instead License. first, please read .","code":" Copyright (C) 2019 Steffi LaZerte This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . weathercan Copyright (C) 2019 Steffi LaZerte This program comes with ABSOLUTELY NO WARRANTY; for details type 'show w'. This is free software, and you are welcome to redistribute it under certain conditions; type 'show c' for details."},{"path":"https://docs.ropensci.org/weathercan/articles/flags.html","id":"what-are-flagscodes","dir":"Articles","previous_headings":"","what":"What are flags/codes","title":"Flags and codes","text":"data output weather_dl() function include corresponding _flag columns data column. columns used ECCC add notes regarding measurements. Similarly, data output normals_dl() function include corresponding _code columns. columns used ECCC add notes regarding amount data used calculate normals.","code":""},{"path":"https://docs.ropensci.org/weathercan/articles/flags.html","id":"flags","dir":"Articles","previous_headings":"What are flags/codes","what":"Flags","title":"Flags and codes","text":"weather_dl() function format = TRUE (default), data corresponding flags M, NA, [empty] L replaced NA. example, sample unformatted data Magog station Quebec looks like: output, can see two flags: ^ Total Precip M Snow Grnd Last Day sample, formatted looks like: can see, still two flags, missing data flag (M) now replaced NA. flag ^ , indicates “value displayed based incomplete data” (see ).","code":"## # A tibble: 12 × 6 ## station_name `Date/Time` `Total Precip (mm)` `Total Precip Flag` `Snow Grnd Last Day (cm)` ## ## 1 MAGOG 2017-03 30.4 ^ ## 2 MAGOG 2017-04 114.0 ^ 0 ## 3 MAGOG 2017-05 78.8 ^ 0 ## 4 MAGOG 2017-06 140.7 ^ 0 ## 5 MAGOG 2017-07 80.7 0 ## 6 MAGOG 2017-08 135.8 0 ## 7 MAGOG 2017-09 63.0 ^ 0 ## 8 MAGOG 2017-10 140.8 ^ 0 ## 9 MAGOG 2017-11 70.0 ^ 0 ## 10 MAGOG 2017-12 45.7 ^ 10 ## 11 MAGOG 2018-01 34.6 ^ 2 ## 12 MAGOG 2018-02 77.2 ^ 0 ## # ℹ 1 more variable: `Snow Grnd Last Day Flag` ## # A tibble: 12 × 5 ## date total_precip total_precip_flag snow_grnd_last_day snow_grnd_last_day_flag ## ## 1 2017-03-01 30.4 ^ NA M ## 2 2017-04-01 114 ^ 0 ## 3 2017-05-01 78.8 ^ 0 ## 4 2017-06-01 141. ^ 0 ## 5 2017-07-01 80.7 0 ## 6 2017-08-01 136. 0 ## 7 2017-09-01 63 ^ 0 ## 8 2017-10-01 141. ^ 0 ## 9 2017-11-01 70 ^ 0 ## 10 2017-12-01 45.7 ^ 10 ## 11 2018-01-01 34.6 ^ 2 ## 12 2018-02-01 77.2 ^ 0 "},{"path":"https://docs.ropensci.org/weathercan/articles/flags.html","id":"flags---weather-data","dir":"Articles","previous_headings":"What are flags/codes","what":"Flags - Weather Data","title":"Flags and codes","text":"flags index can accessed built data frame: flags","code":""},{"path":"https://docs.ropensci.org/weathercan/articles/flags.html","id":"codes","dir":"Articles","previous_headings":"What are flags/codes","what":"Codes","title":"Flags and codes","text":"normals_dl() function, codes associated variable: example, , code indicates temperature variables meet WMO ‘3 5 rule’ (3 consecutive 5 total missing either temperature precipitation).","code":"## Warning: There were 2 warnings in `dplyr::mutate()`. ## The first warning was: ## ℹ In argument: `frost = purrr::map2(...)`. ## Caused by warning: ## ! 21 parsing failures. ## row col expected actual file ## 4 -- 3 columns 15 columns literal data ## 5 -- 3 columns 15 columns literal data ## 6 -- 3 columns 15 columns literal data ## 7 -- 3 columns 15 columns literal data ## 8 -- 3 columns 15 columns literal data ## ... ... ......... .......... ............ ## See problems(...) for more details. ## ℹ Run `dplyr::last_dplyr_warnings()` to see the 1 remaining warning. ## # A tibble: 13 × 7 ## period temp_daily_average temp_daily_average_code temp_daily_max temp_daily_max_code ## ## 1 Jan -16.6 A -11.1 A ## 2 Feb -13.6 A -8.1 A ## 3 Mar -6.2 A -1 A ## 4 Apr 4 A 10.5 A ## 5 May 10.6 A 17.8 A ## 6 Jun 15.9 A 22.4 A ## 7 Jul 18.5 A 25.2 A ## 8 Aug 17.7 A 24.9 A ## 9 Sep 11.8 A 18.9 A ## 10 Oct 4.1 A 10.4 A ## 11 Nov -5.6 A -0.5 A ## 12 Dec -14 A -9 A ## 13 Year 2.2 A 8.4 A ## # ℹ 2 more variables: temp_daily_min , temp_daily_min_code "},{"path":"https://docs.ropensci.org/weathercan/articles/flags.html","id":"codes---climate-normals","dir":"Articles","previous_headings":"What are flags/codes","what":"Codes - Climate Normals","title":"Flags and codes","text":"codes index climate normals can accessed built-data frame: codes","code":""},{"path":[]},{"path":"https://docs.ropensci.org/weathercan/articles/glossary_normals.html","id":"original-names-and-units","dir":"Articles","previous_headings":"","what":"Original names and units","title":"Climate Normals: Terms and Units","text":"represent original ECCC measurement names units corresponding measurements weathercan.","code":""},{"path":"https://docs.ropensci.org/weathercan/articles/interpolate_data.html","id":"packages","dir":"Articles","previous_headings":"","what":"Packages","title":"Interpolating","text":"’ll need several packages tidyverse addition weathercan complete following analysis.","code":"library(weathercan) library(ggplot2) library(dplyr)"},{"path":"https://docs.ropensci.org/weathercan/articles/interpolate_data.html","id":"general-usage","dir":"Articles","previous_headings":"","what":"General usage","title":"Interpolating","text":"can merge weather data data frames linearly interpolating points. example, dataset weather data Kamloops well data set finch visits RFID feeder Although times weather data exactly match finch data, can merge together linear interpolation. function uses approx function stats package hood. specify want temperature (temp) column: Ooops! happened? Well weather data Kamloops returned weathercan times set ‘local’ timezone (without) daylight savings. simplicity, times scored “UTC” according R. finches data, hand, set true timezone: means also daylight savings applied, eep! interpolate, data must timezone. easiest way forward convert finches data , ‘local’ time without daylight savings kamloops data. First ’ll transform non-daylight savings (.e. Etc/GMT+8, note +8 intentionally inverted) with_tz() function lubridate package. Now ’ll force UTC force_tz() function lubridate package. Now finches kamloops data nominal actual timezones! Let’s continue Let’s take look interpolate points specifically plot chunk unnamed-chunk-10 mean data? plot chunk unnamed-chunk-11","code":"glimpse(kamloops) ## Rows: 4,368 ## Columns: 37 ## $ station_name \"KAMLOOPS A\", \"KAMLOOPS A\", \"KAMLOOPS A\", \"KAMLOOPS A\", \"KAMLOOPS A\", \"KAMLOOPS A\", \"KAMLOOPS A\", \"KAMLOOPS A… ## $ station_id 51423, 51423, 51423, 51423, 51423, 51423, 51423, 51423, 51423, 51423, 51423, 51423, 51423, 51423, 51423, 5142… ## $ station_operator NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, N… ## $ prov \"BC\", \"BC\", \"BC\", \"BC\", \"BC\", \"BC\", \"BC\", \"BC\", \"BC\", \"BC\", \"BC\", \"BC\", \"BC\", \"BC\", \"BC\", \"BC\", \"BC\", \"BC\", \"… ## $ lat 50.7, 50.7, 50.7, 50.7, 50.7, 50.7, 50.7, 50.7, 50.7, 50.7, 50.7, 50.7, 50.7, 50.7, 50.7, 50.7, 50.7, 50.7, 5… ## $ lon -120.45, -120.45, -120.45, -120.45, -120.45, -120.45, -120.45, -120.45, -120.45, -120.45, -120.45, -120.45, -… ## $ elev 345.3, 345.3, 345.3, 345.3, 345.3, 345.3, 345.3, 345.3, 345.3, 345.3, 345.3, 345.3, 345.3, 345.3, 345.3, 345.… ## $ climate_id \"1163781\", \"1163781\", \"1163781\", \"1163781\", \"1163781\", \"1163781\", \"1163781\", \"1163781\", \"1163781\", \"1163781\",… ## $ WMO_id \"71887\", \"71887\", \"71887\", \"71887\", \"71887\", \"71887\", \"71887\", \"71887\", \"71887\", \"71887\", \"71887\", \"71887\", \"… ## $ TC_id \"YKA\", \"YKA\", \"YKA\", \"YKA\", \"YKA\", \"YKA\", \"YKA\", \"YKA\", \"YKA\", \"YKA\", \"YKA\", \"YKA\", \"YKA\", \"YKA\", \"YKA\", \"YKA… ## $ date 2016-01-01, 2016-01-01, 2016-01-01, 2016-01-01, 2016-01-01, 2016-01-01, 2016-01-01, 2016-01-01, 2016-01-01, … ## $ time 2016-01-01 00:00:00, 2016-01-01 01:00:00, 2016-01-01 02:00:00, 2016-01-01 03:00:00, 2016-01-01 04:00:00, 201… ## $ year \"2016\", \"2016\", \"2016\", \"2016\", \"2016\", \"2016\", \"2016\", \"2016\", \"2016\", \"2016\", \"2016\", \"2016\", \"2016\", \"2016… ## $ month \"01\", \"01\", \"01\", \"01\", \"01\", \"01\", \"01\", \"01\", \"01\", \"01\", \"01\", \"01\", \"01\", \"01\", \"01\", \"01\", \"01\", \"01\", \"… ## $ day \"01\", \"01\", \"01\", \"01\", \"01\", \"01\", \"01\", \"01\", \"01\", \"01\", \"01\", \"01\", \"01\", \"01\", \"01\", \"01\", \"01\", \"01\", \"… ## $ hour \"00:00\", \"01:00\", \"02:00\", \"03:00\", \"04:00\", \"05:00\", \"06:00\", \"07:00\", \"08:00\", \"09:00\", \"10:00\", \"11:00\", \"… ## $ weather NA, \"Mostly Cloudy\", NA, NA, \"Cloudy\", NA, NA, \"Cloudy\", NA, \"Snow\", \"Snow\", \"Snow\", \"Snow\", \"Snow\", \"Snow\", … ## $ hmdx NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, N… ## $ hmdx_flag NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, N… ## $ precip_amt NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, N… ## $ precip_amt_flag NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, N… ## $ pressure 99.95, 99.93, 99.92, 99.90, 99.86, 99.82, 99.80, 99.78, 99.77, 99.78, 99.79, 99.74, 99.69, 99.62, 99.56, 99.5… ## $ pressure_flag NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, N… ## $ rel_hum 74, 76, 74, 73, 70, 71, 69, 69, 71, 71, 71, 70, 69, 70, 68, 68, 70, 74, 73, 74, 74, 74, 77, 72, 72, 73, 74, 7… ## $ rel_hum_flag NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, N… ## $ temp -9.1, -9.6, -9.9, -9.5, -9.4, -9.8, -10.0, -10.2, -10.1, -9.7, -9.4, -9.0, -8.6, -8.2, -8.1, -7.7, -8.1, -8.5… ## $ temp_dew -12.9, -13.1, -13.7, -13.5, -13.9, -14.1, -14.7, -14.9, -14.4, -14.0, -13.7, -13.5, -13.3, -12.8, -13.0, -12.… ## $ temp_dew_flag NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, N… ## $ temp_flag NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, N… ## $ visib 64.4, 64.4, 64.4, 64.4, 64.4, 64.4, 64.4, 64.4, 48.3, 48.3, 48.3, 48.3, 48.3, 48.3, 48.3, 48.3, 24.1, 48.3, 4… ## $ visib_flag NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, N… ## $ wind_chill -17, -17, -18, -17, -17, -17, -18, -17, -17, -16, -15, -14, -14, -13, -13, -13, -13, -14, -13, -14, -14, -12,… ## $ wind_chill_flag NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, N… ## $ wind_dir 13, 11, 11, 11, 11, 10, 9, 7, 7, 10, 11, 10, 10, 13, 11, 10, 10, 9, 12, 10, 13, 12, 10, 12, NA, 32, 26, 26, 2… ## $ wind_dir_flag NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, N… ## $ wind_spd 19, 20, 20, 18, 18, 16, 23, 15, 14, 15, 12, 11, 12, 9, 10, 12, 11, 12, 10, 11, 11, 6, 6, 4, 0, 4, 9, 10, 8, 7… ## $ wind_spd_flag NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, N… glimpse(finches) ## Rows: 16,886 ## Columns: 10 ## $ animal_id 041868FF93, 041868FF93, 041868FF93, 06200003BB, 06200003BB, 06200003BB, 06200003BB, 06200003BB, 041868BED6, 041868BE… ## $ date 2016-03-01, 2016-03-01, 2016-03-01, 2016-03-01, 2016-03-01, 2016-03-01, 2016-03-01, 2016-03-01, 2016-03-01, 2016-03… ## $ time 2016-03-01 06:57:42, 2016-03-01 06:58:41, 2016-03-01 07:07:21, 2016-03-01 07:32:34, 2016-03-01 07:32:35, 2016-03-01… ## $ logger_id 2300, 2300, 2300, 2400, 2400, 2400, 2400, 2400, 2300, 2300, 2300, 2300, 2300, 2400, 2300, 2400, 2400, 2400, 2400, 24… ## $ species \"Mountain Chickadee\", \"Mountain Chickadee\", \"Mountain Chickadee\", \"House Finch\", \"House Finch\", \"House Finch\", \"Hous… ## $ age \"AHY\", \"AHY\", \"AHY\", \"SY\", \"SY\", \"SY\", \"SY\", \"SY\", \"AHY\", \"AHY\", \"AHY\", \"AHY\", \"AHY\", \"SY\", \"AHY\", \"SY\", \"SY\", \"SY\",… ## $ sex \"U\", \"U\", \"U\", \"M\", \"M\", \"M\", \"M\", \"M\", \"F\", \"F\", \"F\", \"F\", \"F\", \"M\", \"F\", \"M\", \"M\", \"M\", \"M\", \"M\", \"F\", \"M\", \"M\", \"… ## $ site_name \"Kamloops, BC\", \"Kamloops, BC\", \"Kamloops, BC\", \"Kamloops, BC\", \"Kamloops, BC\", \"Kamloops, BC\", \"Kamloops, BC\", \"Kam… ## $ lon -120.3622, -120.3622, -120.3622, -120.3635, -120.3635, -120.3635, -120.3635, -120.3635, -120.3622, -120.3622, -120.3… ## $ lat 50.66967, 50.66967, 50.66967, 50.66938, 50.66938, 50.66938, 50.66938, 50.66938, 50.66967, 50.66967, 50.66967, 50.669… finches_temperature <- weather_interp(data = finches, weather = kamloops, cols = \"temp\") ## Error: `data` and `weather` timezones must match kamloops$time[1:5] ## [1] \"2016-01-01 00:00:00 UTC\" \"2016-01-01 01:00:00 UTC\" \"2016-01-01 02:00:00 UTC\" \"2016-01-01 03:00:00 UTC\" \"2016-01-01 04:00:00 UTC\" finches$time[1:5] ## [1] \"2016-03-01 06:57:42 -08\" \"2016-03-01 06:58:41 -08\" \"2016-03-01 07:07:21 -08\" \"2016-03-01 07:32:34 -08\" \"2016-03-01 07:32:35 -08\" finches <- mutate(finches, time = lubridate::with_tz(time, \"Etc/GMT+8\")) finches <- mutate(finches, time = lubridate::force_tz(time, \"UTC\")) finches_temperature <- weather_interp(data = finches, weather = kamloops, cols = \"temp\") ## temp is missing 4 out of 4368 data, interpolation may be less accurate as a result. summary(finches_temperature) ## animal_id date time logger_id species age ## 0620000513:7624 Min. :2016-03-01 Min. :2016-03-01 06:57:42.00 1500:6370 Length:16886 Length:16886 ## 041868D861:2767 1st Qu.:2016-03-05 1st Qu.:2016-03-05 13:54:13.25 2100: 968 Class :character Class :character ## 0620000514:1844 Median :2016-03-09 Median :2016-03-09 16:54:47.00 2200:2266 Mode :character Mode :character ## 06200004F8:1386 Mean :2016-03-08 Mean :2016-03-09 07:45:58.05 2300:3531 ## 041868BED6: 944 3rd Qu.:2016-03-13 3rd Qu.:2016-03-13 08:24:58.75 2400:1477 ## 06200003BB: 708 Max. :2016-03-16 Max. :2016-03-16 16:39:30.00 2700:2274 ## (Other) :1613 ## sex site_name lon lat temp ## Length:16886 Length:16886 Min. :-120.4 Min. :50.67 Min. :-1.763 ## Class :character Class :character 1st Qu.:-120.4 1st Qu.:50.67 1st Qu.: 5.212 ## Mode :character Mode :character Median :-120.4 Median :50.67 Median : 8.991 ## Mean :-120.4 Mean :50.67 Mean : 8.617 ## 3rd Qu.:-120.4 3rd Qu.:50.67 3rd Qu.:11.943 ## Max. :-120.4 Max. :50.67 Max. :16.353 ## glimpse(finches_temperature) ## Rows: 16,886 ## Columns: 11 ## $ animal_id 041868FF93, 041868FF93, 041868FF93, 06200003BB, 06200003BB, 06200003BB, 06200003BB, 06200003BB, 041868BED6, 041868BE… ## $ date 2016-03-01, 2016-03-01, 2016-03-01, 2016-03-01, 2016-03-01, 2016-03-01, 2016-03-01, 2016-03-01, 2016-03-01, 2016-03… ## $ time 2016-03-01 06:57:42, 2016-03-01 06:58:41, 2016-03-01 07:07:21, 2016-03-01 07:32:34, 2016-03-01 07:32:35, 2016-03-01… ## $ logger_id 2300, 2300, 2300, 2400, 2400, 2400, 2400, 2400, 2300, 2300, 2300, 2300, 2300, 2400, 2300, 2400, 2400, 2400, 2400, 24… ## $ species \"Mountain Chickadee\", \"Mountain Chickadee\", \"Mountain Chickadee\", \"House Finch\", \"House Finch\", \"House Finch\", \"Hous… ## $ age \"AHY\", \"AHY\", \"AHY\", \"SY\", \"SY\", \"SY\", \"SY\", \"SY\", \"AHY\", \"AHY\", \"AHY\", \"AHY\", \"AHY\", \"SY\", \"AHY\", \"SY\", \"SY\", \"SY\",… ## $ sex \"U\", \"U\", \"U\", \"M\", \"M\", \"M\", \"M\", \"M\", \"F\", \"F\", \"F\", \"F\", \"F\", \"M\", \"F\", \"M\", \"M\", \"M\", \"M\", \"M\", \"F\", \"M\", \"M\", \"… ## $ site_name \"Kamloops, BC\", \"Kamloops, BC\", \"Kamloops, BC\", \"Kamloops, BC\", \"Kamloops, BC\", \"Kamloops, BC\", \"Kamloops, BC\", \"Kam… ## $ lon -120.3622, -120.3622, -120.3622, -120.3635, -120.3635, -120.3635, -120.3635, -120.3635, -120.3622, -120.3622, -120.3… ## $ lat 50.66967, 50.66967, 50.66967, 50.66938, 50.66938, 50.66938, 50.66938, 50.66938, 50.66967, 50.66967, 50.66967, 50.669… ## $ temp 2.396167, 2.397806, 2.424500, 2.508556, 2.508611, 2.508667, 2.508722, 2.508778, 2.520278, 2.520500, 2.522667, 2.5228… compare1 <- select(finches_temperature, time, temp) compare1 <- mutate(compare1, type = \"interpolated\") compare2 <- select(kamloops, time, temp) compare2 <- mutate(compare2, type = \"original\") compare <- bind_rows(compare1, compare2) ggplot(data = compare, aes(x = time, y = temp, colour = type)) + geom_point(alpha = 0.5) + scale_x_datetime(limits = range(compare1$time)) ## Warning: Removed 4000 rows containing missing values or values outside the scale range (`geom_point()`). ggplot(data = finches_temperature, aes(x = temp, fill = animal_id)) + theme_bw() + theme(legend.position = \"none\") + geom_histogram(binwidth = 1) + labs(x = \"Temperature (C)\", y = \"Activity Count\", fill = \"Finch ID\")"},{"path":"https://docs.ropensci.org/weathercan/articles/interpolate_data.html","id":"data-gaps","dir":"Articles","previous_headings":"","what":"Data gaps","title":"Interpolating","text":"default, gaps 2 hours (2 days, daily scale) interpolated (.e. filled values interpolated either side gap), longer gaps skipped filled NAs. can adjust behaviour na_gap. Note Environment Climate Change Canada data downloaded hourly scale, makes sense apply na_gap values less 1. example, note larger number NAs temp corresponds missing variables weather dataset:","code":"finches_temperature <- weather_interp(data = finches, weather = kamloops, cols = \"temp\", na_gap = 1) ## temp is missing 4 out of 4368 data, interpolation may be less accurate as a result. summary(finches_temperature) ## animal_id date time logger_id species age ## 0620000513:7624 Min. :2016-03-01 Min. :2016-03-01 06:57:42.00 1500:6370 Length:16886 Length:16886 ## 041868D861:2767 1st Qu.:2016-03-05 1st Qu.:2016-03-05 13:54:13.25 2100: 968 Class :character Class :character ## 0620000514:1844 Median :2016-03-09 Median :2016-03-09 16:54:47.00 2200:2266 Mode :character Mode :character ## 06200004F8:1386 Mean :2016-03-08 Mean :2016-03-09 07:45:58.05 2300:3531 ## 041868BED6: 944 3rd Qu.:2016-03-13 3rd Qu.:2016-03-13 08:24:58.75 2400:1477 ## 06200003BB: 708 Max. :2016-03-16 Max. :2016-03-16 16:39:30.00 2700:2274 ## (Other) :1613 ## sex site_name lon lat temp ## Length:16886 Length:16886 Min. :-120.4 Min. :50.67 Min. :-1.763 ## Class :character Class :character 1st Qu.:-120.4 1st Qu.:50.67 1st Qu.: 5.156 ## Mode :character Mode :character Median :-120.4 Median :50.67 Median : 8.998 ## Mean :-120.4 Mean :50.67 Mean : 8.610 ## 3rd Qu.:-120.4 3rd Qu.:50.67 3rd Qu.:11.951 ## Max. :-120.4 Max. :50.67 Max. :16.353 ## NA's :195 finches_temperature %>% select(date, time, temp) %>% filter(is.na(temp)) ## # A tibble: 195 × 3 ## date time temp ## ## 1 2016-03-08 2016-03-08 12:10:10 NA ## 2 2016-03-08 2016-03-08 12:10:11 NA ## 3 2016-03-08 2016-03-08 12:10:13 NA ## 4 2016-03-08 2016-03-08 12:10:14 NA ## 5 2016-03-08 2016-03-08 12:12:26 NA ## 6 2016-03-08 2016-03-08 12:12:28 NA ## 7 2016-03-08 2016-03-08 12:12:29 NA ## 8 2016-03-08 2016-03-08 12:12:30 NA ## 9 2016-03-08 2016-03-08 12:12:32 NA ## 10 2016-03-08 2016-03-08 12:12:33 NA ## # ℹ 185 more rows kamloops %>% select(time, temp) %>% filter(is.na(temp)) ## # A tibble: 4 × 2 ## time temp ## ## 1 2016-02-11 19:00:00 NA ## 2 2016-03-08 13:00:00 NA ## 3 2016-03-11 01:00:00 NA ## 4 2016-04-09 00:00:00 NA"},{"path":"https://docs.ropensci.org/weathercan/articles/interpolate_data.html","id":"multiple-weather-columns","dir":"Articles","previous_headings":"","what":"Multiple weather columns","title":"Interpolating","text":"also add one column time: plot chunk unnamed-chunk-13","code":"finches_weather <- weather_interp(data = finches, weather = kamloops, cols = c(\"temp\", \"wind_spd\")) ## temp is missing 4 out of 4368 data, interpolation may be less accurate as a result. ## wind_spd is missing 4 out of 4368 data, interpolation may be less accurate as a result. summary(finches_weather) ## animal_id date time logger_id species age ## 0620000513:7624 Min. :2016-03-01 Min. :2016-03-01 06:57:42.00 1500:6370 Length:16886 Length:16886 ## 041868D861:2767 1st Qu.:2016-03-05 1st Qu.:2016-03-05 13:54:13.25 2100: 968 Class :character Class :character ## 0620000514:1844 Median :2016-03-09 Median :2016-03-09 16:54:47.00 2200:2266 Mode :character Mode :character ## 06200004F8:1386 Mean :2016-03-08 Mean :2016-03-09 07:45:58.05 2300:3531 ## 041868BED6: 944 3rd Qu.:2016-03-13 3rd Qu.:2016-03-13 08:24:58.75 2400:1477 ## 06200003BB: 708 Max. :2016-03-16 Max. :2016-03-16 16:39:30.00 2700:2274 ## (Other) :1613 ## sex site_name lon lat temp wind_spd ## Length:16886 Length:16886 Min. :-120.4 Min. :50.67 Min. :-1.763 Min. : 0.00 ## Class :character Class :character 1st Qu.:-120.4 1st Qu.:50.67 1st Qu.: 5.212 1st Qu.:10.35 ## Mode :character Mode :character Median :-120.4 Median :50.67 Median : 8.991 Median :17.72 ## Mean :-120.4 Mean :50.67 Mean : 8.617 Mean :17.15 ## 3rd Qu.:-120.4 3rd Qu.:50.67 3rd Qu.:11.943 3rd Qu.:21.95 ## Max. :-120.4 Max. :50.67 Max. :16.353 Max. :40.93 ## glimpse(finches_weather) ## Rows: 16,886 ## Columns: 12 ## $ animal_id 041868FF93, 041868FF93, 041868FF93, 06200003BB, 06200003BB, 06200003BB, 06200003BB, 06200003BB, 041868BED6, 041868BE… ## $ date 2016-03-01, 2016-03-01, 2016-03-01, 2016-03-01, 2016-03-01, 2016-03-01, 2016-03-01, 2016-03-01, 2016-03-01, 2016-03… ## $ time 2016-03-01 06:57:42, 2016-03-01 06:58:41, 2016-03-01 07:07:21, 2016-03-01 07:32:34, 2016-03-01 07:32:35, 2016-03-01… ## $ logger_id 2300, 2300, 2300, 2400, 2400, 2400, 2400, 2400, 2300, 2300, 2300, 2300, 2300, 2400, 2300, 2400, 2400, 2400, 2400, 24… ## $ species \"Mountain Chickadee\", \"Mountain Chickadee\", \"Mountain Chickadee\", \"House Finch\", \"House Finch\", \"House Finch\", \"Hous… ## $ age \"AHY\", \"AHY\", \"AHY\", \"SY\", \"SY\", \"SY\", \"SY\", \"SY\", \"AHY\", \"AHY\", \"AHY\", \"AHY\", \"AHY\", \"SY\", \"AHY\", \"SY\", \"SY\", \"SY\",… ## $ sex \"U\", \"U\", \"U\", \"M\", \"M\", \"M\", \"M\", \"M\", \"F\", \"F\", \"F\", \"F\", \"F\", \"M\", \"F\", \"M\", \"M\", \"M\", \"M\", \"M\", \"F\", \"M\", \"M\", \"… ## $ site_name \"Kamloops, BC\", \"Kamloops, BC\", \"Kamloops, BC\", \"Kamloops, BC\", \"Kamloops, BC\", \"Kamloops, BC\", \"Kamloops, BC\", \"Kam… ## $ lon -120.3622, -120.3622, -120.3622, -120.3635, -120.3635, -120.3635, -120.3635, -120.3635, -120.3622, -120.3622, -120.3… ## $ lat 50.66967, 50.66967, 50.66967, 50.66938, 50.66938, 50.66938, 50.66938, 50.66938, 50.66967, 50.66967, 50.66967, 50.669… ## $ temp 2.396167, 2.397806, 2.424500, 2.508556, 2.508611, 2.508667, 2.508722, 2.508778, 2.520278, 2.520500, 2.522667, 2.5228… ## $ wind_spd 19.00000, 19.00000, 18.51000, 16.82889, 16.82778, 16.82667, 16.82556, 16.82444, 16.59444, 16.59000, 16.54667, 16.542… finches_weather <- finches_weather %>% group_by(date) %>% summarize(n = length(time), temp = mean(temp), wind_spd = mean(wind_spd)) ggplot(data = finches_weather, aes(x = date, y = n)) + theme_bw() + theme(legend.position = \"top\") + geom_bar(stat = \"identity\") + geom_line(aes(y = temp * 50, colour = \"Temperature\"), size = 2) + geom_line(aes(y = wind_spd * 50, colour = \"Wind Speed\"), size = 2) + scale_colour_discrete(name = \"\") + scale_y_continuous( name = \"Activity Counts\", sec.axis = sec_axis(~. / 50, name = \"Temperature (C) / Wind Speed (km/h)\")) ## Warning: Using `size` aesthetic for lines was deprecated in ggplot2 3.4.0. ## ℹ Please use `linewidth` instead. ## This warning is displayed once every 8 hours. ## Call `lifecycle::last_lifecycle_warnings()` to see where this warning was generated."},{"path":"https://docs.ropensci.org/weathercan/articles/normals.html","id":"downloading-climate-normals","dir":"Articles","previous_headings":"","what":"Downloading Climate Normals","title":"Climate Normals","text":"Climate Normals Averages describe average climate conditions specific particular location. can downloaded Environment Climate Change Canada using normals_dl() function. First ’ll load weathercan package downloading data tidyr package unnesting data (see ). download climate normals, ’ll first find stations ’re interested using stations_search() function. ’ll use normals_years = \"current\" argument filter stations available climate normals 1981-2010 year range. Let’s look climate normals station Winnipeg, MB. Note unlike weather_dl() function, normals_dl() function requires climate_id station_id. default normals downloaded years “1981-2010” (currently 1981-2010 1971-2000 year ranges available) two different types climate normals (weather measurements first/last frost dates), data nested two different datasets. can see Airport (Richardson Int’l) 197 average weather measurements/codes well first/last frost dates. can also see station data quality sufficient meet WMO standards temperature precipitation (.e. measurements code >= ). See ECCC calculations document details. extract either data set can use unnest() function tidyr package. Note extracts measurements three stations (case normals data frame), measurements available station visualize missing data can use gg_miss_var() function naniar package. plot chunk unnamed-chunk-7 Let’s take look frost data.","code":"library(weathercan) library(tidyr) library(dplyr) library(naniar) # For exploring missing values stations_search(\"Winnipeg\", normals_years = \"current\") ## # A tibble: 1 × 13 ## prov station_name station_id climate_id WMO_id TC_id lat lon elev tz normals ## ## 1 MB WINNIPEG RICHA… 3698 5023222 71852 YWG 49.9 -97.2 239. Etc/… TRUE n <- normals_dl(climate_ids = \"5023222\") n ## # A tibble: 1 × 7 ## prov station_name climate_id normals_years meets_wmo normals frost ## ## 1 MB WINNIPEG RICHARDSON INT'L A 5023222 1981-2010 TRUE normals <- unnest(n, normals) frost <- unnest(n, frost) normals ## # A tibble: 13 × 203 ## prov station_name climate_id normals_years meets_wmo period temp_daily_average ## ## 1 MB WINNIPEG RICHARDSON… 5023222 1981-2010 TRUE Jan -16.4 ## 2 MB WINNIPEG RICHARDSON… 5023222 1981-2010 TRUE Feb -13.2 ## 3 MB WINNIPEG RICHARDSON… 5023222 1981-2010 TRUE Mar -5.8 ## 4 MB WINNIPEG RICHARDSON… 5023222 1981-2010 TRUE Apr 4.4 ## 5 MB WINNIPEG RICHARDSON… 5023222 1981-2010 TRUE May 11.6 ## 6 MB WINNIPEG RICHARDSON… 5023222 1981-2010 TRUE Jun 17 ## 7 MB WINNIPEG RICHARDSON… 5023222 1981-2010 TRUE Jul 19.7 ## 8 MB WINNIPEG RICHARDSON… 5023222 1981-2010 TRUE Aug 18.8 ## 9 MB WINNIPEG RICHARDSON… 5023222 1981-2010 TRUE Sep 12.7 ## 10 MB WINNIPEG RICHARDSON… 5023222 1981-2010 TRUE Oct 5 ## 11 MB WINNIPEG RICHARDSON… 5023222 1981-2010 TRUE Nov -4.9 ## 12 MB WINNIPEG RICHARDSON… 5023222 1981-2010 TRUE Dec -13.2 ## 13 MB WINNIPEG RICHARDSON… 5023222 1981-2010 TRUE Year 3 select(normals, -contains(\"_code\")) %>% # Remove '_code' columns gg_miss_var(facet = station_name) suppressWarnings({select(normals, -contains(\"_code\")) %>% # Remove '_code' columns gg_miss_var(facet = station_name)}) if(\"normals\" %in% names(frost)) frost <- select(frost, -normals) # tidyr v1 glimpse(frost) ## Rows: 7 ## Columns: 13 ## $ prov \"MB\", \"MB\", \"MB\", \"MB\", \"MB\", \"MB\", \"MB\" ## $ station_name \"WINNIPEG RICHARDSON INT'L A\", \"WINNIPEG R… ## $ climate_id \"5023222\", \"5023222\", \"5023222\", \"5023222\"… ## $ normals_years \"1981-2010\", \"1981-2010\", \"1981-2010\", \"19… ## $ meets_wmo TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE ## $ frost_code \"A\", \"A\", \"A\", \"A\", \"A\", \"A\", \"A\" ## $ date_first_fall_frost 265, 265, 265, 265, 265, 265, 265 ## $ date_last_spring_frost 143, 143, 143, 143, 143, 143, 143 ## $ length_frost_free 121, 121, 121, 121, 121, 121, 121 ## $ prob \"10%\", \"25%\", \"33%\", \"50%\", \"66%\", \"75%\", … ## $ prob_last_spring_temp_below_0_on_date 158, 152, 148, 144, 140, 137, 129 ## $ prob_first_fall_temp_below_0_on_date 255, 259, 261, 265, 268, 270, 276 ## $ prob_length_frost_free 96, 109, 114, 119, 126, 129, 141"},{"path":"https://docs.ropensci.org/weathercan/articles/normals.html","id":"finding-stations-with-specific-measurements","dir":"Articles","previous_headings":"Downloading Climate Normals","what":"Finding stations with specific measurements","title":"Climate Normals","text":"include data frame, normals_measurements contains list stations corresponding measurements. aware data might date! example, wanted climate_ids stations data soil temperature 1981-2010 normals:","code":"normals_measurements ## # A tibble: 307,891 × 5 ## prov station_name climate_id normals measurement ## ## 1 AB HORBURG 301C3D4 1981-2010 temp_daily_average ## 2 AB HORBURG 301C3D4 1981-2010 temp_daily_average_code ## 3 AB HORBURG 301C3D4 1981-2010 temp_sd ## 4 AB HORBURG 301C3D4 1981-2010 temp_sd_code ## 5 AB HORBURG 301C3D4 1981-2010 temp_daily_max ## 6 AB HORBURG 301C3D4 1981-2010 temp_daily_max_code ## 7 AB HORBURG 301C3D4 1981-2010 temp_daily_min ## 8 AB HORBURG 301C3D4 1981-2010 temp_daily_min_code ## 9 AB HORBURG 301C3D4 1981-2010 temp_extreme_max ## 10 AB HORBURG 301C3D4 1981-2010 temp_extreme_max_code ## # ℹ 307,881 more rows normals_measurements %>% filter(stringr::str_detect(measurement, \"soil\"), normals == \"1981-2010\") %>% pull(climate_id) %>% unique() ## [1] \"3070560\" \"1100119\" \"112G8L1\" \"5021054\" \"5021848\" \"8102234\" \"8403600\" \"8501900\" ## [9] \"8502800\" \"8202800\" \"8205990\" \"2403500\" \"6073960\" \"6104025\" \"6105976\" \"7040440\" ## [17] \"7042388\" \"4012400\" \"4019035\" \"4028060\" \"4043900\" \"4075518\""},{"path":"https://docs.ropensci.org/weathercan/articles/normals.html","id":"understanding-climate-normals","dir":"Articles","previous_headings":"","what":"Understanding Climate Normals","title":"Climate Normals","text":"measurements contained climate normals specific. better understand calculated please explore following resources: weathercan Climate Normals Codes weathercan Climate Normals Glossary","code":""},{"path":[]},{"path":"https://docs.ropensci.org/weathercan/articles/tidyhydat.html","id":"loading-packages","dir":"Articles","previous_headings":"Setup","what":"Loading packages","title":"weathercan and tidyhydat","text":"","code":"library(weathercan) library(tidyhydat) ## Error in library(tidyhydat): there is no package called 'tidyhydat' library(dplyr) library(ggplot2) library(lubridate) library(glue)"},{"path":"https://docs.ropensci.org/weathercan/articles/tidyhydat.html","id":"prep-hydat-data","dir":"Articles","previous_headings":"Setup","what":"Prep HYDAT data","title":"weathercan and tidyhydat","text":"tidyhydat data needs downloaded cached locally order used (Note, can take !)","code":"download_hydat()"},{"path":"https://docs.ropensci.org/weathercan/articles/tidyhydat.html","id":"exploring-climate-and-hydrology","dir":"Articles","previous_headings":"","what":"Exploring climate and hydrology","title":"weathercan and tidyhydat","text":"summer 2020, region (Brandon, Manitoba) experienced incredibly heavy rain fall event. downspout ripped gutter many people area experienced flooding rain poured basements. Let’s take look event captured weather hydrometric stations monitored ECCC. event occurred late June/early July, let’s give two-month range. ’ll find local Brandon weather station daily data range case “” “Airport”, let’s go ! Take quick look: plot chunk unnamed-chunk-7 Yikes! can see downspout came ! Now let’s get HYDAT data compare. First ’ll find local station couple options, whoops, one’s Quebec! Let’s filter Manitoba stations 2020 data hy_stn_data_range() function. Hmm, let’s see kind data available looking included hy_data_types data frame. Great! flow water level data station number “05MH001”, “Assiniboine River Brandon”. Let’s grab flow water level data station.","code":"dates <- c(\"2020-06-01\", \"2020-08-01\") stations_search(\"brandon\", interval = \"day\", starts_latest = 2020, ends_earliest = 2020) ## # A tibble: 2 × 16 ## prov station_name station_id climate_id WMO_id TC_id lat lon elev tz interval start end normals normals_1981_2010 ## ## 1 MB BRANDON A 50821 5010481 71140 YBR 49.9 -100. 409. Etc/GMT+6 day 2012 2023 FALSE FALSE ## 2 MB BRANDON RCS 49909 5010490 71136 PBO 49.9 -100. 409. Etc/GMT+6 day 2012 2023 FALSE FALSE ## # ℹ 1 more variable: normals_1971_2000 rain <- weather_dl(station_ids = 50821, interval = \"day\", start = dates[1], end = dates[2]) ggplot(data = rain, aes(x = date, y = total_rain)) + theme_bw() + geom_bar(stat = \"identity\") + scale_y_continuous(name = \"Total Rain (mm)\", expand = c(0,0)) search_stn_name(\"brandon\") ## Error in search_stn_name(\"brandon\"): could not find function \"search_stn_name\" search_stn_name(\"brandon\") %>% filter(PROV_TERR_STATE_LOC == \"MB\") %>% pull(STATION_NUMBER) %>% hy_stn_data_range() %>% filter(Year_from <= 2020, Year_to >= 2020) ## Error in hy_stn_data_range(.): could not find function \"hy_stn_data_range\" filter(hy_data_types, DATA_TYPE %in% c(\"H\", \"Q\")) ## Error in eval(expr, envir, enclos): object 'hy_data_types' not found flow <- hy_daily_flows(station_number = \"05MH001\", start_date = dates[1], end_date = dates[2]) ## Error in hy_daily_flows(station_number = \"05MH001\", start_date = dates[1], : could not find function \"hy_daily_flows\" level <- hy_daily_levels(station_number = \"05MH001\", start_date = dates[1], end_date = dates[2]) ## Error in hy_daily_levels(station_number = \"05MH001\", start_date = dates[1], : could not find function \"hy_daily_levels\""},{"path":"https://docs.ropensci.org/weathercan/articles/tidyhydat.html","id":"ploting-rain-and-flow","dir":"Articles","previous_headings":"Exploring climate and hydrology","what":"Ploting rain and flow","title":"weathercan and tidyhydat","text":"Interesting, looks like ’s bit lag rain event dramatic increase water flow Assiniboine (unsurprisingly, called “lag peak”). Let’s add bit information lag peak. can expect lag like much flow captured Brandon HYDAT station precipitation upstream catchment area (local contributions), takes time travel.","code":"g <- ggplot() + theme_bw() + theme(axis.title.x = element_blank()) + geom_bar(data = rain, aes(x = date, y = (total_rain * 2)), stat = \"identity\", alpha = 0.7, fill = \"cornflowerblue\") + geom_line(data = flow, aes(x = Date, y = Value)) + scale_y_continuous(name = bquote(Total~Flow~(m^3/s)), expand = c(0, 0), limits = c(0, max(flow$Value * 1.1)), sec.axis = sec_axis(trans = ~ . / 2, name = \"Total Rain (mm)\")) ## Error in eval(expr, envir, enclos): object 'flow' not found g ## Error in eval(expr, envir, enclos): object 'g' not found d <- data.frame(dates = c(rain$date[which.max(rain$total_precip)], flow$Date[which.max(flow$Value)]), y = max(flow$Value) + 5) ## Error in eval(expr, envir, enclos): object 'flow' not found g + geom_path(data = d, aes(x = dates, y = y), arrow = arrow(length = unit(0.25, \"lines\"), ends = \"both\", type = \"closed\")) + annotate(geom = \"text\", x = d$dates[1] + (d$dates[2] - d$dates[1])/2, y = d$y[1] + 10, label = glue(\"{d$dates[2] - d$dates[1]}-day delay\")) ## Error in eval(expr, envir, enclos): object 'g' not found"},{"path":"https://docs.ropensci.org/weathercan/articles/tidyhydat.html","id":"ploting-rain-and-water-level","dir":"Articles","previous_headings":"Exploring climate and hydrology","what":"Ploting rain and water level","title":"weathercan and tidyhydat","text":"looks lag, let’s see ’s .","code":"g <- ggplot() + theme_bw() + theme(axis.title.x = element_blank()) + geom_bar(data = rain, aes(x = date, y = (total_rain/65) + min(level$Value)), stat = \"identity\", alpha = 0.7, fill = \"cornflowerblue\") + geom_line(data = level, aes(x = Date, y = Value)) + scale_y_continuous(name = \"Water Level (m)\", expand = c(0, 0), sec.axis = sec_axis(trans = ~ (. - min(level$Value)) * 65, name = \"Total Rain (mm)\")) + coord_cartesian(ylim = c(min(level$Value), max(level$Value)*1.001)) ## Error in eval(expr, envir, enclos): object 'level' not found g ## Error in eval(expr, envir, enclos): object 'g' not found d <- data.frame(dates = c(rain$date[which.max(rain$total_precip)], level$Date[which.max(level$Value)]), y = max(level$Value)*1.00025) ## Error in eval(expr, envir, enclos): object 'level' not found g + geom_path(data = d, aes(x = dates, y = y), arrow = arrow(length = unit(0.25, \"lines\"), ends = \"both\", type = \"closed\")) + annotate(geom = \"text\", x = d$dates[1] + (d$dates[2] - d$dates[1])/2, y = d$y[1] * 1.0002, label = glue(\"{d$dates[2] - d$dates[1]}-day delay\")) ## Error in eval(expr, envir, enclos): object 'g' not found"},{"path":"https://docs.ropensci.org/weathercan/articles/tidyhydat.html","id":"ploting-flow-and-water-level","dir":"Articles","previous_headings":"Exploring climate and hydrology","what":"Ploting flow and water level","title":"weathercan and tidyhydat","text":"Looks like flow water level match , perhaps take closer look. Almost perfect match water level flow (makes sense). Hopefully short article gives sense might combine different types ECCC data gathered via different R packages comprehensive look world around.","code":"ggplot() + theme_bw() + theme(legend.position = c(0.8, 0.8)) + geom_line(data = flow, aes(x = Date, y = Value, colour = \"Flow\"), size = 2) + geom_line(data = level, size = 1, aes(x = Date, y = (Value - min(Value) + 0.1) * 130, colour = \"Level\")) + scale_y_continuous(bquote(Total~Flow~(m^3/s)), expand = c(0, 0), sec.axis = sec_axis(trans = ~ ./130 + min(level$Value) - 0.1, name = \"Water Level (m)\")) + scale_colour_manual(name = \"Type\", values = c(\"Flow\" = \"cornflowerblue\", \"Level\" = \"grey30\")) ## Warning: A numeric `legend.position` argument in `theme()` was deprecated in ggplot2 3.5.0. ## ℹ Please use the `legend.position.inside` argument of `theme()` instead. ## This warning is displayed once every 8 hours. ## Call `lifecycle::last_lifecycle_warnings()` to see where this warning was generated. ## Error in eval(expr, envir, enclos): object 'flow' not found"},{"path":"https://docs.ropensci.org/weathercan/articles/weathercan.html","id":"stations","dir":"Articles","previous_headings":"","what":"Stations","title":"Getting Started","text":"weathercan includes function stations() returns list stations details (including station_id). can look data frame directly, can use stations_search function: can narrow search specifying time intervals (options “hour”, “day”, “month”): can specify one interval: can also search proximity. results include new column distance specifying distance km coordinates: can also perform complex searches using filter() function dplyr package direction data returned stations(): can update list stations check last updated ","code":"head(stations()) ## # A tibble: 6 × 16 ## prov station_name station_id climate_id WMO_id TC_id lat lon elev tz interval start end normals normals_1981_2010 normals_1971_2000 ## ## 1 AB DAYSLAND 1795 301AR54 NA 52.9 -112. 689. Etc/GMT+7 day 1908 1922 FALSE FALSE FALSE ## 2 AB DAYSLAND 1795 301AR54 NA 52.9 -112. 689. Etc/GMT+7 hour NA NA FALSE FALSE FALSE ## 3 AB DAYSLAND 1795 301AR54 NA 52.9 -112. 689. Etc/GMT+7 month 1908 1922 FALSE FALSE FALSE ## 4 AB EDMONTON CORONATION 1796 301BK03 NA 53.6 -114. 671. Etc/GMT+7 day 1978 1979 FALSE FALSE FALSE ## 5 AB EDMONTON CORONATION 1796 301BK03 NA 53.6 -114. 671. Etc/GMT+7 hour NA NA FALSE FALSE FALSE ## 6 AB EDMONTON CORONATION 1796 301BK03 NA 53.6 -114. 671. Etc/GMT+7 month 1978 1979 FALSE FALSE FALSE glimpse(stations()) ## Rows: 26,382 ## Columns: 16 ## $ prov \"AB\", \"AB\", \"AB\", \"AB\", \"AB\", \"AB\", \"AB\", \"AB\", \"AB\", \"AB\", \"AB\", \"AB\", \"AB\", \"AB\", \"AB\", \"AB\", \"AB\", \"AB\", \"AB\", \"AB\", \"AB\", \"AB\", … ## $ station_name \"DAYSLAND\", \"DAYSLAND\", \"DAYSLAND\", \"EDMONTON CORONATION\", \"EDMONTON CORONATION\", \"EDMONTON CORONATION\", \"FLEET\", \"FLEET\", \"FLEET\", … ## $ station_id 1795, 1795, 1795, 1796, 1796, 1796, 1797, 1797, 1797, 1798, 1798, 1798, 1799, 1799, 1799, 1800, 1800, 1800, 1801, 1801, 1801, 1802, … ## $ climate_id \"301AR54\", \"301AR54\", \"301AR54\", \"301BK03\", \"301BK03\", \"301BK03\", \"301B6L0\", \"301B6L0\", \"301B6L0\", \"301B8LR\", \"301B8LR\", \"301B8LR\", … ## $ WMO_id NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, … ## $ TC_id NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, … ## $ lat 52.87, 52.87, 52.87, 53.57, 53.57, 53.57, 52.15, 52.15, 52.15, 53.20, 53.20, 53.20, 52.40, 52.40, 52.40, 54.08, 54.08, 54.08, 53.52,… ## $ lon -112.28, -112.28, -112.28, -113.57, -113.57, -113.57, -111.73, -111.73, -111.73, -110.15, -110.15, -110.15, -115.20, -115.20, -115.2… ## $ elev 688.8, 688.8, 688.8, 670.6, 670.6, 670.6, 838.2, 838.2, 838.2, 640.0, 640.0, 640.0, 1036.0, 1036.0, 1036.0, 585.2, 585.2, 585.2, 668… ## $ tz \"Etc/GMT+7\", \"Etc/GMT+7\", \"Etc/GMT+7\", \"Etc/GMT+7\", \"Etc/GMT+7\", \"Etc/GMT+7\", \"Etc/GMT+7\", \"Etc/GMT+7\", \"Etc/GMT+7\", \"Etc/GMT+7\", \"E… ## $ interval \"day\", \"hour\", \"month\", \"day\", \"hour\", \"month\", \"day\", \"hour\", \"month\", \"day\", \"hour\", \"month\", \"day\", \"hour\", \"month\", \"day\", \"hour… ## $ start 1908, NA, 1908, 1978, NA, 1978, 1987, NA, 1987, 1987, NA, 1987, 1980, NA, 1980, 1980, NA, 1980, 1986, NA, 1986, 1987, NA, 1987, 1986… ## $ end 1922, NA, 1922, 1979, NA, 1979, 1990, NA, 1990, 1998, NA, 1998, 2009, NA, 2007, 1981, NA, 1981, 2019, NA, 2007, 1991, NA, 1991, 1995… ## $ normals FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, TRUE, TRUE, TRUE, FALSE, FALSE, FALSE, TRUE, TRU… ## $ normals_1981_2010 FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, TRUE, TRUE, TRUE, FALSE, FALSE, FALSE, TRUE, TRU… ## $ normals_1971_2000 FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE,… stations_search(\"Kamloops\") ## # A tibble: 40 × 16 ## prov station_name station_id climate_id WMO_id TC_id lat lon elev tz interval start end normals normals_1981_2010 normals_1971_2000 ## ## 1 BC KAMLOOPS 1274 1163779 NA 50.7 -120. 379. Etc/GMT+8 day 1878 1982 FALSE FALSE FALSE ## 2 BC KAMLOOPS 1274 1163779 NA 50.7 -120. 379. Etc/GMT+8 month 1878 1982 FALSE FALSE FALSE ## 3 BC KAMLOOPS A 1275 1163780 71887 YKA 50.7 -120. 345. Etc/GMT+8 day 1951 2013 TRUE TRUE TRUE ## 4 BC KAMLOOPS A 1275 1163780 71887 YKA 50.7 -120. 345. Etc/GMT+8 hour 1953 2013 TRUE TRUE TRUE ## 5 BC KAMLOOPS A 1275 1163780 71887 YKA 50.7 -120. 345. Etc/GMT+8 month 1951 2013 TRUE TRUE TRUE ## 6 BC KAMLOOPS A 51423 1163781 71887 YKA 50.7 -120. 345. Etc/GMT+8 day 2013 2023 FALSE FALSE FALSE ## 7 BC KAMLOOPS A 51423 1163781 71887 YKA 50.7 -120. 345. Etc/GMT+8 hour 2013 2023 FALSE FALSE FALSE ## 8 BC KAMLOOPS AFTON MINES 1276 1163790 NA 50.7 -120. 701 Etc/GMT+8 day 1977 1993 FALSE FALSE TRUE ## 9 BC KAMLOOPS AFTON MINES 1276 1163790 NA 50.7 -120. 701 Etc/GMT+8 month 1977 1993 FALSE FALSE TRUE ## 10 BC KAMLOOPS AUT 42203 1163842 71741 ZKA 50.7 -120. 345 Etc/GMT+8 day 2006 2023 FALSE FALSE FALSE ## # ℹ 30 more rows stations_search(\"Kamloops\", interval = \"hour\") ## # A tibble: 3 × 16 ## prov station_name station_id climate_id WMO_id TC_id lat lon elev tz interval start end normals normals_1981_2010 normals_1971_2000 ## ## 1 BC KAMLOOPS A 1275 1163780 71887 YKA 50.7 -120. 345. Etc/GMT+8 hour 1953 2013 TRUE TRUE TRUE ## 2 BC KAMLOOPS A 51423 1163781 71887 YKA 50.7 -120. 345. Etc/GMT+8 hour 2013 2023 FALSE FALSE FALSE ## 3 BC KAMLOOPS AUT 42203 1163842 71741 ZKA 50.7 -120. 345 Etc/GMT+8 hour 2006 2023 FALSE FALSE FALSE stations_search(\"Kamloops\", interval = c(\"hour\", \"month\")) ## # A tibble: 21 × 16 ## prov station_name station_id climate_id WMO_id TC_id lat lon elev tz interval start end normals normals_1981_2010 normals_1971_2000 ##