{"id":32204608,"url":"https://github.com/frycast/rcosmo","last_synced_at":"2025-10-22T04:59:33.845Z","repository":{"id":52171482,"uuid":"91947986","full_name":"frycast/rcosmo","owner":"frycast","description":"Handle and Analyse Spherical, HEALPix and Cosmic Microwave Background data on a HEALPix grid.","archived":false,"fork":false,"pushed_at":"2022-10-05T11:59:08.000Z","size":66587,"stargazers_count":18,"open_issues_count":0,"forks_count":5,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-10-22T04:59:19.478Z","etag":null,"topics":["astronomy","cmb","healpix","r","statistics","visualisation"],"latest_commit_sha":null,"homepage":"https://cran.r-project.org/package=rcosmo","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/frycast.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-21T10:05:23.000Z","updated_at":"2025-05-14T06:35:41.000Z","dependencies_parsed_at":"2022-08-21T00:40:23.973Z","dependency_job_id":null,"html_url":"https://github.com/frycast/rcosmo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/frycast/rcosmo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frycast%2Frcosmo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frycast%2Frcosmo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frycast%2Frcosmo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frycast%2Frcosmo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/frycast","download_url":"https://codeload.github.com/frycast/rcosmo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frycast%2Frcosmo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280382997,"owners_count":26321423,"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-10-22T02:00:06.515Z","response_time":63,"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"}},"keywords":["astronomy","cmb","healpix","r","statistics","visualisation"],"created_at":"2025-10-22T04:59:32.855Z","updated_at":"2025-10-22T04:59:33.835Z","avatar_url":"https://github.com/frycast.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rcosmo: Handle and Analyse Spherical, HEALPix and Cosmic Microwave Background data on a HEALPix grid.\r\n\r\n\u003cimg src=\"man/figures/logo.jpg\" align=\"right\" alt=\"\" width=\"120\" /\u003e\r\n\r\n\r\n\u003c!-- Badges Start --\u003e\r\n\u003c!-- [![Travis-CI Build Status](https://travis-ci.org/frycast/rcosmo.svg?branch=master)](https://travis-ci.org/frycast/rcosmo) --\u003e\r\n[![CRAN Versions](http://www.r-pkg.org/badges/version/rcosmo)](https://CRAN.R-project.org/package=rcosmo) \r\n[![CRAN release dates](http://www.r-pkg.org/badges/version-ago/rcosmo)](https://CRAN.R-project.org/package=rcosmo) \r\n[![CRAN downloads](http://cranlogs.r-pkg.org/badges/grand-total/rcosmo)](https://CRAN.R-project.org/package=rcosmo) \r\n[![CRAN downloads](http://cranlogs.r-pkg.org/badges/last-week/rcosmo)](https://CRAN.R-project.org/package=rcosmo) [![Lifecycle Status](https://img.shields.io/badge/lifecycle-maturing-blue.svg)](https://lifecycle.r-lib.org/articles/stages.html)\r\n\u003c!-- Badges End --\u003e\r\n\r\n\r\n\u003c!-- [![Code coverage](https://codecov.io/gh/frycast/rcosmo/branch/master/graph/badge.svg)](https://codecov.io/github/frycast/rcosmo?branch=master) --\u003e\r\n\r\n\r\nUse this R package as an advanced toolkit for performing Cosmic Microwave Background (CMB) data analytics. The CMB is remnant electromagnetic radiation from the epoch of recombination. As an ancient source of data on the early universe, the CMB is helping us unlock the mysteries of the Big Bang and the structure of time and space. With increasingly high resolution satellite data, intensive investigations in the past few years have resulted in many physical and mathematical results to characterize CMB radiation.  \r\n\r\n## Publication\r\n\r\nDaniel Fryer, Ming Li and Andriy Olenko, [rcosmo: R Package for Analysis of Spherical, HEALPix and Cosmological Data](https://rjournal.github.io/archive/2020/RJ-2020-012/index.html), The R Journal (2020) 12:1, pages 206-225.\r\n\r\n## Features\r\n\r\n`rcosmo` addresses various data processing and statistical analysis needs for the present generation of CMB experiments. These needs fall into the following broad categories:\r\n+ Importing and transforming HEALPix data in convenient `CMBDataFrame` class objects,\r\n+ Geometric tools suited to spherical geometry,\r\n+ Statistical tools suited to spherical random fields,\r\n+ Interactive visualisation.\r\n\r\nThe current version of `rcosmo` includes the following functionality:\r\n+\tTidy organisation of CMB data, including HEALPix indices, metadata, CMB intensities and their\r\n  corresponding spherical and/or cartesian coordinates, as well as polarization data,\r\n+\twindow subsetting tools for investigating circular, convex and non-convex polygonal sub-regions on the sphere,\r\n+\tfast empirical covariance and variogram estimation,\r\n+\timplementation and analysis of spherical harmonics, spherical wavelets, etc,\r\n+\tvarious methods for CMB map visualization, such as interactive 3D full sky maps rendered with OpenGL, polygon boundary visualisation, and HEALPix pixel boundary plotting,\r\n+ spherical geometry tools, such as calculation of spherical angles, shortest distance between a point and a region, and shortest distance between two points, etc.\r\n\r\n\r\n## Installation\r\n\r\nFrom CRAN:\r\n\r\n```r\r\n## Uncomment to install\r\n#install.packages('rcosmo')\r\n```\r\n\r\n## Usage\r\n\r\n```r\r\nlibrary(rcosmo)\r\n```\r\n\r\nView the `CMBDataFrame` help file:\r\n\r\n```r\r\n?CMBDataFrame\r\n```\r\n\r\nDownload a CMB map from NASA archives (which may take some time to download).\r\nThen, take an approximately uniform random sample and create an interactive 3D plot:\r\n\r\n```r\r\ndownloadCMBMap()\r\nsky \u003c- CMBDataFrame(\"CMB_map_smica1024.fits\", sample.size = 1e6)\r\nplot(sky)\r\n```\r\n\r\n\r\n![](man/figures/sky.PNG)\r\n\r\n\r\nProduce a summary of the map:\r\n\r\n```r\r\nsummary(sky)\r\n```\r\n\r\nExtract a region of the sky:\r\n\r\n```r\r\nwin \u003c- CMBWindow(theta = c(pi/2,pi/2,pi/3, pi/3), phi = c(0,pi/3,pi/3,0))\r\nsky_win \u003c- window(sky, new.window = win)\r\nplot(sky_win); plot(win)\r\n```\r\n\r\nSummarise the region of the sky:\r\n\r\n```r\r\nsummary(sky_win)\r\n```\r\nMore documentation on the way, for now view examples in the help files. There are many functions, see:\r\n\r\n```r\r\nlsf.str(\"package:rcosmo\")\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrycast%2Frcosmo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrycast%2Frcosmo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrycast%2Frcosmo/lists"}