@@ -415,7 +415,21 @@ def open_dc_estimate_dataset(
415
415
azimuth_time = []
416
416
t0 = []
417
417
data_dc_poly = []
418
+ geometry_dc_poly = []
419
+ data_dc_rms_error = []
420
+ data_dc_rms_error_above_threshold = []
421
+ fine_dce_azimuth_start_time = []
422
+ fine_dce_azimuth_stop_time = []
418
423
for dc_estimate in dc_estimates :
424
+ geometry_dc_poly .append (
425
+ [float (c ) for c in dc_estimate ["geometryDcPolynomial" ]["$" ].split ()]
426
+ )
427
+ data_dc_rms_error .append (dc_estimate ["dataDcRmsError" ])
428
+ data_dc_rms_error_above_threshold .append (
429
+ dc_estimate ["dataDcRmsErrorAboveThreshold" ]
430
+ )
431
+ fine_dce_azimuth_start_time .append (dc_estimate ["fineDceAzimuthStartTime" ])
432
+ fine_dce_azimuth_stop_time .append (dc_estimate ["fineDceAzimuthStopTime" ])
419
433
azimuth_time .append (dc_estimate ["azimuthTime" ])
420
434
t0 .append (dc_estimate ["t0" ])
421
435
data_dc_poly .append (
@@ -426,6 +440,25 @@ def open_dc_estimate_dataset(
426
440
data_vars = {
427
441
"t0" : ("azimuth_time" , t0 , attrs ),
428
442
"data_dc_polynomial" : (("azimuth_time" , "degree" ), data_dc_poly , attrs ),
443
+ "geometry_dc_polynomial" : (
444
+ ("azimuth_time" , "degree" ),
445
+ geometry_dc_poly ,
446
+ attrs ,
447
+ ),
448
+ "data_dc_rms_error" : ("azimuth_time" , data_dc_rms_error , attrs ),
449
+ "data_dc_rms_error_above_threshold" : (
450
+ "azimuth_time" ,
451
+ data_dc_rms_error ,
452
+ attrs ,
453
+ ),
454
+ "fine_dce_azimuth_start_time" : (
455
+ "azimuth_time" ,
456
+ [np .datetime64 (at , "ns" ) for at in fine_dce_azimuth_start_time ],
457
+ ),
458
+ "fine_dce_azimuth_stop_time" : (
459
+ "azimuth_time" ,
460
+ [np .datetime64 (at , "ns" ) for at in fine_dce_azimuth_stop_time ],
461
+ ),
429
462
},
430
463
coords = {
431
464
"azimuth_time" : [np .datetime64 (at , "ns" ) for at in azimuth_time ],
0 commit comments