@@ -430,10 +430,7 @@ def _create_cfa_data(self, ncvar, ncdimensions, data, cfvar):
430
430
431
431
`None`
432
432
433
- """
434
- import time # TODO
435
- print (f"\n { ncvar } " ) # TODO
436
-
433
+ """
437
434
g = self .write_vars
438
435
439
436
ndim = data .ndim
@@ -484,7 +481,6 @@ def _create_cfa_data(self, ncvar, ncdimensions, data, cfvar):
484
481
aggregated_data_attr = []
485
482
486
483
# Location
487
- start = time .time () # TODO
488
484
term = "location"
489
485
data = cfa [term ]
490
486
self .implementation .nc_set_hdf5_chunksizes (data , data .shape )
@@ -494,11 +490,9 @@ def _create_cfa_data(self, ncvar, ncdimensions, data, cfvar):
494
490
location_ncdimensions ,
495
491
)
496
492
aggregated_data_attr .append (f"{ term } : { term_ncvar } " )
497
- print (f"{ term :<10} : { time .time () - start :.3} " )
498
493
499
494
# File
500
495
term = "file"
501
- start = time .time () # TODO
502
496
if substitutions :
503
497
# Create the "substitutions" netCDF attribute
504
498
subs = []
@@ -518,11 +512,9 @@ def _create_cfa_data(self, ncvar, ncdimensions, data, cfvar):
518
512
attributes = attributes ,
519
513
)
520
514
aggregated_data_attr .append (f"{ term } : { term_ncvar } " )
521
- print (f"{ term :<10} : { time .time () - start :.3} " )
522
515
523
516
# Address
524
517
term = "address"
525
- start = time .time () # TODO
526
518
527
519
# Attempt to reduce addresses to a common scalar value
528
520
u = cfa [term ].unique ().compressed ().persist ()
@@ -540,11 +532,9 @@ def _create_cfa_data(self, ncvar, ncdimensions, data, cfvar):
540
532
dimensions ,
541
533
)
542
534
aggregated_data_attr .append (f"{ term } : { term_ncvar } " )
543
- print (f"{ term :<10} : { time .time () - start :.3} " )
544
535
545
536
# Format
546
537
term = "format"
547
- start = time .time () # TODO
548
538
549
539
# Attempt to reduce addresses to a common scalar value
550
540
u = cfa [term ].unique ().compressed ().persist ()
@@ -563,7 +553,6 @@ def _create_cfa_data(self, ncvar, ncdimensions, data, cfvar):
563
553
)
564
554
aggregated_data_attr .append (f"{ term } : { term_ncvar } " )
565
555
566
- print (f"{ term :<10} : { time .time () - start :.3} " )
567
556
# ------------------------------------------------------------
568
557
# Look for non-standard CFA terms stored as field ancillaries
569
558
# on a field and write them to the CFA-netCDF file
@@ -905,6 +894,7 @@ def _cfa_aggregation_instructions(self, data, cfvar):
905
894
from pathlib import PurePath
906
895
from urllib .parse import urlparse
907
896
import time # TODO
897
+ print (f"\n { cfvar !r} " ) # TODO
908
898
start = time .time () # TODO
909
899
910
900
g = self .write_vars
0 commit comments