shboost_full_cmd_datashader

Generate a full-dataset colour-magnitude diagram from a large Parquet star catalog using Dask and Datashader.

4|1|Updated Apr 11, 2026
One-click install
npx skills add https://github.com/arm2arm/AstroAgentAssistant --skill shboost-full-cmd-datashader
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: shboost_full_cmd_datashader
Source: https://github.com/arm2arm/AstroAgentAssistant/tree/main/data-science/shboost_full_cmd_datashader
Command: npx skills add https://github.com/arm2arm/AstroAgentAssistant --skill shboost-full-cmd-datashader

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Generate a high‑resolution colour‑magnitude diagram (CMD) for the ShBoost 2024 star catalog without loading the entire dataset into RAM, using lazy evaluation with Dask and on-disk Datashader processing.

Core Features & Use Cases

  • Large-scale visualization: produce a 512×512 hex-bin density CMD from ~218 million stars without materialising the full dataset in memory.
  • Scalable data handling: leverage Dask for lazy loading and on-disk Parquet caching to minimize RAM usage.
  • Reproducible workflow: render the CMD with Matplotlib, invert the y-axis to match astrophysical conventions, and use a perceptually uniform color map.

Quick Start

Run the provided workflow to cache the full dataset from S3 and render the CMD PNG using Datashader and Matplotlib.

Frequently Asked Questions about shboost_full_cmd_datashader

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I visualize a large Parquet dataset from S3 without running out of RAM?

Visualize large Parquet datasets from S3 without high RAM usage by leveraging Dask for lazy loading and on-disk caching. This approach processes data incrementally, preventing memory overload while preparing the full dataset for rendering.

How do I generate a high-resolution colour-magnitude diagram for hundreds of millions of stars?

Generate a high-resolution colour-magnitude diagram for hundreds of millions of stars using Datashader for hex-bin density aggregation. This renders a 512x512 plot without materializing the entire dataset in memory.

Can I use Dask and Datashader together for astronomical data visualization?

Use Dask and Datashader together for astronomical data visualization to combine lazy evaluation with on-disk processing. Dask manages scalable data handling while Datashader performs the density aggregation needed for high-resolution plots.

What is the best way to render a CMD with an inverted Y-axis and a colorbar in Python?

Render a CMD with an inverted Y-axis and colorbar using Matplotlib after Datashader applies hex-bin density aggregation. Matplotlib formats the final PNG output to match astrophysical conventions with a perceptually uniform color map.

Does lazy loading with Dask support on-disk caching for S3 Parquet files?

Lazy loading with Dask supports on-disk Parquet caching for S3 files to minimize RAM usage during scalable data handling. This caches the full dataset locally, enabling reproducible workflows for large-scale visualization tasks.