Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,3 +1,103 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: mit
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
pretty_name: Blocking Composite Viewer Data
|
| 4 |
+
tags:
|
| 5 |
+
- atmospheric-science
|
| 6 |
+
- potential-vorticity
|
| 7 |
+
- blocking
|
| 8 |
+
- era5
|
| 9 |
+
- plotly
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
# Blocking Composite Viewer Data
|
| 13 |
+
|
| 14 |
+
This Hugging Face dataset stores compressed JSON payloads for the interactive
|
| 15 |
+
Blocking Composite Viewer at https://yanxingjianken.github.io/blocking-plots/.
|
| 16 |
+
The viewer reads these files directly from the dataset repository and renders
|
| 17 |
+
ERA5 blocking and propagating-anticyclone composites with Plotly.
|
| 18 |
+
|
| 19 |
+
## Contents
|
| 20 |
+
|
| 21 |
+
- `blocking/*.json.gz`: blocking-anticyclone composites and RWB subcluster composites.
|
| 22 |
+
- `prp/*.json.gz`: propagating-anticyclone composites and RWB subcluster composites.
|
| 23 |
+
- `blocking/_catalog.json` and `prp/_catalog.json`: variant/stage catalogs used by the viewer dropdowns.
|
| 24 |
+
- `README.md`: this dataset card.
|
| 25 |
+
|
| 26 |
+
The old root-level JSON exports and the stale `figures/` directory are cleaned
|
| 27 |
+
during the current upload workflow. Publication figures are maintained in the
|
| 28 |
+
`pvtend` source repository instead of this dataset repository.
|
| 29 |
+
|
| 30 |
+
## Workflow
|
| 31 |
+
|
| 32 |
+
```mermaid
|
| 33 |
+
graph TD
|
| 34 |
+
A[ERA5 event NPZ patches] --> B[outputs/blowup_scan/exclude_tracks_blocking.csv]
|
| 35 |
+
A --> C[outputs/blowup_scan/exclude_tracks_prp.csv]
|
| 36 |
+
A --> D[pvtend-pipeline classify]
|
| 37 |
+
B --> D
|
| 38 |
+
C --> D
|
| 39 |
+
D --> E[rwb_variant_tracksets_wavg.pkl]
|
| 40 |
+
A --> F[website/build_and_export_clusters.py]
|
| 41 |
+
B --> F
|
| 42 |
+
C --> F
|
| 43 |
+
E --> F
|
| 44 |
+
F --> G[website/blocking_export/*.json.gz]
|
| 45 |
+
F --> H[website/prp_export/*.json.gz]
|
| 46 |
+
G --> I[website/upload_to_hf.py]
|
| 47 |
+
H --> I
|
| 48 |
+
I --> J[yanxingjianken/blocking-composites]
|
| 49 |
+
J --> K[GitHub Pages blocking-plots viewer]
|
| 50 |
+
```
|
| 51 |
+
|
| 52 |
+
## Blowup Track Exclusion
|
| 53 |
+
|
| 54 |
+
The web export applies the latest blowup-screen CSVs by default:
|
| 55 |
+
|
| 56 |
+
- `outputs/blowup_scan/exclude_tracks_blocking.csv`
|
| 57 |
+
- `outputs/blowup_scan/exclude_tracks_prp.csv`
|
| 58 |
+
|
| 59 |
+
Those CSVs are generated from per-event NPZ diagnostics by scanning the
|
| 60 |
+
QG-omega-related vertical-motion fields and excluding tracks whose any-stage
|
| 61 |
+
maximum absolute value exceeds 25 Pa s^-1. Applying the same CSVs during web
|
| 62 |
+
export keeps the viewer's `All Events` count consistent with the screened
|
| 63 |
+
production composites and avoids displaying blowup-contaminated composites.
|
| 64 |
+
The cluster builder also prefers `rwb_variant_tracksets_wavg.pkl` by default,
|
| 65 |
+
matching the weighted-average RWB classifications used in the production viewer.
|
| 66 |
+
|
| 67 |
+
## Regeneration Commands
|
| 68 |
+
|
| 69 |
+
Run from the `pvtend` repository on the HPC system with the `blocking` micromamba
|
| 70 |
+
environment:
|
| 71 |
+
|
| 72 |
+
```bash
|
| 73 |
+
cd /net/flood/data2/users/x_yan/pvtend
|
| 74 |
+
micromamba run -n blocking python website/build_and_export_clusters.py --event-type blocking
|
| 75 |
+
micromamba run -n blocking python website/build_and_export_clusters.py --event-type prp
|
| 76 |
+
micromamba run -n blocking python website/upload_to_hf.py --clean-figures
|
| 77 |
+
```
|
| 78 |
+
|
| 79 |
+
If clustering has already completed and `rwb_cluster_variant_tracksets.pkl` is
|
| 80 |
+
present, resume from the composite-building/export step with parallel workers:
|
| 81 |
+
|
| 82 |
+
```bash
|
| 83 |
+
micromamba run -n blocking python website/build_and_export_clusters.py --event-type blocking --resume-from-step5 --n-workers 16
|
| 84 |
+
micromamba run -n blocking python website/build_and_export_clusters.py --event-type prp --resume-from-step5 --n-workers 16
|
| 85 |
+
```
|
| 86 |
+
|
| 87 |
+
To override the automatic exclude CSV lookup, pass `--exclude-file` to
|
| 88 |
+
`website/build_and_export_clusters.py`.
|
| 89 |
+
|
| 90 |
+
## Viewer Contract
|
| 91 |
+
|
| 92 |
+
Each `{variant}_{stage}.json.gz` file contains:
|
| 93 |
+
|
| 94 |
+
- `meta.n_events`: event counts at `dh=-12`, `dh=0`, and `dh=+12`.
|
| 95 |
+
- `coords`: relative longitude/latitude grids.
|
| 96 |
+
- `dh_m12`, `dh_0`, `dh_p12`: level-wise composite fields and orthogonal basis payloads.
|
| 97 |
+
- `meta.field_labels` and `meta.field_groups`: dropdown labels used by the viewer.
|
| 98 |
+
|
| 99 |
+
The GitHub Pages frontend fetches files from:
|
| 100 |
+
|
| 101 |
+
```text
|
| 102 |
+
https://huggingface.co/datasets/yanxingjianken/blocking-composites/resolve/main/{blocking,prp}/
|
| 103 |
+
```
|