{"id":26538855,"url":"https://github.com/danielvartan/orbis","last_synced_at":"2026-01-16T10:04:00.138Z","repository":{"id":283008573,"uuid":"950380213","full_name":"danielvartan/orbis","owner":"danielvartan","description":"🌎 Spatial Data Analysis Tools","archived":false,"fork":false,"pushed_at":"2026-01-12T02:30:00.000Z","size":28252,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-12T05:57:54.199Z","etag":null,"topics":["api-clients","brazil","r-packages","rstats","sidra","spatial-analysis","spatial-data","terra","worldclim"],"latest_commit_sha":null,"homepage":"https://danielvartan.github.io/orbis/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danielvartan.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":"CITATION.cff","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},"funding":{"github":["danielvartan"]}},"created_at":"2025-03-18T04:25:09.000Z","updated_at":"2026-01-12T02:24:52.000Z","dependencies_parsed_at":"2025-09-24T07:06:07.688Z","dependency_job_id":"4a81a1bd-2840-486c-9b68-698addd75662","html_url":"https://github.com/danielvartan/orbis","commit_stats":null,"previous_names":["danielvartan/orbis"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/danielvartan/orbis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielvartan%2Forbis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielvartan%2Forbis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielvartan%2Forbis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielvartan%2Forbis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danielvartan","download_url":"https://codeload.github.com/danielvartan/orbis/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielvartan%2Forbis/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28478049,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T06:30:42.265Z","status":"ssl_error","status_checked_at":"2026-01-16T06:30:16.248Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-clients","brazil","r-packages","rstats","sidra","spatial-analysis","spatial-data","terra","worldclim"],"created_at":"2025-03-21T23:30:18.527Z","updated_at":"2026-01-16T10:04:00.127Z","avatar_url":"https://github.com/danielvartan.png","language":"R","funding_links":["https://github.com/sponsors/danielvartan"],"categories":[],"sub_categories":[],"readme":"# orbis \u003ca href = \"https://danielvartan.github.io/orbis/\"\u003e\u003cimg src = \"man/figures/logo.png\" align=\"right\" width=\"120\" /\u003e\u003c/a\u003e\n\n\u003c!-- quarto render --\u003e\n\n\u003c!-- badges: start --\u003e\n[![Project Status: Active - The project has reached a stable, usable\nstate and is being actively\ndeveloped.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)\n[![DOI\nbadge](https://img.shields.io/badge/doi-10.5281/zenodo.18240800-1284C5.svg)](https://doi.org/10.5281/zenodo.18240800)\n[![R build\nstatus](https://github.com/danielvartan/orbis/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/danielvartan/orbis/actions)\n[![](https://codecov.io/gh/danielvartan/orbis/branch/main/graph/badge.svg)](https://app.codecov.io/gh/danielvartan/orbis)\n[![FAIR checklist\nbadge](https://img.shields.io/badge/fairsoftwarechecklist.net--00a7d9)](https://fairsoftwarechecklist.net/v0.2/?f=21\u0026a=30112\u0026i=32322\u0026r=123)\n[![fair-software.eu](https://img.shields.io/badge/fair--software.eu-%E2%97%8F%20%E2%97%8F%20%E2%97%8F%20%E2%97%8F%20%E2%97%8B-green)](https://fair-software.eu)\n[![GNU GPLv3\nLicense](https://img.shields.io/badge/license-GPLv3-bd0000.svg)](https://www.gnu.org/licenses/gpl-3.0)\n[![Contributor Covenant 3.0 Code of\nConduct](https://img.shields.io/badge/Contributor%20Covenant-3.0-4baaaa.svg)](https://www.contributor-covenant.org/version/3/0/code_of_conduct/)\n\u003c!-- badges: end --\u003e\n\n## Overview\n\n`orbis` is an [R](https://www.r-project.org/) package with tools to\nsimplify spatial data analysis. It provides an intuitive interface that\nfollows [tidyverse\nprinciples](https://tidyverse.tidyverse.org/articles/manifesto.html) and\nintegrates seamlessly with the [tidyverse\necosystem](https://tidyverse.org/).\n\n\u003e If you find this project useful, please consider giving it a star!  \n\u003e [![GitHub Repository\n\u003e Stars](https://img.shields.io/github/stars/danielvartan/orbis)](https://github.com/danielvartan/orbis/)\n\n\u003e The continuous development of `orbis` depends on community support. If\n\u003e you find this project useful, and can afford to do so, please consider\n\u003e becoming a sponsor.  \n\u003e [![](https://img.shields.io/static/v1?label=Sponsor\u0026message=%E2%9D%A4\u0026logo=GitHub\u0026color=%23fe8e86)](https://github.com/sponsors/danielvartan)\n\n## Installation\n\nYou can install `orbis` using the\n[`remotes`](https://github.com/r-lib/remotes) package:\n\n``` r\n# install.packages(\"remotes\")\nremotes::install_github(\"danielvartan/orbis\")\n```\n\n## Usage\n\n`orbis` is equipped with several functions to help with your analysis,\nsuch as:\n\n- [`shift_and_rotate()`](https://danielvartan.github.io/orbis/reference/shift_and_rotate.html):\n  Shift and rotate a `SpatVector` or a `SpatRaster`\n- [`remove_unique_outliers()`](https://danielvartan.github.io/orbis/reference/remove_unique_outliers.html):\n  Remove unique outliers from raster files\n- [`sidra_download_by_year()`](https://danielvartan.github.io/orbis/reference/sidra_download_by_year.html):\n  Download and aggregate data by year from\n  [SIDRA](https://sidra.ibge.gov.br/) API (to avoid overloading)\n- [`worldclim_download()`](https://danielvartan.github.io/orbis/reference/worldclim_download.html):\n  Download [WorldClim](https://worldclim.org/) data\n- [`worldclim_to_ascii()`](https://danielvartan.github.io/orbis/reference/worldclim_to_ascii.html):\n  Convert [WorldClim](https://worldclim.org/)\n  [GeoTIFF](https://www.ogc.org/standards/geotiff/) files to [Esri\n  ASCII](https://desktop.arcgis.com/en/arcmap/latest/manage-data/raster-and-images/esri-ascii-raster-format.htm)\n  raster format\n\nHere are some examples of usage.\n\n### `shift_and_rotate()`\n\n[`shift_and_rotate()`](https://danielvartan.github.io/orbis/reference/shift_and_rotate.html)\nwas developed to simplify shifting and rotating spatial data, especially\nfor rasters and vectors that cross the [International Date\nLine](https://en.wikipedia.org/wiki/International_Date_Line) (e.g. the\nRussian territory).\n\n#### Set the Environment\n\n``` r\nlibrary(orbis)\n\nlibrary(dplyr)\nlibrary(geodata)\nlibrary(ggplot2)\nlibrary(terra)\nlibrary(tidyterra)\n```\n\n#### Define a World Vector\n\n``` r\nworld_vector \u003c- world(path = tempdir())\n```\n\n#### Visualize the World Vector\n\n``` r\nworld_vector |\u003e\n  ggplot() +\n  geom_spatvector(fill = \"#3243A6\", color = \"white\")\n```\n\n![](man/figures/readme-shift-and-rotate-1-1.png)\n\n#### Define a Country Vector\n\n``` r\nrussia_vector \u003c- gadm(country = \"rus\", level = 0, path = tempdir())\n```\n\n#### Visualize the Country Vector\n\n``` r\nrussia_vector |\u003e\n  ggplot() +\n  geom_spatvector(fill = \"#3243A6\", color = \"white\")\n```\n\n![](man/figures/readme-shift-and-rotate-2-1.png)\n\n#### Shift and Rotate the Country Vector 45 Degrees to the Left\n\n``` r\nrussia_vector |\u003e\n  shift_and_rotate(-45) |\u003e\n  ggplot() +\n  geom_spatvector(fill = \"#3243A6\", color = \"white\")\n```\n\n![](man/figures/readme-shift-and-rotate-3-1.png)\n\n### `remove_unique_outliers()`\n\n[`remove_unique_outliers()`](https://danielvartan.github.io/orbis/reference/remove_unique_outliers.html)\nwas developed to simplify the removal of abnormal values in raster\nfiles. It can be used with\n[GeoTIFF](https://www.ogc.org/standards/geotiff/) and [Esri\nASCII](https://desktop.arcgis.com/en/arcmap/latest/manage-data/raster-and-images/esri-ascii-raster-format.htm)\nraster formats.\n\n#### Set the Environment\n\n``` r\nlibrary(orbis)\n\nlibrary(dplyr)\nlibrary(readr)\nlibrary(stars)\n```\n\n#### Create a Fictional Esri ASCII File\n\n``` r\nasc_content \u003c- c(\n  \"ncols         5\",\n  \"nrows         5\",\n  \"xllcorner     0.0\",\n  \"yllcorner     0.0\",\n  \"cellsize      1.0\",\n  \"NODATA_value  -9999\",\n  \"1 2 3 4 5 \",\n  \"6 7 8 9 10 \",\n  \"11 12 1000 14 15 \", # Extreme outlier (1000)\n  \"16 1 18 19 20 \",\n  \"21 22 23 24 25 \"\n)\n```\n\n``` r\nfile \u003c- tempfile(fileext = \".asc\")\n\nasc_content |\u003e write_lines(file)\n```\n\n#### Visualize Values Before `remove_unique_outliers()`\n\n``` r\nfile |\u003e read_stars() |\u003e pull(1) |\u003e as.vector()\n#\u003e  [1]    1    2    3    4    5    6    7    8    9   10   11   12 1000   14\n#\u003e [15]   15   16    1   18   19   20   21   22   23   24   25\n```\n\n#### Visualize Values After `remove_unique_outliers()`\n\n``` r\nfile |\u003e remove_unique_outliers()\n```\n\n``` r\nfile |\u003e read_stars() |\u003e pull(1) |\u003e as.vector()\n#\u003e  [1]  1  2  3  4  5  6  7  8  9 10 11 12 NA 14 15 16  1 18 19 20 21 22 23 24\n#\u003e [25] 25\n```\n\nClick [here](https://danielvartan.github.io/orbis/reference/) to see the\nfull list of `orbis` functions.\n\n## Citation\n\nIf you use this package in your research, please cite it to acknowledge\nthe effort put into its development and maintenance. Your citation helps\nsupport its continued improvement.\n\n``` r\ncitation(\"orbis\")\n#\u003e To cite orbis in publications use:\n#\u003e \n#\u003e   Vartanian, D. (2026). orbis: Spatial data analysis tools [Computer\n#\u003e   software]. https://doi.org/10.5281/zenodo.18240800\n#\u003e \n#\u003e A BibTeX entry for LaTeX users is\n#\u003e \n#\u003e   @Misc{,\n#\u003e     title = {orbis: Spatial data analysis tools},\n#\u003e     author = {Daniel Vartanian},\n#\u003e     year = {2026},\n#\u003e     doi = {10.5281/zenodo.18240800},\n#\u003e   }\n```\n\n## License\n\n[![](https://img.shields.io/badge/license-GPLv3-bd0000.svg)](https://www.gnu.org/licenses/gpl-3.0)\n\n``` text\nCopyright (C) 2025 Daniel Vartanian\n\norbis is free software: you can redistribute it and/or modify it under the\nterms of the GNU General Public License as published by the Free Software\nFoundation, either version 3 of the License, or (at your option) any later\nversion.\n\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY\nWARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A\nPARTICULAR PURPOSE. See the GNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License along with\nthis program. If not, see \u003chttps://www.gnu.org/licenses/\u003e.\n```\n\n## Contributing\n\n[![](https://img.shields.io/badge/Contributor%20Covenant-3.0-4baaaa.svg)](https://www.contributor-covenant.org/version/3/0/code_of_conduct/)\n\nContributions are always welcome! Whether you want to report bugs,\nsuggest new features, or help improve the code or documentation, your\ninput makes a difference.\n\nBefore opening a new issue, please check the [issues\ntab](https://github.com/danielvartan/orbis/issues) to see if your topic\nhas already been reported.\n\n[![](https://img.shields.io/static/v1?label=Sponsor\u0026message=%E2%9D%A4\u0026logo=GitHub\u0026color=%23fe8e86)](https://github.com/sponsors/danielvartan)\n\nYou can also support the development of `orbis` by becoming a sponsor.\n\nClick [here](https://github.com/sponsors/danielvartan) to make a\ndonation. Please mention `orbis` in your donation message.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielvartan%2Forbis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielvartan%2Forbis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielvartan%2Forbis/lists"}