v1.1: add Hebcal-derived columns (shabbat_or_chag_exact, is_yom_tov, holiday)
Browse files- README.md +29 -12
- data/readings.parquet +2 -2
- hebcal-jerusalem.json +0 -0
README.md
CHANGED
|
@@ -113,7 +113,10 @@ The full set present in the dataset:
|
|
| 113 |
| `dow` | int8 | Day of week, Mon=0 … Sun=6 |
|
| 114 |
| `hour` | int8 | Local hour 0–23 |
|
| 115 |
| `is_friday` | bool | `dow == 4` |
|
| 116 |
-
| `is_shabbat` | bool | `dow == 5` (Saturday —
|
|
|
|
|
|
|
|
|
|
| 117 |
| `pollutant` | string | Source code (e.g. `NO2`, `PM2.5`) |
|
| 118 |
| `pollutant_en` | string | English long name |
|
| 119 |
| `pollutant_he` | string | Hebrew long name (as published by the source) |
|
|
@@ -171,16 +174,19 @@ methodology, caveats, and limitations is in `analysis/FINDINGS.md`.
|
|
| 171 |
|
| 172 |
## Caveats and known limitations
|
| 173 |
|
| 174 |
-
- **Shabbat
|
| 175 |
-
|
| 176 |
-
|
| 177 |
-
|
| 178 |
-
|
| 179 |
-
|
| 180 |
-
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
|
|
|
|
|
|
|
|
|
|
| 184 |
- **Sensor validity flag is trusted as-is.** Only `valid: true` readings
|
| 185 |
are included; the source system's QC decisions have not been
|
| 186 |
re-verified.
|
|
@@ -204,5 +210,16 @@ source.
|
|
| 204 |
|
| 205 |
## Versioning
|
| 206 |
|
| 207 |
-
- **v1**
|
| 208 |
long-form parquet.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 113 |
| `dow` | int8 | Day of week, Mon=0 … Sun=6 |
|
| 114 |
| `hour` | int8 | Local hour 0–23 |
|
| 115 |
| `is_friday` | bool | `dow == 4` |
|
| 116 |
+
| `is_shabbat` | bool | `dow == 5` (Saturday all-day — naive proxy) |
|
| 117 |
+
| `shabbat_or_chag_exact` | bool | True between Hebcal-published candle-lighting (Friday or chag eve) and havdalah (Saturday or chag conclusion), Jerusalem times. The recommended Shabbat flag. |
|
| 118 |
+
| `is_yom_tov` | bool | True on local dates that fall on a major Jewish holiday (Pesach, Shavuot, Rosh Hashana, Yom Kippur, Sukkot, Shemini Atzeret, etc.). |
|
| 119 |
+
| `holiday` | string \| null | Name of any Jewish holiday or observance for that local date (e.g. "Yom HaAtzma'ut", "Erev Shavuot"). Joined with `; ` if multiple. |
|
| 120 |
| `pollutant` | string | Source code (e.g. `NO2`, `PM2.5`) |
|
| 121 |
| `pollutant_en` | string | English long name |
|
| 122 |
| `pollutant_he` | string | Hebrew long name (as published by the source) |
|
|
|
|
| 174 |
|
| 175 |
## Caveats and known limitations
|
| 176 |
|
| 177 |
+
- **Two Shabbat flags are provided.** `is_shabbat` is the naïve calendar
|
| 178 |
+
Saturday (Sun=6, Sat=5) and is included for backwards compatibility.
|
| 179 |
+
`shabbat_or_chag_exact` is the **recommended** flag — it uses Hebcal's
|
| 180 |
+
Jerusalem-specific candle-lighting (Friday eve, 40 minutes before
|
| 181 |
+
sunset) and havdalah (≈42 minutes after sunset, three medium stars)
|
| 182 |
+
times, and also covers Yom Tov days. There is a single set of
|
| 183 |
+
Hebcal times applied to all stations; intra-Jerusalem variation is
|
| 184 |
+
under one minute and not material for hourly analysis.
|
| 185 |
+
- **Jewish holidays are flagged but not removed.** Use `is_yom_tov` to
|
| 186 |
+
exclude the seven major Israeli yamim tovim from your weekday
|
| 187 |
+
baseline; use `holiday` to filter by name. **Yom Kippur in particular
|
| 188 |
+
is the cleanest air day of the year** (Wed 2025-10-01 was YK 2025);
|
| 189 |
+
leaving it in inflates the apparent cleanness of the weekday baseline.
|
| 190 |
- **Sensor validity flag is trusted as-is.** Only `valid: true` readings
|
| 191 |
are included; the source system's QC decisions have not been
|
| 192 |
re-verified.
|
|
|
|
| 210 |
|
| 211 |
## Versioning
|
| 212 |
|
| 213 |
+
- **v1** (2026-04-28): initial release. 12 months × 5-min × 12 stations,
|
| 214 |
long-form parquet.
|
| 215 |
+
- **v1.1** (2026-04-28): adds Hebcal-derived columns
|
| 216 |
+
`shabbat_or_chag_exact`, `is_yom_tov`, and `holiday` for
|
| 217 |
+
Jerusalem-precise temporal filtering. Underlying readings unchanged.
|
| 218 |
+
|
| 219 |
+
## External data sources
|
| 220 |
+
|
| 221 |
+
- **Air-quality readings:** Israeli Ministry of Environmental Protection
|
| 222 |
+
(<https://air.sviva.gov.il/>).
|
| 223 |
+
- **Shabbat candle / havdalah times and Jewish-calendar metadata:**
|
| 224 |
+
[Hebcal](https://www.hebcal.com/), public REST API,
|
| 225 |
+
Jerusalem (geonameid 281184).
|
data/readings.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6433516dce7fd0830315acb84d75bf79ddb48b9605c7474b8adcb5d0d5d9aa6e
|
| 3 |
+
size 30623321
|
hebcal-jerusalem.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|