Skip to main content

Render VEDA/STAC datasets into NASA SVS-style HLS video streams.

Project description

veda-timelapse

Docs: https://dzole0311.github.io/veda-timelapse/

Generate GLS video streams from STAC collections. Composites a basemap, data layer, colorbar, and timestamp into PNG frames, then encodes them to index.m3u8.

Two render modes:

  • STAC -- renders VEDA STAC collections through the VEDA Raster API
  • CMR -- renders CMR granules through titiler-cmr (e.g. GPM IMERG)

Requirements

Python 3.11 or newer. ffmpeg must be on PATH:

brew install ffmpeg        # macOS
apt-get install ffmpeg     # Debian/Ubuntu

Install the package:

pip install -e .

Quick start

CMR mode (GPM IMERG global precipitation):

from veda_timelapse import Config, run

cfg = Config(
    use_cmr=True,
    cmr_collection_concept_id="C2723754864-GES_DISC",
    cmr_variable="precipitation",
    cmr_date_frequency="daily",
    datetime_start="2024-06-01",
    datetime_end="2024-10-31",
    bbox=[-180.0, -70.0, 180.0, 75.0],
    width=1920, height=960,
    rescale="0,48",
    colormap_name="blues",
    cmr_dry_luminance_threshold=255.0,
    basemap=True, basemap_style="boundaries",
    colorbar_label="Precipitation (mm/day)",
    title="GPM IMERG Global Jun-Oct 2024",
    output_dir="./gpm-global",
)

playlist = run(cfg)
print(playlist)

STAC mode (CLI):

veda-timelapse \
  --collection no2-monthly \
  --start 2022-01-01 \
  --end 2022-12-31 \
  --bbox "-74.3,40.4,-73.6,40.9" \
  --assets cog_default \
  --colormap rdbu \
  --rescale "0,75" \
  --colorbar-label "NO2 column" \
  --title "New York City NO2 2022" \
  --out ./nyc-no2

S3 upload

Add s3_bucket to upload the HLS output to S3 after encoding:

cfg = Config(
    ...,
    s3_bucket="my-bucket",
    s3_prefix="renders/my-job",
)

Requires pip install veda-timelapse[aws] and standard AWS credentials.

Docs

mkdocs serve

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

veda_timelapse-0.1.0.tar.gz (19.4 kB view details)

Uploaded Source

Built Distribution

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

veda_timelapse-0.1.0-py3-none-any.whl (23.4 kB view details)

Uploaded Python 3

File details

Details for the file veda_timelapse-0.1.0.tar.gz.

File metadata

  • Download URL: veda_timelapse-0.1.0.tar.gz
  • Upload date:
  • Size: 19.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for veda_timelapse-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a84aea1da2b5805c6b175c0f66636bf5dccb2c62a82ecac80ab34ada5a4a7e23
MD5 0521c5bb8120b7c5cc687b0bd77f5299
BLAKE2b-256 d02ca7d29e143afd67799df3cc867cc7288b7520c7ead6998ed9e5061f4ec3af

See more details on using hashes here.

Provenance

The following attestation bundles were made for veda_timelapse-0.1.0.tar.gz:

Publisher: publish.yml on dzole0311/veda-timelapse

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file veda_timelapse-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: veda_timelapse-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 23.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for veda_timelapse-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ce2ee31f128463ec25dcedfc8cb7c5676a4e8542da00e31847fa1f45e779663f
MD5 b35fc736c77ad07aee81ea2ff52d832a
BLAKE2b-256 acd8f0a3856d4763657f5ef076891f5134aa643f447a2e8dde9b15172d0bb182

See more details on using hashes here.

Provenance

The following attestation bundles were made for veda_timelapse-0.1.0-py3-none-any.whl:

Publisher: publish.yml on dzole0311/veda-timelapse

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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