rsplot 0.3.2.dev4__py3-none-any.whl → 0.3.2.dev37__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. rsplot/atomic.py +36 -0
  2. rsplot/cli.py +272 -497
  3. rsplot/commands/common.py +52 -3
  4. rsplot/commands/fnr.py +389 -104
  5. rsplot/commands/forecast.py +0 -2
  6. rsplot/commands/meteo.py +499 -186
  7. rsplot/commands/overlay.py +284 -326
  8. rsplot/commands/radius.py +526 -0
  9. rsplot/commands/raster.py +418 -293
  10. rsplot/commands/reconstruct.py +0 -1
  11. rsplot/commands/sidecar.py +106 -0
  12. rsplot/commands/station.py +154 -42
  13. rsplot/commands/station_trend.py +259 -174
  14. rsplot/config.py +43 -16
  15. rsplot/data_files.py +253 -0
  16. rsplot/errors.py +43 -0
  17. rsplot/fnr.py +38 -46
  18. rsplot/geo/boundaries.py +212 -9
  19. rsplot/geo/footprints.py +3 -0
  20. rsplot/geo/processing.py +2 -5
  21. rsplot/geo/radius.py +205 -0
  22. rsplot/plotting/colormap_22.txt +256 -0
  23. rsplot/plotting/colormaps.py +24 -29
  24. rsplot/plotting/map_frame.py +84 -6
  25. rsplot/plotting/meteo.py +10 -3
  26. rsplot/plotting/overlay.py +31 -40
  27. rsplot/plotting/raster.py +10 -3
  28. rsplot/plotting/station.py +86 -33
  29. rsplot/plotting/station_focus.py +84 -0
  30. rsplot/plotting/station_trend.py +60 -47
  31. rsplot/plotting/styles.py +3 -5
  32. rsplot/readers/__init__.py +52 -4
  33. rsplot/readers/_tropomi.py +121 -3
  34. rsplot/readers/era5.py +110 -10
  35. rsplot/readers/era5_wind.py +3 -2
  36. rsplot/readers/gems.py +11 -8
  37. rsplot/readers/guokong.py +125 -39
  38. rsplot/readers/netcdf.py +32 -0
  39. rsplot/readers/tropomi_hcho.py +1 -1
  40. rsplot/readers/tropomi_no2.py +1 -1
  41. rsplot/readers/tropomi_nrti.py +116 -0
  42. rsplot/readers/tropomi_o3.py +1 -1
  43. rsplot/readers/tropomi_o3pr.py +1 -1
  44. rsplot/result_builders/__init__.py +0 -14
  45. rsplot/result_builders/common.py +4 -1
  46. rsplot/result_builders/envelope.py +236 -0
  47. rsplot/result_builders/fnr.py +47 -131
  48. rsplot/result_builders/provenance.py +59 -0
  49. rsplot/result_builders/satellite.py +240 -0
  50. rsplot/result_builders/series_layer.py +289 -0
  51. rsplot/result_builders/station.py +23 -0
  52. rsplot/result_builders/station_layer.py +326 -0
  53. rsplot/results.py +0 -12
  54. rsplot/schemas/result.schema.json +566 -0
  55. rsplot/temporal.py +7 -0
  56. {rsplot-0.3.2.dev4.dist-info → rsplot-0.3.2.dev37.dist-info}/METADATA +426 -121
  57. rsplot-0.3.2.dev37.dist-info/RECORD +76 -0
  58. {rsplot-0.3.2.dev4.dist-info → rsplot-0.3.2.dev37.dist-info}/WHEEL +1 -1
  59. rsplot/commands/recent.py +0 -186
  60. rsplot/recent.py +0 -447
  61. rsplot/result_builders/meteo.py +0 -171
  62. rsplot/result_builders/overlay.py +0 -105
  63. rsplot/result_builders/raster.py +0 -104
  64. rsplot/result_builders/station_trend.py +0 -229
  65. rsplot-0.3.2.dev4.dist-info/RECORD +0 -66
  66. {rsplot-0.3.2.dev4.dist-info → rsplot-0.3.2.dev37.dist-info}/entry_points.txt +0 -0
  67. {rsplot-0.3.2.dev4.dist-info → rsplot-0.3.2.dev37.dist-info}/licenses/LICENSE +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: rsplot
3
- Version: 0.3.2.dev4
3
+ Version: 0.3.2.dev37
4
4
  Summary: CLI tool for plotting Remote Sensing data, designed for Agent.
5
5
  Project-URL: Repository, https://git.lug.ustc.edu.cn/yaoyhu/rsplot
6
6
  Project-URL: GitHub, https://github.com/yaoyhu/rsplot
@@ -228,8 +228,12 @@ Description-Content-Type: text/markdown
228
228
 
229
229
  # rsplot
230
230
 
231
- `rsplot` is an Agent-oriented command-line tool for plotting remote-sensing,
232
- reconstructed, and air-quality data. It provides a small, stable CLI surface for
231
+ `rsplot` is a command-line tool for agents to analyze multi-source
232
+ spatiotemporal remote-sensing and air-quality data: TROPOMI and GEMS
233
+ satellite retrievals, national monitoring stations and ERA5. Each command
234
+ writes a machine-readable JSON result with statistics,
235
+ quality flags and data files, plus a map for inspection. It provides a
236
+ small, stable CLI surface for
233
237
  [tianpu-agent](https://git.lug.ustc.edu.cn/yaoyhu/tianpu-agent).
234
238
 
235
239
 
@@ -272,6 +276,10 @@ uv run rsplot --help
272
276
 
273
277
  ## Configuration
274
278
 
279
+ Satellite HCHO, O3, and O3PR use the bundled `colormap_22.txt` by
280
+ default; NO2 uses the built-in nine-color gradient. These defaults apply to
281
+ both TROPOMI and GEMS. Use `--cmap` to select another registered colormap.
282
+
275
283
  `rsplot` does not ship site-specific data paths. Configure local satellite,
276
284
  station, boundary, and font paths with a TOML file:
277
285
 
@@ -286,7 +294,6 @@ Then edit `~/.config/rsplot/config.toml`:
286
294
  [paths]
287
295
  geojson_dir = "/path/to/geojson"
288
296
  font_dir = "/path/to/fonts"
289
- # hcho_cmap_file = "/path/to/256x3_rgb_table.txt"
290
297
 
291
298
  [paths.data_dirs]
292
299
  no2 = "/path/to/NO2"
@@ -329,11 +336,10 @@ export RSPLOT_DATA_DIR_GUOKONG="/path/to/guokong_combine"
329
336
  export RSPLOT_DATA_DIR_ERA5="/path/to/era5"
330
337
  export RSPLOT_DATA_DIR_FORECAST="/path/to/forecast"
331
338
  export RSPLOT_DATA_DIR_RECONSTRUCT="/path/to/reconstruct"
332
- export RSPLOT_HCHO_CMAP_FILE="/path/to/256x3_rgb_table.txt"
333
339
  ```
334
340
 
335
- Command-line directory options, such as `--data-dir`, take precedence for the
336
- command being run. If no TianDiTu API key is configured, use `--basemap none`
341
+ Data folders come from configuration only; commands have no directory
342
+ options. If no TianDiTu API key is configured, use `--basemap none`
337
343
  to avoid requesting satellite tiles.
338
344
 
339
345
  City subdivision overrides replace the county layer only for the configured
@@ -350,119 +356,365 @@ The examples below assume data paths are configured and readable.
350
356
  rsplot --help
351
357
 
352
358
  # Plot a single-day TROPOMI raster.
353
- rsplot raster 合肥 20260115 -p no2 -o ./logs/hcho/raster_city_jiujiang_hcho.png
359
+ rsplot raster 合肥 20260115 --product no2 --output ./logs/hcho/raster_city_jiujiang_hcho.png
354
360
 
355
361
  # Plot a 30-day TROPOMI window mean.
356
- rsplot raster 安徽 20260131 -p hcho --days 30 -o hcho_anhui_202601.png
362
+ rsplot raster 安徽 20260131 --product hcho --days 30 --output hcho_anhui_202601.png
357
363
 
358
364
  # Plot a TROPOMI ozone-profile tropospheric column raster.
359
- rsplot raster 安徽 20260227 -p o3pr -o o3pr_anhui_20260227.png
365
+ rsplot raster 安徽 20260227 --product o3pr --output o3pr_anhui_20260227.png
360
366
 
361
367
  # Plot an explicit TROPOMI date range.
362
- rsplot raster 长三角 20260101-20260131 -p no2 -o no2_yrd_202601.png
363
-
364
- # Reconstructed-grid input is China standard time; rsplot converts it to the
365
- # matching UTC archive filename. This reads 2026051100.nc.
366
- rsplot reconstruct 安徽 2026051108 --var PM2.5 \
367
- -o reconstruct_anhui_pm25.png
368
-
369
- # Date-only input selects the latest complete hour in that China-time day.
370
- rsplot reconstruct 合肥 20260511 --var O3 --res 0.01 \
371
- -o reconstruct_hefei_o3.png
372
-
373
- # Forecast input is China standard time; rsplot converts it
374
- # to the matching UTC archive initialization hour before reading.
375
- rsplot forecast 安徽 2026063000 --lead 24 --var O3 -o forecast_anhui_o3.png
376
-
377
- # Date-only input selects the latest initialization within that China-time day.
378
- rsplot forecast 合肥 20260630 --lead 72 --var PM2.5 -o forecast_hefei_pm25.png
379
-
380
- # Overlay station observations on the forecast valid time.
381
- rsplot forecast 合肥 2026041409 --lead 6 --var O3 --station-overlay -o forecast_station_hefei_o3.png
368
+ rsplot raster 长三角 20260101-20260131 --product no2 --output no2_yrd_202601.png
382
369
 
383
370
  # Plot ERA5 2 m temperature. Input hours are China standard time; rsplot
384
371
  # converts them to the matching UTC archive day and hour automatically.
385
- rsplot meteo 南京 2026051115 --temp-level 2m -o meteo_nanjing_t2m.png
372
+ # meteo needs an exact China-time hour (YYYYMMDDHH) in every mode. Each
373
+ # layer writes a data file, e.g. meteo_nanjing_t2m.temperature.nc.
374
+ rsplot meteo 南京 2026051115 --temp-level 2m --output meteo_nanjing_t2m.png
386
375
 
387
376
  # Plot black 850 hPa wind arrows; length represents speed and no wind
388
377
  # colorbar is drawn. The reference arrow gives the speed scale.
389
- rsplot meteo 南京 2026051115 --wind-level 850 -o meteo_nanjing_wind850.png
378
+ rsplot meteo 南京 2026051115 --wind-level 850 --output meteo_nanjing_wind850.png
390
379
 
391
380
  # Overlay black wind arrows on a temperature background. Only the temperature
392
381
  # colorbar is drawn.
393
382
  rsplot meteo 南京 2026051115 --temp-level 850 \
394
- --wind-level 850 -o meteo_nanjing_t850_wind850.png
383
+ --wind-level 850 --output meteo_nanjing_t850_wind850.png
395
384
 
396
385
  # Overlay station observations with black wind arrows.
397
386
  rsplot meteo 南京 2026051115 --station-var O3 \
398
- --wind-level 850 -o meteo_nanjing_o3_wind850.png
387
+ --wind-level 850 --output meteo_nanjing_o3_wind850.png
399
388
 
400
389
  # Temperature, stations, and wind can be combined. The two colorbars describe
401
390
  # temperature and station concentration; wind magnitude is encoded by length.
402
391
  rsplot meteo 南京 2026051115 --temp-level 850 --station-var O3 \
403
- --wind-level 850 -o meteo_nanjing_t850_o3_wind850.png
392
+ --wind-level 850 --output meteo_nanjing_t850_o3_wind850.png
404
393
 
405
- # Plot national monitoring station observations.
406
- rsplot station 合肥 2026041415 --var O3 -o station_hefei_o3.png
394
+ # Plot national monitoring station observations at an explicit China-time hour.
395
+ rsplot station 合肥 2026041415 --var O3 --output station_hefei_o3.png
407
396
 
408
397
  # Plot one station's hourly observations over the latest seven days.
409
- rsplot trend 3347A 20260520 --days 7 --var O3 -o trend_3347A_o3_7d.png
398
+ rsplot trend 3347A 20260520 --days 7 --var O3 --output trend_3347A_o3_7d.png
410
399
 
411
400
  # A single day and an explicit date range are also supported.
412
- rsplot trend 3347A 20260520 --days 1 --var O3 -o trend_3347A_o3_day.png
413
- rsplot trend 3347A 20260501-20260507 --var PM2.5 -o trend_3347A_pm25.png
401
+ rsplot trend 3347A 20260520 --days 1 --var O3 --output trend_3347A_o3_day.png
402
+ rsplot trend 3347A 20260501-20260507 --var PM2.5 --output trend_3347A_pm25.png
414
403
 
415
404
  # Plot all regional stations as grey lines plus the hourly station mean.
416
- rsplot trend 重庆 20260520 --days 7 --var O3 --region -o trend_chongqing_o3.png
405
+ rsplot trend 重庆 20260520 --days 7 --var O3 --region --output trend_chongqing_o3.png
417
406
 
418
407
  # Plot only the regional mean and highlight one or more explicit stations.
419
408
  rsplot trend 重庆 20260520 --days 7 --var O3 --region --view mean \
420
- --focus-station 3347A --threshold 200 -o trend_chongqing_focus.png
409
+ --focus-station 3347A --threshold 200 --output trend_chongqing_focus.png
410
+ # Each trend also writes <name>.series.nc: value(station, time), whose
411
+ # time decodes to the requested hours, plus regional_mean and n_stations
412
+ # in region mode. The
413
+ # sidecar's station (or regional_mean) layer adds `daily` rows (hours, mean,
414
+ # min, max per China-time day) and 24 `diurnal` rows (mean per hour of day).
421
415
 
422
416
  # Overlay satellite raster data and station observations.
423
- rsplot overlay 合肥 2026041415 -p no2 --var NO2 -o overlay_hefei_no2.png
417
+ rsplot overlay 合肥 20260414 --product no2 --station-var NO2 \
418
+ --station-datetime 2026041413 --output overlay_hefei_no2.png
424
419
 
425
- # Plot an FNR regime map with the default 7-day window.
426
- rsplot fnr 合肥 20260114 -o fnr_hefei.png
420
+ # Plot an FNR regime map over the 7 days ending on a date. The sidecar has
421
+ # no2, hcho and fnr layers (regime counts in the fnr layer's categories),
422
+ # with fnr_hefei.no2.nc, fnr_hefei.hcho.nc and fnr_hefei.fnr.nc.
423
+ rsplot fnr 合肥 20260114 --days 7 --output fnr_hefei.png
427
424
 
428
425
  # Plot an FNR regime map with an explicit date range.
429
- rsplot fnr 长三角 20260101-20260130 -o fnr_yrd_202601.png
426
+ rsplot fnr 长三角 20260101-20260130 --output fnr_yrd_202601.png
430
427
 
431
428
  # Override FNR regime thresholds for agent-driven sensitivity tests.
432
- rsplot fnr 合肥 20260114 --voc-threshold 0.8 --nox-threshold 1.8 --display-max 5 -o fnr_hefei_sensitivity.png
429
+ rsplot fnr 合肥 20260114 --days 7 --voc-threshold 0.8 --nox-threshold 1.8 \
430
+ --display-max 5 --output fnr_hefei_sensitivity.png
433
431
  ```
434
432
 
435
- When `-o/--output` is provided, `rsplot` writes the image to that path and also
436
- writes a JSON sidecar with the same base name. Reconstructed-grid JSON records
437
- both the China-time input and matched UTC archive hour, source file, native and
438
- output resolution, regional statistics, administrative summaries, and hotspots.
433
+ `--output` is required and must name a `.png` file (case-insensitive),
434
+ not a directory. Invalid output paths are rejected before reading data or
435
+ writing artifacts. `rsplot` writes the image to that exact path and a JSON
436
+ sidecar with the same base name. Nothing that selects data is implied:
437
+ `--product` (satellite maps), `--var` (`station`, `trend`), `--station-var`
438
+ (`overlay`) and the window length (`--days` with a single end date for
439
+ `trend` and `fnr`, or a `YYYYMMDD-YYYYMMDD` range) must be given.
440
+
441
+ Regions are named in Chinese; there is no `--level` option and no pinyin.
442
+ A full name selects its own level (`吉林市` is the city, `吉林省` the
443
+ province). A short name that fits different places at two levels, such as
444
+ `吉林` or `海南` (海南省 and 海南藏族自治州), is rejected with error code
445
+ `region_ambiguous` and the candidate full names. Autonomous areas can be
446
+ named without their ethnic groups: `广西`, `新疆`, `宁夏`, `楚雄`. 北京市, 上海市 and 天津市 are mapped as cities and 重庆市 as a
447
+ province. Counties and townships are written with their city, e.g.
448
+ `合肥/蜀山`. `中国`/`China` and the key regions (`长三角`/`YRD`, `京津冀`/`BTH`,
449
+ `珠三角`/`PRD`, `成渝`/`SCB`) are also accepted.
450
+
451
+ ### Result sidecars
452
+
453
+ Every successful command writes the agent-oriented sidecar specified in
454
+ [docs/result-schema.md](docs/result-schema.md) and validated by the shipped
455
+ JSON Schema `src/rsplot/schemas/result.schema.json`. `rsplot_version` names
456
+ the release that wrote it; there is no separate format number.
457
+
458
+ ```bash
459
+ rsplot raster 合肥 20260919 --product no2 --days 7 --output out/hefei_no2_week.png
460
+ # out/hefei_no2_week.png image
461
+ # out/hefei_no2_week.json sidecar
462
+ # out/hefei_no2_week.satellite.nc statistical grid: value, counted, valid_days
463
+ ```
464
+
465
+ | Question an agent asks | Where to read it |
466
+ | --- | --- |
467
+ | Did it work? | Exit 0 and a sidecar; on failure exit 1 and one `rsplot error <code>` line on stderr |
468
+ | How far can I trust it? | `layers[0].coverage` and `quality.flags` (code, severity and the measured `evidence`; no prose verdict) |
469
+ | What was measured, in which unit? | `layers[0].quantity` (`unit` and `scale`) |
470
+ | Over which time? | `layers[0].time`, including `days` for windows |
471
+ | From which files? | `layers[0].source` (`data_root`, `files_total`, `failed_files`; names are not listed) |
472
+ | How was it processed? | `layers[0].method` |
473
+ | Regional result | `layers[0].coverage`, `stats`, `by_admin`, `by_member`, `extremes` |
474
+ | Full values | the NetCDF in `layers[0].data` / `artifacts.data` |
475
+ | How to reproduce it | `request`, the command on one line; effective values that change the numbers are in `method` |
476
+
477
+ A failed run exits 1, prints one line such as
478
+ `rsplot error region_ambiguous: … {"region": "吉林", "candidates": ["吉林省", "吉林市"]}`
479
+ on stderr, and leaves no PNG, JSON or data file. For example, the real
480
+ Hefei 7-day NO2 window above
481
+ covers only 2.9 % of the city's cells, so it carries a critical
482
+ `very_low_coverage` flag with evidence `valid` 35, `total` 1209, `fraction`
483
+ 0.029 and `threshold` 0.1.
484
+
485
+ The `forecast` and `reconstruct` commands are disabled and no longer part of
486
+ the CLI. Their `forecast` and `reconstruct` data-directory keys remain valid
487
+ in configuration but are unused.
488
+
489
+ `station REGION YYYYMMDDHH` requires an exact hour in China standard time
490
+ (`Asia/Shanghai`). Date-only input (`YYYYMMDD`), invalid dates, and hours outside
491
+ 00–23 are rejected with exit code 1 before configuration or data access.
492
+ The command reads only the requested hour; it never selects the latest hour
493
+ or falls back to another file when that hour is missing. Existing date-only
494
+ `station` calls must supply an explicit hour. Its sidecar
495
+ has one `station` layer (statistics over in-region stations, exceedances,
496
+ per-district rows, and AQI bands in `categories` for AQI) and a
497
+ `<name>.station.csv` listing every station read around the region with
498
+ `in_region`.
499
+
500
+ ## Raster dates and temporal aggregation
501
+
502
+ `rsplot raster REGION DATE` defaults to TROPOMI. `DATE` selects satellite
503
+ observations, not a ground-station hour:
504
+
505
+ | Input | TROPOMI | GEMS (`--sensor gems`) |
506
+ | --- | --- | --- |
507
+ | `YYYYMMDD` | Merge matching orbit files for that filename date, then grid their pixels | Equal-scan daily mean for that date in China standard time |
508
+ | `YYYYMMDD --days N` | Average daily grids over N days ending on DATE, including DATE | Average daily scan means over the same inclusive window |
509
+ | `YYYYMMDD-YYYYMMDD` | Average daily grids over the inclusive date range | Average daily scan means over the inclusive date range |
510
+ | `YYYYMMDDHHMM` | Not supported | One exact nominal scan in China standard time |
511
+
512
+ A date range and `--days` cannot be used together. TROPOMI dates match the
513
+ UTC start date in standard S5P filenames; they do not select an hourly
514
+ observation or convert a China-time day into an observation-time window.
515
+ Without `--processing`, all matching files in the selected directory are
516
+ eligible. `--processing nrti` restricts selection to NRTI and deduplicates
517
+ overlapping observations using orbit, observation time and ground-pixel ID.
518
+
519
+ TROPOMI processing filters QA/clouds and invalid values, converts units, and
520
+ averages pixels in each target grid cell. Window mode grids each day, then
521
+ averages valid daily values with equal day weights. Statistics, coverage,
522
+ extremes, station colocation and the `.satellite.nc` data file use observed
523
+ cells only, for every sensor and time mode. Gap filling and smoothing are
524
+ display-only: a single TROPOMI day fills small gaps (nearest neighbour
525
+ within 3 cells) in the image alone, and `--smooth` never changes a number in
526
+ the sidecar. `render.layers.satellite` records `display_gap_fill` and
527
+ `display_smoothing_sigma`.
528
+
529
+ A window keeps every cell with at least one valid day: its value is the
530
+ mean of that cell's valid daily values, each weighted equally. Missing or
531
+ invalid days are skipped, never treated as zero-valued observations, and a
532
+ cell with no valid day stays nodata. There is no minimum-valid-days option;
533
+ `time.days.valid_days_per_cell` in the sidecar shows how many days support
534
+ each cell, and missing days are recorded in `time.days.failed`.
535
+
536
+ `raster` always saves an image, a same-basename JSON sidecar and a
537
+ `<name>.satellite.nc` data file. Use `-o` for an explicit PNG path; otherwise
538
+ files are saved under `/tmp`.
539
+
540
+ ## Satellite and station overlays
541
+
542
+ `rsplot overlay REGION DATE` draws one satellite layer and one hour of
543
+ national monitoring-station observations on the same map. `DATE` selects
544
+ satellite time exactly as `raster` does, including `YYYYMMDD-YYYYMMDD`,
545
+ `--days N`, and GEMS `YYYYMMDDHHMM` scans. TROPOMI remains daily:
546
+ the orbits for one filename date are merged, and there is no hourly
547
+ TROPOMI selector.
548
+
549
+ Station observations are always one concrete China-time hour, never a
550
+ temporal mean. rsplot never picks the latest available hour and never falls
551
+ back to another file.
552
+
553
+ | Satellite request | Station hour |
554
+ | --- | --- |
555
+ | TROPOMI day or window | `--station-datetime YYYYMMDDHH` is required |
556
+ | GEMS daily mean or window | `--station-datetime YYYYMMDDHH` is required |
557
+ | GEMS scan `YYYYMMDDHHMM` | Nearest station hour (at most 30 minutes, ties forward); `--station-datetime` overrides it |
558
+
559
+ ```bash
560
+ # TROPOMI 7-day NO2 mean with 13:00 China-time station observations.
561
+ rsplot overlay 合肥 20260919 --product no2 --days 7 --station-var NO2 \
562
+ --station-datetime 2026091913 --output overlay_hefei_no2_week.png
563
+ ```
564
+
565
+ `--station-var` is required and names the station variable explicitly;
566
+ there is no product-to-station-variable default.
567
+ Satellite columns and station concentrations keep independent colorbars and
568
+ units; the map shows spatial juxtaposition, not a column-to-surface
569
+ conversion.
570
+
571
+ The sidecar has two layers. `satellite` is the same layer
572
+ `raster` writes, with its period in `time` (calendar days, like every rsplot
573
+ time in China time). `station` holds the station hour in
574
+ `time.at`, statistics over in-region stations, exceedances against the
575
+ variable's limit, and per-district rows. Next to the image are
576
+ `<name>.satellite.nc` and `<name>.station.csv`; the CSV lists every station
577
+ read around the region with `in_region`, its value, and the satellite value
578
+ of the cell it falls in.
579
+
580
+ `relations.time_matching` says how the two times were paired:
581
+ `nominal_scan_time` for GEMS scans (with the difference in minutes),
582
+ `daily_mean_with_explicit_station_hour` for GEMS daily means, and
583
+ `period_mean_with_explicit_station_hour` for TROPOMI days and all windows
584
+ (difference null, because a daily or window mean has no single observation
585
+ time). `relations.colocation` counts stations that fall in a valid satellite
586
+ cell and gives the Spearman rank correlation of satellite and station values
587
+ (null with fewer than 3 pairs). It measures spatial agreement only;
588
+ `comparable_units` is always false.
589
+
590
+ ## Station map color scales
591
+
592
+ Station layers in `station`, `overlay`, `meteo`, and
593
+ `radius --station-var` share fixed O3 and NO2 color scales. Concentrations
594
+ at or below the threshold use a green–yellow–orange gradient. Values strictly
595
+ above the threshold are red, including values beyond the colorbar maximum;
596
+ a red upper extension marks this overflow. Equality is not exceedance.
597
+
598
+ | Station variable | Threshold (μg/m³) | Colorbar range (μg/m³) |
599
+ | --- | --- | --- |
600
+ | `O3_8h`, `O3_8h_24h` (8h O3 / MDA8 O3) | 160 | 0–180 |
601
+ | `O3` (hourly) | 200 | 0–220 |
602
+ | `O3_24h` (existing hourly-limit mapping) | 200 | 0–220 |
603
+ | `NO2` (hourly) | 200 | 0–220 |
604
+ | `NO2_24h` (daily) | 80 | 0–100 |
605
+
606
+ AQI retains its existing discrete bands. Other station variables retain their
607
+ P5–P95 scales. These station rules do not change satellite or temperature
608
+ colorbars. No station `--vmin` or `--vmax` options are added.
609
+ Fixed station-scale metadata appears in `render.layers.station` for
610
+ `station`, `overlay`, `radius` and `meteo`.
611
+ Original observations, summary statistics and exceedance counts are preserved.
612
+
613
+ ## Satellite maps around a monitoring station
614
+
615
+ `radius STATION_ID DATE --km KM` draws a square centered on a national
616
+ monitoring station, extending KM kilometers north, south, east, and west.
617
+ For example, `--km 5` produces a 10 km × 10 km square in a station-centered
618
+ WGS84 azimuthal equidistant projection. All stations within the square,
619
+ including its corners, use the same markers and ID labels. The square fills
620
+ the map axes without exterior padding or an extra dashed outline. City boundaries
621
+ and county/township names remain visible across administrative borders;
622
+ configured city-specific township layers are reused.
623
+
624
+ ```bash
625
+ # GEMS daily satellite mean, station locations from one explicit hour
626
+ uv run rsplot radius 1379A 20260907 --km 5 \
627
+ --sensor gems --product no2 --station-datetime 2026090713 \
628
+ --output /tmp/radius_positions.png
629
+
630
+ # The same satellite mean plus ONE station observation hour
631
+ uv run rsplot radius 1379A 20260907 --km 5 \
632
+ --sensor gems --product no2 \
633
+ --station-var NO2 --station-datetime 2026090713 \
634
+ --output /tmp/radius_no2.png
635
+
636
+ # Exact GEMS scan: 12:45 China time matches the 13:00 station file
637
+ uv run rsplot radius 1379A 202609071245 --km 5 \
638
+ --sensor gems --product no2 --station-var NO2 \
639
+ --output /tmp/radius_scan.png
640
+ ```
641
+
642
+ - `--km` is required and accepts positive fractional kilometers measured
643
+ from the center to each side, not the full side length. Satellite
644
+ options (`--sensor`, `--product`, `--days`, `--res`, `--cf`,
645
+ `--qa`, color limits and smoothing) follow `raster`. Defaults are
646
+ TROPOMI/O3, county product plotting settings, and `--basemap none`.
647
+ - Without `--station-var`, only station IDs and coordinates are read, from
648
+ the hour given by the required `--station-datetime YYYYMMDDHH`; rsplot
649
+ never picks the latest hour. No pollutant field is needed.
650
+ - With `--station-var`, daily/window satellite maps require an explicit
651
+ station hour. GEMS exact scans automatically match the nearest hour,
652
+ with half-hour ties rounded forward; an explicit hour overrides this.
653
+ Missing hourly files are errors, not a request to select another hour.
654
+ - Station observations are **never averaged across hours**. `NO2`, `O3`,
655
+ `PM2.5`, `PM10`, `SO2`, `CO`, `AQI`, and the existing derived fields are
656
+ supported. Fields such as `O3_8h` are read as stored in the selected file.
657
+ The station archive and satellite files come from the configured
658
+ `guokong` and product folders.
659
+ - GEMS dates mean equal-weight averages of the day's available valid scans,
660
+ not a 24-hour mean. Actual scan counts vary; archive filenames are UTC,
661
+ while command dates and station hours are China time. Titles distinguish
662
+ satellite aggregation from the selected station hour. Scan matching uses
663
+ the nominal scan time, not each pixel's actual observation time.
664
+ - Satellite and station values have independent colorbars and units.
665
+ Missing station values retain hollow location markers. No extra center
666
+ ring or lower-right legend is drawn. No station colorbar is drawn when all
667
+ observations are missing.
668
+ - Statistics count strictly interior grid centers; intersecting valid cells
669
+ are displayed and clipped to the square. GEMS defaults to 0.05° and `--res`
670
+ changes both analysis and display spacing. Small squares can contain no grid
671
+ centers while still showing portions of intersecting cells: counts are
672
+ then zero and statistical summaries null. Coverage is a center count,
673
+ not a fraction of polygon area.
674
+
675
+ A PNG, a sidecar, `<name>.satellite.nc` and
676
+ `<name>.station.csv` are saved (under `/tmp` by default). The region has
677
+ `kind: station_radius` and a `radius` block: `center_station`, centre
678
+ coordinates, `km` (the centre-to-side distance), `side_length_km` (twice
679
+ that), `shape: square`, and `administrative_context` (cities containing the
680
+ centre, visible cities and subdivisions). The `satellite` layer matches
681
+ `raster`. The `station` layer is `location` without `--station-var` (no
682
+ values, no relations) or the chosen variable with statistics, exceedances,
683
+ `relations.time_matching` and `relations.colocation`, as for `overlay`. The
684
+ station CSV lists the stations in the square with `is_center`,
685
+ `distance_km` (geodesic, so corner stations can exceed `--km`) and the
686
+ east/north offsets `dx_km`/`dy_km` used for selection. Daily/window versus
687
+ hourly comparisons have a null time difference; scan comparisons record the
688
+ nominal time difference.
439
689
 
440
690
  ## Select multiple regions without configuration
441
691
 
442
- `raster` and `overlay` accept a quoted, comma-separated region argument.
692
+ `raster`, `overlay`, `station`, `meteo` and `fnr` accept a quoted,
693
+ comma-separated region argument.
443
694
  Use English or Chinese commas; surrounding whitespace and embedded line
444
695
  breaks are ignored in a list. Province, city, and qualified county/township
445
696
  names can be mixed. County and township names still require their city,
446
- e.g. `中山市/东区街道`. Other commands retain their single-region input.
697
+ e.g. `中山市/东区街道`. `trend --region` summarizes one region per run
698
+ and rejects a list; run it once per region.
447
699
 
448
700
  ```bash
449
701
  # One map covering three selected townships.
450
702
  uv run rsplot raster \
451
703
  "中山市/东区街道,中山市/南区街道,中山市/石岐街道" 20260907 \
452
- --sensor gems -p o3pr --cf 1 --res 0.075 --smooth 0 \
453
- --basemap none -o ./logs/zhongshan/three_streets_raster.png
704
+ --sensor gems --product o3pr --cf 1 --res 0.075 --smooth 0 \
705
+ --basemap none --output ./logs/zhongshan/three_streets_raster.png
454
706
 
455
707
  # The same daily satellite field with observations at 19:00 China time.
456
708
  uv run rsplot overlay \
457
709
  "中山市/东区街道,中山市/南区街道,中山市/石岐街道" 20260907 \
458
- --sensor gems -p o3pr --station-datetime 2026090719 \
710
+ --sensor gems --product o3pr --station-var O3_8h_24h \
711
+ --station-datetime 2026090719 \
459
712
  --cf 1 --res 0.075 --smooth 0 --basemap none \
460
- -o ./logs/zhongshan/three_streets_overlay.png
713
+ --output ./logs/zhongshan/three_streets_overlay.png
461
714
  ```
462
715
 
463
- These examples use your existing product/station data paths. Optional
464
- `--data-dir` for raster or `--raster-dir` for overlay overrides the satellite
465
- root; no named region group needs to be added to configuration.
716
+ These examples use your configured product/station data paths; no named
717
+ region group needs to be added to configuration.
466
718
 
467
719
  Every member is resolved before reading data. Repeated aliases are removed
468
720
  in first-occurrence order; empty items and unknown names fail with an explicit
@@ -476,9 +728,9 @@ precedence. Far-apart selections share one map with intervening whitespace.
476
728
  Combined maps use `联合区域(N个)` as their default name. The JSON adds
477
729
  `region.members` with canonical qualified names, administrative levels and
478
730
  extents. Existing overall statistics operate on the geometric union, without
479
- double-counting parent/child overlaps. `member_stats` summarizes each selected
480
- member using that same statistical grid; for overlay these lists are under
481
- `raster.member_stats` and `station.member_stats`. A member with no valid data
731
+ double-counting parent/child overlaps. `raster` summarizes each selected
732
+ member in the satellite layer's `by_member`, using that same statistical grid;
733
+ overlay also adds `by_member` to its station layer. A member with no valid data
482
734
  remains in the list with zero valid counts and null numeric summaries.
483
735
  Members may overlap, so their counts must not be added to recover the union
484
736
  count. Grid centers exactly on a member boundary are excluded from that
@@ -487,16 +739,9 @@ selection retains the existing boundary-tolerance rule. `spatial_summary`
487
739
  continues to describe subdivisions, independently of selected-member stats.
488
740
  Single-region inputs retain their existing output contract.
489
741
 
490
- Run the isolated multi-region regressions:
491
-
492
- ```bash
493
- uv run python -m unittest discover -s tests -p 'test_multi_regions.py' -v
494
- ```
495
-
496
742
  ## Raster boundaries and regional statistics
497
743
 
498
- `raster`, `overlay`, `forecast` (including station overlays), and
499
- `reconstruct` prepare separate display and statistics grids:
744
+ `raster` and `overlay` prepare separate display and statistics grids:
500
745
 
501
746
  - **Display:** retain valid grid cells that intersect the administrative
502
747
  geometry, even when their centers are outside. Clip the colored layer to
@@ -506,27 +751,89 @@ uv run python -m unittest discover -s tests -p 'test_multi_regions.py' -v
506
751
  centers exactly on the boundary are excluded. Each valid selected cell has
507
752
  equal weight. Coverage is the valid selected-cell count divided by the
508
753
  total selected-cell count, not the percentage of colored land area.
509
- Existing product-specific gap-filling and statistical smoothing behavior
510
- remains unchanged; GEMS statistics remain unfilled and unsmoothed.
754
+ Statistics use the observed grid: no gap filling and no smoothing.
511
755
 
512
- The PNG sidecar adds `boundary_policy` with the selection and weighting
513
- rules, the displayed intersecting-cell count, and the count whose centers
514
- are outside. For `overlay`, this block is nested under `raster`.
756
+ `raster` records the statistics rules in the satellite layer's `method`
757
+ (`cell_selection`, `cell_weighting`) and the display rules in
758
+ `render.layers.satellite` (`display_selection`, `display_clip`,
759
+ `display_valid_cells`); `overlay` and `radius` record the same fields for
760
+ their satellite layer.
515
761
  A small region can display overlapping cells while having no interior grid
516
762
  centers: its statistics then report zero valid cells and null summaries.
517
763
  This change does not increase the satellite's native resolution or fill
518
764
  missing observations.
519
765
 
520
- Run boundary-selection and actual rendering regressions (including holes
521
- and both PlateCarree and Mercator projections):
766
+ ## TROPOMI NRTI processing stream
767
+
768
+ Use `--processing nrti` with `raster`, `radius`, `overlay`, or `fnr`.
769
+ Keep `--sensor tropomi` for commands with
770
+ a sensor option; FNR is already TROPOMI-only and has no sensor option. All four
771
+ products are supported: `no2`, `hcho`, `o3`, and `o3pr`. Omitting
772
+ `--processing` preserves the existing directories and reading behavior.
773
+ The NRTI option cannot be combined with GEMS.
774
+
775
+ Configure independent archive roots under `[paths.data_dirs]`:
776
+
777
+ ```toml
778
+ [paths.data_dirs]
779
+ tropomi_nrti_no2 = "/path/to/NO2/NRT"
780
+ tropomi_nrti_hcho = "/path/to/HCHO/NRT"
781
+ tropomi_nrti_o3 = "/path/to/O3/NRT"
782
+ tropomi_nrti_o3pr = "/path/to/O3PR/NRT"
783
+ ```
784
+
785
+ The corresponding environment variables are `RSPLOT_DATA_DIR_TROPOMI_NRTI_NO2`,
786
+ `RSPLOT_DATA_DIR_TROPOMI_NRTI_HCHO`, `RSPLOT_DATA_DIR_TROPOMI_NRTI_O3`, and
787
+ `RSPLOT_DATA_DIR_TROPOMI_NRTI_O3PR`. Missing NRTI configuration or files
788
+ produce an error; rsplot does not fall back to another processing stream.
789
+
790
+ Each root directly contains `S5P_NRTI_L2__*.nc` or `.nc.zip` files. The checked
791
+ NRT archive's `.nc.zip` files are HDF5/NetCDF containers despite the extension;
792
+ rsplot opens them directly, without ZIP extraction. Dates retain the existing
793
+ TROPOMI filename-start-date selection in UTC. NRTI does not introduce an
794
+ hourly satellite selector; overlay/radius station-hour rules stay unchanged.
522
795
 
523
796
  ```bash
524
- uv run python -m unittest discover -s tests -p 'test_boundary_display.py' -v
797
+ rsplot raster 安徽 20260918 --product no2 --processing nrti \
798
+ --basemap none --output /tmp/anhui_no2_nrti.png
799
+
800
+ rsplot overlay 安徽 20260918 --product no2 --processing nrti \
801
+ --station-var NO2 --station-datetime 2026091812 --basemap none --output /tmp/anhui_no2_nrti_overlay.png
802
+
803
+ rsplot radius 1379A 20260918 --km 20 --product no2 --processing nrti \
804
+ --station-var NO2 --station-datetime 2026091812 \
805
+ --basemap none --output /tmp/station_no2_nrti.png
806
+
807
+ rsplot fnr 安徽 20260917-20260919 --processing nrti --n-min 1 \
808
+ --basemap none --output /tmp/anhui_fnr_nrti.png
525
809
  ```
526
810
 
811
+ NRTI uses the existing TROPOMI QA/cloud filters, unit conversions, plotting
812
+ settings and statistical masks. Before gridding, overlapping granules are
813
+ deduplicated by orbit, UTC observation time and ground-pixel index. Among
814
+ valid copies of an observation, the newest file production time wins; ties
815
+ use ascending filename order. Observations from different orbits remain
816
+ separate. Negative valid retrievals remain available to the existing science
817
+ rules. Missing identity fields cause a file failure, not unverified merging.
818
+
819
+ Daily grids average the deduplicated pixels; windows weight valid daily grids
820
+ equally. FNR still averages NO2 and HCHO separately before division. The latest
821
+ date may contain only the granules received so far: a successful read does not
822
+ mean the archive contains a complete day, and results can change as files arrive.
823
+
824
+ In `raster` and `overlay` sidecars, NRTI appears as
825
+ `source.processing: "nrti"`, with the deduplication rule and
826
+ `duplicates_removed` in the satellite layer's `method`. The other commands'
827
+ sidecars identify `sensor: "tropomi"` and `processing: "nrti"`. Swath/daily metadata records source files, failed
828
+ files, processor/product versions, retained observation time range, valid
829
+ pixel counts before and after deduplication, and `n_duplicates_removed`.
830
+ Window results retain daily diagnostics; FNR records `window.daily_no2` and
831
+ `window.daily_hcho`. Default titles and output filenames identify NRTI;
832
+ explicit `--title` and `--output` still take precedence.
833
+
527
834
  ## GEMS satellite products
528
835
 
529
- Use `--sensor gems` with `raster`, `recent`, and `overlay`. Omitting
836
+ Use `--sensor gems` with `raster`, `radius`, and `overlay`. Omitting
530
837
  `--sensor` retains TROPOMI behavior. GEMS FNR and satellite trend curves are
531
838
  not included in this release.
532
839
 
@@ -540,7 +847,6 @@ gems_o3 = "/path/to/GEMS/O3"
540
847
 
541
848
  Alternatively set `RSPLOT_DATA_DIR_GEMS_NO2`, `RSPLOT_DATA_DIR_GEMS_HCHO`,
542
849
  and `RSPLOT_DATA_DIR_GEMS_O3`. Each root contains `YYYYMM/DD/*.nc`.
543
- `--data-dir` (`--raster-dir` for overlay) overrides the configured root.
544
850
 
545
851
  | Product | GEMS variable | Display unit |
546
852
  | --- | --- | --- |
@@ -565,41 +871,47 @@ containing one archive version.
565
871
 
566
872
  ```bash
567
873
  # Exact scan, daily mean, and multi-day mean.
568
- rsplot raster 安徽 202609011145 --sensor gems -p no2 \
874
+ rsplot raster 安徽 202609011145 --sensor gems --product no2 \
569
875
  --basemap none --output /tmp/gems_no2_scan.png
570
- rsplot raster 安徽 20260901 --sensor gems -p hcho \
876
+ rsplot raster 安徽 20260901 --sensor gems --product hcho \
571
877
  --basemap none --output /tmp/gems_hcho_daily.png
572
- rsplot raster 安徽 20260901-20260902 --sensor gems -p o3pr \
878
+ rsplot raster 安徽 20260901-20260902 --sensor gems --product o3pr \
573
879
  --basemap none --output /tmp/gems_o3pr_window.png
574
880
 
575
- # Recent daily regional statistics (JSON only).
576
- rsplot recent 安徽 20260902 --days 2 --source raster --sensor gems -p no2 \
577
- --output /tmp/gems_no2_recent.json
578
-
579
881
  # 11:45 China-time scan with observations at the nearest hour, 12:00.
580
- rsplot overlay 安徽 202609011145 --sensor gems -p no2 \
581
- --basemap none --output /tmp/gems_no2_overlay.png
882
+ rsplot overlay 安徽 202609011145 --sensor gems --product no2 \
883
+ --station-var NO2 --basemap none --output /tmp/gems_no2_overlay.png
582
884
  # Use --station-datetime YYYYMMDDHH for an intentional time override.
583
885
  ```
584
886
 
585
887
  Each scan is first remapped by pixel/target overlap area in the equal-area
586
- EPSG:6933 projection, onto a **globally aligned 0.05° analysis grid**. This is
587
- a numerical analysis spacing, not native satellite resolution. Daily means
888
+ EPSG:6933 projection, directly onto a **globally aligned target grid selected
889
+ by `--res`**. GEMS defaults to 0.05° at every administrative level. This is
890
+ numerical grid spacing, not native satellite resolution; finer grids cannot
891
+ recover variation within a native pixel. Daily means
588
892
  weight valid scans equally at each grid cell; multi-day means then weight
589
- valid days equally. A daily cell needs at least one valid scan. Window `--n-min`
590
- continues to count **days**, using the existing product defaults, and is not
591
- available for a single scan. These are means of available daytime scans,
893
+ valid days equally. A daily cell needs at least one valid scan, and a window
894
+ cell at least one valid day. These are means of available daytime scans,
592
895
  not full 24-hour means. Empty scans and failed files do not contribute zeros.
593
896
 
594
- For GEMS `raster` and `overlay`, **`--res` controls only the display grid**.
595
- Display cells receive area-weighted analysis values and are clipped to the
596
- fixed analysis grid's valid-cell union and the administrative boundary.
597
- Changing `--res` can change displayed averages, but cannot move the valid
598
- support or change the scientific statistics. `--smooth` is applied on the
599
- fixed analysis grid for display only, preserving its valid mask. GEMS
600
- `recent` uses the same 0.05° analysis spacing and ignores `--res`.
897
+ For GEMS `raster`, `radius`, and `overlay`, **`--res` controls the actual
898
+ analysis grid**. No fixed 0.05° intermediate grid is used. Raster and overlay
899
+ draw that grid directly, clipped to its valid-cell union and the administrative
900
+ boundary. Changing `--res` may change grid-center selection, coverage, and
901
+ regional statistics; use the same spacing for comparisons. `--smooth` affects
902
+ display only and preserves the target grid's valid mask; statistics remain
903
+ unfilled and unsmoothed. DPI and map graticules are independent of grid spacing.
601
904
  TROPOMI keeps its existing resolution behavior.
602
905
 
906
+ For example, compare Zhongshan O3PR at two target spacings without smoothing:
907
+
908
+ ```bash
909
+ rsplot raster 中山市 20260907 --sensor gems --product o3pr --cf 1 \
910
+ --res 0.05 --smooth 0 --basemap none --output /tmp/gems_o3pr_res005.png
911
+ rsplot raster 中山市 20260907 --sensor gems --product o3pr --cf 1 \
912
+ --res 0.01 --smooth 0 --basemap none --output /tmp/gems_o3pr_res001.png
913
+ ```
914
+
603
915
  When available, GEMS pixel boundaries use file `CornerLongitude` and
604
916
  `CornerLatitude` arrays. The checked O3P and NO2 files have centers only;
605
917
  their quadrilateral boundaries are **estimates from adjacent unfiltered
@@ -608,13 +920,14 @@ geolocation is not interpolated, and rejected retrievals do not contribute
608
920
  values. This is not a recovery of official footprints or extra observations.
609
921
  Analysis cells need positive-area overlap with valid footprints; their
610
922
  coverage percentage counts valid analysis centers, not precisely observed
611
- land area. Subcell gaps remain below the 0.05° analysis spacing.
923
+ land area. Gaps smaller than the selected target cells remain unresolved.
612
924
 
613
925
  Sidecars record `footprint_source` per scan, `spatial_aggregation`,
614
926
  `area_crs`, `analysis_resolution_deg`, `display_resolution_deg`, and
615
927
  `display_support`. The compatibility `swath.resolution_deg` describes the
616
- analysis grid. Statistics differ from the previous center-point-binning
617
- implementation, but remain identical across display resolutions.
928
+ analysis grid; `analysis_resolution_deg` and `display_resolution_deg` both
929
+ record the selected target spacing. `display_support` is `analysis_valid_cells`.
930
+ Statistics may change with `--res`, but remain unchanged by smoothing or DPI.
618
931
 
619
932
  The initial GEMS filter retains final quality flag **0**, finite coordinates
620
933
  and columns, SZA/VZA below 70°, and a nonnegative cloud measure no greater
@@ -625,6 +938,11 @@ negative columns are retained; HCHO gap-filled flag classes are excluded.
625
938
  This explicit filter is recorded with each file's version and variable in
626
939
  JSON; quality flag meanings must not be transferred between products.
627
940
 
941
+ In `raster` and `overlay` sidecars, GEMS scan counts, footprint source, area CRS and
942
+ spatial aggregation are in the satellite layer's `method`, and the scan or
943
+ day in its `time`; the field names in this section describe the other
944
+ commands' sidecars.
945
+
628
946
  GEMS JSON statistics, spatial summaries, and hotspots use the **unfilled,
629
947
  unsmoothed** regional grid. Smoothing affects the map only and cannot create
630
948
  new valid cells. Sidecars include `sensor`, `quantity`, the requested local
@@ -633,22 +951,9 @@ settings, file failures, and scan-count summaries. Window metadata retains
633
951
  per-day diagnostics. Existing TROPOMI fields remain compatible; the boundary
634
952
  policy block described above is additive.
635
953
 
636
- GEMS `overlay` accepts an exact scan or a daily mean. A daily mean requires
637
- an explicit `--station-datetime YYYYMMDDHH`; its title and JSON distinguish
638
- the daily satellite mean from the hourly station observation, without a
639
- fictitious scan-time offset. Exact scans match the nearest station hour
640
- (at most 30 minutes, ties forward). A missing station hour is an error.
641
- `--station-datetime` records a manual override and its time difference.
642
- NO2 pairs with NO2; O3/O3PR pair with O3; HCHO requires an explicit `--var`.
643
- Satellite columns and station concentrations retain independent colorbars
644
- and units; the map shows spatial juxtaposition, not a column-to-surface
645
- conversion.
646
-
647
- Run the self-contained GEMS regressions without adding pytest:
648
-
649
- ```bash
650
- uv run python -m unittest discover -s tests -p 'test_gems.py' -v
651
- ```
954
+ GEMS `overlay` accepts an exact scan, a daily mean or a window. Station-hour
955
+ rules, default station variables and `time_matching` are described in
956
+ [Satellite and station overlays](#satellite-and-station-overlays).
652
957
 
653
958
  ## License
654
959