NetCDF4 Along-existing-dimension Concatenation Service
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file stitchee-1.8.0.tar.gz.
File metadata
- Download URL: stitchee-1.8.0.tar.gz
- Upload date:
- Size: 24.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.12.3 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
357b0710e4fd7a319ec8244f586ce76e098de1f4ae4529416fa39b16da0514d7
|
|
| MD5 |
863339d3f3c7e0fc2998f962c4e8d87a
|
|
| BLAKE2b-256 |
f0673c32640d1449c3d789d21c2eebc57d578c42327a1ad672c12655ce2a0ea3
|
File details
Details for the file stitchee-1.8.0-py3-none-any.whl.
File metadata
- Download URL: stitchee-1.8.0-py3-none-any.whl
- Upload date:
- Size: 27.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.12.3 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ab7ff1340e3d198767672b4950ee3d57de5bb4787097ec6a0e7696e6c978835
|
|
| MD5 |
1fed23cc9653b1c61fbc24ed68baa8b5
|
|
| BLAKE2b-256 |
95fb514aebe0928f6c88ec9fc3e91f92558bbeb0eb276851fc87277236888822
|