{"id":16572612,"url":"https://github.com/knapply/maritime","last_synced_at":"2025-03-05T14:25:52.098Z","repository":{"id":105873457,"uuid":"248972393","full_name":"knapply/maritime","owner":"knapply","description":"Tools and Routines for Maritime Data ⚓ 🚢 ⛵ 🛥️","archived":false,"fork":false,"pushed_at":"2020-11-25T18:21:22.000Z","size":2268,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-16T03:14:26.317Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://knapply.github.io/maritime/","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/knapply.png","metadata":{"files":{"readme":"README.Rmd","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-21T12:34:11.000Z","updated_at":"2020-07-11T18:56:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"3bc1b985-a965-40b6-ae06-d7aeb61c1436","html_url":"https://github.com/knapply/maritime","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knapply%2Fmaritime","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knapply%2Fmaritime/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knapply%2Fmaritime/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knapply%2Fmaritime/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/knapply","download_url":"https://codeload.github.com/knapply/maritime/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242041727,"owners_count":20062284,"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":[],"created_at":"2024-10-11T21:28:06.086Z","updated_at":"2025-03-05T14:25:52.092Z","avatar_url":"https://github.com/knapply.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\ntitle: \"`{maritime}` ⚓ 🚢 ⛵ 🛥️\"\noutput:\n  github_document:\n    html_preview: true\n    toc: true\n    toc_depth: 2\n  html_document:\n    keep_md: yes\nalways_allow_html: yes\neditor_options: \n  chunk_output_type: console\n---\n\n\u003c!-- README.Rmd generates README.md. --\u003e\n\n```{r, echo=FALSE}\nknitr::opts_chunk$set(\n  # collapse = TRUE,\n  fig.align = \"center\",\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/\",\n  message = FALSE,\n  warning = FALSE\n)\noptions(width = 150)\n```\n\n\n\u003c!-- badges: start --\u003e\n[![R build status](https://github.com/knapply/maritime/workflows/R-CMD-check/badge.svg)](https://github.com/knapply/maritime/actions?workflow=R-CMD-check)\n[![AppVeyor build status](https://ci.appveyor.com/api/projects/status/github/knapply/maritime?branch=master\u0026svg=true)](https://ci.appveyor.com/project/knapply/maritime)\n[![Travis-CI Build Status](https://travis-ci.org/knapply/maritime.svg?branch=master)](https://travis-ci.org/knapply/maritime)\n[![Codecov test coverage](https://codecov.io/gh/knapply/maritime/branch/master/graph/badge.svg)](https://codecov.io/gh/knapply/maritime?branch=master)\n[![Lifecycle](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#experimental)\n[![GitHub last commit](https://img.shields.io/github/last-commit/knapply/maritime.svg)](https://github.com/knapply/maritime/commits/master)\n[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)\n[![Depends](https://img.shields.io/badge/Depends-GNU_R\u003e=3.6-blue.svg)](https://www.r-project.org/)\n[![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/knapply/maritime.svg)](https://github.com/knapply/maritime)\n[![Gitter](https://badges.gitter.im/maritime/community.svg)](https://gitter.im/maritime/community?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge)\n[![HitCount](http://hits.dwyl.io/knapply/maritime.svg)](http://hits.dwyl.io/knapply/maritime)\n\u003c!-- [![CRAN status](https://www.r-pkg.org/badges/version/maritime)](https://cran.r-project.org/package=maritime) --\u003e\n\u003c!-- badges: end --\u003e\n\n# Introduction\n\nTools and routines for `{maritime}` data.\n\n\n* [ ] High-performance AIS decoding routines.\n  + built on [Kurt Schwehr](https://twitter.com/kurtschwehr)'s [__libais__](https://github.com/schwehr/libais)\n* [ ] Seavision API wrapper\n* [ ] ? \n\n# Installation\n\nYou'll need a C++ compiler. If you're using Windows, that means [Rtools](https://cran.r-project.org/bin/windows/Rtools/).\n\n```{r, eval=FALSE}\nif (!requireNamespace(\"remotes\", quietly = TRUE)) install.packages(\"remotes\")\nremotes::install_github(\"knapply/maritime\")\n```\n\n# Usage\n\n\n```{r}\nlibrary(maritime)\n```\n\n\n# AIS Sentence (AIVDM/AIVDO) Decoding\n\n## Status\n\n* [x] Automatic sentence validation and line normalization\n* Message Types:\n  + [x] `ais_msgs$msg_1_2_3`\n  + [x] `ais_msgs$msg_4_11`\n  + [x] `ais_msgs$msg_5`\n  + [ ] `ais_msgs$msg_6`\n  + [x] `ais_msgs$msg_7_13`\n  + [ ] `ais_msgs$msg_8`\n  + [x] `ais_msgs$msg_9`\n  + [x] `ais_msgs$msg_10`\n  + [x] `ais_msgs$msg_11`\n  + [x] `ais_msgs$msg_12`\n  + [x] `ais_msgs$msg_14`\n  + [x] `ais_msgs$msg_15`\n  + [x] `ais_msgs$msg_16`\n  + [x] `ais_msgs$msg_17`\n  + [x] `ais_msgs$msg_18`\n  + [x] `ais_msgs$msg_19`\n  + [x] `ais_msgs$msg_20`\n  + [x] `ais_msgs$msg_21`\n  + [x] `ais_msgs$msg_22`\n  + [x] `ais_msgs$msg_23`\n  + [x] `ais_msgs$msg_24`\n  + [x] `ais_msgs$msg_25`\n  + [x] `ais_msgs$msg_26`\n  + [x] `ais_msgs$msg_27`\n  \n  \n\n```{r}\nnmea_file \u003c- \"inst/example-data/big-files/20200131.log\"\npaste(round(file.size(nmea_file) / 1e9, 2L), \"GB\")\nreadLines(nmea_file, n = 20) # real world data, in all its terrible glory\n```\n\n\n```{r}\nais_decode_filter(msgs = nmea_file, msg_type = ais_msgs$msg_1_2_3)\n```\n\n```{r}\nais_decode_df(msgs = nmea_file)\n```\n\n\n## Performance\n\n```{r}\nbench::mark(\n  `ais_decode_list()` = decoded_list \u003c- ais_decode_list(\n    nmea_file, as_tibble = FALSE, as_sf = FALSE, verbose = FALSE\n  )\n)\n```\n\n```{r}\nlapply(decoded_list, tibble::as_tibble)\n```\n\n\n# Credits\n\n* AIS decoding routines are built on top of [Kurt Schwehr](https://twitter.com/kurtschwehr)'s [__libais__](https://github.com/schwehr/libais).\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknapply%2Fmaritime","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknapply%2Fmaritime","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknapply%2Fmaritime/lists"}