{"id":27258721,"url":"https://github.com/tobiste/ptrotr","last_synced_at":"2025-04-11T03:49:43.607Z","repository":{"id":231607681,"uuid":"447416772","full_name":"tobiste/ptrotR","owner":"tobiste","description":"A free and open-source R package for analysing and reconstructing plate motion.","archived":false,"fork":false,"pushed_at":"2024-04-04T22:18:29.000Z","size":8056,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-11T03:49:40.222Z","etag":null,"topics":["geodynamics","geology","r","tectonics"],"latest_commit_sha":null,"homepage":"","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/tobiste.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2022-01-13T00:51:36.000Z","updated_at":"2024-04-04T20:49:47.000Z","dependencies_parsed_at":"2024-04-04T22:02:27.713Z","dependency_job_id":null,"html_url":"https://github.com/tobiste/ptrotR","commit_stats":null,"previous_names":["tobiste/ptrotr"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobiste%2FptrotR","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobiste%2FptrotR/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobiste%2FptrotR/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobiste%2FptrotR/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tobiste","download_url":"https://codeload.github.com/tobiste/ptrotR/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248339264,"owners_count":21087214,"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"}},"keywords":["geodynamics","geology","r","tectonics"],"created_at":"2025-04-11T03:49:42.990Z","updated_at":"2025-04-11T03:49:43.590Z","avatar_url":"https://github.com/tobiste.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- badges: start --\u003e\n[![R-CMD-check](https://github.com/tobiste/PlateTectonicMotionR/workflows/R-CMD-check/badge.svg)](https://github.com/tobiste/PlateTectonicMotionR/actions)\n\u003c!-- badges: end --\u003e\n\n# ptrotR: **P**late **T**ectonic **Rot**ations in **R**\n**ptrotR** is a free and open-source **R** package for analyzing and reconstructing plate motion. It provides:\n- import of GPLATES *.rot files: `read.gplates()`\n- interpolate total reconstruction poles between time steps: `finite_pole_interpolation()`\n- extraction of relative plate motion parameters from sequence of total reconstruction poles: `extract_stage_rotations()`\n- a grid of plate motion vectors (incl. azimuth, distance to Euler pole, and absolute velocity): `plate_motion_grid()`\n\n## Prerequisites\n\nYou must have R installed on your system (see http://r-project.org). Additionally, to install ptrotR from Github, you also need the devtools package. This can be installed by typing the following code at the R command line prompt:\n\n```\ninstall.packages(\"remotes\")\n```\n\n## Installation\n\nThe most recent development version  of ptrotR is available from Github and can be installed on your system as follows:\n\n```\nremotes::install_github('tobiste/euler') % requiered package from my repository\nremotes::install_github('tobiste/ptrotR')\nlibrary('ptrotR')\n```\n\n## Example\n\nImport total reconstructions from a GPLATES *.rot file:\n\n```\nfname \u003c- system.file(\"Pangea.rot\", package=\"ptrotR\")\npangea \u003c- read.gplates(fname)\nprint(pangea)\n```\n\n\nExtract stage rotations for a specific plate:\n```\nstage_pols \u003c- extract_stage_rotations(pangea, plate = 137)\n```\n\nCreate a grid of plate motion vectors for a specific stage pole (here first in `stage_pols`):\n```\nvectors \u003c- plate_motion_grid(stage_pols[1,])\n\n% plot the motion vectors:\ntectonicr::axes(vectors$lon, vectors$lat, vectors$azimuth, add = FALSE)\n```\n\n\n## Author\nTobias Stephan\n\n## Useful references\n- \u003cdiv class=\"csl-entry\"\u003eGreiner, B. (1999). Euler rotations in plate-tectonic reconstructions. \u003ci\u003eComputers and Geosciences\u003c/i\u003e, \u003ci\u003e25\u003c/i\u003e(3), 209–216. https://doi.org/10.1016/S0098-3004(98)00160-5\u003c/div\u003e\n\n- \u003cdiv class=\"csl-entry\"\u003eSchaeben, H., Kroner, U., \u0026#38; Stephan, T. (2021). Euler Poles of Tectonic Plates. In B. S. Daza Sagar, Q. Cheng, J. McKinley, \u0026#38; F. Agterberg (Eds.), \u003ci\u003eEncyclopedia of Mathematical Geosciences. Encyclopedia of Earth Sciences Series\u003c/i\u003e (pp. 1–7). Springer Nature Switzerland AG 2021. https://doi.org/10.1007/978-3-030-26050-7_435-1\u003c/div\u003e\n\n- Schaeben, H., Kroner, U., \u0026 Stephan, T. (2024). Mathematical fundamentals of spherical kinematics of plate tectonics in terms of quaternions. \u003ci\u003eMathematical Methods in the Applied Sciences\u003c/i\u003e, 47(6), 4469–4496. https://doi.org/10.1002/mma.9823\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftobiste%2Fptrotr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftobiste%2Fptrotr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftobiste%2Fptrotr/lists"}