{"id":41638114,"url":"https://github.com/z-vig/pym3tools","last_synced_at":"2026-01-24T15:02:48.128Z","repository":{"id":307153543,"uuid":"1028534300","full_name":"z-vig/pym3tools","owner":"z-vig","description":"Moon Mineralogy Mapper Data Processing in Python","archived":false,"fork":false,"pushed_at":"2025-11-17T21:52:07.000Z","size":620,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-17T23:26:49.533Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/z-vig.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-07-29T17:09:52.000Z","updated_at":"2025-11-17T21:52:10.000Z","dependencies_parsed_at":"2025-07-29T20:03:02.447Z","dependency_job_id":"0b17a251-65a7-4e5a-bec1-b3850c3b450c","html_url":"https://github.com/z-vig/pym3tools","commit_stats":null,"previous_names":["z-vig/m3py","z-vig/pym3tools"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/z-vig/pym3tools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/z-vig%2Fpym3tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/z-vig%2Fpym3tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/z-vig%2Fpym3tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/z-vig%2Fpym3tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/z-vig","download_url":"https://codeload.github.com/z-vig/pym3tools/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/z-vig%2Fpym3tools/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28730304,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T10:24:43.181Z","status":"ssl_error","status_checked_at":"2026-01-24T10:24:36.112Z","response_time":89,"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":"2026-01-24T15:02:45.442Z","updated_at":"2026-01-24T15:02:48.113Z","avatar_url":"https://github.com/z-vig.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🛰️ **pym3tools**\n\n  \u003e*A modern standardized toolkit for processing Moon Mineralogy Mapper (M\u003csup\u003e3\u003c/sup\u003e) Data in Python.*\n\n---\n\n## What is `pym3tools`?\n\n`pym3tools` is a modular data pipeline designed to make fetching, processing and analyzing M\u003csup\u003e3\u003c/sup\u003e a breeze in Python. `pym3tools` incorporates many different processing methods from current planetary science literature, which allows it to serve as a state-of-the-art, standardized processing method, which will help improve the repeatability of geologic results obtained via M\u003csup\u003e3\u003c/sup\u003e.\n\n---\n\n## Available Modules\n\n| Module| Description |\n|-------------|--------------|\n|ℹ️`io`| Provides easy-to-use and flexible input/output functions for **reading and writing** M\u003csup\u003e3\u003c/sup\u003e raster data |\n|📬`PDSretrieval`    | Allows the user to **download files** directly from NASA's planetary data system (PDS) into a user-friendly format in the form of a file manager class. |\n|⚙️`level2pipeline`   | Contains the main logic and computional functions for processing level 1v3 (**Radiance**) M\u003csup\u003e3\u003c/sup\u003e data **into** level 2 (**Reflectance**) data|\n|🌗 `selenography`     | Wraps `gdal` and `rasterio` to provide **geospatial utilities tailored for use on the Moon**, including built-in lunar coordinate systems |\n\n---\n\n## 🚀 Quick Start\n\n### Installation\n\n`pym3tools` is currently only available through PyPI.\n```bash\npip install pym3tools\n```\n\n### File Retrieval from PDS\n```python\nimport pym3tools as m3\n\n# Data covering the Compton Belk'ovich Volcanic Complex\nm3_data_ids = [\n    \"M3G20090531T215442\",\n    \"M3G20090601T021112\",\n    \"M3G20090601T104211\",\n    \"M3G20090601T145212\",\n    \"M3G20090627T201242\",\n]\n\n# Retrieving Data\nroot_dir = \"./cbvc_data\"\nfor i in m3_data_ids:\n    if Path(root_dir, i).exists():\n        _ = m3.M3FileManager(root_dir, i)  # Downloads Data\n    else:\n        m3.PDSRetrieval.create_urls_file(root_dir, i)  # Creates url files\n```\n\n### Building a Processing Pipeline\n```python\nimport pym3tools as m3\nfrom pym3tools.level2pipeline import (\n    Crop, Georeferemce, TerrainModel, SolarSpectrumRemoval, StatisticalPolish,\n    Photometric Correction\n)\nfrom rasterio import BoundingBox\n\n# Initializing File Manager\nroot_dir = \"./cbvc_data\"\nfile_manager = m3.M3FileManager(root_dir, \"M3G20090531T215442\")\n\n# Defining Regional Scope\nbbox = BoundingBox(left=87, bottom=48, right=114, top=71)\n\n# Listing steps of the processing pipeline\nsteps = [\n    Crop(\"cropped\", bbox=bbox, save_output=True),\n    Georeference(\"georeferenced\", save_output=True),\n    TerrainModel(\"terrain_model\", save_output=True),\n    SolarSpectrumRemoval(\"solar_spec_removed\", save_output=True),\n    StatisticalPolish(\"statistical_polish\", save_output=True),\n    ClarkThermalCorrection(\"thermal_correction\", use_pds_temperatures=True, save_output=True),\n    PhotometricCorrection(\"photometric_correction\", save_output=True),\n]\n\n# Initializing pipeline\npipeline = m3.M3Level2Pipeline(steps, file_manager)\n\n# Running pipeline\npipeline.run()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fz-vig%2Fpym3tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fz-vig%2Fpym3tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fz-vig%2Fpym3tools/lists"}