Skip to content

Commit 81189fa

Browse files
committed
first functional version of the notebook ensemble
1 parent 886b5f5 commit 81189fa

File tree

5 files changed

+1217
-670
lines changed

5 files changed

+1217
-670
lines changed
File renamed without changes.

Notebooks/R/dataset_PTI-grid-v4.ipynb

Lines changed: 105 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -431,29 +431,29 @@
431431
"name": "stderr",
432432
"output_type": "stream",
433433
"text": [
434-
"[2026-02-25 16:36:11.666971] Doing inventory ...\n",
434+
"[2026-02-26 10:57:58.07167] Doing inventory ...\n",
435435
"\n",
436-
"[2026-02-25 16:36:11.696552] Opening dataset...\n",
436+
"[2026-02-26 10:57:58.095198] Opening dataset...\n",
437437
"\n",
438-
"[2026-02-25 16:36:12.733087] The dataset was successfuly opened\n",
438+
"[2026-02-26 10:57:59.190048] The dataset was successfuly opened\n",
439439
"\n",
440-
"[2026-02-25 16:36:12.853027] Retrieving info for 'tmin' (7 vars remaining)\n",
440+
"[2026-02-26 10:57:59.318203] Retrieving info for 'tasmin' (7 vars remaining)\n",
441441
"\n",
442-
"[2026-02-25 16:36:12.951942] Retrieving info for 'tmax' (6 vars remaining)\n",
442+
"[2026-02-26 10:57:59.407681] Retrieving info for 'tasmax' (6 vars remaining)\n",
443443
"\n",
444-
"[2026-02-25 16:36:13.077873] Retrieving info for 'ssrd' (5 vars remaining)\n",
444+
"[2026-02-26 10:57:59.510057] Retrieving info for 'ssrd' (5 vars remaining)\n",
445445
"\n",
446-
"[2026-02-25 16:36:13.14686] Retrieving info for 'ws' (4 vars remaining)\n",
446+
"[2026-02-26 10:57:59.572414] Retrieving info for 'wss' (4 vars remaining)\n",
447447
"\n",
448-
"[2026-02-25 16:36:13.227625] Retrieving info for 'pr' (3 vars remaining)\n",
448+
"[2026-02-26 10:57:59.64242] Retrieving info for 'pr' (3 vars remaining)\n",
449449
"\n",
450-
"[2026-02-25 16:36:13.295969] Retrieving info for 'hr' (2 vars remaining)\n",
450+
"[2026-02-26 10:57:59.705594] Retrieving info for 'hurs' (2 vars remaining)\n",
451451
"\n",
452-
"[2026-02-25 16:36:13.361846] Retrieving info for 'trange' (1 vars remaining)\n",
452+
"[2026-02-26 10:57:59.76387] Retrieving info for 'tasrange' (1 vars remaining)\n",
453453
"\n",
454-
"[2026-02-25 16:36:13.433869] Retrieving info for 'tdew' (0 vars remaining)\n",
454+
"[2026-02-26 10:57:59.830799] Retrieving info for 'tdps' (0 vars remaining)\n",
455455
"\n",
456-
"[2026-02-25 16:36:13.499256] Done.\n",
456+
"[2026-02-26 10:57:59.890687] Done.\n",
457457
"\n"
458458
]
459459
}
@@ -475,7 +475,7 @@
475475
"output_type": "stream",
476476
"text": [
477477
"List of 8\n",
478-
" $ tmin :List of 7\n",
478+
" $ tasmin :List of 7\n",
479479
" ..$ Description: chr \"Minimum daily temperature\"\n",
480480
" ..$ DataType : chr \"float\"\n",
481481
" ..$ Shape : int [1:3] 23680 342 545\n",
@@ -500,7 +500,7 @@
500500
" .. .. ..$ Values : num [1:545] -9.29 -9.26 -9.24 -9.21 -9.19 ...\n",
501501
" .. .. ..$ Shape : int 545\n",
502502
" .. .. ..$ Coordinates: chr \"longitude\"\n",
503-
" $ tmax :List of 7\n",
503+
" $ tasmax :List of 7\n",
504504
" ..$ Description: chr \"Maximum daily temperature\"\n",
505505
" ..$ DataType : chr \"float\"\n",
506506
" ..$ Shape : int [1:3] 23680 342 545\n",
@@ -525,7 +525,7 @@
525525
" .. .. ..$ Values : num [1:545] -9.29 -9.26 -9.24 -9.21 -9.19 ...\n",
526526
" .. .. ..$ Shape : int 545\n",
527527
" .. .. ..$ Coordinates: chr \"longitude\"\n",
528-
" $ ssrd :List of 7\n",
528+
" $ ssrd :List of 7\n",
529529
" ..$ Description: chr \"Daily total global radiation\"\n",
530530
" ..$ DataType : chr \"float\"\n",
531531
" ..$ Shape : int [1:3] 23680 342 545\n",
@@ -550,7 +550,7 @@
550550
" .. .. ..$ Values : num [1:545] -9.29 -9.26 -9.24 -9.21 -9.19 ...\n",
551551
" .. .. ..$ Shape : int 545\n",
552552
" .. .. ..$ Coordinates: chr \"longitude\"\n",
553-
" $ ws :List of 7\n",
553+
" $ wss :List of 7\n",
554554
" ..$ Description: chr \"Daily average wind speed, average of four synoptic measurements\"\n",
555555
" ..$ DataType : chr \"float\"\n",
556556
" ..$ Shape : int [1:3] 23680 342 545\n",
@@ -575,7 +575,7 @@
575575
" .. .. ..$ Values : num [1:545] -9.29 -9.26 -9.24 -9.21 -9.19 ...\n",
576576
" .. .. ..$ Shape : int 545\n",
577577
" .. .. ..$ Coordinates: chr \"longitude\"\n",
578-
" $ pr :List of 7\n",
578+
" $ pr :List of 7\n",
579579
" ..$ Description: chr \"Daily cumulative precipitation\"\n",
580580
" ..$ DataType : chr \"float\"\n",
581581
" ..$ Shape : int [1:3] 23680 342 545\n",
@@ -600,7 +600,7 @@
600600
" .. .. ..$ Values : num [1:545] -9.29 -9.26 -9.24 -9.21 -9.19 ...\n",
601601
" .. .. ..$ Shape : int 545\n",
602602
" .. .. ..$ Coordinates: chr \"longitude\"\n",
603-
" $ hr :List of 7\n",
603+
" $ hurs :List of 7\n",
604604
" ..$ Description: chr \"Daily mean relative humidity, average of four synoptic measurements\"\n",
605605
" ..$ DataType : chr \"float\"\n",
606606
" ..$ Shape : int [1:3] 23680 342 545\n",
@@ -625,7 +625,7 @@
625625
" .. .. ..$ Values : num [1:545] -9.29 -9.26 -9.24 -9.21 -9.19 ...\n",
626626
" .. .. ..$ Shape : int 545\n",
627627
" .. .. ..$ Coordinates: chr \"longitude\"\n",
628-
" $ trange:List of 7\n",
628+
" $ tasrange:List of 7\n",
629629
" ..$ Description: chr \"Daily thermal range\"\n",
630630
" ..$ DataType : chr \"float\"\n",
631631
" ..$ Shape : int [1:3] 23680 342 545\n",
@@ -650,7 +650,7 @@
650650
" .. .. ..$ Values : num [1:545] -9.29 -9.26 -9.24 -9.21 -9.19 ...\n",
651651
" .. .. ..$ Shape : int 545\n",
652652
" .. .. ..$ Coordinates: chr \"longitude\"\n",
653-
" $ tdew :List of 7\n",
653+
" $ tdps :List of 7\n",
654654
" ..$ Description: chr \"Dew point temperature\"\n",
655655
" ..$ DataType : chr \"float\"\n",
656656
" ..$ Shape : int [1:3] 23680 342 545\n",
@@ -700,19 +700,19 @@
700700
"name": "stderr",
701701
"output_type": "stream",
702702
"text": [
703-
"[2026-02-25 16:36:13.75982] Opening dataset...\n",
703+
"[2026-02-26 10:58:00.154864] Opening dataset...\n",
704704
"\n",
705-
"[2026-02-25 16:36:13.912413] The dataset was successfuly opened\n",
705+
"[2026-02-26 10:58:00.295488] The dataset was successfuly opened\n",
706706
"\n",
707-
"[2026-02-25 16:36:13.918374] Defining geo-location parameters\n",
707+
"[2026-02-26 10:58:00.300897] Defining geo-location parameters\n",
708708
"\n",
709-
"[2026-02-25 16:36:13.999306] Defining time selection parameters\n",
709+
"[2026-02-26 10:58:00.381595] Defining time selection parameters\n",
710710
"\n",
711711
"NOTE: Daily data will be monthly aggregated\n",
712712
"\n",
713-
"[2026-02-25 16:36:14.229326] Retrieving data subset ...\n",
713+
"[2026-02-26 10:58:00.604385] Retrieving data subset ...\n",
714714
"\n",
715-
"[2026-02-25 16:42:33.583435] Done\n",
715+
"[2026-02-26 11:04:03.684488] Done\n",
716716
"\n"
717717
]
718718
}
@@ -796,9 +796,9 @@
796796
"name": "stderr",
797797
"output_type": "stream",
798798
"text": [
799-
"[2026-02-25 16:42:33.754941] - Computing climatology...\n",
799+
"[2026-02-26 11:04:03.892355] - Computing climatology...\n",
800800
"\n",
801-
"[2026-02-25 16:42:35.229155] - Done.\n",
801+
"[2026-02-26 11:04:05.590404] - Done.\n",
802802
"\n"
803803
]
804804
}
@@ -825,9 +825,9 @@
825825
"name": "stderr",
826826
"output_type": "stream",
827827
"text": [
828-
"[2026-02-25 16:42:35.473916] Performing annual aggregation...\n",
828+
"[2026-02-26 11:04:05.871464] Performing annual aggregation...\n",
829829
"\n",
830-
"[2026-02-25 16:43:05.631059] Done.\n",
830+
"[2026-02-26 11:04:41.722887] Done.\n",
831831
"\n"
832832
]
833833
}
@@ -959,9 +959,9 @@
959959
"name": "stderr",
960960
"output_type": "stream",
961961
"text": [
962-
"[2026-02-25 16:43:07.404703] - Computing climatology...\n",
962+
"[2026-02-26 11:04:43.889463] - Computing climatology...\n",
963963
"\n",
964-
"[2026-02-25 16:43:29.149606] - Done.\n",
964+
"[2026-02-26 11:05:08.505319] - Done.\n",
965965
"\n"
966966
]
967967
}
@@ -1019,35 +1019,35 @@
10191019
},
10201020
{
10211021
"cell_type": "code",
1022-
"execution_count": 21,
1022+
"execution_count": 20,
10231023
"id": "00bfbeb4-73ee-4b3f-958d-3dd4e3f7d29a",
10241024
"metadata": {},
10251025
"outputs": [
10261026
{
10271027
"name": "stderr",
10281028
"output_type": "stream",
10291029
"text": [
1030-
"[2026-02-25 16:47:03.781459] Opening dataset...\n",
1030+
"[2026-02-26 11:05:09.905068] Opening dataset...\n",
10311031
"\n",
1032-
"[2026-02-25 16:47:03.938993] The dataset was successfuly opened\n",
1032+
"[2026-02-26 11:05:10.035877] The dataset was successfuly opened\n",
10331033
"\n",
1034-
"[2026-02-25 16:47:03.943689] Defining geo-location parameters\n",
1034+
"[2026-02-26 11:05:10.04091] Defining geo-location parameters\n",
10351035
"\n",
1036-
"[2026-02-25 16:47:04.010975] Defining time selection parameters\n",
1036+
"[2026-02-26 11:05:10.147461] Defining time selection parameters\n",
10371037
"\n",
10381038
"NOTE: Daily data will be monthly aggregated\n",
10391039
"\n",
1040-
"[2026-02-25 16:47:04.166332] Retrieving data subset ...\n",
1040+
"[2026-02-26 11:05:10.322202] Retrieving data subset ...\n",
10411041
"\n",
1042-
"[2026-02-25 16:47:36.869815] Done\n",
1042+
"[2026-02-26 11:05:44.855558] Done\n",
10431043
"\n",
1044-
"[2026-02-25 16:47:36.877825] - Computing climatology...\n",
1044+
"[2026-02-26 11:05:44.864328] - Computing climatology...\n",
10451045
"\n",
1046-
"[2026-02-25 16:47:37.015579] - Done.\n",
1046+
"[2026-02-26 11:05:45.010137] - Done.\n",
10471047
"\n",
1048-
"[2026-02-25 16:47:37.029816] Performing annual aggregation...\n",
1048+
"[2026-02-26 11:05:45.024744] Performing annual aggregation...\n",
10491049
"\n",
1050-
"[2026-02-25 16:47:40.167234] Done.\n",
1050+
"[2026-02-26 11:05:48.409719] Done.\n",
10511051
"\n"
10521052
]
10531053
}
@@ -1076,7 +1076,7 @@
10761076
},
10771077
{
10781078
"cell_type": "code",
1079-
"execution_count": 22,
1079+
"execution_count": 21,
10801080
"id": "3551e93d-84a1-4874-a42f-a17224b2520c",
10811081
"metadata": {},
10821082
"outputs": [
@@ -1158,10 +1158,69 @@
11581158
},
11591159
{
11601160
"cell_type": "code",
1161-
"execution_count": null,
1161+
"execution_count": 22,
11621162
"id": "8a2fc8e3-620e-4710-9eaf-7730f7278269",
11631163
"metadata": {},
1164-
"outputs": [],
1164+
"outputs": [
1165+
{
1166+
"data": {
1167+
"text/plain": [
1168+
"R version 4.3.3 (2024-02-29)\n",
1169+
"Platform: x86_64-conda-linux-gnu (64-bit)\n",
1170+
"Running under: Ubuntu 22.04.3 LTS\n",
1171+
"\n",
1172+
"Matrix products: default\n",
1173+
"BLAS/LAPACK: /opt/conda/envs/climate4r/lib/libopenblasp-r0.3.28.so; LAPACK version 3.12.0\n",
1174+
"\n",
1175+
"locale:\n",
1176+
" [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C \n",
1177+
" [3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8 \n",
1178+
" [5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 \n",
1179+
" [7] LC_PAPER=en_US.UTF-8 LC_NAME=en_US.UTF-8 \n",
1180+
" [9] LC_ADDRESS=en_US.UTF-8 LC_TELEPHONE=en_US.UTF-8 \n",
1181+
"[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=en_US.UTF-8\n",
1182+
"\n",
1183+
"time zone: Etc/UTC\n",
1184+
"tzcode source: system (glibc)\n",
1185+
"\n",
1186+
"attached base packages:\n",
1187+
"[1] stats graphics grDevices utils datasets methods base \n",
1188+
"\n",
1189+
"other attached packages:\n",
1190+
"[1] visualizeR_1.6.4 transformeR_2.2.2 loadeR_1.8.1 \n",
1191+
"[4] climate4R.UDG_0.2.6 loadeR.java_1.1.1 rJava_1.0-11 \n",
1192+
"[7] repr_1.1.7 \n",
1193+
"\n",
1194+
"loaded via a namespace (and not attached):\n",
1195+
" [1] dotCall64_1.2 spam_2.11-0 latticeExtra_0.6-30 \n",
1196+
" [4] lattice_0.22-6 vctrs_0.6.5 mapplots_1.5.2 \n",
1197+
" [7] tools_4.3.3 bitops_1.0-9 generics_0.1.3 \n",
1198+
"[10] parallel_4.3.3 tibble_3.2.1 proxy_0.4-27 \n",
1199+
"[13] fansi_1.0.6 SpecsVerification_0.5-3 pkgconfig_2.0.3 \n",
1200+
"[16] data.table_1.15.4 RColorBrewer_1.1-3 uuid_1.2-1 \n",
1201+
"[19] lifecycle_1.0.4 compiler_4.3.3 kohonen_3.0.12 \n",
1202+
"[22] deldir_2.0-4 fields_16.3 munsell_0.5.1 \n",
1203+
"[25] akima_0.6-3.4 htmltools_0.5.8.1 maps_3.4.2 \n",
1204+
"[28] RCurl_1.98-1.16 pillar_1.9.0 crayon_1.5.3 \n",
1205+
"[31] MASS_7.3-60.0.1 boot_1.3-31 abind_1.4-5 \n",
1206+
"[34] vioplot_0.5.0 padr_0.6.2 verification_1.42 \n",
1207+
"[37] tidyselect_1.2.1 digest_0.6.37 dplyr_1.1.4 \n",
1208+
"[40] fastmap_1.2.0 grid_4.3.3 colorspace_2.1-1 \n",
1209+
"[43] cli_3.6.3 magrittr_2.0.3 base64enc_0.1-3 \n",
1210+
"[46] utf8_1.2.4 sm_2.2-6.0 IRdisplay_1.1 \n",
1211+
"[49] withr_3.0.2 scales_1.3.0 sp_2.1-4 \n",
1212+
"[52] IRkernel_1.3.2 jpeg_0.1-10 interp_1.1-6 \n",
1213+
"[55] pbdZMQ_0.3-13 RcppEigen_0.3.4.0.2 zoo_1.8-12 \n",
1214+
"[58] png_0.1-8 pbapply_1.7-2 evaluate_1.0.1 \n",
1215+
"[61] dtw_1.23-1 viridisLite_0.4.2 rlang_1.1.4 \n",
1216+
"[64] Rcpp_1.0.13-1 glue_1.8.0 easyVerification_0.4.5 \n",
1217+
"[67] CircStats_0.2-6 jsonlite_1.8.9 R6_2.5.1 "
1218+
]
1219+
},
1220+
"metadata": {},
1221+
"output_type": "display_data"
1222+
}
1223+
],
11651224
"source": [
11661225
"sessionInfo()"
11671226
]

0 commit comments

Comments
 (0)