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.0.tar.gz (105.9 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.0-py3-none-any.whl (50.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: animate_netcdf-1.7.0.tar.gz
  • Upload date:
  • Size: 105.9 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.0.tar.gz
Algorithm Hash digest
SHA256 b7df2d21ec8e4d2ea3f060971c02fe2fe36d66437a7be28f82abb8d5ff5f1071
MD5 f61ff3344fa49bf3d03c7f4565bf96d4
BLAKE2b-256 86a5dff159dab7727d333f34abbbd08cb7d49be6a7d90947e18a754ecc742014

See more details on using hashes here.

File details

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

File metadata

  • Download URL: animate_netcdf-1.7.0-py3-none-any.whl
  • Upload date:
  • Size: 50.7 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a49c638fec1745132f58955bf9cd8b3a93b510bf7074360537ddcc5b31f4dbf0
MD5 51e18e1a18d27bdbecb54ba10464d3eb
BLAKE2b-256 6c159e3bc3049b1e67066aae50fd8a3125f084846cb180539d4b03230efa1bbc

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