{"id":18722606,"url":"https://github.com/mdsumner/nchelper","last_synced_at":"2026-02-01T19:34:25.404Z","repository":{"id":72211631,"uuid":"11816225","full_name":"mdsumner/nchelper","owner":"mdsumner","description":"NetCDF variables as R arrays","archived":false,"fork":false,"pushed_at":"2018-02-22T07:33:02.000Z","size":2185,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-17T20:40:22.491Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://mdsumner.github.io/nchelper/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mdsumner.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","contributing":null,"funding":null,"license":null,"code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-08-01T12:26:13.000Z","updated_at":"2025-03-22T08:14:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"4b349ed2-e9d6-4e28-b800-01f48d5cc0d7","html_url":"https://github.com/mdsumner/nchelper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mdsumner/nchelper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdsumner%2Fnchelper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdsumner%2Fnchelper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdsumner%2Fnchelper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdsumner%2Fnchelper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mdsumner","download_url":"https://codeload.github.com/mdsumner/nchelper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdsumner%2Fnchelper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28987279,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T18:17:03.387Z","status":"ssl_error","status_checked_at":"2026-02-01T18:16:57.287Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T13:42:12.182Z","updated_at":"2026-02-01T19:34:25.385Z","avatar_url":"https://github.com/mdsumner.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r setup, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\"\n)\n```\n\n [![lifecycle](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#experimental)\n[![Travis-CI Build Status](http://badges.herokuapp.com/travis/mdsumner/nchelper?branch=master\u0026env=BUILD_NAME=trusty_release\u0026label=linux)](https://travis-ci.org/mdsumner/nchelper)\n[![Build Status](http://badges.herokuapp.com/travis/mdsumner/nchelper?branch=master\u0026env=BUILD_NAME=osx_release\u0026label=osx)](https://travis-ci.org/mdsumner/nchelper) \n[![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/github/mdsumner/nchelper?branch=master\u0026svg=true)](https://ci.appveyor.com/project/mdsumner/nchelper) \n\n\n# nchelper\n\nThe goal of nchelper is to provide NetCDF variables as R arrays. \n\n## Installation\n\nYou can install nchelper from GitHub with:\n\n```{r gh-installation, eval = FALSE}\n# install.packages(\"devtools\")\ndevtools::install_github(\"mdsumner/nchelper\")\n```\n\n## Example\n\nThis is an example that reads an inbuilt data set of sea surface temperature. \n\nFirst, find the file and open the variable \"sst\" as object `a`. \n\n```{r example}\nlibrary(nchelper)\nf \u003c- system.file(\"extdata\", \"avhrr-only-v2.20180126.nc\", package = \"nchelper\")\na \u003c- nchelper(f, \"sst\")\ndim(a)\nnames(a)\n```\n\n(Even though we asked for the variable \"sst\", we could also \nsee other names if there were any available.)\n\nNow use standard indexing idioms to extract data from this 4D array. \n\n```{r four-d}\ngrcol \u003c- grey(seq(0, 1, length.out = 12))\nimage(a[,,,], col = grcol)\nimage(a[400:800, 100:300,,], col = grcol)\nplot(a[,360,,] * 0.01, ylim = c(20, 32), type = \"l\")\n```\n\n Please note that this project is released with a [Contributor Code of Conduct](CODE_OF_CONDUCT.md).\n  By participating in this project you agree to abide by its terms.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdsumner%2Fnchelper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmdsumner%2Fnchelper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdsumner%2Fnchelper/lists"}