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

# Configuration (optional)
anc config
# or
anc config *.nc --output my_config.json
# or
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.7.1.tar.gz (44.1 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.7.1-py3-none-any.whl (51.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: animate_netcdf-1.7.1.tar.gz
  • Upload date:
  • Size: 44.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for animate_netcdf-1.7.1.tar.gz
Algorithm Hash digest
SHA256 4256fac3d6154b5b91e03fcbfecd28c5d71b6a73cfc4453402d409fda57bb6c6
MD5 deeffe139554395eeb3090493158a350
BLAKE2b-256 79d268e8f8d0648c88c1bef01d9ff533271605604157dde8a1860f1707563f2f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: animate_netcdf-1.7.1-py3-none-any.whl
  • Upload date:
  • Size: 51.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for animate_netcdf-1.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 239bdf2bb118e66bbc0a295eaaae08d21e6acb2e282c44616837689bbea46419
MD5 7c1dffe3df31bfd44d4ae26604b4586f
BLAKE2b-256 8d2a336d05189652e49b854fb08d8bab76a15cfdf2cf7a4ad9d6f13346830f96

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