{"id":879,"name":"PRISM","description":"Download data from the Oregon PRISM climate data project.","url":"https://github.com/ropensci/prism","last_synced_at":"2026-04-29T13:04:59.113Z","repository":{"id":15358177,"uuid":"18089079","full_name":"ropensci/prism","owner":"ropensci","description":"Download data from the Oregon PRISM climate data project http://www.prism.oregonstate.edu/","archived":false,"fork":false,"pushed_at":"2025-12-03T18:48:07.000Z","size":85316,"stargazers_count":61,"open_issues_count":17,"forks_count":26,"subscribers_count":6,"default_branch":"master","last_synced_at":"2026-01-14T16:21:40.239Z","etag":null,"topics":["r","r-package","rstats"],"latest_commit_sha":null,"homepage":"https://docs.ropensci.org/prism","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"h4cc/awesome-elixir","license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ropensci.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","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","zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2014-03-25T04:49:41.000Z","updated_at":"2025-11-18T22:18:35.000Z","dependencies_parsed_at":"2024-04-14T20:45:36.191Z","dependency_job_id":"34c5fc14-fdc1-432b-acd8-fecb2f182545","html_url":"https://github.com/ropensci/prism","commit_stats":{"total_commits":363,"total_committers":15,"mean_commits":24.2,"dds":"0.36363636363636365","last_synced_commit":"ee4f42bf1f7bff49c1c124f202db22bc89858dcf"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/ropensci/prism","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Fprism","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Fprism/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Fprism/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Fprism/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ropensci","download_url":"https://codeload.github.com/ropensci/prism/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Fprism/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32323777,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","name":"rOpenSci","uuid":"1200269","kind":"organization","description":"","email":"info@ropensci.org","website":"https://ropensci.org/","location":"Berkeley, CA","twitter":"rOpenSci","company":null,"icon_url":"https://avatars.githubusercontent.com/u/1200269?v=4","repositories_count":307,"last_synced_at":"2023-03-10T20:30:59.242Z","metadata":{"has_sponsors_listing":false},"html_url":"https://github.com/ropensci","funding_links":[],"total_stars":null,"followers":null,"following":null,"created_at":"2022-11-02T19:23:08.224Z","updated_at":"2023-03-10T20:30:59.305Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ropensci","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ropensci/repositories"},"packages":[{"id":11642210,"name":"github.com/ropensci/prism","ecosystem":"go","description":null,"homepage":null,"licenses":"other","normalized_licenses":["GPL-1.0+"],"repository_url":"https://github.com/ropensci/prism","keywords_array":[],"namespace":null,"versions_count":5,"first_release_published_at":"2018-12-10T17:49:53.000Z","latest_release_published_at":"2025-03-24T18:13:16.000Z","latest_release_number":"v0.2.3","last_synced_at":"2025-10-29T20:14:28.554Z","created_at":"2025-05-15T08:16:09.646Z","updated_at":"2025-10-29T20:14:28.554Z","registry_url":"https://pkg.go.dev/github.com/ropensci/prism","install_command":"go get github.com/ropensci/prism","documentation_url":"https://pkg.go.dev/github.com/ropensci/prism#section-documentation","metadata":{},"repo_metadata":{"id":15358177,"uuid":"18089079","full_name":"ropensci/prism","owner":"ropensci","description":"Download data from the Oregon PRISM climate data project http://www.prism.oregonstate.edu/","archived":false,"fork":false,"pushed_at":"2025-03-26T15:01:14.000Z","size":81556,"stargazers_count":61,"open_issues_count":17,"forks_count":26,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-09-05T14:03:52.518Z","etag":null,"topics":["r","r-package","rstats"],"latest_commit_sha":null,"homepage":"https://docs.ropensci.org/prism","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"h4cc/awesome-elixir","license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ropensci.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","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","zenodo":null}},"created_at":"2014-03-25T04:49:41.000Z","updated_at":"2025-08-31T19:35:45.000Z","dependencies_parsed_at":"2024-04-14T20:45:36.191Z","dependency_job_id":"34c5fc14-fdc1-432b-acd8-fecb2f182545","html_url":"https://github.com/ropensci/prism","commit_stats":{"total_commits":363,"total_committers":15,"mean_commits":24.2,"dds":"0.36363636363636365","last_synced_commit":"ee4f42bf1f7bff49c1c124f202db22bc89858dcf"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/ropensci/prism","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Fprism","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Fprism/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Fprism/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Fprism/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ropensci","download_url":"https://codeload.github.com/ropensci/prism/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Fprism/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273826085,"owners_count":25175232,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-05T02:00:09.113Z","response_time":402,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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_record":{"login":"ropensci","name":"rOpenSci","uuid":"1200269","kind":"organization","description":"","email":"info@ropensci.org","website":"https://ropensci.org/","location":"Berkeley, CA","twitter":"rOpenSci","company":null,"icon_url":"https://avatars.githubusercontent.com/u/1200269?v=4","repositories_count":307,"last_synced_at":"2023-03-10T20:30:59.242Z","metadata":{"has_sponsors_listing":false},"html_url":"https://github.com/ropensci","funding_links":[],"total_stars":null,"followers":null,"following":null,"created_at":"2022-11-02T19:23:08.224Z","updated_at":"2023-03-10T20:30:59.305Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ropensci","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ropensci/repositories"},"tags":[{"name":"v0.2.3","sha":"24750b99cca2aab3caad83b1bfdc7251007fb086","kind":"commit","published_at":"2025-03-24T18:13:16.000Z","download_url":"https://codeload.github.com/ropensci/prism/tar.gz/v0.2.3","html_url":"https://github.com/ropensci/prism/releases/tag/v0.2.3","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/ropensci/prism@v0.2.3","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Fprism/tags/v0.2.3","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Fprism/tags/v0.2.3/manifests"},{"name":"v0.2.2","sha":"fa23db2e4f5a79c14cbd1163554ec4a2d89eddcd","kind":"commit","published_at":"2025-03-18T19:39:07.000Z","download_url":"https://codeload.github.com/ropensci/prism/tar.gz/v0.2.2","html_url":"https://github.com/ropensci/prism/releases/tag/v0.2.2","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/ropensci/prism@v0.2.2","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Fprism/tags/v0.2.2","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Fprism/tags/v0.2.2/manifests"},{"name":"v0.2.1","sha":"e2ff46ccbceabdfd60e60edf8066364c2132fd28","kind":"commit","published_at":"2023-10-18T02:48:01.000Z","download_url":"https://codeload.github.com/ropensci/prism/tar.gz/v0.2.1","html_url":"https://github.com/ropensci/prism/releases/tag/v0.2.1","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/ropensci/prism@v0.2.1","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Fprism/tags/v0.2.1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Fprism/tags/v0.2.1/manifests"},{"name":"v0.2.0","sha":"37bfe155cb3ecef77dae33a66c19970a76a0b454","kind":"commit","published_at":"2020-12-10T17:15:54.000Z","download_url":"https://codeload.github.com/ropensci/prism/tar.gz/v0.2.0","html_url":"https://github.com/ropensci/prism/releases/tag/v0.2.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/ropensci/prism@v0.2.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Fprism/tags/v0.2.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Fprism/tags/v0.2.0/manifests"},{"name":"v0.1.0","sha":"2d45684b0c9d32c6a234f9a1dd70da69365305f1","kind":"commit","published_at":"2018-12-10T17:49:53.000Z","download_url":"https://codeload.github.com/ropensci/prism/tar.gz/v0.1.0","html_url":"https://github.com/ropensci/prism/releases/tag/v0.1.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/ropensci/prism@v0.1.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Fprism/tags/v0.1.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Fprism/tags/v0.1.0/manifests"}]},"repo_metadata_updated_at":"2025-10-05T05:56:55.367Z","dependent_packages_count":0,"downloads":null,"downloads_period":null,"dependent_repos_count":0,"rankings":{"downloads":null,"dependent_repos_count":5.865733838392594,"dependent_packages_count":5.496961843177366,"stargazers_count":null,"forks_count":null,"docker_downloads_count":null,"average":5.68134784078498},"purl":"pkg:golang/github.com/ropensci/prism","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/go/github.com/ropensci/prism","docker_dependents_count":null,"docker_downloads_count":null,"usage_url":"https://repos.ecosyste.ms/usage/go/github.com/ropensci/prism","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/go/github.com/ropensci/prism/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":{"last_synced_at":"2025-08-31T19:37:08.406Z","issues_count":105,"pull_requests_count":34,"avg_time_to_close_issue":11504681.133333333,"avg_time_to_close_pull_request":5661077.6875,"issues_closed_count":90,"pull_requests_closed_count":32,"pull_request_authors_count":15,"issue_authors_count":27,"avg_comments_per_issue":1.7333333333333334,"avg_comments_per_pull_request":0.4117647058823529,"merged_pull_requests_count":29,"bot_issues_count":0,"bot_pull_requests_count":0,"past_year_issues_count":7,"past_year_pull_requests_count":5,"past_year_avg_time_to_close_issue":105518.33333333333,"past_year_avg_time_to_close_pull_request":13947666.0,"past_year_issues_closed_count":3,"past_year_pull_requests_closed_count":4,"past_year_pull_request_authors_count":3,"past_year_issue_authors_count":4,"past_year_avg_comments_per_issue":0.14285714285714285,"past_year_avg_comments_per_pull_request":0.4,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":4,"issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Fprism/issues","maintainers":[{"login":"rabutler-usbr","count":32,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/rabutler-usbr"},{"login":"ethanwhite","count":1,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/ethanwhite"},{"login":"maelle","count":1,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/maelle"},{"login":"mpadge","count":1,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/mpadge"}],"active_maintainers":[{"login":"rabutler-usbr","count":4,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/rabutler-usbr"}]},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fropensci%2Fprism/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fropensci%2Fprism/version_numbers","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fropensci%2Fprism/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fropensci%2Fprism/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fropensci%2Fprism/codemeta","maintainers":[],"registry":{"name":"proxy.golang.org","url":"https://proxy.golang.org","ecosystem":"go","default":true,"packages_count":1982391,"maintainers_count":0,"namespaces_count":748632,"keywords_count":111330,"github":"golang","metadata":{"funded_packages_count":52718},"icon_url":"https://github.com/golang.png","created_at":"2022-04-04T15:19:22.939Z","updated_at":"2025-10-30T05:50:02.839Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages","maintainers_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/maintainers","namespaces_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/namespaces"}},{"id":433599,"name":"prism","ecosystem":"cran","description":"Access Data from the Oregon State Prism Climate Project","homepage":"https://docs.ropensci.org/prism/","licenses":"MIT + file LICENSE","normalized_licenses":["MIT"],"repository_url":"https://github.com/ropensci/prism","keywords_array":[],"namespace":null,"versions_count":6,"first_release_published_at":"2015-11-16T08:20:00.000Z","latest_release_published_at":"2025-03-25T00:00:00.000Z","latest_release_number":"0.2.3","last_synced_at":"2025-10-29T20:14:28.732Z","created_at":"2022-04-06T22:25:35.570Z","updated_at":"2025-10-29T20:14:28.732Z","registry_url":"https://cran.r-project.org/package=prism","install_command":null,"documentation_url":"http://cran.r-project.org/web/packages/prism/prism.pdf","metadata":{},"repo_metadata":{"id":15358177,"uuid":"18089079","full_name":"ropensci/prism","owner":"ropensci","description":"Download data from the Oregon PRISM climate data project http://www.prism.oregonstate.edu/","archived":false,"fork":false,"pushed_at":"2024-04-12T01:05:32.000Z","size":79688,"stargazers_count":56,"open_issues_count":14,"forks_count":22,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-06-11T16:59:49.390Z","etag":null,"topics":["r","r-package","rstats"],"latest_commit_sha":null,"homepage":"https://docs.ropensci.org/prism","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"h4cc/awesome-elixir","license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ropensci.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","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}},"created_at":"2014-03-25T04:49:41.000Z","updated_at":"2024-01-08T22:14:04.000Z","dependencies_parsed_at":"2024-04-14T20:45:36.191Z","dependency_job_id":"34c5fc14-fdc1-432b-acd8-fecb2f182545","html_url":"https://github.com/ropensci/prism","commit_stats":{"total_commits":363,"total_committers":15,"mean_commits":24.2,"dds":"0.36363636363636365","last_synced_commit":"ee4f42bf1f7bff49c1c124f202db22bc89858dcf"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Fprism","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Fprism/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Fprism/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Fprism/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ropensci","download_url":"https://codeload.github.com/ropensci/prism/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":211242642,"owners_count":15268534,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"},"owner_record":{"login":"ropensci","name":"rOpenSci","uuid":"1200269","kind":"organization","description":"","email":"info@ropensci.org","website":"https://ropensci.org/","location":"Berkeley, CA","twitter":"rOpenSci","company":null,"icon_url":"https://avatars.githubusercontent.com/u/1200269?v=4","repositories_count":307,"last_synced_at":"2023-03-10T20:30:59.242Z","metadata":{"has_sponsors_listing":false},"html_url":"https://github.com/ropensci","funding_links":[],"total_stars":null,"followers":null,"following":null,"created_at":"2022-11-02T19:23:08.224Z","updated_at":"2023-03-10T20:30:59.305Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ropensci","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ropensci/repositories"},"tags":[{"name":"v0.2.1","sha":"e2ff46ccbceabdfd60e60edf8066364c2132fd28","kind":"commit","published_at":"2023-10-18T02:48:01.000Z","download_url":"https://codeload.github.com/ropensci/prism/tar.gz/v0.2.1","html_url":"https://github.com/ropensci/prism/releases/tag/v0.2.1","dependencies_parsed_at":null,"dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Fprism/tags/v0.2.1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Fprism/tags/v0.2.1/manifests"},{"name":"v0.2.0","sha":"37bfe155cb3ecef77dae33a66c19970a76a0b454","kind":"commit","published_at":"2020-12-10T17:15:54.000Z","download_url":"https://codeload.github.com/ropensci/prism/tar.gz/v0.2.0","html_url":"https://github.com/ropensci/prism/releases/tag/v0.2.0","dependencies_parsed_at":null,"dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Fprism/tags/v0.2.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Fprism/tags/v0.2.0/manifests"},{"name":"v0.1.0","sha":"2d45684b0c9d32c6a234f9a1dd70da69365305f1","kind":"commit","published_at":"2018-12-10T17:49:53.000Z","download_url":"https://codeload.github.com/ropensci/prism/tar.gz/v0.1.0","html_url":"https://github.com/ropensci/prism/releases/tag/v0.1.0","dependencies_parsed_at":null,"dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Fprism/tags/v0.1.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Fprism/tags/v0.1.0/manifests"}]},"repo_metadata_updated_at":"2024-09-07T20:56:51.100Z","dependent_packages_count":0,"downloads":2010,"downloads_period":"last-month","dependent_repos_count":2,"rankings":{"downloads":26.782081996112645,"dependent_repos_count":19.608552185508294,"dependent_packages_count":27.984450571803098,"stargazers_count":6.292094200605705,"forks_count":3.6481171737263236,"docker_downloads_count":null,"average":16.863059225551215},"purl":"pkg:cran/prism","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/cran/prism","docker_dependents_count":1,"docker_downloads_count":88618,"usage_url":"https://repos.ecosyste.ms/usage/cran/prism","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/cran/prism/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":{"last_synced_at":"2024-09-07T20:02:10.975Z","issues_count":98,"pull_requests_count":30,"avg_time_to_close_issue":11300110.835294118,"avg_time_to_close_pull_request":4477279.357142857,"issues_closed_count":85,"pull_requests_closed_count":28,"pull_request_authors_count":13,"issue_authors_count":24,"avg_comments_per_issue":1.7346938775510203,"avg_comments_per_pull_request":0.4,"merged_pull_requests_count":25,"bot_issues_count":0,"bot_pull_requests_count":0,"past_year_issues_count":11,"past_year_pull_requests_count":4,"past_year_avg_time_to_close_issue":167597.25,"past_year_avg_time_to_close_pull_request":1903.0,"past_year_issues_closed_count":4,"past_year_pull_requests_closed_count":2,"past_year_pull_request_authors_count":3,"past_year_issue_authors_count":5,"past_year_avg_comments_per_issue":0.9090909090909091,"past_year_avg_comments_per_pull_request":0.0,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":2,"issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Fprism/issues","maintainers":[{"login":"rabutler-usbr","count":29,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/rabutler-usbr"},{"login":"ethanwhite","count":1,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/ethanwhite"},{"login":"maelle","count":1,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/maelle"},{"login":"mpadge","count":1,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/mpadge"}],"active_maintainers":[{"login":"rabutler-usbr","count":7,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/rabutler-usbr"}]},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/cran.r-project.org/packages/prism/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/cran.r-project.org/packages/prism/version_numbers","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/cran.r-project.org/packages/prism/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/cran.r-project.org/packages/prism/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/cran.r-project.org/packages/prism/codemeta","maintainers":[{"uuid":"rabutler@usbr.gov","login":null,"name":"Alan Butler","email":"rabutler@usbr.gov","url":null,"packages_count":2,"html_url":null,"role":null,"created_at":"2022-11-14T17:41:03.808Z","updated_at":"2022-11-14T17:41:03.808Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/cran.r-project.org/maintainers/rabutler@usbr.gov/packages"}],"registry":{"name":"cran.r-project.org","url":"https://cran.r-project.org","ecosystem":"cran","default":true,"packages_count":26566,"maintainers_count":14569,"namespaces_count":0,"keywords_count":8467,"github":"r-project-org","metadata":{"funded_packages_count":535},"icon_url":"https://github.com/r-project-org.png","created_at":"2022-04-06T16:32:25.637Z","updated_at":"2025-10-29T08:04:09.417Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/cran.r-project.org/packages","maintainers_url":"https://packages.ecosyste.ms/api/v1/registries/cran.r-project.org/maintainers","namespaces_url":"https://packages.ecosyste.ms/api/v1/registries/cran.r-project.org/namespaces"}}],"commits":{"id":1254455,"full_name":"ropensci/prism","default_branch":"master","total_commits":459,"total_committers":18,"total_bot_commits":0,"total_bot_committers":0,"mean_commits":25.5,"dds":0.4248366013071896,"past_year_total_commits":93,"past_year_total_committers":2,"past_year_total_bot_commits":0,"past_year_total_bot_committers":0,"past_year_mean_commits":46.5,"past_year_dds":0.3548387096774194,"last_synced_at":"2025-10-24T11:56:40.220Z","last_synced_commit":"fb5810ba7401d2c754e519c4a17c59837ac424a9","created_at":"2023-03-27T11:47:53.750Z","updated_at":"2025-10-24T11:55:07.714Z","committers":[{"name":"Alan Butler","email":"rabutler@usbr.gov","login":"rabutler-usbr","count":264},{"name":"Ted Hart","email":"edmund.m.hart@gmail.com","login":"emhart","count":67},{"name":"rl627","email":"45013044+ran-codes","login":"ran-codes","count":60},{"name":"Kendon","email":"kmb56@berkeley.edu","login":null,"count":31},{"name":"Jordan home","email":"jread@usgs.gov","login":null,"count":11},{"name":"Kendon Bell","email":"kendonB","login":"kendonB","count":5},{"name":"jsta","email":"stachel2@msu.edu","login":"jsta","count":4},{"name":"Scott Chamberlain","email":"myrmecocystus@gmail.com","login":"sckott","count":4},{"name":"steven2249","email":"stevenysw@berkeley.edu","login":"stevenysw","count":3},{"name":"Andrew Gene Brown","email":"andrew.g.brown@usda.gov","login":"brownag","count":2},{"name":"Andrew Gillreath-Brown","email":"Archaeo-Programmer","login":"Archaeo-Programmer","count":1},{"name":"Ethan White","email":"ethan@weecology.org","login":"ethanwhite","count":1},{"name":"rOpenSci Bot","email":"myrmecocystus+ropenscibot@gmail.com","login":null,"count":1},{"name":"Alan Butler","email":"rbutler47@gatech.edu","login":null,"count":1},{"name":"Adam Smith","email":"asmith@mobot.org","login":null,"count":1},{"name":"Adam B. Smith","email":"adam@earthskysea.org","login":null,"count":1},{"name":"Shawn","email":"sdtaylor","login":"sdtaylor","count":1},{"name":"mark padgham","email":"mark.padgham@email.com","login":"mpadge","count":1}],"past_year_committers":[{"name":"rl627","email":"45013044+ran-codes","login":"ran-codes","count":60},{"name":"Alan Butler","email":"rabutler@usbr.gov","login":"rabutler-usbr","count":33}],"commits_url":"https://commits.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Fprism/commits","host":{"name":"GitHub","url":"https://github.com","kind":"github","last_synced_at":"2025-10-24T00:00:23.375Z","repositories_count":6087122,"commits_count":922303094,"contributors_count":35997990,"owners_count":1108838,"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/prism","html_url":"https://github.com/ropensci/prism","last_synced_at":"2025-10-25T11:26:09.686Z","status":"active","issues_count":109,"pull_requests_count":35,"avg_time_to_close_issue":11380134.909090908,"avg_time_to_close_pull_request":5317577.1875,"issues_closed_count":88,"pull_requests_closed_count":32,"pull_request_authors_count":15,"issue_authors_count":31,"avg_comments_per_issue":1.6422018348623852,"avg_comments_per_pull_request":0.4,"merged_pull_requests_count":29,"bot_issues_count":0,"bot_pull_requests_count":0,"past_year_issues_count":11,"past_year_pull_requests_count":1,"past_year_avg_time_to_close_issue":105518.33333333333,"past_year_avg_time_to_close_pull_request":4741779.0,"past_year_issues_closed_count":3,"past_year_pull_requests_closed_count":1,"past_year_pull_request_authors_count":1,"past_year_issue_authors_count":7,"past_year_avg_comments_per_issue":0.8181818181818182,"past_year_avg_comments_per_pull_request":1.0,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":1,"created_at":"2023-05-09T10:37:18.441Z","updated_at":"2025-10-25T11:26:09.686Z","repository_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Fprism","issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Fprism/issues","issue_labels_count":{"bug":14,"enhancement":11,"question":1},"pull_request_labels_count":{},"issue_author_associations_count":{"CONTRIBUTOR":50,"COLLABORATOR":30,"NONE":27,"MEMBER":2},"pull_request_author_associations_count":{"CONTRIBUTOR":24,"NONE":6,"COLLABORATOR":3,"MEMBER":2},"issue_authors":{"emhart":31,"rabutler-usbr":30,"kendonB":9,"rabutler":5,"sckott":5,"Aariq":3,"ctloftin":2,"jbreng":1,"kruehling":1,"bglarkin":1,"kimia-karimi":1,"aramcharan":1,"haoranliu666":1,"ylarissa":1,"Leoanish":1,"SaimaNiamat":1,"frank10e":1,"arbgoetz":1,"jessicaguo":1,"hadley":1,"vlahm":1,"mirizarry-ortiz":1,"LouiseJSlater":1,"ykedlaya":1,"ARMurray":1,"michaeltrout":1,"mahdin75":1,"maelle":1,"gabrielmaciell":1,"Patrick-Thomas-Corbett":1,"sheilasaia":1},"pull_request_authors":{"kendonB":7,"rabutler":5,"jsta":4,"rabutler-usbr":3,"emhart":3,"Aariq":2,"brownag":2,"Archaeo-Programmer":2,"ethanwhite":1,"sdtaylor":1,"jordansread":1,"ran-codes":1,"adamlilith":1,"mpadge":1,"stevenysw":1},"host":{"name":"GitHub","url":"https://github.com","kind":"github","last_synced_at":"2025-10-25T00:00:16.593Z","repositories_count":11171675,"issues_count":34743158,"pull_requests_count":112625339,"authors_count":11041342,"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":{"COLLABORATOR":5,"NONE":5,"MEMBER":1},"past_year_pull_request_author_associations_count":{"NONE":1},"past_year_issue_authors":{"rabutler-usbr":5,"arbgoetz":1,"gabrielmaciell":1,"hadley":1,"kimia-karimi":1,"Leoanish":1,"ykedlaya":1},"past_year_pull_request_authors":{"ran-codes":1},"maintainers":[{"login":"rabutler-usbr","count":33,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/rabutler-usbr"},{"login":"ethanwhite","count":1,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/ethanwhite"},{"login":"maelle","count":1,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/maelle"},{"login":"hadley","count":1,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/hadley"},{"login":"mpadge","count":1,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/mpadge"}],"active_maintainers":[{"login":"rabutler-usbr","count":5,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/rabutler-usbr"},{"login":"hadley","count":1,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/hadley"}]},"events":{"total":{"CreateEvent":2,"ReleaseEvent":2,"IssuesEvent":15,"WatchEvent":6,"IssueCommentEvent":22,"PushEvent":22,"PullRequestEvent":4,"ForkEvent":2},"last_year":{"CreateEvent":2,"ReleaseEvent":2,"IssuesEvent":15,"WatchEvent":6,"IssueCommentEvent":22,"PushEvent":22,"PullRequestEvent":4,"ForkEvent":2}},"keywords":["r","r-package","rstats"],"dependencies":[{"ecosystem":"cran","filepath":"DESCRIPTION","sha":null,"kind":"manifest","created_at":"2022-08-25T04:21:28.591Z","updated_at":"2022-08-25T04:21:28.591Z","repository_link":"https://github.com/ropensci/prism/blob/master/DESCRIPTION","dependencies":[{"id":2631315395,"package_name":"ggplot2","ecosystem":"cran","requirements":"*","direct":true,"kind":"imports","optional":false},{"id":2631315396,"package_name":"raster","ecosystem":"cran","requirements":"*","direct":true,"kind":"imports","optional":false},{"id":2631315397,"package_name":"httr","ecosystem":"cran","requirements":"*","direct":true,"kind":"imports","optional":false},{"id":2631315398,"package_name":"dplyr","ecosystem":"cran","requirements":"*","direct":true,"kind":"imports","optional":false},{"id":2631315399,"package_name":"stringr","ecosystem":"cran","requirements":"*","direct":true,"kind":"imports","optional":false},{"id":2631315400,"package_name":"magrittr","ecosystem":"cran","requirements":"*","direct":true,"kind":"imports","optional":false},{"id":2631315401,"package_name":"purrr","ecosystem":"cran","requirements":"*","direct":true,"kind":"imports","optional":false},{"id":2631315402,"package_name":"readr","ecosystem":"cran","requirements":"*","direct":true,"kind":"imports","optional":false},{"id":2631315403,"package_name":"utils","ecosystem":"cran","requirements":"*","direct":true,"kind":"imports","optional":false},{"id":2631315404,"package_name":"covr","ecosystem":"cran","requirements":"*","direct":true,"kind":"suggests","optional":false},{"id":2631315405,"package_name":"knitr","ecosystem":"cran","requirements":"*","direct":true,"kind":"suggests","optional":false},{"id":2631315406,"package_name":"rmarkdown","ecosystem":"cran","requirements":"*","direct":true,"kind":"suggests","optional":false},{"id":2631315407,"package_name":"testthat","ecosystem":"cran","requirements":"\u003e= 2.1.0","direct":true,"kind":"suggests","optional":false}]},{"ecosystem":"actions","filepath":".github/workflows/R-CMD-check.yaml","sha":null,"kind":"manifest","created_at":"2023-11-22T21:47:35.866Z","updated_at":"2023-11-22T21:47:35.866Z","repository_link":"https://github.com/ropensci/prism/blob/master/.github/workflows/R-CMD-check.yaml","dependencies":[{"id":14668338041,"package_name":"actions/checkout","ecosystem":"actions","requirements":"v3","direct":true,"kind":"composite","optional":false},{"id":14668338042,"package_name":"r-lib/actions/setup-pandoc","ecosystem":"actions","requirements":"v2","direct":true,"kind":"composite","optional":false},{"id":14668338043,"package_name":"r-lib/actions/setup-r","ecosystem":"actions","requirements":"v2","direct":true,"kind":"composite","optional":false},{"id":14668338044,"package_name":"r-lib/actions/setup-r-dependencies","ecosystem":"actions","requirements":"v2","direct":true,"kind":"composite","optional":false},{"id":14668338045,"package_name":"r-lib/actions/check-r-package","ecosystem":"actions","requirements":"v2","direct":true,"kind":"composite","optional":false}]}],"score":18.66164321513908,"created_at":"2023-09-11T11:54:36.223Z","updated_at":"2026-04-29T13:04:59.213Z","avatar_url":"https://github.com/ropensci.png","language":"R","category":"Climate Change","sub_category":"Climate Data Access and Visualization","monthly_downloads":2010,"total_dependent_repos":2,"total_dependent_packages":0,"readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, echo = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\"\n)\n\n# knitr hook to truncate long output. See:\n# https://stackoverflow.com/q/23114654/3362993\nhook_output \u003c- knitr::knit_hooks$get(\"output\")\nknitr::knit_hooks$set(output = function(x, options) {\n  if (!is.null(n \u003c- options$out.lines)) {\n    x \u003c- unlist(strsplit(x, \"\\n\"))\n    if (length(x) \u003e n) {\n      # truncate the output\n      x \u003c- c(head(x, n), \"....\\n\")\n    }\n    x \u003c- paste(x, collapse = \"\\n\")\n  }\n  hook_output(x, options)\n})\n```\n\n# `prism`\n\n[![CRAN_Status_Badge](https://www.r-pkg.org/badges/version/prism)](https://cran.r-project.org/package=prism)\n[![R build status](https://github.com/ropensci/prism/workflows/R-CMD-check/badge.svg)](https://github.com/ropensci/prism/actions)\n[![codecov.io](https://codecov.io/github/ropensci/prism/coverage.svg?branch=master)](https://app.codecov.io/github/ropensci/prism?branch=master)\n\n\nThis package allows users to access and visualize data from the [Oregon State PRISM project](https://prism.nacse.org).  Data are all in the form of gridded rasters for the continental US at 4 different temporal scales: daily, monthly, annual, and 30 year normals.  Please see their webpage for a full description of the data products, or [see their overview](https://www.prism.oregonstate.edu/documents/PRISM_datasets.pdf).\n\n## Installation \n\nprism is available on CRAN:\n\n```{r eval=FALSE}\ninstall.packages(\"prism\")\n```\n\nOr the development version can be installed from GitHub with devtools:\n```{r start, eval=FALSE}\n# install.packages(\"devtools\")\nlibrary(devtools)\ninstall_github(\"ropensci/prism\")\n```\n\n## Quickstart\n\nThe overall work flow in the prism package is (links go to details on this page):\n\n1. [Set the download directory](#downloading-data), i.e., the folder on your computer that prism data will be saved to: `prism_set_dl_dir()`. This is now referred to as the \"prism archive\". \n2. [Download prism data to the archive:](#download-30-year-normal-data) `get_prism_*()`. Each folder, or variable, timestep, day/month/year is stored in a single folder in the archive and referred to as prism data (`pd`). \n3. [Interact with the prism archive:](#interact-with-the-archive-and-prism-data) `prism_archive_*()`. Or interact with the prism data: `pd_*()`. \n\nThe remainder of this README provides examples following this work flow.\n\n## prism data and parameters\n\nData are available in 4 different temporal scales as mentioned above. At each temporal scale, there are 11 different parameters/variables available. Keep in mind these are modeled parameters, not measured.  Please see the [full description](https://www.prism.oregonstate.edu/documents/PRISM_datasets.pdf) for how they are calculated.\n\n| Parameter name| Description           |\n|:---------------|:-------------|\n| *tmean*      | Mean temperature |\n| *tmax*      | Maximum temperature      |\n| *tmin* | Minimum temperature      |\n| *tdmean* | Mean dew point temperature |\n| *ppt*  | Total precipitation (rain and snow)|\n| *vpdmin* | Daily minimum vapor pressure deficit |\n| *vpdmax* |Daily maximum vapor pressure deficit |\n| *solclear* | Solar radiation (clear sky) |\n| *solslope* | Solar radiation (sloped) |\n| *soltotal* | Solar radiation (total) |\n| *soltrans* | Cloud transmittance |\n\n### Data availability \n\n**Normals (4km or 800m resolution) based on 1991-2020 average:**\n\n\u003cspan style=\"color:red; font-weight:bold;\"\u003eImportant\u003c/span\u003e .bil files are no longer available in .bil format. The `get_prism_normals()` functions still work and will download the data in GeoTiff format. **But** - the rest of the prism R package has not been updated to work with GeoTiff, so none of the other functions will work with the 30-year normal data, e.g., `prism_archive_subset(temp_period = \"monthly normals\")` will return `character(0)` and plotting functions will not work.\n\n| Variable    | Annual | Monthly | Daily |\n|:------------|:-------|:--------|:-----|\n| *tmean*     |   X    |    X    |   X  |\n| *tmax*      |   X    |    X    |   X  |\n| *tmin*      |   X    |    X    |   X  |\n| *tdmean*    |   X    |    X    |   X  |\n| *ppt*       |   X    |    X    |   X  |\n| *vpdmin*    |   X    |    X    |   X  |\n| *vpdmax*    |   X    |    X    |   X  |\n| *solclear*  |   800m    |    800m    |      |\n| *solslope*  |   800m    |    800m    |      |\n| *soltotal*  |   800m    |    800m    |      |\n| *soltrans*  |   800m    |    800m    |      |\n\n**Daily, monthly, and annual data:**\n\n| Variable    | Annual (1895-present) | Monthly (1895-present) | Daily (1981-present) |\n|:------------|:-------|:--------|:-----|\n| *tmean*     |   X    |    X    |   X  |\n| *tmax*      |   X    |    X    |   X  |\n| *tmin*      |   X    |    X    |   X  |\n| *tdmean*    |   X    |    X    |   X  |\n| *ppt*       |   X    |    X    |   X  |\n| *vpdmin*    |   X    |    X    |   X  |\n| *vpdmax*    |   X    |    X    |   X  |\n| *solclear*  |        |         |      |\n| *solslope*  |        |         |      |\n| *soltotal*  |        |         |      |\n| *soltrans*  |        |         |      |\n\n## Downloading data\n\nBefore downloading any data, set the directory that the prism data will be saved to:\n\n```{r prism setup}\nlibrary(prism)\nprism_set_dl_dir(\"~/prismtmp\")\n```\n\nThis is now referred to as the \"prism archive\". The `prism_archive_*()` functions allow the user to search through the archive. The prism archive contains \"prism data\". The prism data are referred to by their folder names, even though the \"real\" data are the .bil, .txt, and other files that exist in the folder. The prism data (`pd`) can be accessed using the `pd_*()` functions. \n\n### Download 30-year normal data\n\nNormals are based on the latest 30-year period; currently 1991 - 2020. Normals can be downloaded in two resolutions, 4km and 800m, and a resolution must be specified.  They can be downloaded for a given day, month, vector of days/months, or annual averages for all 30 years.\n\n```{r get normals,results=FALSE, eval=FALSE}\n# Download March 14 30-year average precip. Note the year is ignored\nget_prism_normals('ppt', '4km', day = as.Date('2025-03-14'))\n\n# Download the January - June 30-year averages at 4km resolution\nget_prism_normals(type=\"tmean\", resolution = \"4km\", mon = 1:6, keepZip = FALSE)\n\n# Download the 30-year annual average precip and annual average temperature\nget_prism_normals(\"ppt\", \"4km\", annual = TRUE, keepZip = FALSE)\nget_prism_normals(\"tmean\", \"4km\", annual = TRUE, keepZip = FALSE)\n```\n\nIf the archive has not already been set, calling any of the `get_prism_*()` functions will prompt the user to specify the directory. prism data are downloaded as zip files and then unzipped. If the `keepZip` argument is `TRUE` the zip file will remain on your machine, otherwise it will be automatically deleted.\n\n### Download daily, monthly, and annual data\n\nLet us download daily average temperatures from June 1 to June 14, 2013. We can also download January average temperature data from 1982 to 2014. Finally, we will download annual average precipitation for 2000 to 2015. **Note that resolution must now be specified for all data downloads.**\n\n```{r get daily monthly, message=FALSE, results=FALSE, eval=FALSE}\nget_prism_dailys(\n  type = \"tmean\", \n  minDate = \"2013-06-01\", \n  maxDate = \"2013-06-14\", \n  resolution = \"4km\",\n  keepZip = FALSE\n)\nget_prism_monthlys(\n  type = \"tmean\", \n  years = 1982:2014, \n  mon = 1, \n  resolution = \"4km\", \n  keepZip = FALSE\n)\nget_prism_annual(\n  type = \"ppt\", \n  years = 2000:2015, \n  resolution = \"4km\", \n  keepZip = FALSE\n)\n```\n\nNote that for daily data you need to give a well formed date string in the form of \"YYYY-MM-DD\".\n\n## Interact with the archive and prism data\n\nYou can view all the prism data you have downloaded with a simple command: `prism_archive_ls()`.  This function gives a list of folder names, i.e., prism data (`pd`).  All the functions in the prism package work off of one or more of these folder names (`pd`).\n\n```{r listingFiles, out.lines=10}\n## Truncated to keep file list short\nprism_archive_ls()\n```\n\nWhile prism functions use this folder format, other files may need an absolute path (e.g. the `raster` package). The `pd_to_file()` function conveniently returns the absolute path.  Alternatively, you may want to see what the normal name for the product is (not the file name), and we can get that with the `pd_get_name()` function.\n\n```{r moreListing, out.lines=5}\n## Truncated to keep file list short\npd_to_file(prism_archive_ls()[1:10])\n\npd_get_name(prism_archive_ls()[1:10])\n```\n\nFinally, `prism_archive_subset()` is a convenient way to search for specific parameters, time steps, days, months, years, or ranges of days, months, years. **Note that resolution must be specified for all archive subset operations.**\n\n```{r}\n# we know we have downloaded June 2013 daily data, so lets search for those \nprism_archive_subset(\"tmean\", \"daily\", mon = 6, resolution = \"4km\")\n\n# or we can look for days between June 7 and June 10\nprism_archive_subset(\n  \"tmean\", \"daily\", \n  minDate = \"2013-06-07\", \n  maxDate = \"2013-06-10\",\n  resolution = \"4km\"\n)\n```\n\n### Raster plots\n\nYou can easily make a quick plot of your data using the output of `prism_archive_ls()` or `prism_archive_subset()` with `pd_image()`. \n\n```{r quick_plot,fig.height=5,fig.width=7}\n# Plot the precipitation in 2000\nppt2002 \u003c- prism_archive_subset(\n  \"ppt\", \"annual\", year = 2002, resolution = \"4km\"\n)\npd_image(ppt2002)\n```\n\nIt is easy to load the prism data with the raster package. This time we will look at the difference in precipitation between 2011 and 2002. Conveniently, we already downloaded these data. We just need to grab them out of our archive.\n\n```{r raster_math,fig.height=5,fig.width=7}\nlibrary(raster)\n# knowing the name of the files you are after allows you to find them in the \n# list of all files that exist\n# ppt2002 \u003c- \"prism_ppt_us_25m_2002\"\n# ppt2011 \u003c- \"prism_ppt_us_25m_2011\"\n# but we will use prism_archive_subset() to find the files we need\n\nppt2002_name \u003c- prism_archive_subset(\n  \"ppt\", \"annual\", year = 2002, resolution = \"4km\"\n)\nppt2011_name \u003c- prism_archive_subset(\n  \"ppt\", \"annual\", year = 2011, resolution = \"4km\"\n)\n\n# raster needs a full path, not the \"short\" prism data name\nppt2002 \u003c- pd_to_file(ppt2002_name)\nppt2011 \u003c- pd_to_file(ppt2011_name)\n\n## Now we'll load the rasters.\nppt2002_rast \u003c- raster(ppt2002)\nppt2011_rast \u003c- raster(ppt2011)\n\n# Now we can do simple subtraction to get the anomaly by subtracting 2014 \n# from the 30 year normal map\ndiff_calc \u003c- function(x, y) {\n  return(x - y)\n}\n\nanom_rast \u003c- raster::overlay(ppt2002_rast, ppt2011_rast, fun = diff_calc)\n\nplot(anom_rast)\n```\n\nThe plot shows which regions were wetter in 2011 than 2002 (and the reverse). It also shows how easy it is to use the raster library to work with prism data. The package provides a simple framework to work with a large number of rasters that you can easily download and visualize or use with other data sets.\n\n### Single grid cell plot\n\nYou can also visualize a single point across multiple prism data files (slice) using `pd_plot_slice()`. This procedure will take a set of rasters, create a \"`raster::stack`\", extract data at a point, and then create a ggplot2 object.\n\nLet's now make a plot of January temperatures in Boulder between 1982 and 2014. First we'll grab all the data from the US (downloaded in the previous step), and then give our function a point to get data from. The point must be a vector in the form of longitude, latitude. Because `pd_plot_slice()` returns a gg object, it can be combined with other ggplot functions.\n\n```{r plot_Boulder,fig.height=5,fig.width=7, results=FALSE}\nlibrary(ggplot2)\n# data already exist in the prism dl dir\nboulder \u003c- c(-105.2797, 40.0176)\n\n# prism_archive_subset() will return prism data that matches the specified \n# variable, time step, years, months, days, etc.\nto_slice \u003c- prism_archive_subset(\"tmean\", \"monthly\", mon = 1, resolution = \"4km\")\np \u003c- pd_plot_slice(to_slice, boulder)\n\n# add a linear average and title\np + \n  stat_smooth(method=\"lm\", se = FALSE) + \n  theme_bw() + \n  ggtitle(\"Average January temperature in Boulder, CO 1982-2014\")\n```\n\n### leaflet map\n\nFinally, the prism data are in a form that can be used with leaflet maps (with the help of the raster package). The [leaflet package](https://CRAN.R-project.org/package=leaflet) allows you to easily make JavaScript maps using the [leaflet](https://leafletjs.com/) mapping framework using prism data.  These can easily be hosted on websites like [Rpubs](https://rpubs.com/) or your own site.  Here is a simple example of plotting the [30-year normal for annual temperature](https://rpubs.com/DistribEcology/122453). If you run this code you will have an interactive map, instead of just the screen shot shown here. \n\n```{r leaflet,eval=F}\nlibrary(leaflet)\nlibrary(raster)\nlibrary(prism)\n\n# January 2002 average temperature has already been downloaded\nnorm \u003c- prism_archive_subset(\n  \"tmean\", \"monthly\", mon = 1, year = 2002, resolution = \"4km\"\n)\nrast \u003c- raster(pd_to_file(norm))\n\n# Create color palette and plot\npal \u003c- colorNumeric(\n  c(\"#0000FF\", \"#FFFF00\", \"#FF0000\"), \n  values(rast),\n  na.color = \"transparent\"\n)\n\nleaflet() %\u003e% \n  addTiles(\n    urlTemplate = 'http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}'\n  ) %\u003e% \n  addRasterImage(rast, colors = pal, opacity=.65) %\u003e% \n  addLegend(pal = pal, values = values(rast), title = \"Deg C\")\n```\n\n[![leaflet example figure](vignettes/leaflet_example.png)","funding_links":[],"readme_doi_urls":[],"works":{},"citation_counts":{},"total_citations":0,"keywords_from_contributors":["climate","cycle","species-distribution-modeling","routes","ecology","tidyverse","weather","noaa","spocc","usgs"],"project_url":"https://ost.ecosyste.ms/api/v1/projects/879","html_url":"https://ost.ecosyste.ms/projects/879"}