Overview
STITCHEE (STITCH by Extending a dimEnsion) is used for concatenating netCDF data along an existing dimension, and it is designed as both a standalone utility and for use as a service in Harmony.
Getting started, with poetry
- Follow the instructions for installing
poetryhere. - Install
stitchee, with its dependencies, by running the following from the repository directory:
poetry install
How to test stitchee locally
poetry run pytest tests/
Usage
For example:
poetry run stitchee /path/to/files/directory -o output.nc --concat_method xarray-combine
Command line options:
$ poetry run stitchee --help
usage: stitchee [-h] -o PATH [--concat_method {xarray-concat,xarray-combine}] [--concat_dim DIM] [--sorting_variable VAR] [--xarray_arg_compat COMPAT]
[--xarray_arg_combine_attrs ATTRS] [--xarray_arg_join JOIN] [-O] [-v]
INPUT [INPUT ...]
Concatenate netCDF files along existing dimensions.
options:
-h, --help show this help message and exit
-O, --overwrite Overwrite output file if it exists
-v, --verbose Enable verbose output to stdout; useful for debugging
Required Arguments:
INPUT Input specification: multiple file paths, directory path, text file with file list, or single file to copy
-o PATH, --output_path PATH
Output file path for concatenated result
Concatenation Options:
--concat_method {xarray-concat,xarray-combine}
Concatenation method (default: xarray-concat)
--concat_dim DIM Dimension to concatenate along (required for xarray-concat)
--sorting_variable VAR
Name of a variable to use for sorting datasets before concatenation (e.g., 'time')
xarray Arguments:
--xarray_arg_compat COMPAT
'compat' argument passed to xarray concatenation function
--xarray_arg_combine_attrs ATTRS
'combine_attrs' argument passed to xarray concatenation function
--xarray_arg_join JOIN
'join' argument passed to xarray concatenation function
Examples:
stitchee file1.nc file2.nc -o output.nc --concat_dim time
stitchee /path/to/files/directory -o output.nc --concat_method xarray-combine
stitchee filelist.txt -o output.nc --concat_dim time --sorting_variable time
This package is NASA Software Release Authorization (SRA) # LAR-20433-1
Metadata
Release files for stitchee 1.9.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| stitchee-1.9.0.tar.gz | 24.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| stitchee-1.9.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 52.3 kB
Release files / stitchee-1.9.0.tar.gz
| Download URL | stitchee-1.9.0.tar.gz |
|---|---|
| Size | 24.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
24977c515558fe7283789b09e49a55720c5b237a5685c7273deba24171a1789b
|
|
BLAKE2b-256 checksum How to use checksums |
4e974c48c439ca631b864660fa37b77b55cda16f3e3a5df7d5013d2b5ed7eb1a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.3 CPython/3.12.3 Linux/6.11.0-1018-azure
|
Release files / stitchee-1.9.0-py3-none-any.whl
| Download URL | stitchee-1.9.0-py3-none-any.whl |
|---|---|
| Size | 27.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4f602e837f49d135068d87a46e50ae3ab91b118c781af41609329b38983a8e92
|
|
BLAKE2b-256 checksum How to use checksums |
334594105b250eeb326073771a6f05b6efc7dabba4e10bced65cec0c33d3c07c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.3 CPython/3.12.3 Linux/6.11.0-1018-azure
|