Skip to main content

Canonical GNSS-T filename parser and data directory validator

Project description

canvod-virtualiconvname

Canonical GNSS-T filename parser and data directory validator.

Part of the canVODpy ecosystem.

Overview

canvod-virtualiconvname enforces and virtualizes the canVOD filename convention throughout the processing pipeline. It is the single source of truth for GNSS file naming, discovery, and pre-pipeline validation.

Convention format:

{SIT}{T}{NN}{AGC}_R_{YYYY}{DOY}{HHMM}_{PERIOD}_{SAMPLING}_{CONTENT}.{TYPE}

Example: ROSA01TUW_R_20250010000_15M_05S_AA.rnx

Key components

Component Purpose
CanVODFilename Pydantic model — parses and validates a single filename
FilenameMapper Maps physical filenames to canonical names (virtual renaming)
DataDirectoryValidator Pre-pipeline hard gate: blocks on unmatched or overlapping files
FilenameCatalog DuckDB-backed catalog for file discovery
BUILTIN_PATTERNS Glob patterns for all GNSS file types (single source of truth)

Installation

uv pip install canvod-virtualiconvname

Quick Start

from canvod.virtualiconvname import CanVODFilename, DataDirectoryValidator

# Parse a filename
fname = CanVODFilename.from_string("ROSA01TUW_R_20250010000_15M_05S_AA.rnx")
print(fname.site, fname.year, fname.doy)  # ROSA, 2025, 1

# Validate a data directory before processing
validator = DataDirectoryValidator(site_config)
validator.validate()  # raises on unmatched or overlapping files

Documentation

Full documentation

License

Apache License 2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

canvod_virtualiconvname-0.3.0.tar.gz (15.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

canvod_virtualiconvname-0.3.0-py3-none-any.whl (21.1 kB view details)

Uploaded Python 3

File details

Details for the file canvod_virtualiconvname-0.3.0.tar.gz.

File metadata

  • Download URL: canvod_virtualiconvname-0.3.0.tar.gz
  • Upload date:
  • Size: 15.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for canvod_virtualiconvname-0.3.0.tar.gz
Algorithm Hash digest
SHA256 c52aefd86d0ddec127c03ae15196672b1994f6e1b986b04b866ea12a9a2a547d
MD5 78e86c701a428678fad3f1fd5a3b69be
BLAKE2b-256 07e4c8f80ddf59365552437b2f5def0b14c019c25e7e3f6b9915c738a5c776f1

See more details on using hashes here.

Provenance

The following attestation bundles were made for canvod_virtualiconvname-0.3.0.tar.gz:

Publisher: publish_pypi.yml on nfb2021/canvodpy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file canvod_virtualiconvname-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for canvod_virtualiconvname-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 13fff07ffe6a3f59833152fa917cf2680873ff2771890b8525869f32154084e2
MD5 527059db15b9bb1bcfd17ca35bfca7cd
BLAKE2b-256 03bae0fafcb8fbb93b5f4e6ebf3c90f6a0230f459bc8e8111d3c9baeca03032f

See more details on using hashes here.

Provenance

The following attestation bundles were made for canvod_virtualiconvname-0.3.0-py3-none-any.whl:

Publisher: publish_pypi.yml on nfb2021/canvodpy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page