-
Notifications
You must be signed in to change notification settings - Fork 3
/
Historical_TasMin_TasMax_Pr_Daily_Print.py
1954 lines (1753 loc) · 116 KB
/
Historical_TasMin_TasMax_Pr_Daily_Print.py
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
"""
Created on Monday 13 June 2019
@author: s0899345
"""
import matplotlib.pyplot as plt
import iris
import iris.coord_categorisation as iriscc
import iris.plot as iplt
import iris.analysis.cartography
import numpy as np
import calendar
import cf_units
from cf_units import Unit
#this file is split into parts as follows:
#PART 1: load and format all past models
#PART 2: load observed data
#PART 3: format files general
#PART 4: re-baseline past files
#PART 5: print yearly data
def main():
#-------------------------------------------------------------------------
#PART 1: LOAD and FORMAT ALL PAST MODELS
CCCmaCanRCM_tasmin = '/exports/csce/datastore/geos/users/s0899345/AFR_44_tasmin/Historical_daily/tasmin_AFR-44_CCCma-CanESM2_historical_r1i1p1_CCCma-CanRCM4_r2_day_19710101-20001231.nc'
CCCmaSMHI_tasmin = '/exports/csce/datastore/geos/users/s0899345/AFR_44_tasmin/Historical_daily/tasmin_AFR-44_CCCma-CanESM2_historical_r1i1p1_SMHI-RCA4_v1_day_19710101-20001231.nc'
CNRM_tasmin = '/exports/csce/datastore/geos/users/s0899345/AFR_44_tasmin/Historical_daily/tasmin_AFR-44_CNRM-CERFACS-CNRM-CM5_historical_r1i1p1_CLMcom-CCLM4-8-17_v1_day_19710101-20001231.nc'
CNRMSMHI_tasmin = '/exports/csce/datastore/geos/users/s0899345/AFR_44_tasmin/Historical_daily/tasmin_AFR-44_CNRM-CERFACS-CNRM-CM5_historical_r1i1p1_SMHI-RCA4_v1_day_19710101-20001231.nc'
CSIRO_tasmin = '/exports/csce/datastore/geos/users/s0899345/AFR_44_tasmin/Historical_daily/tasmin_AFR-44_CSIRO-QCCCE-CSIRO-Mk3-6-0_historical_r1i1p1_SMHI-RCA4_v1_day_19710101-20001231.nc'
ICHECDMI_tasmin = '/exports/csce/datastore/geos/users/s0899345/AFR_44_tasmin/Historical_daily/tasmin_AFR-44_ICHEC-EC-EARTH_historical_r3i1p1_DMI-HIRHAM5_v2_day_19710101-20001231.nc'
ICHECCCLM_tasmin = '/exports/csce/datastore/geos/users/s0899345/AFR_44_tasmin/Historical_daily/tasmin_AFR-44_ICHEC-EC-EARTH_historical_r12i1p1_CLMcom-CCLM4-8-17_v1_day_19710101-20001231.nc'
ICHECKNMI_tasmin = '/exports/csce/datastore/geos/users/s0899345/AFR_44_tasmin/Historical_daily/tasmin_AFR-44_ICHEC-EC-EARTH_historical_r1i1p1_KNMI-RACMO22T_v1_day_19710101-20001231.nc'
ICHECMPI_tasmin = '/exports/csce/datastore/geos/users/s0899345/AFR_44_tasmin/Historical_daily/tasmin_AFR-44_ICHEC-EC-EARTH_historical_r12i1p1_MPI-CSC-REMO2009_v1_day_19710101-20001231.nc'
ICHECSMHI_tasmin = '/exports/csce/datastore/geos/users/s0899345/AFR_44_tasmin/Historical_daily/tasmin_AFR-44_ICHEC-EC-EARTH_historical_r12i1p1_SMHI-RCA4_v1_day_19710101-20001231.nc'
IPSL_tasmin = '/exports/csce/datastore/geos/users/s0899345/AFR_44_tasmin/Historical_daily/tasmin_AFR-44_IPSL-IPSL-CM5A-MR_historical_r1i1p1_SMHI-RCA4_v1_day_19710101-20001231.nc'
MIROC_tasmin = '/exports/csce/datastore/geos/users/s0899345/AFR_44_tasmin/Historical_daily/tasmin_AFR-44_MIROC-MIROC5_historical_r1i1p1_SMHI-RCA4_v1_day_19710101-20001231.nc'
MOHCCCLM_tasmin = '/exports/csce/datastore/geos/users/s0899345/AFR_44_tasmin/Historical_daily/tasmin_AFR-44_MOHC-HadGEM2-ES_historical_r1i1p1_CLMcom-CCLM4-8-17_v1_day_19710101-20001231.nc'
MOHCKNMI_tasmin = '/exports/csce/datastore/geos/users/s0899345/AFR_44_tasmin/Historical_daily/tasmin_AFR-44_MOHC-HadGEM2-ES_historical_r1i1p1_KNMI-RACMO22T_v2_day_19710101-20001231.nc'
MOHCSMHI_tasmin = '/exports/csce/datastore/geos/users/s0899345/AFR_44_tasmin/Historical_daily/tasmin_AFR-44_MOHC-HadGEM2-ES_historical_r1i1p1_SMHI-RCA4_v1_day_19710101-20001231.nc'
MPICCLM_tasmin = '/exports/csce/datastore/geos/users/s0899345/AFR_44_tasmin/Historical_daily/tasmin_AFR-44_MPI-M-MPI-ESM-LR_historical_r1i1p1_CLMcom-CCLM4-8-17_v1_day_19710101-20001231.nc'
MPIREMO_tasmin = '/exports/csce/datastore/geos/users/s0899345/AFR_44_tasmin/Historical_daily/tasmin_AFR-44_MPI-M-MPI-ESM-LR_historical_r1i1p1_MPI-CSC-REMO2009_v1_day_19710101-20001231.nc'
MPISMHI_tasmin = '/exports/csce/datastore/geos/users/s0899345/AFR_44_tasmin/Historical_daily/tasmin_AFR-44_MPI-M-MPI-ESM-LR_historical_r1i1p1_SMHI-RCA4_v1_day_19710101-20001231.nc'
NCCSMHI_tasmin = '/exports/csce/datastore/geos/users/s0899345/AFR_44_tasmin/Historical_daily/tasmin_AFR-44_NCC-NorESM1-M_historical_r1i1p1_SMHI-RCA4_v1_day_19710101-20001231.nc'
NOAA_tasmin = '/exports/csce/datastore/geos/users/s0899345/AFR_44_tasmin/Historical_daily/tasmin_AFR-44_NOAA-GFDL-GFDL-ESM2M_historical_r1i1p1_SMHI-RCA4_v1_day_19710101-20001231.nc'
CCCmaCanRCM_tasmax = '/exports/csce/datastore/geos/users/s0899345/AFR_44_tasmax/Historical_daily/tasmax_AFR-44_CCCma-CanESM2_historical_r1i1p1_CCCma-CanRCM4_r2_day_19710101-20001231.nc'
CCCmaSMHI_tasmax = '/exports/csce/datastore/geos/users/s0899345/AFR_44_tasmax/Historical_daily/tasmax_AFR-44_CCCma-CanESM2_historical_r1i1p1_SMHI-RCA4_v1_day_19710101-20001231.nc'
CNRM_tasmax = '/exports/csce/datastore/geos/users/s0899345/AFR_44_tasmax/Historical_daily/tasmax_AFR-44_CNRM-CERFACS-CNRM-CM5_historical_r1i1p1_CLMcom-CCLM4-8-17_v1_day_19710101-20001231.nc'
CNRMSMHI_tasmax = '/exports/csce/datastore/geos/users/s0899345/AFR_44_tasmax/Historical_daily/tasmax_AFR-44_CNRM-CERFACS-CNRM-CM5_historical_r1i1p1_SMHI-RCA4_v1_day_19710101-20001231.nc'
CSIRO_tasmax = '/exports/csce/datastore/geos/users/s0899345/AFR_44_tasmax/Historical_daily/tasmax_AFR-44_CSIRO-QCCCE-CSIRO-Mk3-6-0_historical_r1i1p1_SMHI-RCA4_v1_day_19710101-20001231.nc'
ICHECDMI_tasmax = '/exports/csce/datastore/geos/users/s0899345/AFR_44_tasmax/Historical_daily/tasmax_AFR-44_ICHEC-EC-EARTH_historical_r3i1p1_DMI-HIRHAM5_v2_day_19710101-20001231.nc'
ICHECCCLM_tasmax = '/exports/csce/datastore/geos/users/s0899345/AFR_44_tasmax/Historical_daily/tasmax_AFR-44_ICHEC-EC-EARTH_historical_r12i1p1_CLMcom-CCLM4-8-17_v1_day_19710101-20001231.nc'
ICHECKNMI_tasmax = '/exports/csce/datastore/geos/users/s0899345/AFR_44_tasmax/Historical_daily/tasmax_AFR-44_ICHEC-EC-EARTH_historical_r1i1p1_KNMI-RACMO22T_v1_day_19710101-20001231.nc'
ICHECMPI_tasmax = '/exports/csce/datastore/geos/users/s0899345/AFR_44_tasmax/Historical_daily/tasmax_AFR-44_ICHEC-EC-EARTH_historical_r12i1p1_MPI-CSC-REMO2009_v1_day_19710101-20001231.nc'
ICHECSMHI_tasmax = '/exports/csce/datastore/geos/users/s0899345/AFR_44_tasmax/Historical_daily/tasmax_AFR-44_ICHEC-EC-EARTH_historical_r12i1p1_SMHI-RCA4_v1_day_19710101-20001231.nc'
IPSL_tasmax = '/exports/csce/datastore/geos/users/s0899345/AFR_44_tasmax/Historical_daily/tasmax_AFR-44_IPSL-IPSL-CM5A-MR_historical_r1i1p1_SMHI-RCA4_v1_day_19710101-20001231.nc'
MIROC_tasmax = '/exports/csce/datastore/geos/users/s0899345/AFR_44_tasmax/Historical_daily/tasmax_AFR-44_MIROC-MIROC5_historical_r1i1p1_SMHI-RCA4_v1_day_19710101-20001231.nc'
MOHCCCLM_tasmax = '/exports/csce/datastore/geos/users/s0899345/AFR_44_tasmax/Historical_daily/tasmax_AFR-44_MOHC-HadGEM2-ES_historical_r1i1p1_CLMcom-CCLM4-8-17_v1_day_19710101-20001231.nc'
MOHCKNMI_tasmax = '/exports/csce/datastore/geos/users/s0899345/AFR_44_tasmax/Historical_daily/tasmax_AFR-44_MOHC-HadGEM2-ES_historical_r1i1p1_KNMI-RACMO22T_v2_day_19710101-20001231.nc'
MOHCSMHI_tasmax = '/exports/csce/datastore/geos/users/s0899345/AFR_44_tasmax/Historical_daily/tasmax_AFR-44_MOHC-HadGEM2-ES_historical_r1i1p1_SMHI-RCA4_v1_day_19710101-20001231.nc'
MPICCLM_tasmax = '/exports/csce/datastore/geos/users/s0899345/AFR_44_tasmax/Historical_daily/tasmax_AFR-44_MPI-M-MPI-ESM-LR_historical_r1i1p1_CLMcom-CCLM4-8-17_v1_day_19710101-20001231.nc'
MPIREMO_tasmax = '/exports/csce/datastore/geos/users/s0899345/AFR_44_tasmax/Historical_daily/tasmax_AFR-44_MPI-M-MPI-ESM-LR_historical_r1i1p1_MPI-CSC-REMO2009_v1_day_19710101-20001231.nc'
MPISMHI_tasmax = '/exports/csce/datastore/geos/users/s0899345/AFR_44_tasmax/Historical_daily/tasmax_AFR-44_MPI-M-MPI-ESM-LR_historical_r1i1p1_SMHI-RCA4_v1_day_19710101-20001231.nc'
NCCSMHI_tasmax = '/exports/csce/datastore/geos/users/s0899345/AFR_44_tasmax/Historical_daily/tasmax_AFR-44_NCC-NorESM1-M_historical_r1i1p1_SMHI-RCA4_v1_day_19710101-20001231.nc'
NOAA_tasmax = '/exports/csce/datastore/geos/users/s0899345/AFR_44_tasmax/Historical_daily/tasmax_AFR-44_NOAA-GFDL-GFDL-ESM2M_historical_r1i1p1_SMHI-RCA4_v1_day_19710101-20001231.nc'
CCCmaCanRCM_pr = '/exports/csce/datastore/geos/users/s0899345/AFR_44_pr/Historical_daily/pr_AFR-44_CCCma-CanESM2_historical_r1i1p1_CCCma-CanRCM4_r2_day_19710101-20001231.nc'
CCCmaSMHI_pr = '/exports/csce/datastore/geos/users/s0899345/AFR_44_pr/Historical_daily/pr_AFR-44_CCCma-CanESM2_historical_r1i1p1_SMHI-RCA4_v1_day_19710101-20001231.nc'
CNRM_pr = '/exports/csce/datastore/geos/users/s0899345/AFR_44_pr/Historical_daily/pr_AFR-44_CNRM-CERFACS-CNRM-CM5_historical_r1i1p1_CLMcom-CCLM4-8-17_v1_day_19710101-20001231.nc'
CNRMSMHI_pr = '/exports/csce/datastore/geos/users/s0899345/AFR_44_pr/Historical_daily/pr_AFR-44_CNRM-CERFACS-CNRM-CM5_historical_r1i1p1_SMHI-RCA4_v1_day_19710101-20001231.nc'
CSIRO_pr = '/exports/csce/datastore/geos/users/s0899345/AFR_44_pr/Historical_daily/pr_AFR-44_CSIRO-QCCCE-CSIRO-Mk3-6-0_historical_r1i1p1_SMHI-RCA4_v1_day_19710101-20001231.nc'
ICHECDMI_pr = '/exports/csce/datastore/geos/users/s0899345/AFR_44_pr/Historical_daily/pr_AFR-44_ICHEC-EC-EARTH_historical_r3i1p1_DMI-HIRHAM5_v2_day_19710101-20001231.nc'
ICHECCCLM_pr = '/exports/csce/datastore/geos/users/s0899345/AFR_44_pr/Historical_daily/pr_AFR-44_ICHEC-EC-EARTH_historical_r12i1p1_CLMcom-CCLM4-8-17_v1_day_19710101-20001231.nc'
ICHECKNMI_pr = '/exports/csce/datastore/geos/users/s0899345/AFR_44_pr/Historical_daily/pr_AFR-44_ICHEC-EC-EARTH_historical_r1i1p1_KNMI-RACMO22T_v1_day_19710101-20001231.nc'
ICHECMPI_pr = '/exports/csce/datastore/geos/users/s0899345/AFR_44_pr/Historical_daily/pr_AFR-44_ICHEC-EC-EARTH_historical_r12i1p1_MPI-CSC-REMO2009_v1_day_19710101-20001231.nc'
ICHECSMHI_pr = '/exports/csce/datastore/geos/users/s0899345/AFR_44_pr/Historical_daily/pr_AFR-44_ICHEC-EC-EARTH_historical_r12i1p1_SMHI-RCA4_v1_day_19710101-20001231.nc'
IPSL_pr = '/exports/csce/datastore/geos/users/s0899345/AFR_44_pr/Historical_daily/pr_AFR-44_IPSL-IPSL-CM5A-MR_historical_r1i1p1_SMHI-RCA4_v1_day_19710101-20001231.nc'
MIROC_pr = '/exports/csce/datastore/geos/users/s0899345/AFR_44_pr/Historical_daily/pr_AFR-44_MIROC-MIROC5_historical_r1i1p1_SMHI-RCA4_v1_day_19710101-20001231.nc'
MOHCCCLM_pr = '/exports/csce/datastore/geos/users/s0899345/AFR_44_pr/Historical_daily/pr_AFR-44_MOHC-HadGEM2-ES_historical_r1i1p1_CLMcom-CCLM4-8-17_v1_day_19710101-20001231.nc'
MOHCKNMI_pr = '/exports/csce/datastore/geos/users/s0899345/AFR_44_pr/Historical_daily/pr_AFR-44_MOHC-HadGEM2-ES_historical_r1i1p1_KNMI-RACMO22T_v2_day_19710101-20001231.nc'
MOHCSMHI_pr = '/exports/csce/datastore/geos/users/s0899345/AFR_44_pr/Historical_daily/pr_AFR-44_MOHC-HadGEM2-ES_historical_r1i1p1_SMHI-RCA4_v1_day_19710101-20001231.nc'
MPICCLM_pr = '/exports/csce/datastore/geos/users/s0899345/AFR_44_pr/Historical_daily/pr_AFR-44_MPI-M-MPI-ESM-LR_historical_r1i1p1_CLMcom-CCLM4-8-17_v1_day_19710101-20001231.nc'
MPIREMO_pr = '/exports/csce/datastore/geos/users/s0899345/AFR_44_pr/Historical_daily/pr_AFR-44_MPI-M-MPI-ESM-LR_historical_r1i1p1_MPI-CSC-REMO2009_v1_day_19710101-20001231.nc'
MPISMHI_pr = '/exports/csce/datastore/geos/users/s0899345/AFR_44_pr/Historical_daily/pr_AFR-44_MPI-M-MPI-ESM-LR_historical_r1i1p1_SMHI-RCA4_v1_day_19710101-20001231.nc'
NCCSMHI_pr = '/exports/csce/datastore/geos/users/s0899345/AFR_44_pr/Historical_daily/pr_AFR-44_NCC-NorESM1-M_historical_r1i1p1_SMHI-RCA4_v1_day_19710101-20001231.nc'
NOAA_pr = '/exports/csce/datastore/geos/users/s0899345/AFR_44_pr/Historical_daily/pr_AFR-44_NOAA-GFDL-GFDL-ESM2M_historical_r1i1p1_SMHI-RCA4_v1_day_19710101-20001231.nc'
#Load exactly one cube from given file
CCCmaCanRCM_tasmin = iris.load_cube(CCCmaCanRCM_tasmin)
CCCmaSMHI_tasmin = iris.load_cube(CCCmaSMHI_tasmin)
CNRM_tasmin = iris.load_cube(CNRM_tasmin)
CNRMSMHI_tasmin = iris.load_cube(CNRMSMHI_tasmin)
CSIRO_tasmin = iris.load_cube(CSIRO_tasmin)
ICHECDMI_tasmin = iris.load_cube(ICHECDMI_tasmin, 'air_temperature')
ICHECCCLM_tasmin = iris.load_cube(ICHECCCLM_tasmin)
ICHECKNMI_tasmin = iris.load_cube(ICHECKNMI_tasmin)
ICHECMPI_tasmin = iris.load_cube(ICHECMPI_tasmin)
ICHECSMHI_tasmin = iris.load_cube(ICHECSMHI_tasmin)
IPSL_tasmin = iris.load_cube(IPSL_tasmin)
MIROC_tasmin = iris.load_cube(MIROC_tasmin)
MOHCCCLM_tasmin = iris.load_cube(MOHCCCLM_tasmin)
MOHCKNMI_tasmin = iris.load_cube(MOHCKNMI_tasmin)
MOHCSMHI_tasmin = iris.load_cube(MOHCSMHI_tasmin)
MPICCLM_tasmin = iris.load_cube(MPICCLM_tasmin)
MPIREMO_tasmin = iris.load_cube(MPIREMO_tasmin)
MPISMHI_tasmin = iris.load_cube(MPISMHI_tasmin)
NCCSMHI_tasmin = iris.load_cube(NCCSMHI_tasmin)
NOAA_tasmin = iris.load_cube(NOAA_tasmin)
CCCmaCanRCM_tasmax = iris.load_cube(CCCmaCanRCM_tasmax)
CCCmaSMHI_tasmax = iris.load_cube(CCCmaSMHI_tasmax)
CNRM_tasmax = iris.load_cube(CNRM_tasmax)
CNRMSMHI_tasmax = iris.load_cube(CNRMSMHI_tasmax)
CSIRO_tasmax = iris.load_cube(CSIRO_tasmax)
ICHECDMI_tasmax = iris.load_cube(ICHECDMI_tasmax, 'air_temperature')
ICHECCCLM_tasmax = iris.load_cube(ICHECCCLM_tasmax)
ICHECKNMI_tasmax = iris.load_cube(ICHECKNMI_tasmax)
ICHECMPI_tasmax = iris.load_cube(ICHECMPI_tasmax)
ICHECSMHI_tasmax = iris.load_cube(ICHECSMHI_tasmax)
IPSL_tasmax = iris.load_cube(IPSL_tasmax)
MIROC_tasmax = iris.load_cube(MIROC_tasmax)
MOHCCCLM_tasmax = iris.load_cube(MOHCCCLM_tasmax)
MOHCKNMI_tasmax = iris.load_cube(MOHCKNMI_tasmax)
MOHCSMHI_tasmax = iris.load_cube(MOHCSMHI_tasmax)
MPICCLM_tasmax = iris.load_cube(MPICCLM_tasmax)
MPIREMO_tasmax = iris.load_cube(MPIREMO_tasmax)
MPISMHI_tasmax = iris.load_cube(MPISMHI_tasmax)
NCCSMHI_tasmax = iris.load_cube(NCCSMHI_tasmax)
NOAA_tasmax = iris.load_cube(NOAA_tasmax)
CCCmaCanRCM_pr = iris.load_cube(CCCmaCanRCM_pr)
CCCmaSMHI_pr = iris.load_cube(CCCmaSMHI_pr)
CNRM_pr = iris.load_cube(CNRM_pr)
CNRMSMHI_pr = iris.load_cube(CNRMSMHI_pr)
CSIRO_pr = iris.load_cube(CSIRO_pr)
ICHECDMI_pr = iris.load_cube(ICHECDMI_pr, 'precipitation_flux')
ICHECCCLM_pr = iris.load_cube(ICHECCCLM_pr)
ICHECKNMI_pr = iris.load_cube(ICHECKNMI_pr)
ICHECMPI_pr = iris.load_cube(ICHECMPI_pr)
ICHECSMHI_pr = iris.load_cube(ICHECSMHI_pr)
IPSL_pr = iris.load_cube(IPSL_pr)
MIROC_pr = iris.load_cube(MIROC_pr)
MOHCCCLM_pr = iris.load_cube(MOHCCCLM_pr)
MOHCKNMI_pr = iris.load_cube(MOHCKNMI_pr)
MOHCSMHI_pr = iris.load_cube(MOHCSMHI_pr)
MPICCLM_pr = iris.load_cube(MPICCLM_pr)
MPIREMO_pr = iris.load_cube(MPIREMO_pr)
MPISMHI_pr = iris.load_cube(MPISMHI_pr)
NCCSMHI_pr = iris.load_cube(NCCSMHI_pr)
NOAA_pr = iris.load_cube(NOAA_pr)
#remove flat latitude and longitude and only use grid latitude and grid longitude to make consistent with the observed data, also make sure all of the longitudes are monotonic.
lats = iris.coords.DimCoord(CCCmaCanRCM_tasmin.coord('latitude').points[:,0], standard_name='latitude', units='degrees')
lons = CCCmaCanRCM_tasmin.coord('longitude').points[0]
for i in range(len(lons)):
if lons[i]>100.:
lons[i] = lons[i]-360.
lons = iris.coords.DimCoord(lons, standard_name='longitude', units='degrees')
CCCmaCanRCM_tasmin.remove_coord('latitude')
CCCmaCanRCM_tasmin.remove_coord('longitude')
CCCmaCanRCM_tasmin.remove_coord('grid_latitude')
CCCmaCanRCM_tasmin.remove_coord('grid_longitude')
CCCmaCanRCM_tasmin.add_dim_coord(lats, 1)
CCCmaCanRCM_tasmin.add_dim_coord(lons, 2)
lats = iris.coords.DimCoord(CCCmaSMHI_tasmin.coord('latitude').points[:,0], standard_name='latitude', units='degrees')
lons = CCCmaSMHI_tasmin.coord('longitude').points[0]
for i in range(len(lons)):
if lons[i]>100.:
lons[i] = lons[i]-360.
lons = iris.coords.DimCoord(lons, standard_name='longitude', units='degrees')
CCCmaSMHI_tasmin.remove_coord('latitude')
CCCmaSMHI_tasmin.remove_coord('longitude')
CCCmaSMHI_tasmin.remove_coord('grid_latitude')
CCCmaSMHI_tasmin.remove_coord('grid_longitude')
CCCmaSMHI_tasmin.add_dim_coord(lats, 1)
CCCmaSMHI_tasmin.add_dim_coord(lons, 2)
lats = iris.coords.DimCoord(CNRM_tasmin.coord('latitude').points[:,0], standard_name='latitude', units='degrees')
lons = CNRM_tasmin.coord('longitude').points[0]
for i in range(len(lons)):
if lons[i]>100.:
lons[i] = lons[i]-360.
lons = iris.coords.DimCoord(lons, standard_name='longitude', units='degrees')
CNRM_tasmin.remove_coord('latitude')
CNRM_tasmin.remove_coord('longitude')
CNRM_tasmin.remove_coord('grid_latitude')
CNRM_tasmin.remove_coord('grid_longitude')
CNRM_tasmin.add_dim_coord(lats, 1)
CNRM_tasmin.add_dim_coord(lons, 2)
lats = iris.coords.DimCoord(CNRMSMHI_tasmin.coord('latitude').points[:,0], standard_name='latitude', units='degrees')
lons = CNRMSMHI_tasmin.coord('longitude').points[0]
for i in range(len(lons)):
if lons[i]>100.:
lons[i] = lons[i]-360.
lons = iris.coords.DimCoord(lons, standard_name='longitude', units='degrees')
CNRMSMHI_tasmin.remove_coord('latitude')
CNRMSMHI_tasmin.remove_coord('longitude')
CNRMSMHI_tasmin.remove_coord('grid_latitude')
CNRMSMHI_tasmin.remove_coord('grid_longitude')
CNRMSMHI_tasmin.add_dim_coord(lats, 1)
CNRMSMHI_tasmin.add_dim_coord(lons, 2)
lats = iris.coords.DimCoord(CSIRO_tasmin.coord('latitude').points[:,0], standard_name='latitude', units='degrees')
lons = CSIRO_tasmin.coord('longitude').points[0]
for i in range(len(lons)):
if lons[i]>100.:
lons[i] = lons[i]-360.
lons = iris.coords.DimCoord(lons, standard_name='longitude', units='degrees')
CSIRO_tasmin.remove_coord('latitude')
CSIRO_tasmin.remove_coord('longitude')
CSIRO_tasmin.remove_coord('grid_latitude')
CSIRO_tasmin.remove_coord('grid_longitude')
CSIRO_tasmin.add_dim_coord(lats, 1)
CSIRO_tasmin.add_dim_coord(lons, 2)
lats = iris.coords.DimCoord(ICHECDMI_tasmin.coord('latitude').points[:,0], standard_name='latitude', units='degrees')
lons = ICHECDMI_tasmin.coord('longitude').points[0]
for i in range(len(lons)):
if lons[i]>100.:
lons[i] = lons[i]-360.
lons = iris.coords.DimCoord(lons, standard_name='longitude', units='degrees')
ICHECDMI_tasmin.remove_coord('latitude')
ICHECDMI_tasmin.remove_coord('longitude')
ICHECDMI_tasmin.remove_coord('grid_latitude')
ICHECDMI_tasmin.remove_coord('grid_longitude')
ICHECDMI_tasmin.add_dim_coord(lats, 1)
ICHECDMI_tasmin.add_dim_coord(lons, 2)
lats = iris.coords.DimCoord(ICHECCCLM_tasmin.coord('latitude').points[:,0], standard_name='latitude', units='degrees')
lons = ICHECCCLM_tasmin.coord('longitude').points[0]
for i in range(len(lons)):
if lons[i]>100.:
lons[i] = lons[i]-360.
lons = iris.coords.DimCoord(lons, standard_name='longitude', units='degrees')
ICHECCCLM_tasmin.remove_coord('latitude')
ICHECCCLM_tasmin.remove_coord('longitude')
ICHECCCLM_tasmin.remove_coord('grid_latitude')
ICHECCCLM_tasmin.remove_coord('grid_longitude')
ICHECCCLM_tasmin.add_dim_coord(lats, 1)
ICHECCCLM_tasmin.add_dim_coord(lons, 2)
lats = iris.coords.DimCoord(ICHECKNMI_tasmin.coord('latitude').points[:,0], standard_name='latitude', units='degrees')
lons = ICHECKNMI_tasmin.coord('longitude').points[0]
for i in range(len(lons)):
if lons[i]>100.:
lons[i] = lons[i]-360.
lons = iris.coords.DimCoord(lons, standard_name='longitude', units='degrees')
ICHECKNMI_tasmin.remove_coord('latitude')
ICHECKNMI_tasmin.remove_coord('longitude')
ICHECKNMI_tasmin.remove_coord('grid_latitude')
ICHECKNMI_tasmin.remove_coord('grid_longitude')
ICHECKNMI_tasmin.add_dim_coord(lats, 1)
ICHECKNMI_tasmin.add_dim_coord(lons, 2)
lats = iris.coords.DimCoord(ICHECMPI_tasmin.coord('latitude').points[:,0], standard_name='latitude', units='degrees')
lons = ICHECMPI_tasmin.coord('longitude').points[0]
for i in range(len(lons)):
if lons[i]>100.:
lons[i] = lons[i]-360.
lons = iris.coords.DimCoord(lons, standard_name='longitude', units='degrees')
ICHECMPI_tasmin.remove_coord('latitude')
ICHECMPI_tasmin.remove_coord('longitude')
ICHECMPI_tasmin.remove_coord('grid_latitude')
ICHECMPI_tasmin.remove_coord('grid_longitude')
ICHECMPI_tasmin.add_dim_coord(lats, 1)
ICHECMPI_tasmin.add_dim_coord(lons, 2)
lats = iris.coords.DimCoord(ICHECSMHI_tasmin.coord('latitude').points[:,0], standard_name='latitude', units='degrees')
lons = ICHECSMHI_tasmin.coord('longitude').points[0]
for i in range(len(lons)):
if lons[i]>100.:
lons[i] = lons[i]-360.
lons = iris.coords.DimCoord(lons, standard_name='longitude', units='degrees')
ICHECSMHI_tasmin.remove_coord('latitude')
ICHECSMHI_tasmin.remove_coord('longitude')
ICHECSMHI_tasmin.remove_coord('grid_latitude')
ICHECSMHI_tasmin.remove_coord('grid_longitude')
ICHECSMHI_tasmin.add_dim_coord(lats, 1)
ICHECSMHI_tasmin.add_dim_coord(lons, 2)
lats = iris.coords.DimCoord(IPSL_tasmin.coord('latitude').points[:,0], standard_name='latitude', units='degrees')
lons = IPSL_tasmin.coord('longitude').points[0]
for i in range(len(lons)):
if lons[i]>100.:
lons[i] = lons[i]-360.
lons = iris.coords.DimCoord(lons, standard_name='longitude', units='degrees')
IPSL_tasmin.remove_coord('latitude')
IPSL_tasmin.remove_coord('longitude')
IPSL_tasmin.remove_coord('grid_latitude')
IPSL_tasmin.remove_coord('grid_longitude')
IPSL_tasmin.add_dim_coord(lats, 1)
IPSL_tasmin.add_dim_coord(lons, 2)
lats = iris.coords.DimCoord(MIROC_tasmin.coord('latitude').points[:,0], standard_name='latitude', units='degrees')
lons = MIROC_tasmin.coord('longitude').points[0]
for i in range(len(lons)):
if lons[i]>100.:
lons[i] = lons[i]-360.
lons = iris.coords.DimCoord(lons, standard_name='longitude', units='degrees')
MIROC_tasmin.remove_coord('latitude')
MIROC_tasmin.remove_coord('longitude')
MIROC_tasmin.remove_coord('grid_latitude')
MIROC_tasmin.remove_coord('grid_longitude')
MIROC_tasmin.add_dim_coord(lats, 1)
MIROC_tasmin.add_dim_coord(lons, 2)
lats = iris.coords.DimCoord(MOHCCCLM_tasmin.coord('latitude').points[:,0], standard_name='latitude', units='degrees')
lons = MOHCCCLM_tasmin.coord('longitude').points[0]
for i in range(len(lons)):
if lons[i]>100.:
lons[i] = lons[i]-360.
lons = iris.coords.DimCoord(lons, standard_name='longitude', units='degrees')
MOHCCCLM_tasmin.remove_coord('latitude')
MOHCCCLM_tasmin.remove_coord('longitude')
MOHCCCLM_tasmin.remove_coord('grid_latitude')
MOHCCCLM_tasmin.remove_coord('grid_longitude')
MOHCCCLM_tasmin.add_dim_coord(lats, 1)
MOHCCCLM_tasmin.add_dim_coord(lons, 2)
lats = iris.coords.DimCoord(MOHCKNMI_tasmin.coord('latitude').points[:,0], standard_name='latitude', units='degrees')
lons = MOHCKNMI_tasmin.coord('longitude').points[0]
for i in range(len(lons)):
if lons[i]>100.:
lons[i] = lons[i]-360.
lons = iris.coords.DimCoord(lons, standard_name='longitude', units='degrees')
MOHCKNMI_tasmin.remove_coord('latitude')
MOHCKNMI_tasmin.remove_coord('longitude')
MOHCKNMI_tasmin.remove_coord('grid_latitude')
MOHCKNMI_tasmin.remove_coord('grid_longitude')
MOHCKNMI_tasmin.add_dim_coord(lats, 1)
MOHCKNMI_tasmin.add_dim_coord(lons, 2)
lats = iris.coords.DimCoord(MOHCSMHI_tasmin.coord('latitude').points[:,0], standard_name='latitude', units='degrees')
lons = MOHCSMHI_tasmin.coord('longitude').points[0]
for i in range(len(lons)):
if lons[i]>100.:
lons[i] = lons[i]-360.
lons = iris.coords.DimCoord(lons, standard_name='longitude', units='degrees')
MOHCSMHI_tasmin.remove_coord('latitude')
MOHCSMHI_tasmin.remove_coord('longitude')
MOHCSMHI_tasmin.remove_coord('grid_latitude')
MOHCSMHI_tasmin.remove_coord('grid_longitude')
MOHCSMHI_tasmin.add_dim_coord(lats, 1)
MOHCSMHI_tasmin.add_dim_coord(lons, 2)
lats = iris.coords.DimCoord(MPICCLM_tasmin.coord('latitude').points[:,0], standard_name='latitude', units='degrees')
lons = MPICCLM_tasmin.coord('longitude').points[0]
for i in range(len(lons)):
if lons[i]>100.:
lons[i] = lons[i]-360.
lons = iris.coords.DimCoord(lons, standard_name='longitude', units='degrees')
MPICCLM_tasmin.remove_coord('latitude')
MPICCLM_tasmin.remove_coord('longitude')
MPICCLM_tasmin.remove_coord('grid_latitude')
MPICCLM_tasmin.remove_coord('grid_longitude')
MPICCLM_tasmin.add_dim_coord(lats, 1)
MPICCLM_tasmin.add_dim_coord(lons, 2)
lats = iris.coords.DimCoord(MPIREMO_tasmin.coord('latitude').points[:,0], standard_name='latitude', units='degrees')
lons = MPIREMO_tasmin.coord('longitude').points[0]
for i in range(len(lons)):
if lons[i]>100.:
lons[i] = lons[i]-360.
lons = iris.coords.DimCoord(lons, standard_name='longitude', units='degrees')
MPIREMO_tasmin.remove_coord('latitude')
MPIREMO_tasmin.remove_coord('longitude')
MPIREMO_tasmin.remove_coord('grid_latitude')
MPIREMO_tasmin.remove_coord('grid_longitude')
MPIREMO_tasmin.add_dim_coord(lats, 1)
MPIREMO_tasmin.add_dim_coord(lons, 2)
lats = iris.coords.DimCoord(MPISMHI_tasmin.coord('latitude').points[:,0], standard_name='latitude', units='degrees')
lons = MPISMHI_tasmin.coord('longitude').points[0]
for i in range(len(lons)):
if lons[i]>100.:
lons[i] = lons[i]-360.
lons = iris.coords.DimCoord(lons, standard_name='longitude', units='degrees')
MPISMHI_tasmin.remove_coord('latitude')
MPISMHI_tasmin.remove_coord('longitude')
MPISMHI_tasmin.remove_coord('grid_latitude')
MPISMHI_tasmin.remove_coord('grid_longitude')
MPISMHI_tasmin.add_dim_coord(lats, 1)
MPISMHI_tasmin.add_dim_coord(lons, 2)
lats = iris.coords.DimCoord(NCCSMHI_tasmin.coord('latitude').points[:,0], standard_name='latitude', units='degrees')
lons = NCCSMHI_tasmin.coord('longitude').points[0]
for i in range(len(lons)):
if lons[i]>100.:
lons[i] = lons[i]-360.
lons = iris.coords.DimCoord(lons, standard_name='longitude', units='degrees')
NCCSMHI_tasmin.remove_coord('latitude')
NCCSMHI_tasmin.remove_coord('longitude')
NCCSMHI_tasmin.remove_coord('grid_latitude')
NCCSMHI_tasmin.remove_coord('grid_longitude')
NCCSMHI_tasmin.add_dim_coord(lats, 1)
NCCSMHI_tasmin.add_dim_coord(lons, 2)
lats = iris.coords.DimCoord(NOAA_tasmin.coord('latitude').points[:,0], standard_name='latitude', units='degrees')
lons= NOAA_tasmin.coord('longitude').points[0]
for i in range(len(lons)):
if lons[i]>100.:
lons[i] = lons[i]-360.
lons = iris.coords.DimCoord(lons, standard_name='longitude', units='degrees')
NOAA_tasmin.remove_coord('latitude')
NOAA_tasmin.remove_coord('longitude')
NOAA_tasmin.remove_coord('grid_latitude')
NOAA_tasmin.remove_coord('grid_longitude')
NOAA_tasmin.add_dim_coord(lats, 1)
NOAA_tasmin.add_dim_coord(lons, 2)
lats = iris.coords.DimCoord(CCCmaCanRCM_tasmax.coord('latitude').points[:,0], standard_name='latitude', units='degrees')
lons = CCCmaCanRCM_tasmax.coord('longitude').points[0]
for i in range(len(lons)):
if lons[i]>100.:
lons[i] = lons[i]-360.
lons = iris.coords.DimCoord(lons, standard_name='longitude', units='degrees')
CCCmaCanRCM_tasmax.remove_coord('latitude')
CCCmaCanRCM_tasmax.remove_coord('longitude')
CCCmaCanRCM_tasmax.remove_coord('grid_latitude')
CCCmaCanRCM_tasmax.remove_coord('grid_longitude')
CCCmaCanRCM_tasmax.add_dim_coord(lats, 1)
CCCmaCanRCM_tasmax.add_dim_coord(lons, 2)
lats = iris.coords.DimCoord(CCCmaSMHI_tasmax.coord('latitude').points[:,0], standard_name='latitude', units='degrees')
lons = CCCmaSMHI_tasmax.coord('longitude').points[0]
for i in range(len(lons)):
if lons[i]>100.:
lons[i] = lons[i]-360.
lons = iris.coords.DimCoord(lons, standard_name='longitude', units='degrees')
CCCmaSMHI_tasmax.remove_coord('latitude')
CCCmaSMHI_tasmax.remove_coord('longitude')
CCCmaSMHI_tasmax.remove_coord('grid_latitude')
CCCmaSMHI_tasmax.remove_coord('grid_longitude')
CCCmaSMHI_tasmax.add_dim_coord(lats, 1)
CCCmaSMHI_tasmax.add_dim_coord(lons, 2)
lats = iris.coords.DimCoord(CNRM_tasmax.coord('latitude').points[:,0], standard_name='latitude', units='degrees')
lons = CNRM_tasmax.coord('longitude').points[0]
for i in range(len(lons)):
if lons[i]>100.:
lons[i] = lons[i]-360.
lons = iris.coords.DimCoord(lons, standard_name='longitude', units='degrees')
CNRM_tasmax.remove_coord('latitude')
CNRM_tasmax.remove_coord('longitude')
CNRM_tasmax.remove_coord('grid_latitude')
CNRM_tasmax.remove_coord('grid_longitude')
CNRM_tasmax.add_dim_coord(lats, 1)
CNRM_tasmax.add_dim_coord(lons, 2)
lats = iris.coords.DimCoord(CNRMSMHI_tasmax.coord('latitude').points[:,0], standard_name='latitude', units='degrees')
lons = CNRMSMHI_tasmax.coord('longitude').points[0]
for i in range(len(lons)):
if lons[i]>100.:
lons[i] = lons[i]-360.
lons = iris.coords.DimCoord(lons, standard_name='longitude', units='degrees')
CNRMSMHI_tasmax.remove_coord('latitude')
CNRMSMHI_tasmax.remove_coord('longitude')
CNRMSMHI_tasmax.remove_coord('grid_latitude')
CNRMSMHI_tasmax.remove_coord('grid_longitude')
CNRMSMHI_tasmax.add_dim_coord(lats, 1)
CNRMSMHI_tasmax.add_dim_coord(lons, 2)
lats = iris.coords.DimCoord(CSIRO_tasmax.coord('latitude').points[:,0], standard_name='latitude', units='degrees')
lons = CSIRO_tasmax.coord('longitude').points[0]
for i in range(len(lons)):
if lons[i]>100.:
lons[i] = lons[i]-360.
lons = iris.coords.DimCoord(lons, standard_name='longitude', units='degrees')
CSIRO_tasmax.remove_coord('latitude')
CSIRO_tasmax.remove_coord('longitude')
CSIRO_tasmax.remove_coord('grid_latitude')
CSIRO_tasmax.remove_coord('grid_longitude')
CSIRO_tasmax.add_dim_coord(lats, 1)
CSIRO_tasmax.add_dim_coord(lons, 2)
lats = iris.coords.DimCoord(ICHECDMI_tasmax.coord('latitude').points[:,0], standard_name='latitude', units='degrees')
lons = ICHECDMI_tasmax.coord('longitude').points[0]
for i in range(len(lons)):
if lons[i]>100.:
lons[i] = lons[i]-360.
lons = iris.coords.DimCoord(lons, standard_name='longitude', units='degrees')
ICHECDMI_tasmax.remove_coord('latitude')
ICHECDMI_tasmax.remove_coord('longitude')
ICHECDMI_tasmax.remove_coord('grid_latitude')
ICHECDMI_tasmax.remove_coord('grid_longitude')
ICHECDMI_tasmax.add_dim_coord(lats, 1)
ICHECDMI_tasmax.add_dim_coord(lons, 2)
lats = iris.coords.DimCoord(ICHECCCLM_tasmax.coord('latitude').points[:,0], standard_name='latitude', units='degrees')
lons = ICHECCCLM_tasmax.coord('longitude').points[0]
for i in range(len(lons)):
if lons[i]>100.:
lons[i] = lons[i]-360.
lons = iris.coords.DimCoord(lons, standard_name='longitude', units='degrees')
ICHECCCLM_tasmax.remove_coord('latitude')
ICHECCCLM_tasmax.remove_coord('longitude')
ICHECCCLM_tasmax.remove_coord('grid_latitude')
ICHECCCLM_tasmax.remove_coord('grid_longitude')
ICHECCCLM_tasmax.add_dim_coord(lats, 1)
ICHECCCLM_tasmax.add_dim_coord(lons, 2)
lats = iris.coords.DimCoord(ICHECKNMI_tasmax.coord('latitude').points[:,0], standard_name='latitude', units='degrees')
lons = ICHECKNMI_tasmax.coord('longitude').points[0]
for i in range(len(lons)):
if lons[i]>100.:
lons[i] = lons[i]-360.
lons = iris.coords.DimCoord(lons, standard_name='longitude', units='degrees')
ICHECKNMI_tasmax.remove_coord('latitude')
ICHECKNMI_tasmax.remove_coord('longitude')
ICHECKNMI_tasmax.remove_coord('grid_latitude')
ICHECKNMI_tasmax.remove_coord('grid_longitude')
ICHECKNMI_tasmax.add_dim_coord(lats, 1)
ICHECKNMI_tasmax.add_dim_coord(lons, 2)
lats = iris.coords.DimCoord(ICHECMPI_tasmax.coord('latitude').points[:,0], standard_name='latitude', units='degrees')
lons = ICHECMPI_tasmax.coord('longitude').points[0]
for i in range(len(lons)):
if lons[i]>100.:
lons[i] = lons[i]-360.
lons = iris.coords.DimCoord(lons, standard_name='longitude', units='degrees')
ICHECMPI_tasmax.remove_coord('latitude')
ICHECMPI_tasmax.remove_coord('longitude')
ICHECMPI_tasmax.remove_coord('grid_latitude')
ICHECMPI_tasmax.remove_coord('grid_longitude')
ICHECMPI_tasmax.add_dim_coord(lats, 1)
ICHECMPI_tasmax.add_dim_coord(lons, 2)
lats = iris.coords.DimCoord(ICHECSMHI_tasmax.coord('latitude').points[:,0], standard_name='latitude', units='degrees')
lons = ICHECSMHI_tasmax.coord('longitude').points[0]
for i in range(len(lons)):
if lons[i]>100.:
lons[i] = lons[i]-360.
lons = iris.coords.DimCoord(lons, standard_name='longitude', units='degrees')
ICHECSMHI_tasmax.remove_coord('latitude')
ICHECSMHI_tasmax.remove_coord('longitude')
ICHECSMHI_tasmax.remove_coord('grid_latitude')
ICHECSMHI_tasmax.remove_coord('grid_longitude')
ICHECSMHI_tasmax.add_dim_coord(lats, 1)
ICHECSMHI_tasmax.add_dim_coord(lons, 2)
lats = iris.coords.DimCoord(IPSL_tasmax.coord('latitude').points[:,0], standard_name='latitude', units='degrees')
lons = IPSL_tasmax.coord('longitude').points[0]
for i in range(len(lons)):
if lons[i]>100.:
lons[i] = lons[i]-360.
lons = iris.coords.DimCoord(lons, standard_name='longitude', units='degrees')
IPSL_tasmax.remove_coord('latitude')
IPSL_tasmax.remove_coord('longitude')
IPSL_tasmax.remove_coord('grid_latitude')
IPSL_tasmax.remove_coord('grid_longitude')
IPSL_tasmax.add_dim_coord(lats, 1)
IPSL_tasmax.add_dim_coord(lons, 2)
lats = iris.coords.DimCoord(MIROC_tasmax.coord('latitude').points[:,0], standard_name='latitude', units='degrees')
lons = MIROC_tasmax.coord('longitude').points[0]
for i in range(len(lons)):
if lons[i]>100.:
lons[i] = lons[i]-360.
lons = iris.coords.DimCoord(lons, standard_name='longitude', units='degrees')
MIROC_tasmax.remove_coord('latitude')
MIROC_tasmax.remove_coord('longitude')
MIROC_tasmax.remove_coord('grid_latitude')
MIROC_tasmax.remove_coord('grid_longitude')
MIROC_tasmax.add_dim_coord(lats, 1)
MIROC_tasmax.add_dim_coord(lons, 2)
lats = iris.coords.DimCoord(MOHCCCLM_tasmax.coord('latitude').points[:,0], standard_name='latitude', units='degrees')
lons = MOHCCCLM_tasmax.coord('longitude').points[0]
for i in range(len(lons)):
if lons[i]>100.:
lons[i] = lons[i]-360.
lons = iris.coords.DimCoord(lons, standard_name='longitude', units='degrees')
MOHCCCLM_tasmax.remove_coord('latitude')
MOHCCCLM_tasmax.remove_coord('longitude')
MOHCCCLM_tasmax.remove_coord('grid_latitude')
MOHCCCLM_tasmax.remove_coord('grid_longitude')
MOHCCCLM_tasmax.add_dim_coord(lats, 1)
MOHCCCLM_tasmax.add_dim_coord(lons, 2)
lats = iris.coords.DimCoord(MOHCKNMI_tasmax.coord('latitude').points[:,0], standard_name='latitude', units='degrees')
lons = MOHCKNMI_tasmax.coord('longitude').points[0]
for i in range(len(lons)):
if lons[i]>100.:
lons[i] = lons[i]-360.
lons = iris.coords.DimCoord(lons, standard_name='longitude', units='degrees')
MOHCKNMI_tasmax.remove_coord('latitude')
MOHCKNMI_tasmax.remove_coord('longitude')
MOHCKNMI_tasmax.remove_coord('grid_latitude')
MOHCKNMI_tasmax.remove_coord('grid_longitude')
MOHCKNMI_tasmax.add_dim_coord(lats, 1)
MOHCKNMI_tasmax.add_dim_coord(lons, 2)
lats = iris.coords.DimCoord(MOHCSMHI_tasmax.coord('latitude').points[:,0], standard_name='latitude', units='degrees')
lons = MOHCSMHI_tasmax.coord('longitude').points[0]
for i in range(len(lons)):
if lons[i]>100.:
lons[i] = lons[i]-360.
lons = iris.coords.DimCoord(lons, standard_name='longitude', units='degrees')
MOHCSMHI_tasmax.remove_coord('latitude')
MOHCSMHI_tasmax.remove_coord('longitude')
MOHCSMHI_tasmax.remove_coord('grid_latitude')
MOHCSMHI_tasmax.remove_coord('grid_longitude')
MOHCSMHI_tasmax.add_dim_coord(lats, 1)
MOHCSMHI_tasmax.add_dim_coord(lons, 2)
lats = iris.coords.DimCoord(MPICCLM_tasmax.coord('latitude').points[:,0], standard_name='latitude', units='degrees')
lons = MPICCLM_tasmax.coord('longitude').points[0]
for i in range(len(lons)):
if lons[i]>100.:
lons[i] = lons[i]-360.
lons = iris.coords.DimCoord(lons, standard_name='longitude', units='degrees')
MPICCLM_tasmax.remove_coord('latitude')
MPICCLM_tasmax.remove_coord('longitude')
MPICCLM_tasmax.remove_coord('grid_latitude')
MPICCLM_tasmax.remove_coord('grid_longitude')
MPICCLM_tasmax.add_dim_coord(lats, 1)
MPICCLM_tasmax.add_dim_coord(lons, 2)
lats = iris.coords.DimCoord(MPIREMO_tasmax.coord('latitude').points[:,0], standard_name='latitude', units='degrees')
lons = MPIREMO_tasmax.coord('longitude').points[0]
for i in range(len(lons)):
if lons[i]>100.:
lons[i] = lons[i]-360.
lons = iris.coords.DimCoord(lons, standard_name='longitude', units='degrees')
MPIREMO_tasmax.remove_coord('latitude')
MPIREMO_tasmax.remove_coord('longitude')
MPIREMO_tasmax.remove_coord('grid_latitude')
MPIREMO_tasmax.remove_coord('grid_longitude')
MPIREMO_tasmax.add_dim_coord(lats, 1)
MPIREMO_tasmax.add_dim_coord(lons, 2)
lats = iris.coords.DimCoord(MPISMHI_tasmax.coord('latitude').points[:,0], standard_name='latitude', units='degrees')
lons = MPISMHI_tasmax.coord('longitude').points[0]
for i in range(len(lons)):
if lons[i]>100.:
lons[i] = lons[i]-360.
lons = iris.coords.DimCoord(lons, standard_name='longitude', units='degrees')
MPISMHI_tasmax.remove_coord('latitude')
MPISMHI_tasmax.remove_coord('longitude')
MPISMHI_tasmax.remove_coord('grid_latitude')
MPISMHI_tasmax.remove_coord('grid_longitude')
MPISMHI_tasmax.add_dim_coord(lats, 1)
MPISMHI_tasmax.add_dim_coord(lons, 2)
lats = iris.coords.DimCoord(NCCSMHI_tasmax.coord('latitude').points[:,0], standard_name='latitude', units='degrees')
lons = NCCSMHI_tasmax.coord('longitude').points[0]
for i in range(len(lons)):
if lons[i]>100.:
lons[i] = lons[i]-360.
lons = iris.coords.DimCoord(lons, standard_name='longitude', units='degrees')
NCCSMHI_tasmax.remove_coord('latitude')
NCCSMHI_tasmax.remove_coord('longitude')
NCCSMHI_tasmax.remove_coord('grid_latitude')
NCCSMHI_tasmax.remove_coord('grid_longitude')
NCCSMHI_tasmax.add_dim_coord(lats, 1)
NCCSMHI_tasmax.add_dim_coord(lons, 2)
lats = iris.coords.DimCoord(NOAA_tasmax.coord('latitude').points[:,0], standard_name='latitude', units='degrees')
lons= NOAA_tasmax.coord('longitude').points[0]
for i in range(len(lons)):
if lons[i]>100.:
lons[i] = lons[i]-360.
lons = iris.coords.DimCoord(lons, standard_name='longitude', units='degrees')
NOAA_tasmax.remove_coord('latitude')
NOAA_tasmax.remove_coord('longitude')
NOAA_tasmax.remove_coord('grid_latitude')
NOAA_tasmax.remove_coord('grid_longitude')
NOAA_tasmax.add_dim_coord(lats, 1)
NOAA_tasmax.add_dim_coord(lons, 2)
lats = iris.coords.DimCoord(CCCmaCanRCM_pr.coord('latitude').points[:,0], standard_name='latitude', units='degrees')
lons = CCCmaCanRCM_pr.coord('longitude').points[0]
for i in range(len(lons)):
if lons[i]>100.:
lons[i] = lons[i]-360.
lons = iris.coords.DimCoord(lons, standard_name='longitude', units='degrees')
CCCmaCanRCM_pr.remove_coord('latitude')
CCCmaCanRCM_pr.remove_coord('longitude')
CCCmaCanRCM_pr.remove_coord('grid_latitude')
CCCmaCanRCM_pr.remove_coord('grid_longitude')
CCCmaCanRCM_pr.add_dim_coord(lats, 1)
CCCmaCanRCM_pr.add_dim_coord(lons, 2)
lats = iris.coords.DimCoord(CCCmaSMHI_pr.coord('latitude').points[:,0], standard_name='latitude', units='degrees')
lons = CCCmaSMHI_pr.coord('longitude').points[0]
for i in range(len(lons)):
if lons[i]>100.:
lons[i] = lons[i]-360.
lons = iris.coords.DimCoord(lons, standard_name='longitude', units='degrees')
CCCmaSMHI_pr.remove_coord('latitude')
CCCmaSMHI_pr.remove_coord('longitude')
CCCmaSMHI_pr.remove_coord('grid_latitude')
CCCmaSMHI_pr.remove_coord('grid_longitude')
CCCmaSMHI_pr.add_dim_coord(lats, 1)
CCCmaSMHI_pr.add_dim_coord(lons, 2)
lats = iris.coords.DimCoord(CNRM_pr.coord('latitude').points[:,0], standard_name='latitude', units='degrees')
lons = CNRM_pr.coord('longitude').points[0]
for i in range(len(lons)):
if lons[i]>100.:
lons[i] = lons[i]-360.
lons = iris.coords.DimCoord(lons, standard_name='longitude', units='degrees')
CNRM_pr.remove_coord('latitude')
CNRM_pr.remove_coord('longitude')
CNRM_pr.remove_coord('grid_latitude')
CNRM_pr.remove_coord('grid_longitude')
CNRM_pr.add_dim_coord(lats, 1)
CNRM_pr.add_dim_coord(lons, 2)
lats = iris.coords.DimCoord(CNRMSMHI_pr.coord('latitude').points[:,0], standard_name='latitude', units='degrees')
lons = CNRMSMHI_pr.coord('longitude').points[0]
for i in range(len(lons)):
if lons[i]>100.:
lons[i] = lons[i]-360.
lons = iris.coords.DimCoord(lons, standard_name='longitude', units='degrees')
CNRMSMHI_pr.remove_coord('latitude')
CNRMSMHI_pr.remove_coord('longitude')
CNRMSMHI_pr.remove_coord('grid_latitude')
CNRMSMHI_pr.remove_coord('grid_longitude')
CNRMSMHI_pr.add_dim_coord(lats, 1)
CNRMSMHI_pr.add_dim_coord(lons, 2)
lats = iris.coords.DimCoord(CSIRO_pr.coord('latitude').points[:,0], standard_name='latitude', units='degrees')
lons = CSIRO_pr.coord('longitude').points[0]
for i in range(len(lons)):
if lons[i]>100.:
lons[i] = lons[i]-360.
lons = iris.coords.DimCoord(lons, standard_name='longitude', units='degrees')
CSIRO_pr.remove_coord('latitude')
CSIRO_pr.remove_coord('longitude')
CSIRO_pr.remove_coord('grid_latitude')
CSIRO_pr.remove_coord('grid_longitude')
CSIRO_pr.add_dim_coord(lats, 1)
CSIRO_pr.add_dim_coord(lons, 2)
lats = iris.coords.DimCoord(ICHECDMI_pr.coord('latitude').points[:,0], standard_name='latitude', units='degrees')
lons = ICHECDMI_pr.coord('longitude').points[0]
for i in range(len(lons)):
if lons[i]>100.:
lons[i] = lons[i]-360.
lons = iris.coords.DimCoord(lons, standard_name='longitude', units='degrees')
ICHECDMI_pr.remove_coord('latitude')
ICHECDMI_pr.remove_coord('longitude')
ICHECDMI_pr.remove_coord('grid_latitude')
ICHECDMI_pr.remove_coord('grid_longitude')
ICHECDMI_pr.add_dim_coord(lats, 1)
ICHECDMI_pr.add_dim_coord(lons, 2)
lats = iris.coords.DimCoord(ICHECCCLM_pr.coord('latitude').points[:,0], standard_name='latitude', units='degrees')
lons = ICHECCCLM_pr.coord('longitude').points[0]
for i in range(len(lons)):
if lons[i]>100.:
lons[i] = lons[i]-360.
lons = iris.coords.DimCoord(lons, standard_name='longitude', units='degrees')
ICHECCCLM_pr.remove_coord('latitude')
ICHECCCLM_pr.remove_coord('longitude')
ICHECCCLM_pr.remove_coord('grid_latitude')
ICHECCCLM_pr.remove_coord('grid_longitude')
ICHECCCLM_pr.add_dim_coord(lats, 1)
ICHECCCLM_pr.add_dim_coord(lons, 2)
lats = iris.coords.DimCoord(ICHECKNMI_pr.coord('latitude').points[:,0], standard_name='latitude', units='degrees')
lons = ICHECKNMI_pr.coord('longitude').points[0]
for i in range(len(lons)):
if lons[i]>100.:
lons[i] = lons[i]-360.
lons = iris.coords.DimCoord(lons, standard_name='longitude', units='degrees')
ICHECKNMI_pr.remove_coord('latitude')
ICHECKNMI_pr.remove_coord('longitude')
ICHECKNMI_pr.remove_coord('grid_latitude')
ICHECKNMI_pr.remove_coord('grid_longitude')
ICHECKNMI_pr.add_dim_coord(lats, 1)
ICHECKNMI_pr.add_dim_coord(lons, 2)
lats = iris.coords.DimCoord(ICHECMPI_pr.coord('latitude').points[:,0], standard_name='latitude', units='degrees')
lons = ICHECMPI_pr.coord('longitude').points[0]
for i in range(len(lons)):
if lons[i]>100.:
lons[i] = lons[i]-360.
lons = iris.coords.DimCoord(lons, standard_name='longitude', units='degrees')
ICHECMPI_pr.remove_coord('latitude')
ICHECMPI_pr.remove_coord('longitude')
ICHECMPI_pr.remove_coord('grid_latitude')
ICHECMPI_pr.remove_coord('grid_longitude')
ICHECMPI_pr.add_dim_coord(lats, 1)
ICHECMPI_pr.add_dim_coord(lons, 2)
lats = iris.coords.DimCoord(ICHECSMHI_pr.coord('latitude').points[:,0], standard_name='latitude', units='degrees')
lons = ICHECSMHI_pr.coord('longitude').points[0]
for i in range(len(lons)):
if lons[i]>100.:
lons[i] = lons[i]-360.
lons = iris.coords.DimCoord(lons, standard_name='longitude', units='degrees')
ICHECSMHI_pr.remove_coord('latitude')
ICHECSMHI_pr.remove_coord('longitude')
ICHECSMHI_pr.remove_coord('grid_latitude')
ICHECSMHI_pr.remove_coord('grid_longitude')
ICHECSMHI_pr.add_dim_coord(lats, 1)
ICHECSMHI_pr.add_dim_coord(lons, 2)
lats = iris.coords.DimCoord(IPSL_pr.coord('latitude').points[:,0], standard_name='latitude', units='degrees')
lons = IPSL_pr.coord('longitude').points[0]
for i in range(len(lons)):
if lons[i]>100.:
lons[i] = lons[i]-360.
lons = iris.coords.DimCoord(lons, standard_name='longitude', units='degrees')
IPSL_pr.remove_coord('latitude')
IPSL_pr.remove_coord('longitude')
IPSL_pr.remove_coord('grid_latitude')
IPSL_pr.remove_coord('grid_longitude')
IPSL_pr.add_dim_coord(lats, 1)
IPSL_pr.add_dim_coord(lons, 2)
lats = iris.coords.DimCoord(MIROC_pr.coord('latitude').points[:,0], standard_name='latitude', units='degrees')
lons = MIROC_pr.coord('longitude').points[0]
for i in range(len(lons)):
if lons[i]>100.:
lons[i] = lons[i]-360.
lons = iris.coords.DimCoord(lons, standard_name='longitude', units='degrees')
MIROC_pr.remove_coord('latitude')
MIROC_pr.remove_coord('longitude')
MIROC_pr.remove_coord('grid_latitude')
MIROC_pr.remove_coord('grid_longitude')
MIROC_pr.add_dim_coord(lats, 1)
MIROC_pr.add_dim_coord(lons, 2)
lats = iris.coords.DimCoord(MOHCCCLM_pr.coord('latitude').points[:,0], standard_name='latitude', units='degrees')
lons = MOHCCCLM_pr.coord('longitude').points[0]
for i in range(len(lons)):
if lons[i]>100.:
lons[i] = lons[i]-360.
lons = iris.coords.DimCoord(lons, standard_name='longitude', units='degrees')
MOHCCCLM_pr.remove_coord('latitude')
MOHCCCLM_pr.remove_coord('longitude')
MOHCCCLM_pr.remove_coord('grid_latitude')
MOHCCCLM_pr.remove_coord('grid_longitude')
MOHCCCLM_pr.add_dim_coord(lats, 1)
MOHCCCLM_pr.add_dim_coord(lons, 2)
lats = iris.coords.DimCoord(MOHCKNMI_pr.coord('latitude').points[:,0], standard_name='latitude', units='degrees')
lons = MOHCKNMI_pr.coord('longitude').points[0]
for i in range(len(lons)):
if lons[i]>100.:
lons[i] = lons[i]-360.
lons = iris.coords.DimCoord(lons, standard_name='longitude', units='degrees')
MOHCKNMI_pr.remove_coord('latitude')
MOHCKNMI_pr.remove_coord('longitude')
MOHCKNMI_pr.remove_coord('grid_latitude')
MOHCKNMI_pr.remove_coord('grid_longitude')
MOHCKNMI_pr.add_dim_coord(lats, 1)
MOHCKNMI_pr.add_dim_coord(lons, 2)
lats = iris.coords.DimCoord(MOHCSMHI_pr.coord('latitude').points[:,0], standard_name='latitude', units='degrees')
lons = MOHCSMHI_pr.coord('longitude').points[0]
for i in range(len(lons)):
if lons[i]>100.:
lons[i] = lons[i]-360.
lons = iris.coords.DimCoord(lons, standard_name='longitude', units='degrees')
MOHCSMHI_pr.remove_coord('latitude')
MOHCSMHI_pr.remove_coord('longitude')
MOHCSMHI_pr.remove_coord('grid_latitude')
MOHCSMHI_pr.remove_coord('grid_longitude')
MOHCSMHI_pr.add_dim_coord(lats, 1)
MOHCSMHI_pr.add_dim_coord(lons, 2)
lats = iris.coords.DimCoord(MPICCLM_pr.coord('latitude').points[:,0], standard_name='latitude', units='degrees')
lons = MPICCLM_pr.coord('longitude').points[0]
for i in range(len(lons)):
if lons[i]>100.:
lons[i] = lons[i]-360.
lons = iris.coords.DimCoord(lons, standard_name='longitude', units='degrees')
MPICCLM_pr.remove_coord('latitude')
MPICCLM_pr.remove_coord('longitude')
MPICCLM_pr.remove_coord('grid_latitude')
MPICCLM_pr.remove_coord('grid_longitude')
MPICCLM_pr.add_dim_coord(lats, 1)
MPICCLM_pr.add_dim_coord(lons, 2)
lats = iris.coords.DimCoord(MPIREMO_pr.coord('latitude').points[:,0], standard_name='latitude', units='degrees')
lons = MPIREMO_pr.coord('longitude').points[0]
for i in range(len(lons)):
if lons[i]>100.:
lons[i] = lons[i]-360.
lons = iris.coords.DimCoord(lons, standard_name='longitude', units='degrees')
MPIREMO_pr.remove_coord('latitude')
MPIREMO_pr.remove_coord('longitude')
MPIREMO_pr.remove_coord('grid_latitude')
MPIREMO_pr.remove_coord('grid_longitude')
MPIREMO_pr.add_dim_coord(lats, 1)
MPIREMO_pr.add_dim_coord(lons, 2)
lats = iris.coords.DimCoord(MPISMHI_pr.coord('latitude').points[:,0], standard_name='latitude', units='degrees')
lons = MPISMHI_pr.coord('longitude').points[0]
for i in range(len(lons)):
if lons[i]>100.:
lons[i] = lons[i]-360.
lons = iris.coords.DimCoord(lons, standard_name='longitude', units='degrees')
MPISMHI_pr.remove_coord('latitude')
MPISMHI_pr.remove_coord('longitude')
MPISMHI_pr.remove_coord('grid_latitude')
MPISMHI_pr.remove_coord('grid_longitude')
MPISMHI_pr.add_dim_coord(lats, 1)
MPISMHI_pr.add_dim_coord(lons, 2)
lats = iris.coords.DimCoord(NCCSMHI_pr.coord('latitude').points[:,0], standard_name='latitude', units='degrees')
lons = NCCSMHI_pr.coord('longitude').points[0]
for i in range(len(lons)):
if lons[i]>100.:
lons[i] = lons[i]-360.
lons = iris.coords.DimCoord(lons, standard_name='longitude', units='degrees')
NCCSMHI_pr.remove_coord('latitude')
NCCSMHI_pr.remove_coord('longitude')
NCCSMHI_pr.remove_coord('grid_latitude')
NCCSMHI_pr.remove_coord('grid_longitude')
NCCSMHI_pr.add_dim_coord(lats, 1)
NCCSMHI_pr.add_dim_coord(lons, 2)
lats = iris.coords.DimCoord(NOAA_pr.coord('latitude').points[:,0], standard_name='latitude', units='degrees')
lons= NOAA_pr.coord('longitude').points[0]
for i in range(len(lons)):
if lons[i]>100.:
lons[i] = lons[i]-360.
lons = iris.coords.DimCoord(lons, standard_name='longitude', units='degrees')
NOAA_pr.remove_coord('latitude')
NOAA_pr.remove_coord('longitude')
NOAA_pr.remove_coord('grid_latitude')
NOAA_pr.remove_coord('grid_longitude')
NOAA_pr.add_dim_coord(lats, 1)
NOAA_pr.add_dim_coord(lons, 2)
#guess bounds
CCCmaCanRCM_tasmin.coord('latitude').guess_bounds()
CCCmaSMHI_tasmin.coord('latitude').guess_bounds()
CNRM_tasmin.coord('latitude').guess_bounds()
CNRMSMHI_tasmin.coord('latitude').guess_bounds()