Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"cells": [
{
"cell_type": "markdown",
"id": "94b7c663",
"metadata": {},
"source": [
"## Introducing adi_runner 1: quick-start\n",
"adi_runner is a versatile Python package designed to offer an intuitive API that simplifies interactions with PCM (Processing Configuration Manager) and ADI (ARM Data Integrator) technologies. This powerful tool empowers users to navigate ARM (Advanced RISC Machine) data, implement the VAPs (Value-added products) algorithm, and develop comprehensive VAPs workflows with ease."
]
},
{
"cell_type": "markdown",
"id": "24e760aa",
"metadata": {},
"source": [
"This Notebook demonstrate the use of ADI_Process, a package that integrates ADI into notebooks for ease of data exploration and analysis.\n",
"\n",
"Steps:\n",
"* instantiate ADI_Process object with essential process info (e.g., pcm-name, site, facility, date, etc.)\n",
"* (optional) set datastream flags\n",
"* process/consolidate data to retrieve input-dataset, transformed-dataset (in-development), output-dataset\n",
"* get datasets in interests (i.e., get_ds_ins()) \n",
"* (optional) data analysis, visualization (quick-plot)"
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "effabdbb-edb3-4024-bf58-54cb06b7602b",
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"/home/kefeimo/.conda/envs/adi_notebook_demo/lib/python3.10/abc.py:106: FutureWarning: xarray subclass PrettyXarrayDataset should explicitly define __slots__\n",
" cls = super().__new__(mcls, name, bases, namespace, **kwargs)\n"
]
}
],
"source": [
"# import the essential packages\n",
"# (use the `pip install adi_notebook==<desired-version>` command if adi-notebook is not installed in the enviornment)\n",
"from adi_notebook.adi_proc import ADI_Process\n",
"from matplotlib import pyplot as plt"
]
},
{
"cell_type": "markdown",
"id": "5a9087b6",
"metadata": {},
"source": [
"Demo 1:\n",
"A vanilla pcm exploration (adi_demo_0)\n",
"basic info:\n",
"* 'input_datastreams': ['met.b1'], \n",
"* 'output_datastreams': ['adiregulargrid.c1'], \n",
"* 'coordinates': ['half_min_grid']\n",
"* no datastream flag\n"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "8e5f8ae6",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"adi_notebook.adi_proc.ADI_Process({\n",
" \"pcm_name\": \"adi_demo_0\",\n",
" \"input_datastreams\": [\n",
" \"met.b1\"\n",
" ],\n",
" \"output_datastreams\": [\n",
" \"adiregulargrid.c1\"\n",
" ],\n",
" \"coordinates\": [\n",
" \"half_min_grid\"\n",
" ],\n",
" \"datastream_flags\": [],\n",
" \"transformation_pairs\": [\n",
" \"met.b1--half_min_grid\"\n",
" ]\n",
"})"
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# object instantiation, and quick review the pcm-info\n",
"# Note: the pcm-name, site, facility, date info can be changed on-the-fly, \n",
"# as long as they are valid.\n",
"# Note: convention to use pcm-name as part of the object name\n",
"prc_adi_demo_0 = ADI_Process(pcm_name=\"adi_demo_0\", site=\"sgp\", facility=\"C1\", \n",
" begin_date=\"20190119\", end_date=\"20190120\") \n",
"prc_adi_demo_0"
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "4fd69d05-1007-4616-9417-2eccf89673b3",
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"/home/kefeimo/.conda/envs/adi_notebook_demo/lib/python3.10/abc.py:106: FutureWarning: xarray subclass PrettyXarrayDataset should explicitly define __slots__\n",
" cls = super().__new__(mcls, name, bases, namespace, **kwargs)\n",
"xx: Ignoring Invalid Option: '-n pblhtdlrf_training_validation'\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"../../src/msngr.c:954 Changing debug level from 0 to 2\n",
"../../src/dsproc.c:2674 Setting reprocessing mode to: 1\n",
"../../src/dsproc.c:2437 Setting dynamic DODs mode to: 1\n",
"\n",
"================================================================================\n",
"../../src/dsproc.c:2848 INITIALIZING PROCESS: sgpC1-adi_demo_0-VAP\n",
"================================================================================\n",
"\n",
"../../src/dsproc.c:112 Creating process lockfile:\n",
"../../src/dsproc.c:165 - path: /home/kefeimo/.adi_tmp/data/logs//sgp/lockfiles\n",
" - name: sgpC1-adi_demo_0-VAP.lock\n",
"../../src/dsproc.c:2873 Initializing database connection: dsdb_data\n",
"../../src/dsproc.c:2902 - db_host: armdb-foo.ornl.gov:6543\n",
"../../src/dsproc.c:2907 - db_name: dsdb_ref\n",
"../../src/dsproc.c:2912 - db_user: dsdb_data\n",
"../../src/dsproc.c:2963 Process version: __version__\n",
"../../src/dsproc.c:2966 Library versions:\n",
" - libdsproc3: libdsproc3-2.69.0\n",
" - libdsdb3: libdsdb3-1.12.1\n",
" - libtrans: libtrans-2.7.0\n",
" - libcds3: libcds3-1.26.0\n",
" - libncds3: libncds3-1.16.0\n",
" - libarmutils: libarmutils-1.16.1\n",
" - libdbconn: libdbconn-1.12.3\n",
" - libmsngr: libmsngr-1.12.0\n",
"../../src/dsproc.c:251 Opening process log file:\n",
"../../src/dsproc.c:337 - path: /home/kefeimo/.adi_tmp/data/logs//sgp/proc_logs/sgpadi_demo_0C1\n",
" - name: sgpadi_demo_0C1.20240300.000000.VAP\n",
"../../src/dsproc.c:495 Checking database for 'error_mail' custodians\n",
"../../src/dsproc.c:570 - none found\n",
"../../src/dsproc.c:495 Checking database for 'warning_mail' custodians\n",
"../../src/dsproc.c:570 - none found\n",
"../../src/dsproc.c:495 Checking database for 'mentor_mail' custodians\n",
"../../src/dsproc.c:570 - none found\n",
"../../src/dsproc.c:882 Updating process start time in database: 2024-03-22 00:04:47\n",
"../../src/dsproc.c:752 Initializing signal handlers\n",
"../../src/dsproc_dsdb.c:654 Getting process location from database\n",
"../../src/dsproc_dsdb.c:686 - name: Lamont, Oklahoma\n",
" - lat: 36.605 N\n",
" - lon: -97.485 E\n",
" - alt: 318 MSL\n",
"../../src/dsproc_dsdb.c:740 Getting site description from database\n",
"../../src/dsproc_dsdb.c:757 - \"Southern Great Plains (SGP)\"\n",
"../../src/dsproc_dsdb.c:798 Getting process configuration value\n",
" - key: 'max_run_time'\n",
"../../src/dsproc_dsdb.c:808 - value: '0'\n",
"../../src/dsproc_dsdb.c:798 Getting process configuration value\n",
" - key: 'data_interval'\n",
"../../src/dsproc_dsdb.c:808 - value: '0'\n",
"../../src/dsproc_dsdb.c:798 Getting process configuration value\n",
" - key: 'min_valid_time'\n",
"../../src/dsproc_dsdb.c:808 - value: '694224000'\n",
"../../src/dsproc_dsdb.c:798 Getting process configuration value\n",
" - key: 'output_interval'\n",
"../../src/dsproc_dsdb.c:808 - value: ''\n",
"../../src/dsproc_dsdb.c:585 Getting output datastream classes from database\n",
"../../src/dsproc_dsdb.c:606 - adiregulargrid.c1\n",
"../../src/dsproc_datastreams.c:930 sgpadiregulargridC1.c1: Initializing output datastream\n",
"../../src/dsproc_datastream_files.c:2424 sgpadiregulargridC1.c1: Setting output datastream path: /home/kefeimo/.adi_tmp/data/datastream//sgp/sgpadiregulargridC1.c1\n",
"../../src/dsproc_datastreams.c:1259 sgpadiregulargridC1.c1: Setting output datastream format: NetCDF3\n",
"../../src/dsproc_datastreams.c:1170 sgpadiregulargridC1.c1: Setting output datastream control flags\n",
"../../src/dsproc_datastreams.c:1183 - DS_OVERLAP_CHECK\n",
"../../src/dsproc_dsdb.c:336 adiregulargrid.c1: Getting datastream properties from database\n",
"../../src/dsproc_dsdb.c:376 - no datastream properties defined in database\n",
"../../src/dsproc_datastreams.c:1988 sgpadiregulargridC1.c1: Setting datastream file splitting mode:\n",
" -> always create a new file when data is stored\n",
"../../src/dsproc_datastream_dod.c:722 sgpadiregulargridC1.c1: Getting datastream DOD from database\n",
" - data time: 2019-01-19 00:00:00\n",
"../../src/dsproc_datastream_dod.c:744 - DOD not defined in database\n",
"../../src/dsproc_dsdb.c:52 sgpadiregulargridC1.c1: Getting previously processed data times\n",
"../../src/dsproc_dsdb.c:103 - begin time: 2019-01-01 00:00:00\n",
" - end time: 2019-02-19 23:59:00\n",
"../../src/dsproc_retriever.c:2208 Loading retriever definition from database\n",
"\n",
"================================================================================\n",
"Retriever Definition:\n",
"================================================================================\n",
"\n",
"------------------------------------------------------------\n",
"Retriever Datastream Groups:\n",
"------------------------------------------------------------\n",
"\n",
"Group: met_b1\n",
"\n",
" sgpmetE13.b1\n",
" - dep_site: sgp\n",
" - dep_fac: C1\n",
" - dep_begin_date: NULL\n",
" - dep_end_date: NULL\n",
"\n",
" sgpmetC1.b1\n",
" - dep_site: NULL\n",
" - dep_fac: NULL\n",
" - dep_begin_date: NULL\n",
" - dep_end_date: NULL\n",
"\n",
"------------------------------------------------------------\n",
"Retriever Variables:\n",
"------------------------------------------------------------\n",
"\n",
"Group: met_b1\n",
"\n",
" alt()\n",
" - input search order:\n",
" - sgpmetE13.b1:alt\n",
" - sgpmetC1.b1:alt\n",
" - data_type: float\n",
" - units: NULL\n",
" - valid_min: NULL\n",
" - valid_max: NULL\n",
" - valid_delta: NULL\n",
" - start_offset: 0\n",
" - end_offset: 0\n",
" - required_to_run: 0\n",
" - retrieve_qc: 1\n",
" - qc_required_to_run: 0\n",
" - coordinate_system: half_min_grid\n",
" - output target: adiregulargrid.c1:alt\n",
"\n",
" lat()\n",
" - input search order:\n",
" - sgpmetE13.b1:lat\n",
" - sgpmetC1.b1:lat\n",
" - data_type: float\n",
" - units: NULL\n",
" - valid_min: NULL\n",
" - valid_max: NULL\n",
" - valid_delta: NULL\n",
" - start_offset: 0\n",
" - end_offset: 0\n",
" - required_to_run: 0\n",
" - retrieve_qc: 1\n",
" - qc_required_to_run: 0\n",
" - coordinate_system: half_min_grid\n",
" - output target: adiregulargrid.c1:lat\n",
"\n",
" lon()\n",
" - input search order:\n",
" - sgpmetE13.b1:lon\n",
" - sgpmetC1.b1:lon\n",
" - data_type: float\n",
" - units: NULL\n",
" - valid_min: NULL\n",
" - valid_max: NULL\n",
" - valid_delta: NULL\n",
" - start_offset: 0\n",
" - end_offset: 0\n",
" - required_to_run: 0\n",
" - retrieve_qc: 1\n",
" - qc_required_to_run: 0\n",
" - coordinate_system: half_min_grid\n",
" - output target: adiregulargrid.c1:lon\n",
"\n",
" met_temperature(time)\n",
" - input search order:\n",
" - sgpmetE13.b1:temp_mean\n",
" - sgpmetC1.b1:temp_mean\n",
" - data_type: float\n",
" - units: degC\n",
" - valid_min: NULL\n",
" - valid_max: NULL\n",
" - valid_delta: NULL\n",
" - start_offset: 0\n",
" - end_offset: 0\n",
" - required_to_run: 0\n",
" - retrieve_qc: 1\n",
" - qc_required_to_run: 0\n",
" - coordinate_system: half_min_grid\n",
" - output target: adiregulargrid.c1:met_temperature\n",
"\n",
"------------------------------------------------------------\n",
"Retriever Coordinate Systems:\n",
"------------------------------------------------------------\n",
"\n",
"Coordinate System: half_min_grid\n",
"\n",
" time\n",
" - data_type: NULL\n",
" - units: NULL\n",
" - start value: 0\n",
" - interval: 60\n",
" - length: 1441\n",
" - transformation parameters:\n",
" - type: NULL\n",
" - range: NULL\n",
" - alignment: NULL\n",
" - variable map: NULL\n",
"\n",
"------------------------------------------------------------\n",
"Retriever Extended Transformation Parameters:\n",
"------------------------------------------------------------\n",
"\n",
"No extended transformation parameters defined\n",
"\n",
"================================================================================\n",
"\n",
"../../src/dsproc_datastreams.c:930 sgpmetE13.b1: Initializing input datastream\n",
"../../src/dsproc_datastream_files.c:2424 sgpmetE13.b1: Setting input datastream path: /data/archive/sgp/sgpmetE13.b1\n",
"../../src/dsproc_datastreams.c:1259 sgpmetE13.b1: Setting input datastream format: NetCDF3\n",
"../../src/dsproc_datastreams.c:1170 sgpmetE13.b1: Setting input datastream control flags\n",
"../../src/dsproc_datastreams.c:1211 - DS_FILTER_VERSIONED_FILES\n",
"../../src/dsproc_dsdb.c:336 met.b1: Getting datastream properties from database\n",
"../../src/dsproc_dsdb.c:365 - null null\ttime:trans_bin_alignment\t'1970-01-01 00:00:00'\t'1'\n",
"../../src/dsproc_dsdb.c:365 - null null\ttime:trans_bin_width\t'1970-01-01 00:00:00'\t'60'\n",
"../../src/dsproc_datastreams.c:930 sgpmetC1.b1: Initializing input datastream\n",
"../../src/dsproc_datastream_files.c:2424 sgpmetC1.b1: Setting input datastream path: /data/archive/sgp/sgpmetC1.b1\n",
"../../src/dsproc_datastreams.c:1259 sgpmetC1.b1: Setting input datastream format: NetCDF3\n",
"../../src/dsproc_datastreams.c:1170 sgpmetC1.b1: Setting input datastream control flags\n",
"../../src/dsproc_datastreams.c:1211 - DS_FILTER_VERSIONED_FILES\n",
"../../src/dsproc_dsdb.c:336 met.b1: Getting datastream properties from database\n",
"../../src/dsproc_dsdb.c:365 - null null\ttime:trans_bin_alignment\t'1970-01-01 00:00:00'\t'1'\n",
"../../src/dsproc_dsdb.c:365 - null null\ttime:trans_bin_width\t'1970-01-01 00:00:00'\t'60'\n",
"../../src/dsproc_dsdb.c:798 Getting process configuration value\n",
" - key: 'processing_interval'\n",
"../../src/dsproc_dsdb.c:808 - value: '86400'\n",
"/home/kefeimo/.conda/envs/adi_notebook_demo/lib/python3.10/sit \n",
" ----- ENTERING INIT PROCESS HOOK -------\n",
"/home/kefeimo/.conda/envs/adi_notebook_demo/lib/python3.10/sit **************** Starting init_process_hook ****************\n",
"../../src/dsproc_map_data.c:1505 Setting transformation QC rollup flag to: 1\n",
"/home/kefeimo/.conda/envs/adi_notebook_demo/lib/python3.10/sit **************** Finished init_process_hook ****************\n",
"/home/kefeimo/.conda/envs/adi_notebook_demo/lib/python3.10/sit ----- EXITING INIT PROCESS HOOK --------\n",
" \n",
"../../src/dsproc_dsdb.c:292 ----- CLOSED DATABASE CONNECTION ------\n",
"\n",
"================================================================================\n",
"../../src/dsproc.c:3368 PROCESSING DATA:\n",
" - from: 2019-01-19 00:00:00\n",
" - to: 2019-01-20 00:00:00\n",
"================================================================================\n",
"\n",
"\n",
" ----- LOG MESSAGE ---------------------\n",
"../../src/dsproc.c:3374 \n",
" Processing data: 2019-01-19 00:00:00 -> 2019-01-20 00:00:00\n",
" ----- END LOG MESSAGE -----------------\n",
"\n",
"/home/kefeimo/.conda/envs/adi_notebook_demo/lib/python3.10/sit \n",
" ----- ENTERING PRE-RETRIEVAL HOOK ------\n",
"/home/kefeimo/.conda/envs/adi_notebook_demo/lib/python3.10/sit ----- EXITING PRE-RETRIEVAL HOOK -------\n",
"../../src/dsproc_retriever.c:2359 Retrieving input data for processing interval:\n",
" - begin time: 2019-01-19 00:00:00\n",
" - end time: 2019-01-20 00:00:00\n",
"../../src/dsproc_retriever.c:2411 sgpmetE13.b1: Initializing datastream for current processing interval\n",
"../../src/dsproc_trans_params.c:1103 Checking for transformation parameter files in: /home/kefeimo/.adi_tmp/data/conf//transform/adi_demo_0\n",
"../../src/dsproc_trans_params.c:1118 - directory not found\n",
"../../src/dsproc_trans_params.c:1103 Checking for transformation parameter files in: /home/kefeimo/apps/process/conf/vap/adi_demo_0/transform\n",
"../../src/dsproc_trans_params.c:1118 - directory not found\n",
"../../src/dsproc_trans_params.c:1273 Checking for trans params defined in ret_transform_params table for: sgpmetE13.b1\n",
"../../src/dsproc_trans_params.c:1322 - checking for: sgpmetE13.b1\n",
"../../src/dsproc_trans_params.c:1322 - checking for: sgpmet.b1\n",
"../../src/dsproc_trans_params.c:1322 - checking for: met.b1\n",
"../../src/dsproc_trans_params.c:1322 - checking for: met\n",
"../../src/dsproc_trans_params.c:1363 - none found\n",
"../../src/dsproc_retriever.c:2411 sgpmetC1.b1: Initializing datastream for current processing interval\n",
"../../src/dsproc_trans_params.c:1103 Checking for transformation parameter files in: /home/kefeimo/.adi_tmp/data/conf//transform/adi_demo_0\n",
"../../src/dsproc_trans_params.c:1118 - directory not found\n",
"../../src/dsproc_trans_params.c:1103 Checking for transformation parameter files in: /home/kefeimo/apps/process/conf/vap/adi_demo_0/transform\n",
"../../src/dsproc_trans_params.c:1118 - directory not found\n",
"../../src/dsproc_trans_params.c:1273 Checking for trans params defined in ret_transform_params table for: sgpmetC1.b1\n",
"../../src/dsproc_trans_params.c:1322 - checking for: sgpmetC1.b1\n",
"../../src/dsproc_trans_params.c:1322 - checking for: sgpmet.b1\n",
"../../src/dsproc_trans_params.c:1322 - checking for: met.b1\n",
"../../src/dsproc_trans_params.c:1322 - checking for: met\n",
"../../src/dsproc_trans_params.c:1363 - none found\n",
"../../src/dsproc_retriever.c:2568 ---------------------------------------\n",
" Retrieving data for group: met_b1\n",
" ---------------------------------------\n",
"../../src/dsproc_retriever.c:835 sgpmetE13.b1: Checking for input files\n",
" - path: /data/archive/sgp/sgpmetE13.b1\n",
" - interval: ['2019-01-19 00:00:00', '2019-01-20 00:00:00')\n",
"../../src/dsproc_retriever.c:417 - found: sgpmetE13.b1.20190119.000000.cdf ['2019-01-19 00:00:00', '2019-01-19 23:59:00']\n",
"../../src/dsproc_retriever.c:408 - skipping: sgpmetE13.b1.20190120.000000.cdf ['2019-01-20 00:00:00', '2019-01-20 23:59:00']\n",
"../../src/dsproc_retriever.c:1274 alt:\t\t sgpmetE13.b1.20190119.000000.cdf->alt\n",
"../../src/dsproc_retriever.c:1274 lat:\t\t sgpmetE13.b1.20190119.000000.cdf->lat\n",
"../../src/dsproc_retriever.c:1274 lon:\t\t sgpmetE13.b1.20190119.000000.cdf->lon\n",
"../../src/dsproc_retriever.c:1279 met_temperature:\t sgpmetE13.b1.20190119.000000.cdf->temp_mean\n",
"../../src/dsproc_retriever.c:1528 qc_met_temperature:\t sgpmetE13.b1.20190119.000000.cdf->qc_temp_mean\n",
"../../src/dsproc_retriever.c:2587 ---------------------------------------\n",
" Retrieval Summary:\n",
" ---------------------------------------\n",
"../../src/dsproc_retriever.c:2636 sgpmetE13.b1.20190119.000000.cdf: '2019-01-19 00:00:00' -> '2019-01-19 23:59:00', 1440 records\n",
"../../src/dsproc_retriever.c:2649 sgpmetC1.b1: removing empty datastream created by retriever\n",
"/home/kefeimo/.conda/envs/adi_notebook_demo/lib/python3.10/sit \n",
" ----- ENTERING POST-RETRIEVAL HOOK -----\n",
"/home/kefeimo/.conda/envs/adi_notebook_demo/lib/python3.10/sit ----- EXITING POST-RETRIEVAL HOOK ------\n",
" \n",
"/home/kefeimo/.conda/envs/adi_notebook_demo/lib/python3.10/sit \n",
" ----- ENTERING PRE-TRANSFORM HOOK ------\n",
"../../src/dsproc_print.c:152 Creating dataset dump file:\n",
" - dataset: /retrieved_data\n",
" - file: ./debug_dumps/sgpadi_demo_0C1.20190119.000000.pre_transform_start.debug\n",
"/home/kefeimo/.conda/envs/adi_notebook_demo/lib/python3.10/sit **************** Starting pre_transform_hook ****************\n",
"../../src/dsproc_print.c:152 Creating dataset dump file:\n",
" - dataset: /retrieved_data\n",
" - file: ./debug_dumps/sgpadi_demo_0C1.20190119.000000.pre_transform_end.debug\n",
"/home/kefeimo/.conda/envs/adi_notebook_demo/lib/python3.10/sit **************** Finished pre_transform_hook ****************\n",
"/home/kefeimo/.conda/envs/adi_notebook_demo/lib/python3.10/sit ----- EXITING PRE-TRANSFORM HOOK -------\n",
" \n",
"../../src/dsproc_transform.c:2972 ---------------------------------------\n",
" Transforming retrieved data to user defined coordinate systems\n",
" ---------------------------------------\n",
"../../src/dsproc_trans_params.c:578 Checking input transformation parameters for: sgpmetE13.b1.20190119.000000.cdf:time\n",
"../../src/dsproc_trans_params.c:259 Checking for bounds variable for: sgpmetE13.b1.20190119.000000.cdf:time\n",
"../../src/dsproc_trans_params.c:381 - checking for 'Conventions' global attribute\n",
"../../src/dsproc_trans_params.c:420 - 'Conventions' attribute not found\n",
"../../src/dsproc_trans_params.c:467 Checking for trans params defined in ds_property table for: sgpmetE13.b1.20190119.000000.cdf:time\n",
"../../src/dsproc_trans_params.c:488 - found: width = 60\n",
"../../src/dsproc_trans_params.c:511 - found: alignment = 1\n",
"../../src/dsproc_transform.c:2008 Creating transformation coordinate system: half_min_grid\n",
"../../src/dsproc_trans_params.c:1413 Checking for trans params defined by user for coodinate system: half_min_grid\n",
"../../src/dsproc_trans_params.c:1418 - none found\n",
"../../src/dsproc_trans_params.c:1103 Checking for transformation parameter files in: /home/kefeimo/.adi_tmp/data/conf//transform/adi_demo_0\n",
"../../src/dsproc_trans_params.c:1118 - directory not found\n",
"../../src/dsproc_trans_params.c:1103 Checking for transformation parameter files in: /home/kefeimo/apps/process/conf/vap/adi_demo_0/transform\n",
"../../src/dsproc_trans_params.c:1118 - directory not found\n",
"../../src/dsproc_trans_params.c:1273 Checking for trans params defined in ret_transform_params table for: half_min_grid\n",
"../../src/dsproc_trans_params.c:1322 - checking for: half_min_grid\n",
"../../src/dsproc_trans_params.c:1363 - none found\n",
"../../src/dsproc_transform.c:2054 Creating transformation datastream group: half_min_grid->sgpmetE13.b1\n",
"../../src/dsproc_transform.c:2581 sgpmetE13.b1->alt\n",
" - no transformation needed: copying variable data to transformation group\n",
"../../src/dsproc_transform.c:2581 sgpmetE13.b1->lat\n",
" - no transformation needed: copying variable data to transformation group\n",
"../../src/dsproc_transform.c:2581 sgpmetE13.b1->lon\n",
" - no transformation needed: copying variable data to transformation group\n",
"../../src/dsproc_transform.c:1857 half_min_grid->time\n",
" - creating user defined coordinate system dimension\n",
" - start value: 0\n",
" - length: 1441\n",
" - interval: 60 seconds since 2019-01-19 00:00:00 0:00\n",
"../../src/dsproc_trans_params.c:789 Checking for trans params defined in ret_coord_dims table for: half_min_grid:time\n",
"\n",
"--------------------------------------------------------------------\n",
"Transformation Parameters For: half_min_grid:time\n",
" -> after loading parameters defined in ret_coord_dims table\n",
"\n",
" Group: /transformed_data/half_min_grid\n",
"\n",
" time:interval = 60;\n",
" time:width = 60;\n",
"\n",
"--------------------------------------------------------------------\n",
"\n",
"../../src/dsproc_trans_params.c:259 Checking for bounds variable for: half_min_grid:time\n",
"../../src/dsproc_trans_params.c:381 - checking for 'Conventions' global attribute\n",
"../../src/dsproc_trans_params.c:420 - 'Conventions' attribute not found\n",
"../../src/dsproc_transform.c:2520 sgpmetE13.b1->met_temperature\n",
" - transforming variable data\n",
"\n",
" ----- LOG MESSAGE ---------------------\n",
"../../src/cds_transform_driver.c:817 Using interpolation for dim time in field met_temperature\n",
" ----- END LOG MESSAGE -----------------\n",
"\n",
"/home/kefeimo/.conda/envs/adi_notebook_demo/lib/python3.10/sit \n",
" ----- ENTERING POST-TRANSFORM HOOK -----\n",
"../../src/dsproc_print.c:152 Creating dataset dump file:\n",
" - dataset: /transformed_data\n",
" - file: ./debug_dumps/sgpadi_demo_0C1.20190119.000000.post_transform_start.debug\n",
"/home/kefeimo/.conda/envs/adi_notebook_demo/lib/python3.10/sit **************** Starting post_transform_hook ****************\n",
"../../src/dsproc_print.c:152 Creating dataset dump file:\n",
" - dataset: /transformed_data\n",
" - file: ./debug_dumps/sgpadi_demo_0C1.20190119.000000.post_transform_end.debug\n",
"/home/kefeimo/.conda/envs/adi_notebook_demo/lib/python3.10/sit **************** Finished post_transform_hook ****************\n",
"/home/kefeimo/.conda/envs/adi_notebook_demo/lib/python3.10/sit ----- EXITING POST-TRANSFORM HOOK ------\n",
" \n",
"../../src/dsproc_datasets.c:130 sgpadiregulargridC1.c1: Creating dataset\n",
"../../src/dsproc_dsdb.c:253 ----- OPENING DATABASE CONNECTION -----\n",
"../../src/dsproc_datastream_dod.c:722 sgpadiregulargridC1.c1: Getting datastream DOD from database\n",
" - data time: 2019-01-19 00:00:00\n",
"../../src/dsproc_datastream_dod.c:744 - DOD not defined in database\n",
"../../src/dsproc_dsdb.c:292 ----- CLOSED DATABASE CONNECTION ------\n",
"../../src/dsproc_datastream_dod.c:913 sgpadiregulargridC1.c1: Setting runtime attribute values\n",
"../../src/dsproc_datasets.c:223 sgpadiregulargridC1.c1: Setting location data\n",
"../../src/dsproc_map_data.c:1144 Mapping input variable to output variable\n",
" - input: sgpmetE13.b1->alt\n",
" - output: sgpadiregulargridC1.c1->alt\n",
"../../src/dsproc_map_data.c:1200 - source: 'sgpmetE13.b1:alt'\n",
"../../src/dsproc_map_data.c:1144 Mapping input variable to output variable\n",
" - input: sgpmetE13.b1->lat\n",
" - output: sgpadiregulargridC1.c1->lat\n",
"../../src/dsproc_map_data.c:1200 - source: 'sgpmetE13.b1:lat'\n",
"../../src/dsproc_map_data.c:1144 Mapping input variable to output variable\n",
" - input: sgpmetE13.b1->lon\n",
" - output: sgpadiregulargridC1.c1->lon\n",
"../../src/dsproc_map_data.c:1200 - source: 'sgpmetE13.b1:lon'\n",
"../../src/dsproc_map_data.c:1144 Mapping input variable to output variable\n",
" - input: sgpmetE13.b1->met_temperature\n",
" - output: sgpadiregulargridC1.c1->met_temperature\n",
"../../src/dsproc_map_data.c:1200 - source: 'sgpmetE13.b1:temp_mean'\n",
"../../src/dsproc_map_data.c:1316 - consolidating transformation QC variable data:\n",
" - input: sgpmetE13.b1->qc_met_temperature\n",
" - output: sgpadiregulargridC1.c1->qc_met_temperature\n",
"../../src/dsproc_map_data.c:1390 - copying 'dist_1' metric variable data:\n",
" - input: sgpmetE13.b1->met_temperature_dist_1\n",
" - output: sgpadiregulargridC1.c1->met_temperature_dist_1\n",
"../../src/dsproc_map_data.c:1390 - copying 'dist_2' metric variable data:\n",
" - input: sgpmetE13.b1->met_temperature_dist_2\n",
" - output: sgpadiregulargridC1.c1->met_temperature_dist_2\n",
"/home/kefeimo/.conda/envs/adi_notebook_demo/lib/python3.10/sit \n",
" ----- ENTERING PROCESS DATA HOOK -------\n",
"/home/kefeimo/.conda/envs/adi_notebook_demo/lib/python3.10/sit begin_date = 20190119.000000\n",
"/home/kefeimo/.conda/envs/adi_notebook_demo/lib/python3.10/sit end_date = 20190120.000000\n",
"../../src/dsproc_print.c:152 Creating dataset dump file:\n",
" - dataset: /sgpadiregulargridC1.c1\n",
" - file: ./debug_dumps/sgpadiregulargridC1.c1.20190119.000000.process_data_start.debug\n",
"/home/kefeimo/.conda/envs/adi_notebook_demo/lib/python3.10/sit **************** Starting process_data_hook ****************\n",
"../../src/dsproc_print.c:152 Creating dataset dump file:\n",
" - dataset: /sgpadiregulargridC1.c1\n",
" - file: ./debug_dumps/sgpadiregulargridC1.c1.20190119.000000.process_data_end.debug\n",
"/home/kefeimo/.conda/envs/adi_notebook_demo/lib/python3.10/sit **************** Finished process_data_hook ****************\n",
"/home/kefeimo/.conda/envs/adi_notebook_demo/lib/python3.10/sit ----- EXITING PROCESS DATA HOOK --------\n",
" \n",
"../../src/dsproc_dataset_filters.c:290 sgpadiregulargridC1.c1: Checking for overlapping samples in dataset\n",
"../../src/dsproc_dataset_store.c:856 sgpadiregulargridC1.c1: Validating time range ['2019-01-19 00:00:00' -> '2019-01-19 23:59:00']\n",
"\n",
" ----- LOG MESSAGE ---------------------\n",
"../../src/dsproc_dataset_store.c:1010 Storing: sgpadiregulargridC1.c1 data from '2019-01-19 00:00:00' to '2019-01-19 23:59:00': 1440 records\n",
" ----- END LOG MESSAGE -----------------\n",
"\n",
"../../src/dsproc_dataset_store.c:1103 sgpadiregulargridC1.c1: Creating new file for record set:\n",
" - times: '2019-01-19 00:00:00' to '2019-01-19 23:59:00'\n",
" - file: /home/kefeimo/.adi_tmp/data/datastream//sgp/sgpadiregulargridC1.c1/sgpadiregulargridC1.c1.20190119.000000.nc\n",
"../../src/dsproc_datastreams.c:1398 sgpadiregulargridC1.c1: Updating output datastream data stats\n",
" - num records: 1440\n",
" - begin time: 2019-01-19 00:00:00\n",
" - end time: 2019-01-19 23:59:00\n",
"/home/kefeimo/.conda/envs/adi_notebook_demo/lib/python3.10/sit \n",
" ----- ENTERING QUICKLOOK HOOK -----\n",
"/home/kefeimo/.conda/envs/adi_notebook_demo/lib/python3.10/sit ----- EXITING QUICKLOOK HOOK ------\n",
" \n",
"/home/kefeimo/.conda/envs/adi_notebook_demo/lib/python3.10/sit \n",
" ----- ENTERING FINISH PROCESS HOOK -----\n",
"/home/kefeimo/.conda/envs/adi_notebook_demo/lib/python3.10/sit **************** Starting finish_process_hook ****************\n",
"/home/kefeimo/.conda/envs/adi_notebook_demo/lib/python3.10/sit **************** Finished finish_process_hook ****************\n",
"/home/kefeimo/.conda/envs/adi_notebook_demo/lib/python3.10/sit ----- EXITING FINISH PROCESS HOOK ------\n",
" \n",
"\n",
"================================================================================\n",
"../../src/dsproc.c:3433 EXITING PROCESS\n",
"================================================================================\n",
"\n",
"../../src/dsproc.c:3457 \n",
" Datastream Stats: sgpmetE13.b1\n",
" - begin time: 2019-01-19 00:00:00\n",
" - end time: 2019-01-19 23:59:00\n",
" - total records: 1440\n",
"\n",
" ----- LOG MESSAGE ---------------------\n",
"../../src/dsproc.c:3497 \n",
" Datastream Stats: sgpadiregulargridC1.c1\n",
" - begin time: 2019-01-19 00:00:00\n",
" - end time: 2019-01-19 23:59:00\n",
"../../src/dsproc.c:3516 - total records: 1440\n",
"../../src/dsproc.c:3525 - output files:\n",
"../../src/dsproc.c:3529 - sgpadiregulargridC1.c1.20190119.000000.nc\n",
" ----- END LOG MESSAGE -----------------\n",
"\n",
"../../src/dsproc_dsdb.c:253 ----- OPENING DATABASE CONNECTION -----\n",
"../../src/dsproc.c:3594 Updating process status in database\n",
"../../src/dsproc_dsdb.c:149 Storing updated datastream times in database\n",
"../../src/dsproc_dsdb.c:185 - sgpadiregulargridC1.c1:\n",
" - begin time: 2019-01-19 00:00:00\n",
" - end time: 2019-01-19 23:59:00\n",
"../../src/dsproc_dsdb.c:292 ----- CLOSED DATABASE CONNECTION ------\n",
"../../src/dsproc.c:3716 Adding process status to mail messages\n",
"../../src/dsproc.c:3750 Adding process status to log file\n",
"\n",
" ----- LOG MESSAGE ---------------------\n",
"../../src/dsproc.c:3755 \n",
" Current Status (2024-03-22 00:04:48):\n",
" Process: sgpC1-adi_demo_0-VAP\n",
" Version: __version__\n",
" Host: dev-proc2.adc.arm.gov\n",
" Status: Successful\n",
" ----- END LOG MESSAGE -----------------\n",
"\n",
"../../src/dsproc.c:210 Removing process lockfile:\n",
" - path: /home/kefeimo/.adi_tmp/data/logs//sgp/lockfiles\n",
" - name: sgpC1-adi_demo_0-VAP.lock\n",
"../../src/dsproc.c:1674 Freeing internal memory\n",
"../../src/dsproc.c:3798 Suggested exit value: 0 (successful)\n"
]
}
],
"source": [
"# process/consolidate data to retrieve datasets in interests\n",
"prc_adi_demo_0.process()"
]
},
{
"cell_type": "code",
"execution_count": 4,
"id": "2d02cad2-4a3d-40f2-816f-37190e249a5b",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"[{'met.b1': <PrettyXarrayDataset>({\n",
" \"Coordinates\": \"['time']\",\n",
" \"Data variables\": \"['alt', 'lat', 'lon', 'met_temperature', 'qc_met_temperature']\",\n",
" \"dod_version\": \"met-b1-7.3\"\n",
" })}]"
]
},
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# explore the input-dataset(s)\n",
"ds_ins = prc_adi_demo_0.get_ds_ins()\n",
"ds_ins\n"
]
},
{
"cell_type": "code",
"execution_count": 5,
"id": "b1cb8eed",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div><svg style=\"position: absolute; width: 0; height: 0; overflow: hidden\">\n",
"<defs>\n",
"<symbol id=\"icon-database\" viewBox=\"0 0 32 32\">\n",
"<path d=\"M16 0c-8.837 0-16 2.239-16 5v4c0 2.761 7.163 5 16 5s16-2.239 16-5v-4c0-2.761-7.163-5-16-5z\"></path>\n",
"<path d=\"M16 17c-8.837 0-16-2.239-16-5v6c0 2.761 7.163 5 16 5s16-2.239 16-5v-6c0 2.761-7.163 5-16 5z\"></path>\n",
"<path d=\"M16 26c-8.837 0-16-2.239-16-5v6c0 2.761 7.163 5 16 5s16-2.239 16-5v-6c0 2.761-7.163 5-16 5z\"></path>\n",
"</symbol>\n",
"<symbol id=\"icon-file-text2\" viewBox=\"0 0 32 32\">\n",
"<path d=\"M28.681 7.159c-0.694-0.947-1.662-2.053-2.724-3.116s-2.169-2.030-3.116-2.724c-1.612-1.182-2.393-1.319-2.841-1.319h-15.5c-1.378 0-2.5 1.121-2.5 2.5v27c0 1.378 1.122 2.5 2.5 2.5h23c1.378 0 2.5-1.122 2.5-2.5v-19.5c0-0.448-0.137-1.23-1.319-2.841zM24.543 5.457c0.959 0.959 1.712 1.825 2.268 2.543h-4.811v-4.811c0.718 0.556 1.584 1.309 2.543 2.268zM28 29.5c0 0.271-0.229 0.5-0.5 0.5h-23c-0.271 0-0.5-0.229-0.5-0.5v-27c0-0.271 0.229-0.5 0.5-0.5 0 0 15.499-0 15.5 0v7c0 0.552 0.448 1 1 1h7v19.5z\"></path>\n",
"<path d=\"M23 26h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"<path d=\"M23 22h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"<path d=\"M23 18h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"</symbol>\n",
"</defs>\n",
"</svg>\n",
"<style>/* CSS stylesheet for displaying xarray objects in jupyterlab.\n",
" *\n",
" */\n",
"\n",
":root {\n",
" --xr-font-color0: var(--jp-content-font-color0, rgba(0, 0, 0, 1));\n",
" --xr-font-color2: var(--jp-content-font-color2, rgba(0, 0, 0, 0.54));\n",
" --xr-font-color3: var(--jp-content-font-color3, rgba(0, 0, 0, 0.38));\n",
" --xr-border-color: var(--jp-border-color2, #e0e0e0);\n",
" --xr-disabled-color: var(--jp-layout-color3, #bdbdbd);\n",
" --xr-background-color: var(--jp-layout-color0, white);\n",
" --xr-background-color-row-even: var(--jp-layout-color1, white);\n",
" --xr-background-color-row-odd: var(--jp-layout-color2, #eeeeee);\n",
"}\n",
"\n",
"html[theme=dark],\n",
"body[data-theme=dark],\n",
"body.vscode-dark {\n",
" --xr-font-color0: rgba(255, 255, 255, 1);\n",
" --xr-font-color2: rgba(255, 255, 255, 0.54);\n",
" --xr-font-color3: rgba(255, 255, 255, 0.38);\n",
" --xr-border-color: #1F1F1F;\n",
" --xr-disabled-color: #515151;\n",
" --xr-background-color: #111111;\n",
" --xr-background-color-row-even: #111111;\n",
" --xr-background-color-row-odd: #313131;\n",
"}\n",
"\n",
".xr-wrap {\n",
" display: block !important;\n",
" min-width: 300px;\n",
" max-width: 700px;\n",
"}\n",
"\n",
".xr-text-repr-fallback {\n",
" /* fallback to plain text repr when CSS is not injected (untrusted notebook) */\n",
" display: none;\n",
"}\n",
"\n",
".xr-header {\n",
" padding-top: 6px;\n",
" padding-bottom: 6px;\n",
" margin-bottom: 4px;\n",
" border-bottom: solid 1px var(--xr-border-color);\n",
"}\n",
"\n",
".xr-header > div,\n",
".xr-header > ul {\n",
" display: inline;\n",
" margin-top: 0;\n",
" margin-bottom: 0;\n",
"}\n",
"\n",
".xr-obj-type,\n",
".xr-array-name {\n",
" margin-left: 2px;\n",
" margin-right: 10px;\n",
"}\n",
"\n",
".xr-obj-type {\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-sections {\n",
" padding-left: 0 !important;\n",
" display: grid;\n",
" grid-template-columns: 150px auto auto 1fr 20px 20px;\n",
"}\n",
"\n",
".xr-section-item {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-section-item input {\n",
" display: none;\n",
"}\n",
"\n",
".xr-section-item input + label {\n",
" color: var(--xr-disabled-color);\n",
"}\n",
"\n",
".xr-section-item input:enabled + label {\n",
" cursor: pointer;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-section-item input:enabled + label:hover {\n",
" color: var(--xr-font-color0);\n",
"}\n",
"\n",
".xr-section-summary {\n",
" grid-column: 1;\n",
" color: var(--xr-font-color2);\n",
" font-weight: 500;\n",
"}\n",
"\n",
".xr-section-summary > span {\n",
" display: inline-block;\n",
" padding-left: 0.5em;\n",
"}\n",
"\n",
".xr-section-summary-in:disabled + label {\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-section-summary-in + label:before {\n",
" display: inline-block;\n",
" content: '►';\n",
" font-size: 11px;\n",
" width: 15px;\n",
" text-align: center;\n",
"}\n",
"\n",
".xr-section-summary-in:disabled + label:before {\n",
" color: var(--xr-disabled-color);\n",
"}\n",
"\n",
".xr-section-summary-in:checked + label:before {\n",
" content: '▼';\n",
"}\n",
"\n",
".xr-section-summary-in:checked + label > span {\n",
" display: none;\n",
"}\n",
"\n",
".xr-section-summary,\n",
".xr-section-inline-details {\n",
" padding-top: 4px;\n",
" padding-bottom: 4px;\n",
"}\n",
"\n",
".xr-section-inline-details {\n",
" grid-column: 2 / -1;\n",
"}\n",
"\n",
".xr-section-details {\n",
" display: none;\n",
" grid-column: 1 / -1;\n",
" margin-bottom: 5px;\n",
"}\n",
"\n",
".xr-section-summary-in:checked ~ .xr-section-details {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-array-wrap {\n",
" grid-column: 1 / -1;\n",
" display: grid;\n",
" grid-template-columns: 20px auto;\n",
"}\n",
"\n",
".xr-array-wrap > label {\n",
" grid-column: 1;\n",
" vertical-align: top;\n",
"}\n",
"\n",
".xr-preview {\n",
" color: var(--xr-font-color3);\n",
"}\n",
"\n",
".xr-array-preview,\n",
".xr-array-data {\n",
" padding: 0 5px !important;\n",
" grid-column: 2;\n",
"}\n",
"\n",
".xr-array-data,\n",
".xr-array-in:checked ~ .xr-array-preview {\n",
" display: none;\n",
"}\n",
"\n",
".xr-array-in:checked ~ .xr-array-data,\n",
".xr-array-preview {\n",
" display: inline-block;\n",
"}\n",
"\n",
".xr-dim-list {\n",
" display: inline-block !important;\n",
" list-style: none;\n",
" padding: 0 !important;\n",
" margin: 0;\n",
"}\n",
"\n",
".xr-dim-list li {\n",
" display: inline-block;\n",
" padding: 0;\n",
" margin: 0;\n",
"}\n",
"\n",
".xr-dim-list:before {\n",
" content: '(';\n",
"}\n",
"\n",
".xr-dim-list:after {\n",
" content: ')';\n",
"}\n",
"\n",
".xr-dim-list li:not(:last-child):after {\n",
" content: ',';\n",
" padding-right: 5px;\n",
"}\n",
"\n",
".xr-has-index {\n",
" font-weight: bold;\n",
"}\n",
"\n",
".xr-var-list,\n",
".xr-var-item {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-var-item > div,\n",
".xr-var-item label,\n",
".xr-var-item > .xr-var-name span {\n",
" background-color: var(--xr-background-color-row-even);\n",
" margin-bottom: 0;\n",
"}\n",
"\n",
".xr-var-item > .xr-var-name:hover span {\n",
" padding-right: 5px;\n",
"}\n",
"\n",
".xr-var-list > li:nth-child(odd) > div,\n",
".xr-var-list > li:nth-child(odd) > label,\n",
".xr-var-list > li:nth-child(odd) > .xr-var-name span {\n",
" background-color: var(--xr-background-color-row-odd);\n",
"}\n",
"\n",
".xr-var-name {\n",
" grid-column: 1;\n",
"}\n",
"\n",
".xr-var-dims {\n",
" grid-column: 2;\n",
"}\n",
"\n",
".xr-var-dtype {\n",
" grid-column: 3;\n",
" text-align: right;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-var-preview {\n",
" grid-column: 4;\n",
"}\n",
"\n",
".xr-index-preview {\n",
" grid-column: 2 / 5;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-var-name,\n",
".xr-var-dims,\n",
".xr-var-dtype,\n",
".xr-preview,\n",
".xr-attrs dt {\n",
" white-space: nowrap;\n",
" overflow: hidden;\n",
" text-overflow: ellipsis;\n",
" padding-right: 10px;\n",
"}\n",
"\n",
".xr-var-name:hover,\n",
".xr-var-dims:hover,\n",
".xr-var-dtype:hover,\n",
".xr-attrs dt:hover {\n",
" overflow: visible;\n",
" width: auto;\n",
" z-index: 1;\n",
"}\n",
"\n",
".xr-var-attrs,\n",
".xr-var-data,\n",
".xr-index-data {\n",
" display: none;\n",
" background-color: var(--xr-background-color) !important;\n",
" padding-bottom: 5px !important;\n",
"}\n",
"\n",
".xr-var-attrs-in:checked ~ .xr-var-attrs,\n",
".xr-var-data-in:checked ~ .xr-var-data,\n",
".xr-index-data-in:checked ~ .xr-index-data {\n",
" display: block;\n",
"}\n",
"\n",
".xr-var-data > table {\n",
" float: right;\n",
"}\n",
"\n",
".xr-var-name span,\n",
".xr-var-data,\n",
".xr-index-name div,\n",
".xr-index-data,\n",
".xr-attrs {\n",
" padding-left: 25px !important;\n",
"}\n",
"\n",
".xr-attrs,\n",
".xr-var-attrs,\n",
".xr-var-data,\n",
".xr-index-data {\n",
" grid-column: 1 / -1;\n",
"}\n",
"\n",
"dl.xr-attrs {\n",
" padding: 0;\n",
" margin: 0;\n",
" display: grid;\n",
" grid-template-columns: 125px auto;\n",
"}\n",
"\n",
".xr-attrs dt,\n",
".xr-attrs dd {\n",
" padding: 0;\n",
" margin: 0;\n",
" float: left;\n",
" padding-right: 10px;\n",
" width: auto;\n",
"}\n",
"\n",
".xr-attrs dt {\n",
" font-weight: normal;\n",
" grid-column: 1;\n",
"}\n",
"\n",
".xr-attrs dt:hover span {\n",
" display: inline-block;\n",
" background: var(--xr-background-color);\n",
" padding-right: 10px;\n",
"}\n",
"\n",
".xr-attrs dd {\n",
" grid-column: 2;\n",
" white-space: pre-wrap;\n",
" word-break: break-all;\n",
"}\n",
"\n",