Skip to main content

XBGEARS

A collection of Python tools for converting between XBeach grid files (x.grd / y.grd / *.dep) and simple XYZ point files.

Installation

pip install xbgears

Features

  • xb2xyz: Convert XBeach x.grd / y.grd / *.dep grid files into a *.xyz point file
  • xyz2xb: Convert a *.xyz point file back into x.grd / y.grd / bed.dep files

Usage

Command-line

# List all available commands
xbgears-info

# Convert XBeach grid files to a *.xyz point file
xb2xyz --dep bed.dep --xgrd x.grd --ygrd y.grd --out 001.xyz

# Convert a *.xyz point file back to XBeach grid files
xyz2xb --xyz 001.xyz --outdir XBGRID

Python API

from xbgears import xb2xyz, xyz2xb

# Convert XBeach grid files to a *.xyz point file (written to XYZ/001.xyz)
xb2xyz.xb_to_xyz(dep="bed.dep", xgrd="x.grd", ygrd="y.grd", out="001.xyz")

# Convert a *.xyz point file back to XBeach grid files (written to XBGRID/)
xyz2xb.xyz_to_xb(xyz="001.xyz", outdir="XBGRID")

Notes

  • xb2xyz reads xori/yori from params.txt in the working directory (if present) and adds them to the x/y coordinates; grid rotation (alfa) is not applied.
  • xb2xyz writes its output to the XYZ/ directory by default; xyz2xb writes its output to the XBGRID/ directory by default.

Metadata

Release files for xbgears 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xbgears 0.1.0
File Size Uploaded
xbgears-0.1.0.tar.gz 6.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for xbgears 0.1.0
File Interpreter ABI Platform
xbgears-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 14.6 kB

Release files / xbgears-0.1.0.tar.gz

Download URL xbgears-0.1.0.tar.gz
Size 6.5 kB
Tags Source
SHA-256 checksum
How to use checksums
4cde1959f30e600fa3bf079f404873c8005a8854737a6db7f013541511ff87e1
BLAKE2b-256 checksum
How to use checksums
e848b58adbbc05c3d2a387451f9d91599be47396fbf1e5438e4986bd930c53d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 25, 2026.

Transparency log

Release files / xbgears-0.1.0-py3-none-any.whl

Download URL xbgears-0.1.0-py3-none-any.whl
Size 8.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6418b6d7e3b631c9204ce79eba1407ac4ef4e590312cd02dab84e4f9b9937206
BLAKE2b-256 checksum
How to use checksums
ff9ce244c4191ddaac58e7018bd9d1dcecb82c3a0ab708a3ac618fac54499965
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 25, 2026.

Transparency log

Release history Release notifications | RSS feed

0.2.0

2 release files

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page