gedih3.doctor.diagnoses.backfill#
backfill diagnosis — fill NaN gaps in product columns from source HDF5s.
The detection runs row-level: for each partition × product, we count nulls per
granule by grouping on root_file_l2a. Findings include the partition file,
the product, and the per-granule null counts.
- The fix:
Group findings by source granule × product to compute the minimal set of HDF5 files to read.
(S3 mode) run
s3_etl_subset()to populate a temp dir with just those granules’ source files for the requested products. Cleanup infinally.For each affected partition file, read the relevant
[shot_number, vars]from the source HDF5(s), suffix columns with_<prod>, write to a temporary patch parquet, and callparquet_fill_columns()to merge.Mark each healed granule × product as
INDEXEDin the build log.
Attributes#
Functions#
|
|
|
Module Contents#
- gedih3.doctor.diagnoses.backfill.GranuleKey#
- gedih3.doctor.diagnoses.backfill.backfill_check(ctx: gedih3.doctor.report.DoctorContext) gedih3.doctor.report.Report[source]#
- gedih3.doctor.diagnoses.backfill.backfill_fix(ctx: gedih3.doctor.report.DoctorContext, report: gedih3.doctor.report.Report) gedih3.doctor.report.Report[source]#