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
@@ -0,0 +1,566 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://git.lug.ustc.edu.cn/yaoyhu/rsplot/schemas/result.schema.json",
4
+ "title": "rsplot result sidecar",
5
+ "description": "One envelope for every rsplot command, written only on success, next to the image. Failures write no sidecar. rsplot_version identifies the producer; there is no separate format number. See docs/result-schema.md.",
6
+ "type": "object",
7
+ "required": [
8
+ "command",
9
+ "rsplot_version",
10
+ "generated_at",
11
+ "request",
12
+ "region",
13
+ "layers",
14
+ "relations",
15
+ "quality",
16
+ "render",
17
+ "artifacts"
18
+ ],
19
+ "additionalProperties": false,
20
+ "properties": {
21
+ "command": {
22
+ "enum": [
23
+ "raster",
24
+ "radius",
25
+ "overlay",
26
+ "station",
27
+ "trend",
28
+ "meteo",
29
+ "fnr"
30
+ ]
31
+ },
32
+ "rsplot_version": {"type": "string"},
33
+ "generated_at": {
34
+ "type": "string",
35
+ "description": "ISO 8601 timestamp with UTC offset."
36
+ },
37
+ "request": {
38
+ "type": "string",
39
+ "description": "The command as received, shell-quoted on one line, starting with 'rsplot'."
40
+ },
41
+ "region": {
42
+ "oneOf": [{"$ref": "#/$defs/region"}, {"type": "null"}],
43
+ "description": "Null only when the command targets one station (trend station mode)."
44
+ },
45
+ "layers": {
46
+ "type": "array",
47
+ "minItems": 1,
48
+ "items": {"$ref": "#/$defs/layer"}
49
+ },
50
+ "relations": {"$ref": "#/$defs/relations"},
51
+ "quality": {"$ref": "#/$defs/quality"},
52
+ "render": {"$ref": "#/$defs/render"},
53
+ "artifacts": {"$ref": "#/$defs/artifacts"}
54
+ },
55
+ "$defs": {
56
+ "nullableNumber": {"type": ["number", "null"]},
57
+ "compactDate": {"type": "string", "pattern": "^[0-9]{8}$"},
58
+ "compactHour": {"type": "string", "pattern": "^[0-9]{10}$"},
59
+ "compactScan": {"type": "string", "pattern": "^[0-9]{12}$"},
60
+
61
+ "region": {
62
+ "type": "object",
63
+ "required": ["name", "level", "kind", "bbox", "members"],
64
+ "additionalProperties": false,
65
+ "properties": {
66
+ "name": {"type": "string"},
67
+ "level": {
68
+ "enum": [
69
+ "country",
70
+ "key_region",
71
+ "province",
72
+ "city",
73
+ "county",
74
+ "township",
75
+ "station_radius"
76
+ ]
77
+ },
78
+ "kind": {"enum": ["administrative", "station_radius"]},
79
+ "bbox": {
80
+ "type": "array",
81
+ "items": {"type": "number"},
82
+ "minItems": 4,
83
+ "maxItems": 4,
84
+ "description": "[lon_min, lon_max, lat_min, lat_max] in degrees."
85
+ },
86
+ "members": {
87
+ "type": "array",
88
+ "items": {
89
+ "type": "object",
90
+ "required": ["name", "level"],
91
+ "additionalProperties": false,
92
+ "properties": {
93
+ "name": {"type": "string"},
94
+ "qualified_name": {"type": ["string", "null"]},
95
+ "level": {"type": "string"}
96
+ }
97
+ }
98
+ },
99
+ "radius": {
100
+ "type": "object",
101
+ "required": ["center_station", "km", "side_length_km", "shape"],
102
+ "additionalProperties": false,
103
+ "properties": {
104
+ "center_station": {"type": "string"},
105
+ "km": {"type": "number"},
106
+ "side_length_km": {"type": "number"},
107
+ "shape": {"const": "square"},
108
+ "projection": {"type": "string"},
109
+ "center_lon": {"type": "number"},
110
+ "center_lat": {"type": "number"},
111
+ "administrative_context": {
112
+ "type": "object",
113
+ "description": "Cities containing the centre, cities visible in the square, and visible subdivisions."
114
+ }
115
+ }
116
+ }
117
+ }
118
+ },
119
+
120
+ "quantity": {
121
+ "type": "object",
122
+ "required": ["name", "unit", "scale"],
123
+ "additionalProperties": false,
124
+ "properties": {
125
+ "name": {
126
+ "type": "string",
127
+ "description": "Machine name, e.g. no2_tropospheric_column, NO2, O3_8h_24h, t2m, wind_10m, fnr."
128
+ },
129
+ "unit": {
130
+ "type": "string",
131
+ "description": "SI-style unit of the stored numbers after multiplying by scale, e.g. molec/cm2, DU, ug/m3, mg/m3, K, degC, m/s, 1."
132
+ },
133
+ "scale": {
134
+ "type": "number",
135
+ "description": "Stored value x scale = value in unit. 1e15 for NO2/HCHO columns."
136
+ },
137
+ "label": {
138
+ "type": "string",
139
+ "description": "Human label used on the image; informational only."
140
+ }
141
+ }
142
+ },
143
+
144
+ "time": {
145
+ "type": "object",
146
+ "required": ["aggregation", "basis"],
147
+ "additionalProperties": false,
148
+ "properties": {
149
+ "aggregation": {
150
+ "enum": [
151
+ "scan",
152
+ "hourly",
153
+ "daily",
154
+ "daily_scan_mean",
155
+ "window_mean",
156
+ "hourly_series"
157
+ ]
158
+ },
159
+ "at": {
160
+ "type": "string",
161
+ "description": "Instant for scan/hourly: YYYYMMDDHHMM or YYYYMMDDHH."
162
+ },
163
+ "start": {"$ref": "#/$defs/compactDate"},
164
+ "end": {"$ref": "#/$defs/compactDate"},
165
+ "basis": {
166
+ "enum": [
167
+ "calendar_day",
168
+ "nominal_scan_time",
169
+ "station_hour",
170
+ "era5_hour"
171
+ ]
172
+ },
173
+ "days": {"$ref": "#/$defs/days"}
174
+ }
175
+ },
176
+ "days": {
177
+ "type": "object",
178
+ "required": ["requested", "found", "failed", "n_min"],
179
+ "additionalProperties": false,
180
+ "properties": {
181
+ "requested": {"type": "integer", "minimum": 1},
182
+ "found": {"type": "integer", "minimum": 0},
183
+ "failed": {
184
+ "type": "object",
185
+ "additionalProperties": {"type": "string"},
186
+ "description": "Date -> reason."
187
+ },
188
+ "n_min": {"type": ["integer", "null"]},
189
+ "valid_days_per_cell": {"$ref": "#/$defs/stats"}
190
+ }
191
+ },
192
+
193
+ "source": {
194
+ "type": "object",
195
+ "required": [
196
+ "data_root",
197
+ "files_total",
198
+ "failed_files",
199
+ "inputs_digest",
200
+ "data_as_of"
201
+ ],
202
+ "additionalProperties": false,
203
+ "properties": {
204
+ "sensor": {"enum": ["tropomi", "gems", "station", "era5"]},
205
+ "processing": {"enum": ["offl", "nrti", null]},
206
+ "data_root": {"type": "string"},
207
+ "files_total": {
208
+ "type": "integer",
209
+ "minimum": 0,
210
+ "description": "Number of input files read; file names are not listed."
211
+ },
212
+ "failed_files": {
213
+ "type": "object",
214
+ "additionalProperties": {"type": "string"},
215
+ "description": "Relative file name -> reason."
216
+ },
217
+ "inputs_digest": {
218
+ "type": "string",
219
+ "pattern": "^sha256:[0-9a-f]{64}$",
220
+ "description": "Hash over each input's name relative to data_root, size and modification time; changes when the same request reads different files."
221
+ },
222
+ "data_as_of": {
223
+ "type": ["string", "null"],
224
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}$",
225
+ "description": "Latest modification time among the inputs (China time, no offset); null when no input file exists."
226
+ },
227
+ "versions": {
228
+ "type": "object",
229
+ "additionalProperties": {
230
+ "type": "array",
231
+ "items": {"type": "string"}
232
+ }
233
+ }
234
+ }
235
+ },
236
+
237
+ "coverage": {
238
+ "type": "object",
239
+ "required": ["valid", "total", "fraction", "unit"],
240
+ "additionalProperties": false,
241
+ "properties": {
242
+ "valid": {"type": "integer", "minimum": 0},
243
+ "total": {"type": "integer", "minimum": 0},
244
+ "fraction": {"type": ["number", "null"], "minimum": 0, "maximum": 1},
245
+ "unit": {"enum": ["cells", "stations", "hours", "days", "vectors"]}
246
+ }
247
+ },
248
+
249
+ "stats": {
250
+ "type": "object",
251
+ "required": ["n"],
252
+ "additionalProperties": false,
253
+ "properties": {
254
+ "n": {"type": "integer", "minimum": 0},
255
+ "mean": {"$ref": "#/$defs/nullableNumber"},
256
+ "std": {"$ref": "#/$defs/nullableNumber"},
257
+ "min": {"$ref": "#/$defs/nullableNumber"},
258
+ "p10": {"$ref": "#/$defs/nullableNumber"},
259
+ "p25": {"$ref": "#/$defs/nullableNumber"},
260
+ "median": {"$ref": "#/$defs/nullableNumber"},
261
+ "p75": {"$ref": "#/$defs/nullableNumber"},
262
+ "p90": {"$ref": "#/$defs/nullableNumber"},
263
+ "max": {"$ref": "#/$defs/nullableNumber"}
264
+ }
265
+ },
266
+
267
+ "adminRow": {
268
+ "type": "object",
269
+ "required": ["name", "level", "n"],
270
+ "additionalProperties": false,
271
+ "properties": {
272
+ "name": {"type": "string"},
273
+ "level": {"type": "string"},
274
+ "n": {"type": "integer", "minimum": 0},
275
+ "mean": {"$ref": "#/$defs/nullableNumber"},
276
+ "min": {"$ref": "#/$defs/nullableNumber"},
277
+ "max": {"$ref": "#/$defs/nullableNumber"},
278
+ "n_exceed": {"type": "integer", "minimum": 0},
279
+ "category": {
280
+ "type": ["string", "null"],
281
+ "description": "Dominant class of the unit, e.g. the FNR regime of its mean; null for a comma-selected member without valid cells."
282
+ }
283
+ }
284
+ },
285
+
286
+ "cappedList": {
287
+ "type": "object",
288
+ "required": ["items", "total", "truncated"],
289
+ "additionalProperties": false,
290
+ "properties": {
291
+ "items": {"type": "array"},
292
+ "total": {"type": "integer", "minimum": 0},
293
+ "truncated": {"type": "boolean"},
294
+ "order": {"type": "string"}
295
+ }
296
+ },
297
+
298
+ "layer": {
299
+ "type": "object",
300
+ "required": [
301
+ "id",
302
+ "kind",
303
+ "quantity",
304
+ "time",
305
+ "source",
306
+ "method",
307
+ "coverage",
308
+ "stats",
309
+ "by_admin",
310
+ "extremes",
311
+ "data"
312
+ ],
313
+ "additionalProperties": false,
314
+ "properties": {
315
+ "id": {
316
+ "type": "string",
317
+ "description": "Unique within the sidecar: satellite, station, temperature, wind, no2, hcho, fnr, regional_mean, ..."
318
+ },
319
+ "kind": {"enum": ["grid", "points", "vector_grid", "series"]},
320
+ "subject": {
321
+ "type": "object",
322
+ "description": "Optional per-layer subject, e.g. {\"station_id\": \"1277A\"} for trend station mode.",
323
+ "additionalProperties": {"type": "string"}
324
+ },
325
+ "quantity": {"$ref": "#/$defs/quantity"},
326
+ "time": {"$ref": "#/$defs/time"},
327
+ "source": {"$ref": "#/$defs/source"},
328
+ "method": {
329
+ "type": "object",
330
+ "description": "Processing choices that change values. Keys are documented per layer kind in docs/result-schema.md."
331
+ },
332
+ "coverage": {"$ref": "#/$defs/coverage"},
333
+ "stats": {"$ref": "#/$defs/stats"},
334
+ "exceedance": {
335
+ "type": "object",
336
+ "required": ["threshold", "operator", "count", "fraction"],
337
+ "additionalProperties": false,
338
+ "properties": {
339
+ "threshold": {"type": "number"},
340
+ "operator": {"const": ">"},
341
+ "standard": {"type": "string"},
342
+ "count": {"type": "integer", "minimum": 0},
343
+ "fraction": {"type": ["number", "null"]}
344
+ }
345
+ },
346
+ "vector_summary": {
347
+ "type": "object",
348
+ "description": "Vector layers: resultant mean components and direction, component statistics, and the maximum-speed location."
349
+ },
350
+ "daily": {
351
+ "type": "array",
352
+ "description": "Series layers: one row per China-time day of the window.",
353
+ "items": {
354
+ "type": "object",
355
+ "required": ["date", "hours", "mean", "min", "max"],
356
+ "additionalProperties": false,
357
+ "properties": {
358
+ "date": {"$ref": "#/$defs/compactDate"},
359
+ "hours": {"type": "integer", "minimum": 0, "maximum": 24},
360
+ "mean": {"$ref": "#/$defs/nullableNumber"},
361
+ "min": {"$ref": "#/$defs/nullableNumber"},
362
+ "max": {"$ref": "#/$defs/nullableNumber"}
363
+ }
364
+ }
365
+ },
366
+ "diurnal": {
367
+ "type": "array",
368
+ "description": "Series layers: one row per China-time hour of day (0-23) averaged over the window's valid days.",
369
+ "minItems": 24,
370
+ "maxItems": 24,
371
+ "items": {
372
+ "type": "object",
373
+ "required": ["hour", "days", "mean"],
374
+ "additionalProperties": false,
375
+ "properties": {
376
+ "hour": {"type": "integer", "minimum": 0, "maximum": 23},
377
+ "days": {"type": "integer", "minimum": 0},
378
+ "mean": {"$ref": "#/$defs/nullableNumber"}
379
+ }
380
+ }
381
+ },
382
+ "categories": {
383
+ "type": "object",
384
+ "description": "Counts per category band, e.g. AQI levels for AQI station layers.",
385
+ "additionalProperties": {"type": "integer", "minimum": 0}
386
+ },
387
+ "by_admin": {
388
+ "type": "array",
389
+ "items": {"$ref": "#/$defs/adminRow"},
390
+ "description": "All subdivisions of the region; never truncated."
391
+ },
392
+ "by_member": {
393
+ "type": "array",
394
+ "items": {"$ref": "#/$defs/adminRow"},
395
+ "description": "Comma-selected regions only; computed from the shared statistical grid/data."
396
+ },
397
+ "extremes": {
398
+ "description": "Top values: hotspot cells for grids, highest stations for points. Capped; the full set is in the data file.",
399
+ "$ref": "#/$defs/cappedList"
400
+ },
401
+ "data": {
402
+ "oneOf": [{"type": "string"}, {"type": "null"}],
403
+ "description": "Absolute path of this layer's data file listed in artifacts.data."
404
+ }
405
+ }
406
+ },
407
+
408
+ "relations": {
409
+ "type": "object",
410
+ "additionalProperties": false,
411
+ "properties": {
412
+ "time_matching": {"$ref": "#/$defs/timeMatching"},
413
+ "colocation": {"$ref": "#/$defs/colocation"}
414
+ }
415
+ },
416
+ "timeMatching": {
417
+ "type": "object",
418
+ "required": [
419
+ "layers",
420
+ "reference",
421
+ "difference_minutes",
422
+ "manual_override"
423
+ ],
424
+ "additionalProperties": false,
425
+ "properties": {
426
+ "layers": {
427
+ "type": "array",
428
+ "items": {"type": "string"},
429
+ "minItems": 2,
430
+ "maxItems": 2,
431
+ "description": "Layer ids being paired, e.g. [\"satellite\", \"station\"]."
432
+ },
433
+ "reference": {
434
+ "enum": [
435
+ "nominal_scan_time",
436
+ "daily_mean_with_explicit_station_hour",
437
+ "period_mean_with_explicit_station_hour",
438
+ "explicit_station_hour",
439
+ "same_hour"
440
+ ]
441
+ },
442
+ "difference_minutes": {"type": ["number", "null"]},
443
+ "manual_override": {"type": "boolean"}
444
+ }
445
+ },
446
+ "colocation": {
447
+ "type": "object",
448
+ "required": [
449
+ "layers",
450
+ "method",
451
+ "pairs",
452
+ "spearman",
453
+ "comparable_units"
454
+ ],
455
+ "additionalProperties": false,
456
+ "properties": {
457
+ "layers": {
458
+ "type": "array",
459
+ "items": {"type": "string"},
460
+ "minItems": 2,
461
+ "maxItems": 2
462
+ },
463
+ "method": {"const": "station_in_valid_statistics_cell"},
464
+ "pairs": {"type": "integer", "minimum": 0},
465
+ "spearman": {"$ref": "#/$defs/nullableNumber"},
466
+ "comparable_units": {
467
+ "type": "boolean",
468
+ "description": "False for satellite columns vs surface concentrations: the pair shows spatial agreement, not a conversion."
469
+ },
470
+ "data": {
471
+ "type": "string",
472
+ "description": "Absolute path of the paired table (columns satellite_value and station_value)."
473
+ }
474
+ }
475
+ },
476
+
477
+ "quality": {
478
+ "type": "object",
479
+ "required": ["flags"],
480
+ "additionalProperties": false,
481
+ "properties": {
482
+ "flags": {
483
+ "type": "array",
484
+ "items": {
485
+ "type": "object",
486
+ "required": ["code", "severity", "evidence"],
487
+ "additionalProperties": false,
488
+ "properties": {
489
+ "code": {
490
+ "enum": [
491
+ "low_coverage",
492
+ "very_low_coverage",
493
+ "no_valid_data",
494
+ "few_valid_days",
495
+ "missing_days",
496
+ "failed_files",
497
+ "few_stations",
498
+ "missing_station_values",
499
+ "missing_hours"
500
+ ]
501
+ },
502
+ "severity": {"enum": ["info", "warning", "critical"]},
503
+ "layer": {"type": "string"},
504
+ "evidence": {
505
+ "type": "object",
506
+ "description": "The measured counts and fractions that raised the flag, with the documented threshold; no prose."
507
+ }
508
+ }
509
+ }
510
+ }
511
+ }
512
+ },
513
+
514
+ "render": {
515
+ "type": "object",
516
+ "required": ["image", "dpi", "basemap", "title", "layers"],
517
+ "additionalProperties": false,
518
+ "properties": {
519
+ "image": {"type": "string"},
520
+ "dpi": {"type": "integer"},
521
+ "basemap": {"enum": ["satellite", "none"]},
522
+ "title": {"type": "string"},
523
+ "subtitle": {
524
+ "type": ["string", "null"],
525
+ "description": "Grey line under the title (radius); null when --title replaces both."
526
+ },
527
+ "layers": {
528
+ "type": "object",
529
+ "description": "Layer id -> display settings actually used (cmap, vmin, vmax, extend, display smoothing, display grid shape, ...). Never affects statistics.",
530
+ "additionalProperties": {"type": "object"}
531
+ }
532
+ }
533
+ },
534
+
535
+ "artifacts": {
536
+ "type": "object",
537
+ "required": ["image", "sidecar", "data"],
538
+ "additionalProperties": false,
539
+ "properties": {
540
+ "image": {"type": "string"},
541
+ "sidecar": {"type": "string"},
542
+ "data": {
543
+ "type": "array",
544
+ "items": {
545
+ "type": "object",
546
+ "required": ["path", "format", "content", "bytes"],
547
+ "additionalProperties": false,
548
+ "properties": {
549
+ "path": {"type": "string"},
550
+ "format": {"enum": ["netcdf4", "csv"]},
551
+ "content": {
552
+ "type": "string",
553
+ "description": "What the file holds, e.g. statistical_grid, station_table, hourly_series, colocation_pairs."
554
+ },
555
+ "layer": {"type": "string"},
556
+ "shape": {"type": "array", "items": {"type": "integer"}},
557
+ "rows": {"type": "integer"},
558
+ "bytes": {"type": "integer"}
559
+ }
560
+ }
561
+ }
562
+ }
563
+ }
564
+
565
+ }
566
+ }
rsplot/temporal.py CHANGED
@@ -330,6 +330,13 @@ def read_scan_mean(
330
330
  "mean": float(covered.mean()) if covered.size else 0.0,
331
331
  },
332
332
  }
333
+ if getattr(reader, "processing", None) == "nrti" and scans:
334
+ metadata = {
335
+ **scans[0],
336
+ "request": request,
337
+ "coverage_scope": "read_extent",
338
+ "read_extent": list(extent),
339
+ }
333
340
  if footprints:
334
341
  metadata["spatial_aggregation"] = "footprint_overlap_area_mean"
335
342
  metadata["area_crs"] = "EPSG:6933"