Skip to main content

A comprehensive tool for creating animations from NetCDF data files

Project description

NetCDF Animation Creator

Create beautiful animations from NetCDF files with support for both single files and multiple files without concatenation. 75-87% faster than traditional concatenation methods.

🚀 Quick Start

Installation

pip install -e .

Basic Usage

# Interactive mode (recommended)
anc

# Single file
anc your_file.nc
# or
anc your_file.nc --variable InstantaneousRainRate --type efficient --fps 15


# Multiple files
anc *.nc
# or
anc F4C_00.2.SEG01.OUT.*.nc --variable InstantaneousRainRate --type efficient --fps 15

# Quick animation
anc your_file.nc --variable temperature --type efficient --output animation.mp4

# Configuration-based workflow
anc config *.nc --output my_config.json
anc "*.nc" --config my_config.json

✅ Key Features

  • Multi-File Support: Process multiple NetCDF files directly (no concatenation needed)
  • Smart Dimension Handling: Auto-detects animation dimension (time, level, etc.)
  • Three Animation Types: efficient (fast), contour (detailed), heatmap (simple)
  • Configuration Management: Interactive setup and JSON-based configuration
  • Zoom Functionality: Crop domain by specified zoom factor

🔧 Command Line Options

Option Description Default
--variable Variable name to animate Required
--type Plot type: efficient, contour, heatmap efficient
--fps Frames per second 10
--output Output filename Auto-generated
--config Load configuration from JSON file None
--zoom Zoom factor for cropping domain 1.0

🧪 Testing

# Validate setup
anc validate

# Run tests
anc test --full

🚀 Deployment

This project uses automated deployment to PyPI via GitHub Actions. To release a new version:

Automatic Deployment

  1. Create a new version tag:

    python scripts/release.py patch    # for bug fixes
    python scripts/release.py minor    # for new features
    python scripts/release.py major    # for breaking changes
    
  2. Manual tag creation (alternative):

    # Update version in pyproject.toml
    git add pyproject.toml
    git commit -m "Bump version to X.Y.Z"
    git tag vX.Y.Z
    git push origin main
    git push origin vX.Y.Z
    

Setup Requirements

  1. PyPI API Token: Create a PyPI API token at https://pypi.org/manage/account/token/
  2. GitHub Secrets: Add your PyPI token as a GitHub secret named PYPI_API_TOKEN
    • Go to your GitHub repository → Settings → Secrets and variables → Actions
    • Add new repository secret with name PYPI_API_TOKEN and your token as the value

The GitHub Actions workflow will automatically:

  • Build the package when you push a version tag (e.g., v1.0.3)
  • Run tests on every push to main/develop branches
  • Publish to PyPI when tests pass

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

animate_netcdf-1.6.0.tar.gz (65.3 kB view details)

Uploaded Source

Built Distribution

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

animate_netcdf-1.6.0-py3-none-any.whl (48.4 kB view details)

Uploaded Python 3

File details

Details for the file animate_netcdf-1.6.0.tar.gz.

File metadata

  • Download URL: animate_netcdf-1.6.0.tar.gz
  • Upload date:
  • Size: 65.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for animate_netcdf-1.6.0.tar.gz
Algorithm Hash digest
SHA256 7d813b79f8d5dda844c1184a872b8008be62842558503c26d1391c1602696a21
MD5 e933bd5e689cba2ca0e61d4c6b098b66
BLAKE2b-256 0b63ae38cad5ef5f1c5bdc4aed908be6ca75b17176917b3b6663406387ed916b

See more details on using hashes here.

File details

Details for the file animate_netcdf-1.6.0-py3-none-any.whl.

File metadata

  • Download URL: animate_netcdf-1.6.0-py3-none-any.whl
  • Upload date:
  • Size: 48.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for animate_netcdf-1.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dea31b39c425a9fdb5824ed9a5f526847ac75321aeb76d36e5d1b962f64258bf
MD5 9c6e89f8fc549bd11ce7f8a4057e56b2
BLAKE2b-256 07cdf7abe7211c779ffa35653afbf41fc254c91dbc0730eb0b3f3f30347bbb27

See more details on using hashes here.

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