Skip to content

Commit 2fcf0fb

Browse files
committed
test: update tests to consistently use nan fill value for floats
1 parent e6e75cc commit 2fcf0fb

8 files changed

Lines changed: 12021 additions & 12025 deletions

tests/_test_data/geozarr_examples/S2A_MSIL2A_20251008T100041_N0511_R122_T32TQM_20251008T122613.json

Lines changed: 113 additions & 115 deletions
Large diffs are not rendered by default.

tests/_test_data/geozarr_examples/S2B_MSIL1C_20250113T103309_N0511_R108_T32TLQ_20250113T122458.json

Lines changed: 11672 additions & 11674 deletions
Large diffs are not rendered by default.

tests/_test_data/geozarr_examples/S2C_MSIL2A_20250811T112131_N0511_R037_T29TPF_20250811T152216.json

Lines changed: 113 additions & 115 deletions
Large diffs are not rendered by default.

tests/_test_data/optimized_geozarr_examples/S2A_MSIL2A_20251008T100041_N0511_R122_T32TQM_20251008T122613.json

Lines changed: 37 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@
176176
"dimension_names": [
177177
"angle"
178178
],
179-
"fill_value": 0.0,
179+
"fill_value": "NaN",
180180
"node_type": "array",
181181
"shape": [
182182
2
@@ -239,7 +239,7 @@
239239
"band",
240240
"angle"
241241
],
242-
"fill_value": 0.0,
242+
"fill_value": "NaN",
243243
"node_type": "array",
244244
"shape": [
245245
13,
@@ -306,7 +306,7 @@
306306
"y",
307307
"x"
308308
],
309-
"fill_value": 0.0,
309+
"fill_value": "NaN",
310310
"node_type": "array",
311311
"shape": [
312312
2,
@@ -382,7 +382,7 @@
382382
"y",
383383
"x"
384384
],
385-
"fill_value": 0.0,
385+
"fill_value": "NaN",
386386
"node_type": "array",
387387
"shape": [
388388
13,
@@ -2435,7 +2435,7 @@
24352435
"latitude",
24362436
"longitude"
24372437
],
2438-
"fill_value": 0.0,
2438+
"fill_value": "NaN",
24392439
"node_type": "array",
24402440
"shape": [
24412441
9,
@@ -2537,7 +2537,7 @@
25372537
"latitude",
25382538
"longitude"
25392539
],
2540-
"fill_value": 0.0,
2540+
"fill_value": "NaN",
25412541
"node_type": "array",
25422542
"shape": [
25432543
9,
@@ -2639,7 +2639,7 @@
26392639
"latitude",
26402640
"longitude"
26412641
],
2642-
"fill_value": 0.0,
2642+
"fill_value": "NaN",
26432643
"node_type": "array",
26442644
"shape": [
26452645
9,
@@ -2741,7 +2741,7 @@
27412741
"latitude",
27422742
"longitude"
27432743
],
2744-
"fill_value": 0.0,
2744+
"fill_value": "NaN",
27452745
"node_type": "array",
27462746
"shape": [
27472747
9,
@@ -2843,7 +2843,7 @@
28432843
"latitude",
28442844
"longitude"
28452845
],
2846-
"fill_value": 0.0,
2846+
"fill_value": "NaN",
28472847
"node_type": "array",
28482848
"shape": [
28492849
9,
@@ -2945,7 +2945,7 @@
29452945
"latitude",
29462946
"longitude"
29472947
],
2948-
"fill_value": 0.0,
2948+
"fill_value": "NaN",
29492949
"node_type": "array",
29502950
"shape": [
29512951
9,
@@ -3047,7 +3047,7 @@
30473047
"latitude",
30483048
"longitude"
30493049
],
3050-
"fill_value": 0.0,
3050+
"fill_value": "NaN",
30513051
"node_type": "array",
30523052
"shape": [
30533053
9,
@@ -3087,7 +3087,7 @@
30873087
],
30883088
"data_type": "float64",
30893089
"dimension_names": null,
3090-
"fill_value": 0.0,
3090+
"fill_value": "NaN",
30913091
"node_type": "array",
30923092
"shape": [],
30933093
"storage_transformers": [],
@@ -3127,7 +3127,7 @@
31273127
"dimension_names": [
31283128
"latitude"
31293129
],
3130-
"fill_value": 0.0,
3130+
"fill_value": "NaN",
31313131
"node_type": "array",
31323132
"shape": [
31333133
9
@@ -3168,7 +3168,7 @@
31683168
"dimension_names": [
31693169
"longitude"
31703170
],
3171-
"fill_value": 0.0,
3171+
"fill_value": "NaN",
31723172
"node_type": "array",
31733173
"shape": [
31743174
9
@@ -3303,7 +3303,7 @@
33033303
"latitude",
33043304
"longitude"
33053305
],
3306-
"fill_value": 0.0,
3306+
"fill_value": "NaN",
33073307
"node_type": "array",
33083308
"shape": [
33093309
9,
@@ -3405,7 +3405,7 @@
34053405
"latitude",
34063406
"longitude"
34073407
],
3408-
"fill_value": 0.0,
3408+
"fill_value": "NaN",
34093409
"node_type": "array",
34103410
"shape": [
34113411
9,
@@ -3416,10 +3416,9 @@
34163416
},
34173417
"step": {
34183418
"attributes": {
3419-
"dtype": "timedelta64[ns]",
34203419
"long_name": "time since forecast_reference_time",
34213420
"standard_name": "forecast_period",
3422-
"units": "days"
3421+
"units": "minutes"
34233422
},
34243423
"chunk_grid": {
34253424
"configuration": {
@@ -3542,7 +3541,7 @@
35423541
"latitude",
35433542
"longitude"
35443543
],
3545-
"fill_value": 0.0,
3544+
"fill_value": "NaN",
35463545
"node_type": "array",
35473546
"shape": [
35483547
9,
@@ -3579,7 +3578,7 @@
35793578
],
35803579
"data_type": "float64",
35813580
"dimension_names": null,
3582-
"fill_value": 0.0,
3581+
"fill_value": "NaN",
35833582
"node_type": "array",
35843583
"shape": [],
35853584
"storage_transformers": [],
@@ -3748,7 +3747,7 @@
37483747
"latitude",
37493748
"longitude"
37503749
],
3751-
"fill_value": 0.0,
3750+
"fill_value": "NaN",
37523751
"node_type": "array",
37533752
"shape": [
37543753
9,
@@ -3803,7 +3802,7 @@
38033802
],
38043803
"data_type": "float64",
38053804
"dimension_names": null,
3806-
"fill_value": 0.0,
3805+
"fill_value": "NaN",
38073806
"node_type": "array",
38083807
"shape": [],
38093808
"storage_transformers": [],
@@ -3843,7 +3842,7 @@
38433842
"dimension_names": [
38443843
"latitude"
38453844
],
3846-
"fill_value": 0.0,
3845+
"fill_value": "NaN",
38473846
"node_type": "array",
38483847
"shape": [
38493848
9
@@ -3884,7 +3883,7 @@
38843883
"dimension_names": [
38853884
"longitude"
38863885
],
3887-
"fill_value": 0.0,
3886+
"fill_value": "NaN",
38883887
"node_type": "array",
38893888
"shape": [
38903889
9
@@ -3985,7 +3984,7 @@
39853984
"latitude",
39863985
"longitude"
39873986
],
3988-
"fill_value": 0.0,
3987+
"fill_value": "NaN",
39893988
"node_type": "array",
39903989
"shape": [
39913990
9,
@@ -4121,7 +4120,7 @@
41214120
"latitude",
41224121
"longitude"
41234122
],
4124-
"fill_value": 0.0,
4123+
"fill_value": "NaN",
41254124
"node_type": "array",
41264125
"shape": [
41274126
9,
@@ -4132,10 +4131,9 @@
41324131
},
41334132
"step": {
41344133
"attributes": {
4135-
"dtype": "timedelta64[ns]",
41364134
"long_name": "time since forecast_reference_time",
41374135
"standard_name": "forecast_period",
4138-
"units": "days"
4136+
"units": "minutes"
41394137
},
41404138
"chunk_grid": {
41414139
"configuration": {
@@ -4193,7 +4191,7 @@
41934191
],
41944192
"data_type": "float64",
41954193
"dimension_names": null,
4196-
"fill_value": 0.0,
4194+
"fill_value": "NaN",
41974195
"node_type": "array",
41984196
"shape": [],
41994197
"storage_transformers": [],
@@ -4292,7 +4290,7 @@
42924290
"latitude",
42934291
"longitude"
42944292
],
4295-
"fill_value": 0.0,
4293+
"fill_value": "NaN",
42964294
"node_type": "array",
42974295
"shape": [
42984296
9,
@@ -4394,7 +4392,7 @@
43944392
"latitude",
43954393
"longitude"
43964394
],
4397-
"fill_value": 0.0,
4395+
"fill_value": "NaN",
43984396
"node_type": "array",
43994397
"shape": [
44004398
9,
@@ -4531,7 +4529,7 @@
45314529
"latitude",
45324530
"longitude"
45334531
],
4534-
"fill_value": 0.0,
4532+
"fill_value": "NaN",
45354533
"node_type": "array",
45364534
"shape": [
45374535
9,
@@ -4633,7 +4631,7 @@
46334631
"latitude",
46344632
"longitude"
46354633
],
4636-
"fill_value": 0.0,
4634+
"fill_value": "NaN",
46374635
"node_type": "array",
46384636
"shape": [
46394637
9,
@@ -7202,7 +7200,7 @@
72027200
"dimension_names": [
72037201
"x"
72047202
],
7205-
"fill_value": 0.0,
7203+
"fill_value": "NaN",
72067204
"node_type": "array",
72077205
"shape": [
72087206
915
@@ -7240,7 +7238,7 @@
72407238
"dimension_names": [
72417239
"y"
72427240
],
7243-
"fill_value": 0.0,
7241+
"fill_value": "NaN",
72447242
"node_type": "array",
72457243
"shape": [
72467244
915
@@ -10341,7 +10339,7 @@
1034110339
"dimension_names": [
1034210340
"x"
1034310341
],
10344-
"fill_value": 0.0,
10342+
"fill_value": "NaN",
1034510343
"node_type": "array",
1034610344
"shape": [
1034710345
305
@@ -10379,7 +10377,7 @@
1037910377
"dimension_names": [
1038010378
"y"
1038110379
],
10382-
"fill_value": 0.0,
10380+
"fill_value": "NaN",
1038310381
"node_type": "array",
1038410382
"shape": [
1038510383
305
@@ -13602,7 +13600,7 @@
1360213600
"dimension_names": [
1360313601
"x"
1360413602
],
13605-
"fill_value": 0.0,
13603+
"fill_value": "NaN",
1360613604
"node_type": "array",
1360713605
"shape": [
1360813606
152
@@ -13640,7 +13638,7 @@
1364013638
"dimension_names": [
1364113639
"y"
1364213640
],
13643-
"fill_value": 0.0,
13641+
"fill_value": "NaN",
1364413642
"node_type": "array",
1364513643
"shape": [
1364613644
152

0 commit comments

Comments
 (0)